// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package route53recoverycontrol 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_route53recoverycontrol_routing_control", routingControlDataSourceType) } // routingControlDataSourceType returns the Terraform awscc_route53recoverycontrol_routing_control data source type. // This Terraform data source type corresponds to the CloudFormation AWS::Route53RecoveryControl::RoutingControl resource type. func routingControlDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "cluster_arn": { // Property: ClusterArn // CloudFormation resource type schema: // { // "description": "Arn associated with Control Panel", // "type": "string" // } Description: "Arn associated with Control Panel", Type: types.StringType, Computed: true, }, "control_panel_arn": { // Property: ControlPanelArn // CloudFormation resource type schema: // { // "description": "The Amazon Resource Name (ARN) of the control panel.", // "type": "string" // } Description: "The Amazon Resource Name (ARN) of the control panel.", Type: types.StringType, Computed: true, }, "name": { // Property: Name // CloudFormation resource type schema: // { // "description": "The name of the routing control. You can use any non-white space character in the name.", // "maxLength": 64, // "minLength": 1, // "type": "string" // } Description: "The name of the routing control. You can use any non-white space character in the name.", Type: types.StringType, Computed: true, }, "routing_control_arn": { // Property: RoutingControlArn // CloudFormation resource type schema: // { // "description": "The Amazon Resource Name (ARN) of the routing control.", // "type": "string" // } Description: "The Amazon Resource Name (ARN) of the routing control.", Type: types.StringType, Computed: true, }, "status": { // Property: Status // CloudFormation resource type schema: // { // "description": "The deployment status of the routing control. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.", // "enum": [ // "PENDING", // "DEPLOYED", // "PENDING_DELETION" // ], // "type": "string" // } Description: "The deployment status of the routing control. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.", 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::Route53RecoveryControl::RoutingControl", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Route53RecoveryControl::RoutingControl").WithTerraformTypeName("awscc_route53recoverycontrol_routing_control") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "cluster_arn": "ClusterArn", "control_panel_arn": "ControlPanelArn", "name": "Name", "routing_control_arn": "RoutingControlArn", "status": "Status", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }