// 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" ) func init() { registry.AddResourceTypeFactory("awscc_route53resolver_resolver_rule_association", resolverRuleAssociationResourceType) } // resolverRuleAssociationResourceType returns the Terraform awscc_route53resolver_resolver_rule_association resource type. // This Terraform resource type corresponds to the CloudFormation AWS::Route53Resolver::ResolverRuleAssociation resource type. func resolverRuleAssociationResourceType(ctx context.Context) (tfsdk.ResourceType, error) { attributes := map[string]tfsdk.Attribute{ "name": { // Property: Name // CloudFormation resource type schema: // { // "description": "The name of an association between a Resolver rule and a VPC.", // "type": "string" // } Description: "The name of an association between a Resolver rule and a VPC.", Type: types.StringType, Optional: true, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, "resolver_rule_association_id": { // Property: ResolverRuleAssociationId // CloudFormation resource type schema: // { // "description": "Primary Identifier for Resolver Rule Association", // "type": "string" // } Description: "Primary Identifier for Resolver Rule Association", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "resolver_rule_id": { // Property: ResolverRuleId // CloudFormation resource type schema: // { // "description": "The ID of the Resolver rule that you associated with the VPC that is specified by VPCId.", // "type": "string" // } Description: "The ID of the Resolver rule that you associated with the VPC that is specified by VPCId.", Type: types.StringType, Required: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.RequiresReplace(), }, }, "vpc_id": { // Property: VPCId // CloudFormation resource type schema: // { // "description": "The ID of the VPC that you associated the Resolver rule with.", // "type": "string" // } Description: "The ID of the VPC that you associated the Resolver rule with.", Type: types.StringType, Required: true, 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: "Resource Type definition for AWS::Route53Resolver::ResolverRuleAssociation", Version: 1, Attributes: attributes, } var opts ResourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Route53Resolver::ResolverRuleAssociation").WithTerraformTypeName("awscc_route53resolver_resolver_rule_association") opts = opts.WithTerraformSchema(schema) opts = opts.WithSyntheticIDAttribute(true) opts = opts.WithAttributeNameMap(map[string]string{ "name": "Name", "resolver_rule_association_id": "ResolverRuleAssociationId", "resolver_rule_id": "ResolverRuleId", "vpc_id": "VPCId", }) opts = opts.IsImmutableType(true) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) resourceType, err := NewResourceType(ctx, opts...) if err != nil { return nil, err } return resourceType, nil }