@Stability(value=Stable) @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(IntegrationResponse.Builder builder)
Constructor that initializes the object based on literal property values passed by the
IntegrationResponse.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) |
ContentHandling |
getContentHandling()
Specifies how to handle request payload content type conversions.
|
Map<String,String> |
getResponseParameters()
The response parameters from the backend response that API Gateway sends to the method response.
|
Map<String,String> |
getResponseTemplates()
The templates that are used to transform the integration response body.
|
String |
getSelectionPattern()
Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end.
|
String |
getStatusCode()
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(IntegrationResponse.Builder builder)
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 IntegrationResponsepublic 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 IntegrationResponsepublic 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.
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.