@Stability(value=Experimental) @Internal public static final class LambdaIntegrationOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LambdaIntegrationOptions
LambdaIntegrationOptionssoftware.amazon.jsii.JsiiObject.InitializationModeLambdaIntegrationOptions.Builder, LambdaIntegrationOptions.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(Boolean allowTestInvoke,
Boolean proxy,
List<String> cacheKeyParameters,
String cacheNamespace,
ConnectionType connectionType,
ContentHandling contentHandling,
Boolean credentialsPassthrough,
IRole credentialsRole,
List<? extends IntegrationResponse> integrationResponses,
PassthroughBehavior passthroughBehavior,
Map<String,String> requestParameters,
Map<String,String> requestTemplates,
Duration timeout,
IVpcLink vpcLink)
Constructor that initializes the object based on literal property values passed by the
LambdaIntegrationOptions.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getAllowTestInvoke()
(experimental) Allow invoking method from AWS Console UI (for testing purposes).
|
List<String> |
getCacheKeyParameters()
(experimental) A list of request parameters whose values are to be cached.
|
String |
getCacheNamespace()
(experimental) An API-specific tag group of related cached parameters.
|
ConnectionType |
getConnectionType()
(experimental) The type of network connection to the integration endpoint.
|
ContentHandling |
getContentHandling()
(experimental) Specifies how to handle request payload content type conversions.
|
Boolean |
getCredentialsPassthrough()
(experimental) Requires that the caller's identity be passed through from the request.
|
IRole |
getCredentialsRole()
(experimental) An IAM role that API Gateway assumes.
|
List<IntegrationResponse> |
getIntegrationResponses()
(experimental) The response that API Gateway provides after a method's backend completes processing a request.
|
PassthroughBehavior |
getPassthroughBehavior()
(experimental) Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource.
|
Boolean |
getProxy()
(experimental) Use proxy integration or normal (request/response mapping) integration.
|
Map<String,String> |
getRequestParameters()
(experimental) The request parameters that API Gateway sends with the backend request.
|
Map<String,String> |
getRequestTemplates()
(experimental) A map of Apache Velocity templates that are applied on the request payload.
|
Duration |
getTimeout()
(experimental) The maximum amount of time an integration will run before it returns without a response.
|
IVpcLink |
getVpcLink()
(experimental) The VpcLink used for the integration.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(Boolean allowTestInvoke, Boolean proxy, List<String> cacheKeyParameters, String cacheNamespace, ConnectionType connectionType, ContentHandling contentHandling, Boolean credentialsPassthrough, IRole credentialsRole, List<? extends IntegrationResponse> integrationResponses, PassthroughBehavior passthroughBehavior, Map<String,String> requestParameters, Map<String,String> requestTemplates, Duration timeout, IVpcLink vpcLink)
LambdaIntegrationOptions.Builder.public final Boolean getAllowTestInvoke()
LambdaIntegrationOptions
This will add another permission to the AWS Lambda resource policy which
will allow the test-invoke-stage stage to invoke this handler. If this
is set to false, the function will only be usable from the deployment
endpoint.
Default: true
getAllowTestInvoke in interface LambdaIntegrationOptionspublic final Boolean getProxy()
LambdaIntegrationOptionsDefault: true
getProxy in interface LambdaIntegrationOptionshttps://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-output-formatpublic final List<String> getCacheKeyParameters()
IntegrationOptionsIt determines request parameters that will make it into the cache key.
getCacheKeyParameters in interface IntegrationOptionspublic final String getCacheNamespace()
IntegrationOptionsgetCacheNamespace in interface IntegrationOptionspublic final ConnectionType getConnectionType()
IntegrationOptionsDefault: - ConnectionType.VPC_LINK if `vpcLink` property is configured; ConnectionType.Internet otherwise.
getConnectionType in interface IntegrationOptionspublic final ContentHandling getContentHandling()
IntegrationOptionsDefault: none if this property isn't defined, the request payload is passed through from the method request to the integration request without modification, provided that the `passthroughBehaviors` property is configured to support payload pass-through.
getContentHandling in interface IntegrationOptionspublic final Boolean getCredentialsPassthrough()
IntegrationOptionsDefault: Caller identity is not passed through
getCredentialsPassthrough in interface IntegrationOptionspublic final IRole getCredentialsRole()
IntegrationOptions
Mutually exclusive with credentialsPassThrough.
Default: A role is not assumed
getCredentialsRole in interface IntegrationOptionspublic final List<IntegrationResponse> getIntegrationResponses()
IntegrationOptionsAPI Gateway intercepts the response from the backend so that you can control how API Gateway surfaces backend responses. For example, you can map the backend status codes to codes that you define.
getIntegrationResponses in interface IntegrationOptionspublic final PassthroughBehavior getPassthroughBehavior()
IntegrationOptionsThere are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER.
getPassthroughBehavior in interface IntegrationOptionspublic final Map<String,String> getRequestParameters()
IntegrationOptionsSpecify request parameters as key-value pairs (string-to-string mappings), with a destination as the key and a source as the value.
Specify the destination by using the following pattern integration.request.location.name, where location is querystring, path, or header, and name is a valid, unique parameter name.
The source must be an existing method request parameter or a static value. You must enclose static values in single quotation marks and pre-encode these values based on their destination in the request.
getRequestParameters in interface IntegrationOptionspublic final Map<String,String> getRequestTemplates()
IntegrationOptionsThe template that API Gateway uses is based on the value of the Content-Type header that's sent by the client. The content type value is the key, and the template is the value (specified as a string), such as the following snippet:
{ "application/json": "{ \"statusCode\": 200 }" }
getRequestTemplates in interface IntegrationOptionshttp://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.htmlpublic final Duration getTimeout()
IntegrationOptionsMust be between 50 milliseconds and 29 seconds.
Default: Duration.seconds(29)
getTimeout in interface IntegrationOptionspublic final IVpcLink getVpcLink()
IntegrationOptionsRequired if connectionType is VPC_LINK
getVpcLink in interface IntegrationOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.