@Stability(value=Experimental) @Internal public static final class IntegrationResponse.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IntegrationResponse
IntegrationResponse
software.amazon.jsii.JsiiObject.InitializationMode
IntegrationResponse.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, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected 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()
IntegrationResponse
getStatusCode
in interface IntegrationResponse
public final ContentHandling getContentHandling()
IntegrationResponse
Default: none the request payload is passed through from the method request to the integration request without modification.
getContentHandling
in interface IntegrationResponse
public final Map<String,String> getResponseParameters()
IntegrationResponse
Use the destination as the key and the source as the value:
getResponseParameters
in interface IntegrationResponse
http://docs.aws.amazon.com/apigateway/latest/developerguide/request-response-data-mappings.html
public final Map<String,String> getResponseTemplates()
IntegrationResponse
Specify templates as key-value pairs, with a content type as the key and a template as the value.
getResponseTemplates
in interface IntegrationResponse
http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html
public 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 IntegrationResponse
https://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.JsiiSerializable
Copyright © 2021. All rights reserved.