import * as core from "@terrascript/core"; export interface SchemaArgs extends core.ResourceArgs { /** * (Required) The compatibility mode of the schema. Values values are: `NONE`, `DISABLED`, `BACKWARD`, * BACKWARD_ALL`, `FORWARD`, `FORWARD_ALL`, `FULL`, and `FULL_ALL`. */ compatibility: string | core.StringOut; /** * (Required) The data format of the schema definition. Valid values are `AVRO`, `JSON` and `PROTOBUF`. */ dataFormat: string | core.StringOut; description?: string | core.StringOut; /** * (Required) The ARN of the Glue Registry to create the schema in. */ registryArn?: string | core.StringOut; /** * (Required) The schema definition using the `data_format` setting for `schema_name`. */ schemaDefinition: string | core.StringOut; schemaName: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ 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; } export class Schema extends core.Resource { /** * Amazon Resource Name (ARN) of the schema. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The compatibility mode of the schema. Values values are: `NONE`, `DISABLED`, `BACKWARD`, * BACKWARD_ALL`, `FORWARD`, `FORWARD_ALL`, `FULL`, and `FULL_ALL`. */ @core.attr(String) public compatibility!: string | core.StringOut; /** * (Required) The data format of the schema definition. Valid values are `AVRO`, `JSON` and `PROTOBUF`. */ @core.attr(String) public dataFormat!: string | core.StringOut; @core.attr(String) public description?: string | core.StringOut; /** * Amazon Resource Name (ARN) of the schema. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The latest version of the schema associated with the returned schema definition. */ @core.attr(Number, { computed: true }) public latestSchemaVersion!: number | core.NumberOut; /** * The next version of the schema associated with the returned schema definition. */ @core.attr(Number, { computed: true }) public nextSchemaVersion!: number | core.NumberOut; /** * (Required) The ARN of the Glue Registry to create the schema in. */ @core.attr(String, { computed: true }) public registryArn?: string | core.StringOut; /** * The name of the Glue Registry. */ @core.attr(String, { computed: true }) public registryName!: string | core.StringOut; /** * The version number of the checkpoint (the last time the compatibility mode was changed). */ @core.attr(Number, { computed: true }) public schemaCheckpoint!: number | core.NumberOut; /** * (Required) The schema definition using the `data_format` setting for `schema_name`. */ @core.attr(String) public schemaDefinition!: string | core.StringOut; @core.attr(String) public schemaName!: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @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; constructor(name: string, args?: SchemaArgs) { super(name, "aws_glue_schema", args); } public override getNamespace(): string { return "aws_glue"; } }