import * as core from "@terrascript/core"; export interface RouteResponseArgs extends core.ResourceArgs { /** * (Required) The API identifier. */ apiId: string | core.StringOut; /** * (Optional) The [model selection expression](https://docs.aws.amazon.com/apigateway/latest/developerg * uide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-model-selection-ex * pressions) for the route response. */ modelSelectionExpression?: string | core.StringOut; /** * (Optional) The response models for the route response. */ responseModels?: core.Map | core.MapOut; /** * (Required) The identifier of the [`aws_apigatewayv2_route`](/docs/providers/aws/r/apigatewayv2_route * .html). */ routeId: string | core.StringOut; /** * (Required) The route response key. */ routeResponseKey: string | core.StringOut; } export class RouteResponse extends core.Resource { /** * (Required) The API identifier. */ @core.attr(String) public apiId!: string | core.StringOut; /** * The route response identifier. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The [model selection expression](https://docs.aws.amazon.com/apigateway/latest/developerg * uide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-model-selection-ex * pressions) for the route response. */ @core.attr(String) public modelSelectionExpression?: string | core.StringOut; /** * (Optional) The response models for the route response. */ @core.attr(String, { kind: "map" }) public responseModels?: | core.Map | core.MapOut; /** * (Required) The identifier of the [`aws_apigatewayv2_route`](/docs/providers/aws/r/apigatewayv2_route * .html). */ @core.attr(String) public routeId!: string | core.StringOut; /** * (Required) The route response key. */ @core.attr(String) public routeResponseKey!: string | core.StringOut; constructor(name: string, args?: RouteResponseArgs) { super(name, "aws_apigatewayv2_route_response", args); } public override getNamespace(): string { return "aws_apigatewayv2"; } }