import * as core from "@terrascript/core"; export interface SchemaArgs extends core.ResourceArgs { /** * (Required) The schema specification. Must be a valid Open API 3.0 spec. */ content: string | core.StringOut; /** * (Optional) The description of the schema. Maximum of 256 characters. */ description?: string | core.StringOut; /** * (Required) The name of the schema. Maximum of 385 characters consisting of lower case letters, upper * case letters, ., -, _, @. */ name: string | core.StringOut; /** * (Required) The name of the registry in which this schema belongs. */ registryName: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Required) The type of the schema. Valid values: `OpenApi3`. */ type: string | core.StringOut; } export class Schema extends core.Resource { /** * The Amazon Resource Name (ARN) of the discoverer. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The schema specification. Must be a valid Open API 3.0 spec. */ @core.attr(String) public content!: string | core.StringOut; /** * (Optional) The description of the schema. Maximum of 256 characters. */ @core.attr(String) public description?: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The last modified date of the schema. */ @core.attr(String, { computed: true }) public lastModified!: string | core.StringOut; /** * (Required) The name of the schema. Maximum of 385 characters consisting of lower case letters, upper * case letters, ., -, _, @. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The name of the registry in which this schema belongs. */ @core.attr(String) public registryName!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Required) The type of the schema. Valid values: `OpenApi3`. */ @core.attr(String) public type!: string | core.StringOut; /** * The version of the schema. */ @core.attr(String, { computed: true }) public version!: string | core.StringOut; /** * The created date of the version of the schema. */ @core.attr(String, { computed: true }) public versionCreatedDate!: string | core.StringOut; constructor(name: string, args?: SchemaArgs) { super(name, "aws_schemas_schema", args); } public override getNamespace(): string { return "aws_schemas"; } }