Skip to content

AtfHttpApiProps

Open in ChatGPTOpen in Claude

Defined in: packages/constructs/src/api/http-api.ts:79

  • Omit<apigatewayv2.HttpApiProps, "apiName" | "corsPreflight" | "createDefaultStage" | "defaultAuthorizer">

optional corsAllowedOrigins?: string[]

Defined in: packages/constructs/src/api/http-api.ts:92

CORS allowed origins — Axis wires the preflight automatically.


readonly optional defaultAuthorizationScopes?: string[]

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-apigatewayv2/lib/http/api.d.ts:165

Default OIDC scopes attached to all routes in the gateway, unless explicitly configured on the route. The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation.

- no default authorization scopes

Omit.defaultAuthorizationScopes


readonly optional defaultDomainMapping?: DomainMappingOptions

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-apigatewayv2/lib/http/api.d.ts:144

Configure a custom domain with the API mapping resource to the HTTP API

  • no default domain mapping configured. meaningless if createDefaultStage is false.

Omit.defaultDomainMapping


readonly optional defaultIntegration?: HttpRouteIntegration

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-apigatewayv2/lib/http/api.d.ts:127

An integration that will be configured on the catch-all route ($default).

- none

Omit.defaultIntegration


readonly optional description?: string

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-apigatewayv2/lib/http/api.d.ts:122

The description of the API.

- none

Omit.description


readonly optional disableExecuteApiEndpoint?: boolean

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-apigatewayv2/lib/http/api.d.ts:152

Specifies whether clients can invoke your API using the default endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. Set this to true if you would like clients to use your custom domain name.

false execute-api endpoint enabled.

Omit.disableExecuteApiEndpoint


optional domain?: HttpApiDomainConfig

Defined in: packages/constructs/src/api/http-api.ts:100

Optional custom domain.


envConfig: BaseEnvConfig

Defined in: packages/constructs/src/api/http-api.ts:86


readonly optional ipAddressType?: IpAddressType

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-apigatewayv2/lib/http/api.d.ts:181

The IP address types that can invoke the API.

https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-ip-address-type.html

undefined - AWS default is IPV4

Omit.ipAddressType


optional lambdaAuthorizer?: AtfLambdaAuthorizerConfig

Defined in: packages/constructs/src/api/http-api.ts:102

Optional Lambda (REQUEST) authorizer for routes with authorizer:“lambda”.


lambdaConfigs: HttpApiLambdaConfig[]

Defined in: packages/constructs/src/api/http-api.ts:94

HTTP API route configs.


projectRoot: string

Defined in: packages/constructs/src/api/http-api.ts:98

Project root for entry-path resolution.


registry: ResourceRegistry

Defined in: packages/constructs/src/api/http-api.ts:96

Resource registry for token resolution.


readonly optional routeSelectionExpression?: boolean

Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-apigatewayv2/lib/http/api.d.ts:173

Whether to set the default route selection expression for the API.

When enabled, ”${request.method} ${request.path}” is set as the default route selection expression.

false

Omit.routeSelectionExpression


optional userPool?: IUserPool

Defined in: packages/constructs/src/api/http-api.ts:88

Cognito User Pool for the JWT authorizer.


optional userPoolClient?: IUserPoolClient

Defined in: packages/constructs/src/api/http-api.ts:90

Cognito User Pool client — the JWT audience. Required for the authorizer.

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