// Code generated by generators/resource/main.go; DO NOT EDIT. package route53resolver 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" "github.com/hashicorp/terraform-provider-awscc/internal/validate" ) func init() { registry.AddResourceTypeFactory("awscc_route53resolver_firewall_domain_list", firewallDomainListResourceType) } // firewallDomainListResourceType returns the Terraform awscc_route53resolver_firewall_domain_list resource type. // This Terraform resource type corresponds to the CloudFormation AWS::Route53Resolver::FirewallDomainList resource type. func firewallDomainListResourceType(ctx context.Context) (tfsdk.ResourceType, error) { attributes := map[string]tfsdk.Attribute{ "arn": { // Property: Arn // CloudFormation resource type schema: // { // "description": "Arn", // "maxLength": 600, // "minLength": 1, // "type": "string" // } Description: "Arn", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "creation_time": { // Property: CreationTime // CloudFormation resource type schema: // { // "description": "Rfc3339TimeString", // "maxLength": 40, // "minLength": 20, // "type": "string" // } Description: "Rfc3339TimeString", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "creator_request_id": { // Property: CreatorRequestId // CloudFormation resource type schema: // { // "description": "The id of the creator request.", // "maxLength": 255, // "minLength": 1, // "type": "string" // } Description: "The id of the creator request.", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "domain_count": { // Property: DomainCount // CloudFormation resource type schema: // { // "description": "Count", // "minimum": 0, // "type": "integer" // } Description: "Count", Type: types.Int64Type, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "domain_file_url": { // Property: DomainFileUrl // CloudFormation resource type schema: // { // "description": "S3 URL to import domains from.", // "maxLength": 1024, // "minLength": 1, // "type": "string" // } Description: "S3 URL to import domains from.", Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, // DomainFileUrl is a write-only property. }, "domains": { // Property: Domains // CloudFormation resource type schema: // { // "description": "An inline list of domains to use for this domain list.", // "items": { // "description": "FirewallDomainName", // "maxLength": 255, // "minLength": 1, // "type": "string" // }, // "type": "array", // "uniqueItems": true // } Description: "An inline list of domains to use for this domain list.", Type: types.ListType{ElemType: types.StringType}, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), validate.ArrayForEach(validate.StringLenBetween(1, 255)), }, // Domains is a write-only property. }, "id": { // Property: Id // CloudFormation resource type schema: // { // "description": "ResourceId", // "maxLength": 64, // "minLength": 1, // "type": "string" // } Description: "ResourceId", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "managed_owner_name": { // Property: ManagedOwnerName // CloudFormation resource type schema: // { // "description": "ServicePrincipal", // "maxLength": 512, // "minLength": 1, // "type": "string" // } Description: "ServicePrincipal", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "modification_time": { // Property: ModificationTime // CloudFormation resource type schema: // { // "description": "Rfc3339TimeString", // "maxLength": 40, // "minLength": 20, // "type": "string" // } Description: "Rfc3339TimeString", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "name": { // Property: Name // CloudFormation resource type schema: // { // "description": "FirewallDomainListName", // "maxLength": 64, // "minLength": 1, // "pattern": "", // "type": "string" // } Description: "FirewallDomainListName", Type: types.StringType, Optional: true, Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), }, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, "status": { // Property: Status // CloudFormation resource type schema: // { // "description": "ResolverFirewallDomainList, possible values are COMPLETE, DELETING, UPDATING, COMPLETE_IMPORT_FAILED, IMPORTING, and INACTIVE_OWNER_ACCOUNT_CLOSED.", // "enum": [ // "COMPLETE", // "DELETING", // "UPDATING", // "COMPLETE_IMPORT_FAILED", // "IMPORTING", // "INACTIVE_OWNER_ACCOUNT_CLOSED" // ], // "type": "string" // } Description: "ResolverFirewallDomainList, possible values are COMPLETE, DELETING, UPDATING, COMPLETE_IMPORT_FAILED, IMPORTING, and INACTIVE_OWNER_ACCOUNT_CLOSED.", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "status_message": { // Property: StatusMessage // CloudFormation resource type schema: // { // "description": "FirewallDomainListAssociationStatus", // "type": "string" // } Description: "FirewallDomainListAssociationStatus", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "description": "Tags", // "insertionOrder": false, // "items": { // "additionalProperties": false, // "description": "A key-value pair to associate with a resource.", // "properties": { // "Key": { // "description": "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", // "maxLength": 127, // "minLength": 1, // "type": "string" // }, // "Value": { // "description": "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", // "maxLength": 255, // "minLength": 0, // "type": "string" // } // }, // "required": [ // "Key", // "Value" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } Description: "Tags", Attributes: tfsdk.SetNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), }, }, "value": { // Property: Value Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 255), }, }, }, tfsdk.SetNestedAttributesOptions{}, ), Optional: true, }, } schema := tfsdk.Schema{ Description: "Resource schema for AWS::Route53Resolver::FirewallDomainList.", Version: 1, Attributes: attributes, } var opts ResourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Route53Resolver::FirewallDomainList").WithTerraformTypeName("awscc_route53resolver_firewall_domain_list") opts = opts.WithTerraformSchema(schema) opts = opts.WithSyntheticIDAttribute(false) opts = opts.WithAttributeNameMap(map[string]string{ "arn": "Arn", "creation_time": "CreationTime", "creator_request_id": "CreatorRequestId", "domain_count": "DomainCount", "domain_file_url": "DomainFileUrl", "domains": "Domains", "id": "Id", "key": "Key", "managed_owner_name": "ManagedOwnerName", "modification_time": "ModificationTime", "name": "Name", "status": "Status", "status_message": "StatusMessage", "tags": "Tags", "value": "Value", }) opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/Domains", "/properties/DomainFileUrl", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) opts = opts.WithUpdateTimeoutInMinutes(0) resourceType, err := NewResourceType(ctx, opts...) if err != nil { return nil, err } return resourceType, nil }