AwsApiGatewayRestCapabilityArgs

interface AwsApiGatewayRestCapabilityArgs { http?: undefined; rest: AwsApiGatewayRestArgs; type: 'REST'; }

REST capability shape for AwsApiGatewayArgs.

Example

CODE
const args: AwsApiGatewayRestCapabilityArgs = {
  type: 'REST',
  rest: {
    routes: {
      'GET /health': {
        integration: {
          type: 'lambda',
          targetArn: healthFunction.arn,
          createInvokePermission: false,
        },
      },
    },
  },
};

Properties

http: undefined

rest: AwsApiGatewayRestArgs

REST API capability configuration.

type: 'REST'

Selects API Gateway v1 REST capability orchestration.