// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package msk 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_msk_batch_scram_secret", batchScramSecretDataSourceType) } // batchScramSecretDataSourceType returns the Terraform awscc_msk_batch_scram_secret data source type. // This Terraform data source type corresponds to the CloudFormation AWS::MSK::BatchScramSecret resource type. func batchScramSecretDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "cluster_arn": { // Property: ClusterArn // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "secret_arn_list": { // Property: SecretArnList // CloudFormation resource type schema: // { // "insertionOrder": false, // "items": { // "type": "string" // }, // "type": "array" // } Type: types.ListType{ElemType: 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::MSK::BatchScramSecret", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::MSK::BatchScramSecret").WithTerraformTypeName("awscc_msk_batch_scram_secret") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "cluster_arn": "ClusterArn", "secret_arn_list": "SecretArnList", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }