// 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_resolver_config", resolverConfigResourceType) } // resolverConfigResourceType returns the Terraform awscc_route53resolver_resolver_config resource type. // This Terraform resource type corresponds to the CloudFormation AWS::Route53Resolver::ResolverConfig resource type. func resolverConfigResourceType(ctx context.Context) (tfsdk.ResourceType, error) { attributes := map[string]tfsdk.Attribute{ "autodefined_reverse": { // Property: AutodefinedReverse // CloudFormation resource type schema: // { // "description": "ResolverAutodefinedReverseStatus, possible values are ENABLING, ENABLED, DISABLING AND DISABLED.", // "enum": [ // "ENABLING", // "ENABLED", // "DISABLING", // "DISABLED" // ], // "type": "string" // } Description: "ResolverAutodefinedReverseStatus, possible values are ENABLING, ENABLED, DISABLING AND DISABLED.", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "autodefined_reverse_flag": { // Property: AutodefinedReverseFlag // CloudFormation resource type schema: // { // "description": "Represents the desired status of AutodefinedReverse. The only supported value on creation is DISABLE. Deletion of this resource will return AutodefinedReverse to its default value (ENABLED).", // "enum": [ // "DISABLE" // ], // "type": "string" // } Description: "Represents the desired status of AutodefinedReverse. The only supported value on creation is DISABLE. Deletion of this resource will return AutodefinedReverse to its default value (ENABLED).", Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DISABLE", }), }, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.RequiresReplace(), }, }, "id": { // Property: Id // CloudFormation resource type schema: // { // "description": "Id", // "maxLength": 64, // "minLength": 1, // "type": "string" // } Description: "Id", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "owner_id": { // Property: OwnerId // CloudFormation resource type schema: // { // "description": "AccountId", // "maxLength": 32, // "minLength": 12, // "type": "string" // } Description: "AccountId", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "resource_id": { // Property: ResourceId // CloudFormation resource type schema: // { // "description": "ResourceId", // "maxLength": 64, // "minLength": 1, // "type": "string" // } Description: "ResourceId", Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), }, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.RequiresReplace(), }, }, } schema := tfsdk.Schema{ Description: "Resource schema for AWS::Route53Resolver::ResolverConfig.", Version: 1, Attributes: attributes, } var opts ResourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Route53Resolver::ResolverConfig").WithTerraformTypeName("awscc_route53resolver_resolver_config") opts = opts.WithTerraformSchema(schema) opts = opts.WithSyntheticIDAttribute(false) opts = opts.WithAttributeNameMap(map[string]string{ "autodefined_reverse": "AutodefinedReverse", "autodefined_reverse_flag": "AutodefinedReverseFlag", "id": "Id", "owner_id": "OwnerId", "resource_id": "ResourceId", }) opts = opts.IsImmutableType(true) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) resourceType, err := NewResourceType(ctx, opts...) if err != nil { return nil, err } return resourceType, nil }