aws-cdk-lib.aws_apigateway.AwsIntegration

class AwsIntegration

LanguageType name
.NETAmazon.CDK.AWS.APIGateway.AwsIntegration
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#AwsIntegration
Javasoftware.amazon.awscdk.services.apigateway.AwsIntegration
Pythonaws_cdk.aws_apigateway.AwsIntegration
TypeScript (source)aws-cdk-lib » aws_apigateway » AwsIntegration

Extends Integration

This type of integration lets an API expose AWS service actions.

It is intended for calling all AWS service actions, but is not recommended for calling a Lambda function, because the Lambda custom integration is a legacy technology.

Example

const getMessageIntegration = new apigateway.AwsIntegration({
  service: 'sqs',
  path: 'queueName',
  region: 'eu-west-1'
});

Initializer

new AwsIntegration(props: AwsIntegrationProps)

Parameters

  • props AwsIntegrationProps

Methods

NameDescription
bind(method)Can be overridden by subclasses to allow the integration to interact with the method being integrated, access the REST API object, method ARNs, etc.

bind(method)

public bind(method: Method): IntegrationConfig

Parameters

  • method Method

Returns

  • IntegrationConfig

Can be overridden by subclasses to allow the integration to interact with the method being integrated, access the REST API object, method ARNs, etc.