// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package route53 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_route53_key_signing_key", keySigningKeyDataSourceType) } // keySigningKeyDataSourceType returns the Terraform awscc_route53_key_signing_key data source type. // This Terraform data source type corresponds to the CloudFormation AWS::Route53::KeySigningKey resource type. func keySigningKeyDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "hosted_zone_id": { // Property: HostedZoneId // CloudFormation resource type schema: // { // "description": "The unique string (ID) used to identify a hosted zone.", // "pattern": "^[A-Z0-9]{1,32}$", // "type": "string" // } Description: "The unique string (ID) used to identify a hosted zone.", Type: types.StringType, Computed: true, }, "key_management_service_arn": { // Property: KeyManagementServiceArn // CloudFormation resource type schema: // { // "description": "The Amazon resource name (ARN) for a customer managed key (CMK) in AWS Key Management Service (KMS). The KeyManagementServiceArn must be unique for each key signing key (KSK) in a single hosted zone.", // "maxLength": 256, // "minLength": 1, // "type": "string" // } Description: "The Amazon resource name (ARN) for a customer managed key (CMK) in AWS Key Management Service (KMS). The KeyManagementServiceArn must be unique for each key signing key (KSK) in a single hosted zone.", Type: types.StringType, Computed: true, }, "name": { // Property: Name // CloudFormation resource type schema: // { // "description": "An alphanumeric string used to identify a key signing key (KSK). Name must be unique for each key signing key in the same hosted zone.", // "pattern": "^[a-zA-Z0-9_]{3,128}$", // "type": "string" // } Description: "An alphanumeric string used to identify a key signing key (KSK). Name must be unique for each key signing key in the same hosted zone.", Type: types.StringType, Computed: true, }, "status": { // Property: Status // CloudFormation resource type schema: // { // "description": "A string specifying the initial status of the key signing key (KSK). You can set the value to ACTIVE or INACTIVE.", // "enum": [ // "ACTIVE", // "INACTIVE" // ], // "type": "string" // } Description: "A string specifying the initial status of the key signing key (KSK). You can set the value to ACTIVE or INACTIVE.", 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::Route53::KeySigningKey", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Route53::KeySigningKey").WithTerraformTypeName("awscc_route53_key_signing_key") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "hosted_zone_id": "HostedZoneId", "key_management_service_arn": "KeyManagementServiceArn", "name": "Name", "status": "Status", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }