// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package ssmincidents 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_ssmincidents_replication_set", replicationSetDataSourceType) } // replicationSetDataSourceType returns the Terraform awscc_ssmincidents_replication_set data source type. // This Terraform data source type corresponds to the CloudFormation AWS::SSMIncidents::ReplicationSet resource type. func replicationSetDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "arn": { // Property: Arn // CloudFormation resource type schema: // { // "description": "The ARN of the ReplicationSet.", // "maxLength": 1000, // "pattern": "^arn:aws(-(cn|us-gov|iso(-b)?))?:[a-z-]+:(([a-z]+-)+[0-9])?:([0-9]{12})?:[^.]+$", // "type": "string" // } Description: "The ARN of the ReplicationSet.", Type: types.StringType, Computed: true, }, "deletion_protected": { // Property: DeletionProtected // CloudFormation resource type schema: // { // "default": false, // "description": "Configures the ReplicationSet deletion protection.", // "type": "boolean" // } Description: "Configures the ReplicationSet deletion protection.", Type: types.BoolType, Computed: true, }, "regions": { // Property: Regions // CloudFormation resource type schema: // { // "description": "The ReplicationSet configuration.", // "insertionOrder": false, // "items": { // "additionalProperties": false, // "description": "The ReplicationSet regional configuration.", // "properties": { // "RegionConfiguration": { // "additionalProperties": false, // "description": "The ReplicationSet regional configuration.", // "properties": { // "SseKmsKeyId": { // "description": "The ARN of the ReplicationSet.", // "maxLength": 1000, // "pattern": "^arn:aws(-(cn|us-gov|iso(-b)?))?:[a-z-]+:(([a-z]+-)+[0-9])?:([0-9]{12})?:[^.]+$", // "type": "string" // } // }, // "required": [ // "SseKmsKeyId" // ], // "type": "object" // }, // "RegionName": { // "description": "The AWS region name.", // "maxLength": 20, // "type": "string" // } // }, // "type": "object" // }, // "maxItems": 3, // "minItems": 1, // "type": "array", // "uniqueItems": true // } Description: "The ReplicationSet configuration.", Attributes: tfsdk.SetNestedAttributes( map[string]tfsdk.Attribute{ "region_configuration": { // Property: RegionConfiguration Description: "The ReplicationSet regional configuration.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "sse_kms_key_id": { // Property: SseKmsKeyId Description: "The ARN of the ReplicationSet.", Type: types.StringType, Computed: true, }, }, ), Computed: true, }, "region_name": { // Property: RegionName Description: "The AWS region name.", Type: types.StringType, Computed: true, }, }, tfsdk.SetNestedAttributesOptions{}, ), 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::SSMIncidents::ReplicationSet", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::SSMIncidents::ReplicationSet").WithTerraformTypeName("awscc_ssmincidents_replication_set") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "arn": "Arn", "deletion_protected": "DeletionProtected", "region_configuration": "RegionConfiguration", "region_name": "RegionName", "regions": "Regions", "sse_kms_key_id": "SseKmsKeyId", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }