Skip to content

Axis IS CDK — Extending

Open in ChatGPTOpen in Claude

The Axis IS CDK principle isn’t just how the framework is built — it’s how you should extend it. When you write your own construct or stack alongside Axis, follow the same rules and your code inherits the same no-ceiling ergonomics.

Your construct props should extend Omit<CdkProps, ...fields-you-control>, exposing every CDK prop you don’t deliberately own:

export interface MyThingProps extends Omit<
someservice.CfnThingProps,
"thingName" | "removalPolicy"
> {
// your additions
}

This gives consumers of your construct the same full autocomplete and same-day access to new CDK props that Axis constructs give.

[key: string]: unknown is prohibited in Axis config types because it kills autocomplete and lets typos compile silently. Keep your extension types just as strict.

Every wiring decision should be visible at the call site — name your trigger types, import your configs explicitly, and never match things up by naming convention (it breaks silently when a name changes).

© 2026 Axis Tech. Powered by axis-tech.co.