// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package appstream 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_appstream_application", applicationDataSourceType) } // applicationDataSourceType returns the Terraform awscc_appstream_application data source type. // This Terraform data source type corresponds to the CloudFormation AWS::AppStream::Application resource type. func applicationDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "app_block_arn": { // Property: AppBlockArn // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "arn": { // Property: Arn // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "attributes_to_delete": { // Property: AttributesToDelete // CloudFormation resource type schema: // { // "insertionOrder": false, // "items": { // "type": "string" // }, // "type": "array", // "uniqueItems": true // } Type: types.SetType{ElemType: types.StringType}, Computed: true, }, "created_time": { // Property: CreatedTime // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "description": { // Property: Description // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "display_name": { // Property: DisplayName // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "icon_s3_location": { // Property: IconS3Location // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "S3Bucket": { // "type": "string" // }, // "S3Key": { // "type": "string" // } // }, // "required": [ // "S3Bucket", // "S3Key" // ], // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "s3_bucket": { // Property: S3Bucket Type: types.StringType, Computed: true, }, "s3_key": { // Property: S3Key Type: types.StringType, Computed: true, }, }, ), Computed: true, }, "instance_families": { // Property: InstanceFamilies // CloudFormation resource type schema: // { // "insertionOrder": false, // "items": { // "type": "string" // }, // "type": "array", // "uniqueItems": true // } Type: types.SetType{ElemType: types.StringType}, Computed: true, }, "launch_parameters": { // Property: LaunchParameters // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "launch_path": { // Property: LaunchPath // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "name": { // Property: Name // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "platforms": { // Property: Platforms // CloudFormation resource type schema: // { // "insertionOrder": false, // "items": { // "type": "string" // }, // "type": "array", // "uniqueItems": true // } Type: types.SetType{ElemType: types.StringType}, Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "insertionOrder": false, // "items": { // "additionalProperties": false, // "properties": { // "TagKey": { // "type": "string" // }, // "TagValue": { // "type": "string" // } // }, // "required": [ // "TagKey", // "TagValue" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } Attributes: tfsdk.SetNestedAttributes( map[string]tfsdk.Attribute{ "tag_key": { // Property: TagKey Type: types.StringType, Computed: true, }, "tag_value": { // Property: TagValue Type: types.StringType, Computed: true, }, }, tfsdk.SetNestedAttributesOptions{}, ), Computed: true, }, "working_directory": { // Property: WorkingDirectory // CloudFormation resource type schema: // { // "type": "string" // } 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::AppStream::Application", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::AppStream::Application").WithTerraformTypeName("awscc_appstream_application") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "app_block_arn": "AppBlockArn", "arn": "Arn", "attributes_to_delete": "AttributesToDelete", "created_time": "CreatedTime", "description": "Description", "display_name": "DisplayName", "icon_s3_location": "IconS3Location", "instance_families": "InstanceFamilies", "launch_parameters": "LaunchParameters", "launch_path": "LaunchPath", "name": "Name", "platforms": "Platforms", "s3_bucket": "S3Bucket", "s3_key": "S3Key", "tag_key": "TagKey", "tag_value": "TagValue", "tags": "Tags", "working_directory": "WorkingDirectory", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }