@Stability(value=Stable) public static final class CfnMethod.IntegrationResponseProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnMethod.IntegrationResponseProperty>
CfnMethod.IntegrationResponseProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnMethod.IntegrationResponseProperty.Builder statusCode(String statusCode)
CfnMethod.IntegrationResponseProperty.getStatusCode()statusCode - The status code that API Gateway uses to map the integration response to a [MethodResponse](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-methodresponse.html) status code. This parameter is required.this@Stability(value=Stable) public CfnMethod.IntegrationResponseProperty.Builder contentHandling(String contentHandling)
CfnMethod.IntegrationResponseProperty.getContentHandling()contentHandling - Specifies how to handle request payload content type conversions. Valid values are:.
CONVERT_TO_BINARY : Converts a request payload from a base64-encoded string to a binary blob.CONVERT_TO_TEXT : Converts a request payload from a binary blob to a base64-encoded string.If this property isn't defined, the request payload is passed through from the method request to the integration request without modification.
this@Stability(value=Stable) public CfnMethod.IntegrationResponseProperty.Builder responseParameters(IResolvable responseParameters)
CfnMethod.IntegrationResponseProperty.getResponseParameters()responseParameters - The response parameters from the backend response that API Gateway sends to the method response.
Specify response parameters as key-value pairs ( string-to-string mappings ).
Use the destination as the key and the source as the value:
For more information about templates, see API Gateway Mapping Template and Access Logging Variable Reference in the API Gateway Developer Guide .
this@Stability(value=Stable) public CfnMethod.IntegrationResponseProperty.Builder responseParameters(Map<String,String> responseParameters)
CfnMethod.IntegrationResponseProperty.getResponseParameters()responseParameters - The response parameters from the backend response that API Gateway sends to the method response.
Specify response parameters as key-value pairs ( string-to-string mappings ).
Use the destination as the key and the source as the value:
For more information about templates, see API Gateway Mapping Template and Access Logging Variable Reference in the API Gateway Developer Guide .
this@Stability(value=Stable) public CfnMethod.IntegrationResponseProperty.Builder responseTemplates(IResolvable responseTemplates)
CfnMethod.IntegrationResponseProperty.getResponseTemplates()responseTemplates - The templates that are used to transform the integration response body.
Specify templates as key-value pairs (string-to-string mappings), with a content type as the key and a template as the value. For more information, see API Gateway Mapping Template and Access Logging Variable Reference in the API Gateway Developer Guide .this@Stability(value=Stable) public CfnMethod.IntegrationResponseProperty.Builder responseTemplates(Map<String,String> responseTemplates)
CfnMethod.IntegrationResponseProperty.getResponseTemplates()responseTemplates - The templates that are used to transform the integration response body.
Specify templates as key-value pairs (string-to-string mappings), with a content type as the key and a template as the value. For more information, see API Gateway Mapping Template and Access Logging Variable Reference in the API Gateway Developer Guide .this@Stability(value=Stable) public CfnMethod.IntegrationResponseProperty.Builder selectionPattern(String selectionPattern)
CfnMethod.IntegrationResponseProperty.getSelectionPattern()selectionPattern - A [regular expression](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-regexes.html) that specifies which error strings or status codes from the backend map to the integration response.this@Stability(value=Stable) public CfnMethod.IntegrationResponseProperty build()
build in interface software.amazon.jsii.Builder<CfnMethod.IntegrationResponseProperty>CfnMethod.IntegrationResponsePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.