// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package glue import ( "context" "github.com/hashicorp/terraform-plugin-framework/tfsdk" "github.com/hashicorp/terraform-plugin-framework/types" . "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" ) func init() { registry.AddDataSourceTypeFactory("awscc_glue_schema_version_metadata", schemaVersionMetadataDataSourceType) } // schemaVersionMetadataDataSourceType returns the Terraform awscc_glue_schema_version_metadata data source type. // This Terraform data source type corresponds to the CloudFormation AWS::Glue::SchemaVersionMetadata resource type. func schemaVersionMetadataDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "key": { // Property: Key // CloudFormation resource type schema: // { // "description": "Metadata key", // "maxLength": 128, // "minLength": 1, // "type": "string" // } Description: "Metadata key", Type: types.StringType, Computed: true, }, "schema_version_id": { // Property: SchemaVersionId // CloudFormation resource type schema: // { // "description": "Represents the version ID associated with the schema version.", // "pattern": "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}", // "type": "string" // } Description: "Represents the version ID associated with the schema version.", Type: types.StringType, Computed: true, }, "value": { // Property: Value // CloudFormation resource type schema: // { // "description": "Metadata value", // "maxLength": 256, // "minLength": 1, // "type": "string" // } Description: "Metadata value", Type: types.StringType, Computed: true, }, } attributes["id"] = tfsdk.Attribute{ Description: "Uniquely identifies the resource.", Type: types.StringType, Required: true, } schema := tfsdk.Schema{ Description: "Data Source schema for AWS::Glue::SchemaVersionMetadata", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Glue::SchemaVersionMetadata").WithTerraformTypeName("awscc_glue_schema_version_metadata") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "key": "Key", "schema_version_id": "SchemaVersionId", "value": "Value", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }