import * as core from "@terrascript/core"; export interface ModelArgs extends core.ResourceArgs { /** * (Required) The API identifier. */ apiId: string | core.StringOut; /** * (Required) The content-type for the model, for example, `application/json`. Must be between 1 and 2 * 56 characters in length. */ contentType: string | core.StringOut; /** * (Optional) The description of the model. Must be between 1 and 128 characters in length. */ description?: string | core.StringOut; /** * (Required) The name of the model. Must be alphanumeric. Must be between 1 and 128 characters in leng * th. */ name: string | core.StringOut; /** * (Required) The schema for the model. This should be a [JSON schema draft 4](https://tools.ietf.org/h * tml/draft-zyp-json-schema-04) model. Must be less than or equal to 32768 characters in length. */ schema: string | core.StringOut; } export class Model extends core.Resource { /** * (Required) The API identifier. */ @core.attr(String) public apiId!: string | core.StringOut; /** * (Required) The content-type for the model, for example, `application/json`. Must be between 1 and 2 * 56 characters in length. */ @core.attr(String) public contentType!: string | core.StringOut; /** * (Optional) The description of the model. Must be between 1 and 128 characters in length. */ @core.attr(String) public description?: string | core.StringOut; /** * The model identifier. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the model. Must be alphanumeric. Must be between 1 and 128 characters in leng * th. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The schema for the model. This should be a [JSON schema draft 4](https://tools.ietf.org/h * tml/draft-zyp-json-schema-04) model. Must be less than or equal to 32768 characters in length. */ @core.attr(String) public schema!: string | core.StringOut; constructor(name: string, args?: ModelArgs) { super(name, "aws_apigatewayv2_model", args); } public override getNamespace(): string { return "aws_apigatewayv2"; } }