// Code generated by generators/resource/main.go; DO NOT EDIT. package panorama import ( "context" "regexp" "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" "github.com/hashicorp/terraform-provider-awscc/internal/validate" ) func init() { registry.AddResourceTypeFactory("awscc_panorama_application_instance", applicationInstanceResourceType) } // applicationInstanceResourceType returns the Terraform awscc_panorama_application_instance resource type. // This Terraform resource type corresponds to the CloudFormation AWS::Panorama::ApplicationInstance resource type. func applicationInstanceResourceType(ctx context.Context) (tfsdk.ResourceType, error) { attributes := map[string]tfsdk.Attribute{ "application_instance_id": { // Property: ApplicationInstanceId // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 1, // "pattern": "^[a-zA-Z0-9\\-\\_]+$", // "type": "string" // } Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "application_instance_id_to_replace": { // Property: ApplicationInstanceIdToReplace // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 1, // "pattern": "^[a-zA-Z0-9\\-\\_]+$", // "type": "string" // } Type: types.StringType, Optional: true, Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9\\-\\_]+$"), ""), }, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, "arn": { // Property: Arn // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 1, // "type": "string" // } Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "created_time": { // Property: CreatedTime // CloudFormation resource type schema: // { // "type": "integer" // } Type: types.Int64Type, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "default_runtime_context_device": { // Property: DefaultRuntimeContextDevice // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 1, // "pattern": "^[a-zA-Z0-9\\-\\_]+$", // "type": "string" // } Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9\\-\\_]+$"), ""), }, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.RequiresReplace(), }, }, "default_runtime_context_device_name": { // Property: DefaultRuntimeContextDeviceName // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 1, // "pattern": "^[a-zA-Z0-9\\-\\_]+$", // "type": "string" // } Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "description": { // Property: Description // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 0, // "pattern": "^.*$", // "type": "string" // } Type: types.StringType, Optional: true, Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 255), validate.StringMatch(regexp.MustCompile("^.*$"), ""), }, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, "device_id": { // Property: DeviceId // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 1, // "pattern": "^[a-zA-Z0-9\\-\\_]+$", // "type": "string" // } Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9\\-\\_]+$"), ""), }, }, "health_status": { // Property: HealthStatus // CloudFormation resource type schema: // { // "enum": [ // "RUNNING", // "ERROR", // "NOT_AVAILABLE" // ], // "type": "string" // } Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "last_updated_time": { // Property: LastUpdatedTime // CloudFormation resource type schema: // { // "type": "integer" // } Type: types.Int64Type, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "manifest_overrides_payload": { // Property: ManifestOverridesPayload // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "PayloadData": { // "maxLength": 51200, // "minLength": 0, // "pattern": "^.+$", // "type": "string" // } // }, // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "payload_data": { // Property: PayloadData Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 51200), validate.StringMatch(regexp.MustCompile("^.+$"), ""), }, }, }, ), Optional: true, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, "manifest_payload": { // Property: ManifestPayload // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "PayloadData": { // "maxLength": 51200, // "minLength": 1, // "pattern": "^.+$", // "type": "string" // } // }, // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "payload_data": { // Property: PayloadData Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 51200), validate.StringMatch(regexp.MustCompile("^.+$"), ""), }, }, }, ), Required: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.RequiresReplace(), }, }, "name": { // Property: Name // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 1, // "pattern": "^[a-zA-Z0-9\\-\\_]+$", // "type": "string" // } Type: types.StringType, Optional: true, Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9\\-\\_]+$"), ""), }, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, "runtime_role_arn": { // Property: RuntimeRoleArn // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 1, // "pattern": "^arn:[a-z0-9][-.a-z0-9]{0,62}:iam::[0-9]{12}:role/.+$", // "type": "string" // } Type: types.StringType, Optional: true, Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), validate.StringMatch(regexp.MustCompile("^arn:[a-z0-9][-.a-z0-9]{0,62}:iam::[0-9]{12}:role/.+$"), ""), }, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, "status": { // Property: Status // CloudFormation resource type schema: // { // "enum": [ // "DEPLOYMENT_PENDING", // "DEPLOYMENT_REQUESTED", // "DEPLOYMENT_IN_PROGRESS", // "DEPLOYMENT_ERROR", // "DEPLOYMENT_SUCCEEDED", // "REMOVAL_PENDING", // "REMOVAL_REQUESTED", // "REMOVAL_IN_PROGRESS", // "REMOVAL_FAILED", // "REMOVAL_SUCCEEDED" // ], // "type": "string" // } Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "status_description": { // Property: StatusDescription // CloudFormation resource type schema: // { // "maxLength": 255, // "minLength": 1, // "type": "string" // } Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "status_filter": { // Property: StatusFilter // CloudFormation resource type schema: // { // "enum": [ // "DEPLOYMENT_SUCCEEDED", // "DEPLOYMENT_ERROR", // "REMOVAL_SUCCEEDED", // "REMOVAL_FAILED", // "PROCESSING_DEPLOYMENT", // "PROCESSING_REMOVAL" // ], // "type": "string" // } Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DEPLOYMENT_SUCCEEDED", "DEPLOYMENT_ERROR", "REMOVAL_SUCCEEDED", "REMOVAL_FAILED", "PROCESSING_DEPLOYMENT", "PROCESSING_REMOVAL", }), }, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "description": "List of tags", // "insertionOrder": false, // "items": { // "additionalProperties": false, // "properties": { // "Key": { // "description": "A string used to identify this tag", // "maxLength": 128, // "minLength": 1, // "pattern": "^.+$", // "type": "string" // }, // "Value": { // "description": "A string containing the value for the tag", // "maxLength": 256, // "minLength": 0, // "pattern": "^.+$", // "type": "string" // } // }, // "required": [ // "Key", // "Value" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } Description: "List of tags", Attributes: tfsdk.SetNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Description: "A string used to identify this tag", Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), validate.StringMatch(regexp.MustCompile("^.+$"), ""), }, }, "value": { // Property: Value Description: "A string containing the value for the tag", Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^.+$"), ""), }, }, }, tfsdk.SetNestedAttributesOptions{}, ), 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: "Schema for ApplicationInstance CloudFormation Resource", Version: 1, Attributes: attributes, } var opts ResourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Panorama::ApplicationInstance").WithTerraformTypeName("awscc_panorama_application_instance") opts = opts.WithTerraformSchema(schema) opts = opts.WithSyntheticIDAttribute(true) opts = opts.WithAttributeNameMap(map[string]string{ "application_instance_id": "ApplicationInstanceId", "application_instance_id_to_replace": "ApplicationInstanceIdToReplace", "arn": "Arn", "created_time": "CreatedTime", "default_runtime_context_device": "DefaultRuntimeContextDevice", "default_runtime_context_device_name": "DefaultRuntimeContextDeviceName", "description": "Description", "device_id": "DeviceId", "health_status": "HealthStatus", "key": "Key", "last_updated_time": "LastUpdatedTime", "manifest_overrides_payload": "ManifestOverridesPayload", "manifest_payload": "ManifestPayload", "name": "Name", "payload_data": "PayloadData", "runtime_role_arn": "RuntimeRoleArn", "status": "Status", "status_description": "StatusDescription", "status_filter": "StatusFilter", "tags": "Tags", "value": "Value", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) opts = opts.WithUpdateTimeoutInMinutes(0) resourceType, err := NewResourceType(ctx, opts...) if err != nil { return nil, err } return resourceType, nil }