import * as core from "@terrascript/core"; export interface MethodResponseArgs extends core.ResourceArgs { /** * (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 the API models used for the response's content type */ responseModels?: core.Map | core.MapOut; /** * (Optional) A map of response parameters that can be sent to the caller. */ responseParameters?: core.Map | core.MapOut; /** * (Required) The ID of the associated REST API */ restApiId: string | core.StringOut; /** * (Required) The HTTP status code */ statusCode: string | core.StringOut; } export class MethodResponse extends core.Resource { /** * (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 the API models used for the response's content type */ @core.attr(String, { kind: "map" }) public responseModels?: | core.Map | core.MapOut; /** * (Optional) A map of response parameters that can be sent to the caller. */ @core.attr(Boolean, { kind: "map" }) public responseParameters?: | core.Map | core.MapOut; /** * (Required) The ID of the associated REST API */ @core.attr(String) public restApiId!: string | core.StringOut; /** * (Required) The HTTP status code */ @core.attr(String) public statusCode!: string | core.StringOut; constructor(name: string, args?: MethodResponseArgs) { super(name, "aws_api_gateway_method_response", args); } public override getNamespace(): string { return "aws_api_gateway"; } }