// Code generated by generators/resource/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.AddResourceTypeFactory("awscc_appstream_application", applicationResourceType) } // applicationResourceType returns the Terraform awscc_appstream_application resource type. // This Terraform resource type corresponds to the CloudFormation AWS::AppStream::Application resource type. func applicationResourceType(ctx context.Context) (tfsdk.ResourceType, error) { attributes := map[string]tfsdk.Attribute{ "app_block_arn": { // Property: AppBlockArn // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Required: true, }, "arn": { // Property: Arn // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "attributes_to_delete": { // Property: AttributesToDelete // CloudFormation resource type schema: // { // "insertionOrder": false, // "items": { // "type": "string" // }, // "type": "array", // "uniqueItems": true // } Type: types.SetType{ElemType: types.StringType}, Optional: true, }, "created_time": { // Property: CreatedTime // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "description": { // Property: Description // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Optional: true, }, "display_name": { // Property: DisplayName // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Optional: 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, Required: true, }, "s3_key": { // Property: S3Key Type: types.StringType, Required: true, }, }, ), Required: true, }, "instance_families": { // Property: InstanceFamilies // CloudFormation resource type schema: // { // "insertionOrder": false, // "items": { // "type": "string" // }, // "type": "array", // "uniqueItems": true // } Type: types.SetType{ElemType: types.StringType}, Required: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.RequiresReplace(), }, }, "launch_parameters": { // Property: LaunchParameters // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Optional: true, }, "launch_path": { // Property: LaunchPath // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Required: true, }, "name": { // Property: Name // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Required: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.RequiresReplace(), }, }, "platforms": { // Property: Platforms // CloudFormation resource type schema: // { // "insertionOrder": false, // "items": { // "type": "string" // }, // "type": "array", // "uniqueItems": true // } Type: types.SetType{ElemType: types.StringType}, Required: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.RequiresReplace(), }, }, "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, Required: true, }, "tag_value": { // Property: TagValue Type: types.StringType, Required: true, }, }, tfsdk.SetNestedAttributesOptions{}, ), Optional: true, // Tags is a write-only property. }, "working_directory": { // Property: WorkingDirectory // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Optional: true, }, } attributes["id"] = tfsdk.Attribute{ Description: "Uniquely identifies the resource.", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, } schema := tfsdk.Schema{ Description: "Resource Type definition for AWS::AppStream::Application", Version: 1, Attributes: attributes, } var opts ResourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::AppStream::Application").WithTerraformTypeName("awscc_appstream_application") opts = opts.WithTerraformSchema(schema) opts = opts.WithSyntheticIDAttribute(true) 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", }) opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/Tags", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) opts = opts.WithUpdateTimeoutInMinutes(0) resourceType, err := NewResourceType(ctx, opts...) if err != nil { return nil, err } return resourceType, nil }