Show / Hide Table of Contents

Class Integration

Base class for backend integrations for an API Gateway method.

Inheritance
System.Object
Integration
AwsIntegration
HttpIntegration
MockIntegration
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Integration : DeputyBase
Syntax (vb)
Public Class Integration
    Inherits DeputyBase
Remarks

Use one of the concrete classes such as MockIntegration, AwsIntegration, LambdaIntegration or implement on your own by specifying the set of props.

ExampleMetadata: infused

Examples
Resource books;
User iamUser;


var getBooks = books.AddMethod("GET", new HttpIntegration("http://amazon.com"), new MethodOptions {
    AuthorizationType = AuthorizationType.IAM
});

iamUser.AttachInlinePolicy(new Policy(this, "AllowBooks", new PolicyProps {
    Statements = new [] {
        new PolicyStatement(new PolicyStatementProps {
            Actions = new [] { "execute-api:Invoke" },
            Effect = Effect.ALLOW,
            Resources = new [] { getBooks.MethodArn }
        }) }
}));

Synopsis

Constructors

Integration(IIntegrationProps)
Integration(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

Integration(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

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.

Constructors

Integration(IIntegrationProps)

public Integration(IIntegrationProps props)
Parameters
props IIntegrationProps

Integration(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected Integration(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

Integration(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected Integration(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

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 virtual IIntegrationConfig Bind(Method method)
Parameters
method Method
Returns

IIntegrationConfig

Back to top Generated by DocFX