@Stability(value=Experimental) @Internal public static final class IntegrationResponse.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IntegrationResponse
IntegrationResponsesoftware.amazon.jsii.JsiiObject.InitializationModeIntegrationResponse.Builder, IntegrationResponse.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(String statusCode,
ContentHandling contentHandling,
Map<String,String> responseParameters,
Map<String,String> responseTemplates,
String selectionPattern)
Constructor that initializes the object based on literal property values passed by the
IntegrationResponse.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
ContentHandling |
getContentHandling()
(experimental) Specifies how to handle request payload content type conversions.
|
Map<String,String> |
getResponseParameters()
(experimental) The response parameters from the backend response that API Gateway sends to the method response.
|
Map<String,String> |
getResponseTemplates()
(experimental) The templates that are used to transform the integration response body.
|
String |
getSelectionPattern()
(experimental) Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end.
|
String |
getStatusCode()
(experimental) The status code that API Gateway uses to map the integration response to a MethodResponse status code.
|
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(String statusCode, ContentHandling contentHandling, Map<String,String> responseParameters, Map<String,String> responseTemplates, String selectionPattern)
IntegrationResponse.Builder.public final String getStatusCode()
IntegrationResponsegetStatusCode in interface IntegrationResponsepublic final ContentHandling getContentHandling()
IntegrationResponseDefault: none the request payload is passed through from the method request to the integration request without modification.
getContentHandling in interface IntegrationResponsepublic final Map<String,String> getResponseParameters()
IntegrationResponseUse the destination as the key and the source as the value:
getResponseParameters in interface IntegrationResponsehttp://docs.aws.amazon.com/apigateway/latest/developerguide/request-response-data-mappings.htmlpublic final Map<String,String> getResponseTemplates()
IntegrationResponseSpecify templates as key-value pairs, with a content type as the key and a template as the value.
getResponseTemplates in interface IntegrationResponsehttp://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.htmlpublic final String getSelectionPattern()
IntegrationResponse
For example, if the success response returns nothing and the error response returns some string, you
could use the .+ regex to match error response. However, make sure that the error response does not contain any
newline (\n) character in such cases. If the back end is an AWS Lambda function, the AWS Lambda function error
header is matched. For all other HTTP and AWS back ends, the HTTP status code is matched.
getSelectionPattern in interface IntegrationResponsehttps://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-integration-settings-integration-response.html@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.