IntegrationResponseState constructor
Creates a new IntegrationResponseState.
contentHandling How to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT. If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
httpMethod HTTP method (GET, POST, PUT, DELETE, HEAD, OPTIONS, ANY).
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
resourceId API resource ID.
responseParameters Map of response parameters that can be read from the backend response. For example: responseParameters = { "method.response.header.X-Some-Header" = "integration.response.header.X-Some-Other-Header" }.
responseTemplates Map of templates used to transform the integration response body.
restApi ID of the associated REST API.
selectionPattern Regular expression pattern used to choose an integration response based on the response from the backend. Omit configuring this to make the integration the default one. If the backend is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS backends, the HTTP status code is matched.
statusCode HTTP status code.
Implementation
const IntegrationResponseState({
this.contentHandling,
this.httpMethod,
this.region,
this.resourceId,
this.responseParameters,
this.responseTemplates,
this.restApi,
this.selectionPattern,
this.statusCode,
});