This resource represents a schema of Glue Schema Registry.
resource "awscc_glue_schema" "example" {
name = "example"
description = "Glue schema example"
registry = {
arn = awscc_glue_registry.example.arn
}
data_format = "AVRO"
compatibility = "NONE"
schema_definition = "{\"type\": \"record\", \"name\": \"r1\", \"fields\": [ {\"name\": \"f1\", \"type\": \"int\"}, {\"name\": \"f2\", \"type\": \"string\"} ]}"
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
resource "awscc_glue_registry" "example" {
name = "example-registry"
description = "Glue registry example"
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
compatibility
(String) Compatibility setting for the schema.data_format
(String) Data format name to use for the schema. Accepted values: 'AVRO', 'JSON', 'PROTOBUF'name
(String) Name of the schema.schema_definition
(String) Definition for the initial schema version in plain-text.checkpoint_version
(Attributes) Specify checkpoint version for update. This is only required to update the Compatibility. (see below for nested schema)description
(String) A description of the schema. If description is not provided, there will not be any default value for this.registry
(Attributes) Identifier for the registry which the schema is part of. (see below for nested schema)tags
(Attributes List) List of tags to tag the schema (see below for nested schema)arn
(String) Amazon Resource Name for the Schema.id
(String) Uniquely identifies the resource.initial_schema_version_id
(String) Represents the version ID associated with the initial schema version.checkpoint_version
Optional:
is_latest
(Boolean) Indicates if the latest version needs to be updated.version_number
(Number) Indicates the version number in the schema to update.registry
Optional:
arn
(String) Amazon Resource Name for the Registry.name
(String) Name of the registry in which the schema will be created.tags
Required:
key
(String) A key to identify the tag.value
(String) Corresponding tag value for the key.Import is supported using the following syntax:
$ terraform import awscc_glue_schema.example <resource ID>