// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package connect 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_connect_user_hierarchy_group", userHierarchyGroupDataSourceType) } // userHierarchyGroupDataSourceType returns the Terraform awscc_connect_user_hierarchy_group data source type. // This Terraform data source type corresponds to the CloudFormation AWS::Connect::UserHierarchyGroup resource type. func userHierarchyGroupDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "instance_arn": { // Property: InstanceArn // CloudFormation resource type schema: // { // "description": "The identifier of the Amazon Connect instance.", // "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$", // "type": "string" // } Description: "The identifier of the Amazon Connect instance.", Type: types.StringType, Computed: true, }, "name": { // Property: Name // CloudFormation resource type schema: // { // "description": "The name of the user hierarchy group.", // "maxLength": 100, // "minLength": 1, // "type": "string" // } Description: "The name of the user hierarchy group.", Type: types.StringType, Computed: true, }, "parent_group_arn": { // Property: ParentGroupArn // CloudFormation resource type schema: // { // "description": "The Amazon Resource Name (ARN) for the parent user hierarchy group.", // "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/agent-group/[-a-zA-Z0-9]*$", // "type": "string" // } Description: "The Amazon Resource Name (ARN) for the parent user hierarchy group.", Type: types.StringType, Computed: true, }, "user_hierarchy_group_arn": { // Property: UserHierarchyGroupArn // CloudFormation resource type schema: // { // "description": "The Amazon Resource Name (ARN) for the user hierarchy group.", // "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/agent-group/[-a-zA-Z0-9]*$", // "type": "string" // } Description: "The Amazon Resource Name (ARN) for the user hierarchy group.", 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::Connect::UserHierarchyGroup", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Connect::UserHierarchyGroup").WithTerraformTypeName("awscc_connect_user_hierarchy_group") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "instance_arn": "InstanceArn", "name": "Name", "parent_group_arn": "ParentGroupArn", "user_hierarchy_group_arn": "UserHierarchyGroupArn", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }