// Code generated by generators/resource/main.go; DO NOT EDIT. package lookoutvision 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_lookoutvision_project", projectResourceType) } // projectResourceType returns the Terraform awscc_lookoutvision_project resource type. // This Terraform resource type corresponds to the CloudFormation AWS::LookoutVision::Project resource type. func projectResourceType(ctx context.Context) (tfsdk.ResourceType, error) { attributes := map[string]tfsdk.Attribute{ "arn": { // Property: Arn // CloudFormation resource type schema: // { // "maxLength": 1000, // "type": "string" // } Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "project_name": { // Property: ProjectName // CloudFormation resource type schema: // { // "description": "The name of the Amazon Lookout for Vision project", // "maxLength": 255, // "minLength": 1, // "pattern": "[a-zA-Z0-9][a-zA-Z0-9_\\-]*", // "type": "string" // } Description: "The name of the Amazon Lookout for Vision project", Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9][a-zA-Z0-9_\\-]*"), ""), }, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.RequiresReplace(), }, }, } attributes["id"] = tfsdk.Attribute{ Description: "Uniquely identifies the resource.", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, } schema := tfsdk.Schema{ Description: "The AWS::LookoutVision::Project type creates an Amazon Lookout for Vision project. A project is a grouping of the resources needed to create and manage a Lookout for Vision model.", Version: 1, Attributes: attributes, } var opts ResourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::LookoutVision::Project").WithTerraformTypeName("awscc_lookoutvision_project") opts = opts.WithTerraformSchema(schema) opts = opts.WithSyntheticIDAttribute(true) opts = opts.WithAttributeNameMap(map[string]string{ "arn": "Arn", "project_name": "ProjectName", }) opts = opts.IsImmutableType(true) opts = opts.WithCreateTimeoutInMinutes(15).WithDeleteTimeoutInMinutes(15) resourceType, err := NewResourceType(ctx, opts...) if err != nil { return nil, err } return resourceType, nil }