import * as core from "@terrascript/core"; export interface ModelArgs extends core.ResourceArgs { /** * (Required) The content type of the model */ contentType: string | core.StringOut; /** * (Optional) The description of the model */ description?: string | core.StringOut; /** * (Required) The name of the model */ name: string | core.StringOut; /** * (Required) The ID of the associated REST API */ restApiId: string | core.StringOut; /** * (Required) The schema of the model in a JSON form */ schema?: string | core.StringOut; } export class Model extends core.Resource { /** * (Required) The content type of the model */ @core.attr(String) public contentType!: string | core.StringOut; /** * (Optional) The description of the model */ @core.attr(String) public description?: string | core.StringOut; /** * The ID of the model */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the model */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The ID of the associated REST API */ @core.attr(String) public restApiId!: string | core.StringOut; /** * (Required) The schema of the model in a JSON form */ @core.attr(String) public schema?: string | core.StringOut; constructor(name: string, args?: ModelArgs) { super(name, "aws_api_gateway_model", args); } public override getNamespace(): string { return "aws_api_gateway"; } }