@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.170Z") @Stability(value=Stable) public class Integration extends software.amazon.jsii.JsiiObject
Use one of the concrete classes such as MockIntegration, AwsIntegration, LambdaIntegration
or implement on your own by specifying the set of props.
Example:
Resource books;
User iamUser;
Method getBooks = books.addMethod("GET", new HttpIntegration("http://amazon.com"), MethodOptions.builder()
.authorizationType(AuthorizationType.IAM)
.build());
iamUser.attachInlinePolicy(Policy.Builder.create(this, "AllowBooks")
.statements(List.of(
PolicyStatement.Builder.create()
.actions(List.of("execute-api:Invoke"))
.effect(Effect.ALLOW)
.resources(List.of(getBooks.getMethodArn()))
.build()))
.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
Integration.Builder
A fluent builder for
Integration. |
| Modifier | Constructor and Description |
|---|---|
|
Integration(IntegrationProps props) |
protected |
Integration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Integration(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
IntegrationConfig |
bind(Method _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.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Integration(software.amazon.jsii.JsiiObjectRef objRef)
protected Integration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Integration(@NotNull
IntegrationProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public IntegrationConfig bind(@NotNull Method _method)
_method - This parameter is required.Copyright © 2022. All rights reserved.