import * as core from "@terrascript/core"; export interface IntegrationResponseArgs extends core.ResourceArgs { /** * (Required) The API identifier. */ apiId: string | core.StringOut; /** * (Optional) How to handle response payload content type conversions. Valid values: `CONVERT_TO_BINARY * , `CONVERT_TO_TEXT`. */ contentHandlingStrategy?: string | core.StringOut; /** * (Required) The identifier of the [`aws_apigatewayv2_integration`](/docs/providers/aws/r/apigatewayv2 * _integration.html). */ integrationId: string | core.StringOut; /** * (Required) The integration response key. */ integrationResponseKey: string | core.StringOut; /** * (Optional) A map of Velocity templates that are applied on the request payload based on the value of * the Content-Type header sent by the client. */ responseTemplates?: core.Map | core.MapOut; /** * (Optional) The [template selection expression](https://docs.aws.amazon.com/apigateway/latest/develop * erguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-template-select * ion-expressions) for the integration response. */ templateSelectionExpression?: string | core.StringOut; } export class IntegrationResponse extends core.Resource { /** * (Required) The API identifier. */ @core.attr(String) public apiId!: string | core.StringOut; /** * (Optional) How to handle response payload content type conversions. Valid values: `CONVERT_TO_BINARY * , `CONVERT_TO_TEXT`. */ @core.attr(String) public contentHandlingStrategy?: string | core.StringOut; /** * The integration response identifier. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The identifier of the [`aws_apigatewayv2_integration`](/docs/providers/aws/r/apigatewayv2 * _integration.html). */ @core.attr(String) public integrationId!: string | core.StringOut; /** * (Required) The integration response key. */ @core.attr(String) public integrationResponseKey!: string | core.StringOut; /** * (Optional) A map of Velocity templates that are applied on the request payload based on the value of * the Content-Type header sent by the client. */ @core.attr(String, { kind: "map" }) public responseTemplates?: | core.Map | core.MapOut; /** * (Optional) The [template selection expression](https://docs.aws.amazon.com/apigateway/latest/develop * erguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-template-select * ion-expressions) for the integration response. */ @core.attr(String) public templateSelectionExpression?: string | core.StringOut; constructor(name: string, args?: IntegrationResponseArgs) { super(name, "aws_apigatewayv2_integration_response", args); } public override getNamespace(): string { return "aws_apigatewayv2"; } }