Table of Contents

Class AwsIntegration

Namespace
Amazon.CDK.AWS.APIGateway
Assembly
Amazon.CDK.AWS.APIGateway.dll

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

public class AwsIntegration : Integration
Inheritance
AwsIntegration
Derived

Examples

var getMessageIntegration = new AwsIntegration(new AwsIntegrationProps {
                 Service = "sqs",
                 Path = "queueName",
                 Region = "eu-west-1"
             });

Remarks

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.

ExampleMetadata: infused

Constructors

AwsIntegration(IAwsIntegrationProps)

public AwsIntegration(IAwsIntegrationProps props)

Parameters

props IAwsIntegrationProps

Methods

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.

public override IIntegrationConfig Bind(Method method)

Parameters

method Method

Returns

IIntegrationConfig