@Stability(value=Experimental) public static final class MockIntegration.Builder extends Object implements software.amazon.jsii.Builder<MockIntegration>
MockIntegration.| Modifier and Type | Method and Description |
|---|---|
MockIntegration |
build() |
MockIntegration.Builder |
cacheKeyParameters(List<String> cacheKeyParameters)
(experimental) A list of request parameters whose values are to be cached.
|
MockIntegration.Builder |
cacheNamespace(String cacheNamespace)
(experimental) An API-specific tag group of related cached parameters.
|
MockIntegration.Builder |
connectionType(ConnectionType connectionType)
(experimental) The type of network connection to the integration endpoint.
|
MockIntegration.Builder |
contentHandling(ContentHandling contentHandling)
(experimental) Specifies how to handle request payload content type conversions.
|
static MockIntegration.Builder |
create() |
MockIntegration.Builder |
credentialsPassthrough(Boolean credentialsPassthrough)
(experimental) Requires that the caller's identity be passed through from the request.
|
MockIntegration.Builder |
credentialsRole(IRole credentialsRole)
(experimental) An IAM role that API Gateway assumes.
|
MockIntegration.Builder |
integrationResponses(List<? extends IntegrationResponse> integrationResponses)
(experimental) The response that API Gateway provides after a method's backend completes processing a request.
|
MockIntegration.Builder |
passthroughBehavior(PassthroughBehavior passthroughBehavior)
(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.
|
MockIntegration.Builder |
requestParameters(Map<String,String> requestParameters)
(experimental) The request parameters that API Gateway sends with the backend request.
|
MockIntegration.Builder |
requestTemplates(Map<String,String> requestTemplates)
(experimental) A map of Apache Velocity templates that are applied on the request payload.
|
MockIntegration.Builder |
timeout(Duration timeout)
(experimental) The maximum amount of time an integration will run before it returns without a response.
|
MockIntegration.Builder |
vpcLink(IVpcLink vpcLink)
(experimental) The VpcLink used for the integration.
|
@Stability(value=Experimental) public static MockIntegration.Builder create()
MockIntegration.Builder.@Stability(value=Experimental) public MockIntegration.Builder cacheKeyParameters(List<String> cacheKeyParameters)
It determines request parameters that will make it into the cache key.
cacheKeyParameters - A list of request parameters whose values are to be cached. This parameter is required.this@Stability(value=Experimental) public MockIntegration.Builder cacheNamespace(String cacheNamespace)
cacheNamespace - An API-specific tag group of related cached parameters. This parameter is required.this@Stability(value=Experimental) public MockIntegration.Builder connectionType(ConnectionType connectionType)
Default: - ConnectionType.VPC_LINK if `vpcLink` property is configured; ConnectionType.Internet otherwise.
connectionType - The type of network connection to the integration endpoint. This parameter is required.this@Stability(value=Experimental) public MockIntegration.Builder contentHandling(ContentHandling contentHandling)
Default: 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.
contentHandling - Specifies how to handle request payload content type conversions. This parameter is required.this@Stability(value=Experimental) public MockIntegration.Builder credentialsPassthrough(Boolean credentialsPassthrough)
Default: Caller identity is not passed through
credentialsPassthrough - Requires that the caller's identity be passed through from the request. This parameter is required.this@Stability(value=Experimental) public MockIntegration.Builder credentialsRole(IRole credentialsRole)
Mutually exclusive with credentialsPassThrough.
Default: A role is not assumed
credentialsRole - An IAM role that API Gateway assumes. This parameter is required.this@Stability(value=Experimental) public MockIntegration.Builder integrationResponses(List<? extends IntegrationResponse> integrationResponses)
API 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.
integrationResponses - The response that API Gateway provides after a method's backend completes processing a request. This parameter is required.this@Stability(value=Experimental) public MockIntegration.Builder passthroughBehavior(PassthroughBehavior passthroughBehavior)
There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER.
passthroughBehavior - 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. This parameter is required.this@Stability(value=Experimental) public MockIntegration.Builder requestParameters(Map<String,String> requestParameters)
Specify 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.
requestParameters - The request parameters that API Gateway sends with the backend request. This parameter is required.this@Stability(value=Experimental) public MockIntegration.Builder requestTemplates(Map<String,String> requestTemplates)
The 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 }" }
requestTemplates - A map of Apache Velocity templates that are applied on the request payload. This parameter is required.thishttp://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html@Stability(value=Experimental) public MockIntegration.Builder timeout(Duration timeout)
Must be between 50 milliseconds and 29 seconds.
Default: Duration.seconds(29)
timeout - The maximum amount of time an integration will run before it returns without a response. This parameter is required.this@Stability(value=Experimental) public MockIntegration.Builder vpcLink(IVpcLink vpcLink)
Required if connectionType is VPC_LINK
vpcLink - The VpcLink used for the integration. This parameter is required.this@Stability(value=Experimental) public MockIntegration build()
build in interface software.amazon.jsii.Builder<MockIntegration>Copyright © 2021. All rights reserved.