// 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_control_panel", controlPanelDataSourceType) } // controlPanelDataSourceType returns the Terraform awscc_route53recoverycontrol_control_panel data source type. // This Terraform data source type corresponds to the CloudFormation AWS::Route53RecoveryControl::ControlPanel resource type. func controlPanelDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "cluster_arn": { // Property: ClusterArn // CloudFormation resource type schema: // { // "description": "Cluster to associate with the Control Panel", // "type": "string" // } Description: "Cluster to associate with the Control Panel", Type: types.StringType, Computed: true, }, "control_panel_arn": { // Property: ControlPanelArn // CloudFormation resource type schema: // { // "description": "The Amazon Resource Name (ARN) of the cluster.", // "type": "string" // } Description: "The Amazon Resource Name (ARN) of the cluster.", Type: types.StringType, Computed: true, }, "default_control_panel": { // Property: DefaultControlPanel // CloudFormation resource type schema: // { // "description": "A flag that Amazon Route 53 Application Recovery Controller sets to true to designate the default control panel for a cluster. When you create a cluster, Amazon Route 53 Application Recovery Controller creates a control panel, and sets this flag for that control panel. If you create a control panel yourself, this flag is set to false.", // "type": "boolean" // } Description: "A flag that Amazon Route 53 Application Recovery Controller sets to true to designate the default control panel for a cluster. When you create a cluster, Amazon Route 53 Application Recovery Controller creates a control panel, and sets this flag for that control panel. If you create a control panel yourself, this flag is set to false.", Type: types.BoolType, Computed: true, }, "name": { // Property: Name // CloudFormation resource type schema: // { // "description": "The name of the control panel. You can use any non-white space character in the name.", // "maxLength": 64, // "minLength": 1, // "type": "string" // } Description: "The name of the control panel. You can use any non-white space character in the name.", Type: types.StringType, Computed: true, }, "routing_control_count": { // Property: RoutingControlCount // CloudFormation resource type schema: // { // "description": "Count of associated routing controls", // "type": "integer" // } Description: "Count of associated routing controls", Type: types.Int64Type, Computed: true, }, "status": { // Property: Status // CloudFormation resource type schema: // { // "description": "The deployment status of control panel. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.", // "enum": [ // "PENDING", // "DEPLOYED", // "PENDING_DELETION" // ], // "type": "string" // } Description: "The deployment status of control panel. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.", Type: types.StringType, Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "description": "A collection of tags associated with a resource", // "insertionOrder": false, // "items": { // "additionalProperties": false, // "properties": { // "Key": { // "maxLength": 128, // "minLength": 1, // "type": "string" // }, // "Value": { // "maxLength": 256, // "type": "string" // } // }, // "required": [ // "Value", // "Key" // ], // "type": "object" // }, // "type": "array" // } Description: "A collection of tags associated with a resource", Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Type: types.StringType, Computed: true, }, "value": { // Property: Value Type: types.StringType, Computed: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), 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::ControlPanel", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Route53RecoveryControl::ControlPanel").WithTerraformTypeName("awscc_route53recoverycontrol_control_panel") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "cluster_arn": "ClusterArn", "control_panel_arn": "ControlPanelArn", "default_control_panel": "DefaultControlPanel", "key": "Key", "name": "Name", "routing_control_count": "RoutingControlCount", "status": "Status", "tags": "Tags", "value": "Value", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }