AwsApiGatewayHttpCapabilityArgs

interface AwsApiGatewayHttpCapabilityArgs { http: AwsApiGatewayHttpArgs; rest?: undefined; type: 'HTTP'; }

HTTP capability shape for AwsApiGatewayArgs.

Example

CODE
const args: AwsApiGatewayHttpCapabilityArgs = {
  type: 'HTTP',
  http: {
    routes: {
      'GET /health': {
        integration: {
          type: 'lambda',
          targetArn: healthFunction.arn,
          createInvokePermission: false,
        },
      },
    },
  },
};

Properties

http: AwsApiGatewayHttpArgs

HTTP API capability configuration.

rest: undefined

type: 'HTTP'

Selects API Gateway v2 HTTP capability orchestration.