import * as core from "@terrascript/core"; export interface IntegrationResponseArgs extends core.ResourceArgs { /** * (Optional) Specifies how to handle request payload content type conversions. Supported values are `C * ONVERT_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. */ contentHandling?: string | core.StringOut; /** * (Required) The HTTP method (`GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS`, `ANY`) */ httpMethod: string | core.StringOut; /** * (Required) The API resource ID */ resourceId: string | core.StringOut; /** * (Optional) A map of response parameters that can be read from the backend response. */ responseParameters?: core.Map | core.MapOut; /** * (Optional) A map specifying the templates used to transform the integration response body */ responseTemplates?: core.Map | core.MapOut; /** * (Required) The ID of the associated REST API */ restApiId: string | core.StringOut; /** * (Optional) Specifies the regular expression pattern used to choose */ selectionPattern?: string | core.StringOut; /** * (Required) The HTTP status code */ statusCode: string | core.StringOut; } export class IntegrationResponse extends core.Resource { /** * (Optional) Specifies how to handle request payload content type conversions. Supported values are `C * ONVERT_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. */ @core.attr(String) public contentHandling?: string | core.StringOut; /** * (Required) The HTTP method (`GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS`, `ANY`) */ @core.attr(String) public httpMethod!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The API resource ID */ @core.attr(String) public resourceId!: string | core.StringOut; /** * (Optional) A map of response parameters that can be read from the backend response. */ @core.attr(String, { kind: "map" }) public responseParameters?: | core.Map | core.MapOut; /** * (Optional) A map specifying the templates used to transform the integration response body */ @core.attr(String, { kind: "map" }) public responseTemplates?: | core.Map | core.MapOut; /** * (Required) The ID of the associated REST API */ @core.attr(String) public restApiId!: string | core.StringOut; /** * (Optional) Specifies the regular expression pattern used to choose */ @core.attr(String) public selectionPattern?: string | core.StringOut; /** * (Required) The HTTP status code */ @core.attr(String) public statusCode!: string | core.StringOut; constructor(name: string, args?: IntegrationResponseArgs) { super(name, "aws_api_gateway_integration_response", args); } public override getNamespace(): string { return "aws_api_gateway"; } }