// Code generated by generators/resource/main.go; DO NOT EDIT. package ec2 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_ec2_transit_gateway_multicast_domain_association", transitGatewayMulticastDomainAssociationResourceType) } // transitGatewayMulticastDomainAssociationResourceType returns the Terraform awscc_ec2_transit_gateway_multicast_domain_association resource type. // This Terraform resource type corresponds to the CloudFormation AWS::EC2::TransitGatewayMulticastDomainAssociation resource type. func transitGatewayMulticastDomainAssociationResourceType(ctx context.Context) (tfsdk.ResourceType, error) { attributes := map[string]tfsdk.Attribute{ "resource_id": { // Property: ResourceId // CloudFormation resource type schema: // { // "description": "The ID of the resource.", // "type": "string" // } Description: "The ID of the resource.", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "resource_type": { // Property: ResourceType // CloudFormation resource type schema: // { // "description": "The type of resource, for example a VPC attachment.", // "type": "string" // } Description: "The type of resource, for example a VPC attachment.", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "state": { // Property: State // CloudFormation resource type schema: // { // "description": "The state of the subnet association.", // "type": "string" // } Description: "The state of the subnet association.", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "subnet_id": { // Property: SubnetId // CloudFormation resource type schema: // { // "description": "The IDs of the subnets to associate with the transit gateway multicast domain.", // "type": "string" // } Description: "The IDs of the subnets to associate with the transit gateway multicast domain.", Type: types.StringType, Required: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.RequiresReplace(), }, }, "transit_gateway_attachment_id": { // Property: TransitGatewayAttachmentId // CloudFormation resource type schema: // { // "description": "The ID of the transit gateway attachment.", // "type": "string" // } Description: "The ID of the transit gateway attachment.", Type: types.StringType, Required: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.RequiresReplace(), }, }, "transit_gateway_multicast_domain_id": { // Property: TransitGatewayMulticastDomainId // CloudFormation resource type schema: // { // "description": "The ID of the transit gateway multicast domain.", // "type": "string" // } Description: "The ID of the transit gateway multicast domain.", 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: "The AWS::EC2::TransitGatewayMulticastDomainAssociation type", Version: 1, Attributes: attributes, } var opts ResourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::EC2::TransitGatewayMulticastDomainAssociation").WithTerraformTypeName("awscc_ec2_transit_gateway_multicast_domain_association") opts = opts.WithTerraformSchema(schema) opts = opts.WithSyntheticIDAttribute(true) opts = opts.WithAttributeNameMap(map[string]string{ "resource_id": "ResourceId", "resource_type": "ResourceType", "state": "State", "subnet_id": "SubnetId", "transit_gateway_attachment_id": "TransitGatewayAttachmentId", "transit_gateway_multicast_domain_id": "TransitGatewayMulticastDomainId", }) opts = opts.IsImmutableType(true) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) resourceType, err := NewResourceType(ctx, opts...) if err != nil { return nil, err } return resourceType, nil }