// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package forecast 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_forecast_dataset_group", datasetGroupDataSourceType) } // datasetGroupDataSourceType returns the Terraform awscc_forecast_dataset_group data source type. // This Terraform data source type corresponds to the CloudFormation AWS::Forecast::DatasetGroup resource type. func datasetGroupDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "dataset_arns": { // Property: DatasetArns // CloudFormation resource type schema: // { // "description": "An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.", // "insertionOrder": true, // "items": { // "maxLength": 256, // "pattern": "^[a-zA-Z0-9\\-\\_\\.\\/\\:]+$", // "type": "string" // }, // "type": "array" // } Description: "An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.", Type: types.ListType{ElemType: types.StringType}, Computed: true, }, "dataset_group_arn": { // Property: DatasetGroupArn // CloudFormation resource type schema: // { // "description": "The Amazon Resource Name (ARN) of the dataset group to delete.", // "maxLength": 256, // "pattern": "^[a-zA-Z0-9\\-\\_\\.\\/\\:]+$", // "type": "string" // } Description: "The Amazon Resource Name (ARN) of the dataset group to delete.", Type: types.StringType, Computed: true, }, "dataset_group_name": { // Property: DatasetGroupName // CloudFormation resource type schema: // { // "description": "A name for the dataset group.", // "maxLength": 63, // "minLength": 1, // "pattern": "^[a-zA-Z][a-zA-Z0-9_]*", // "type": "string" // } Description: "A name for the dataset group.", Type: types.StringType, Computed: true, }, "domain": { // Property: Domain // CloudFormation resource type schema: // { // "description": "The domain associated with the dataset group. When you add a dataset to a dataset group, this value and the value specified for the Domain parameter of the CreateDataset operation must match.", // "enum": [ // "RETAIL", // "CUSTOM", // "INVENTORY_PLANNING", // "EC2_CAPACITY", // "WORK_FORCE", // "WEB_TRAFFIC", // "METRICS" // ], // "type": "string" // } Description: "The domain associated with the dataset group. When you add a dataset to a dataset group, this value and the value specified for the Domain parameter of the CreateDataset operation must match.", Type: types.StringType, Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "description": "The tags of Application Insights application.", // "insertionOrder": true, // "items": { // "additionalProperties": false, // "description": "A key-value pair to associate with a resource.", // "properties": { // "Key": { // "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", // "maxLength": 128, // "minLength": 1, // "type": "string" // }, // "Value": { // "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", // "maxLength": 256, // "minLength": 0, // "type": "string" // } // }, // "required": [ // "Key", // "Value" // ], // "type": "object" // }, // "maxItems": 200, // "minItems": 0, // "type": "array" // } Description: "The tags of Application Insights application.", Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", Type: types.StringType, Computed: true, }, "value": { // Property: Value Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", 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::Forecast::DatasetGroup", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Forecast::DatasetGroup").WithTerraformTypeName("awscc_forecast_dataset_group") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "dataset_arns": "DatasetArns", "dataset_group_arn": "DatasetGroupArn", "dataset_group_name": "DatasetGroupName", "domain": "Domain", "key": "Key", "tags": "Tags", "value": "Value", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }