@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:01.741Z") @Stability(value=Experimental) 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:
Function authFn;
Resource books;
RequestAuthorizer auth = RequestAuthorizer.Builder.create(this, "booksAuthorizer")
.handler(authFn)
.identitySources(List.of(IdentitySource.header("Authorization")))
.build();
books.addMethod("GET", new HttpIntegration("http://amazon.com"), MethodOptions.builder()
.authorizer(auth)
.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
Integration.Builder
(experimental) 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)
(experimental) 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=Experimental)
public Integration(@NotNull
IntegrationProps props)
props - This parameter is required.@Stability(value=Experimental) @NotNull public IntegrationConfig bind(@NotNull Method _method)
_method - This parameter is required.Copyright © 2022. All rights reserved.