// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package panorama 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_panorama_package", packageDataSourceType) } // packageDataSourceType returns the Terraform awscc_panorama_package data source type. // This Terraform data source type corresponds to the CloudFormation AWS::Panorama::Package resource type. func packageDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "arn": { // Property: Arn // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 1, // "type": "string" // } Type: types.StringType, Computed: true, }, "created_time": { // Property: CreatedTime // CloudFormation resource type schema: // { // "type": "integer" // } Type: types.Int64Type, Computed: true, }, "package_id": { // Property: PackageId // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 1, // "pattern": "^[a-zA-Z0-9\\-\\_\\/]+$", // "type": "string" // } Type: types.StringType, Computed: true, }, "package_name": { // Property: PackageName // CloudFormation resource type schema: // { // "maxLength": 128, // "minLength": 1, // "pattern": "^[a-zA-Z0-9\\-\\_]+$", // "type": "string" // } Type: types.StringType, Computed: true, }, "storage_location": { // Property: StorageLocation // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "BinaryPrefixLocation": { // "type": "string" // }, // "Bucket": { // "type": "string" // }, // "GeneratedPrefixLocation": { // "type": "string" // }, // "ManifestPrefixLocation": { // "type": "string" // }, // "RepoPrefixLocation": { // "type": "string" // } // }, // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "binary_prefix_location": { // Property: BinaryPrefixLocation Type: types.StringType, Computed: true, }, "bucket": { // Property: Bucket Type: types.StringType, Computed: true, }, "generated_prefix_location": { // Property: GeneratedPrefixLocation Type: types.StringType, Computed: true, }, "manifest_prefix_location": { // Property: ManifestPrefixLocation Type: types.StringType, Computed: true, }, "repo_prefix_location": { // Property: RepoPrefixLocation Type: types.StringType, Computed: true, }, }, ), Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "insertionOrder": false, // "items": { // "additionalProperties": false, // "properties": { // "Key": { // "maxLength": 128, // "minLength": 1, // "pattern": "^.+$", // "type": "string" // }, // "Value": { // "maxLength": 256, // "minLength": 0, // "pattern": "^.+$", // "type": "string" // } // }, // "required": [ // "Key", // "Value" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } Attributes: tfsdk.SetNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Type: types.StringType, Computed: true, }, "value": { // Property: Value Type: types.StringType, Computed: true, }, }, tfsdk.SetNestedAttributesOptions{}, ), 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::Panorama::Package", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Panorama::Package").WithTerraformTypeName("awscc_panorama_package") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "arn": "Arn", "binary_prefix_location": "BinaryPrefixLocation", "bucket": "Bucket", "created_time": "CreatedTime", "generated_prefix_location": "GeneratedPrefixLocation", "key": "Key", "manifest_prefix_location": "ManifestPrefixLocation", "package_id": "PackageId", "package_name": "PackageName", "repo_prefix_location": "RepoPrefixLocation", "storage_location": "StorageLocation", "tags": "Tags", "value": "Value", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }