@Stability(value=Stable)
public static interface CfnMethod.IntegrationResponseProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;
IntegrationResponseProperty integrationResponseProperty = IntegrationResponseProperty.builder()
.statusCode("statusCode")
// the properties below are optional
.contentHandling("contentHandling")
.responseParameters(Map.of(
"responseParametersKey", "responseParameters"))
.responseTemplates(Map.of(
"responseTemplatesKey", "responseTemplates"))
.selectionPattern("selectionPattern")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnMethod.IntegrationResponseProperty.Builder
A builder for
CfnMethod.IntegrationResponseProperty |
static class |
CfnMethod.IntegrationResponseProperty.Jsii$Proxy
An implementation for
CfnMethod.IntegrationResponseProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnMethod.IntegrationResponseProperty.Builder |
builder() |
default String |
getContentHandling()
Specifies how to handle request payload content type conversions.
|
default Object |
getResponseParameters()
The response parameters from the backend response that API Gateway sends to the method response.
|
default Object |
getResponseTemplates()
The templates that are used to transform the integration response body.
|
default String |
getSelectionPattern()
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.
|
String |
getStatusCode()
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.
|
@Stability(value=Stable) @NotNull String getStatusCode()
@Stability(value=Stable) @Nullable default String getContentHandling()
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.
@Stability(value=Stable) @Nullable default Object getResponseParameters()
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 .
@Stability(value=Stable) @Nullable default Object getResponseTemplates()
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 .
@Stability(value=Stable) @Nullable default String getSelectionPattern()
@Stability(value=Stable) static CfnMethod.IntegrationResponseProperty.Builder builder()
Copyright © 2022. All rights reserved.