1. Packages
  2. Volcengine
  3. API Docs
  4. transit_router
  5. VpcAttachment
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.transit_router.VpcAttachment

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Provides a resource to manage transit router vpc attachment

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooTransitRouter = new Volcengine.Transit_router.TransitRouter("fooTransitRouter", new()
        {
            TransitRouterName = "test-tf-acc",
            Description = "test-tf-acc",
        });
    
        var fooZones = Volcengine.Ecs.Zones.Invoke();
    
        var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
        {
            VpcName = "acc-test-vpc-acc",
            CidrBlock = "172.16.0.0/16",
        });
    
        var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
        {
            VpcId = fooVpc.Id,
            CidrBlock = "172.16.0.0/24",
            ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
            SubnetName = "acc-test-subnet",
        });
    
        var foo2 = new Volcengine.Vpc.Subnet("foo2", new()
        {
            VpcId = fooVpc.Id,
            CidrBlock = "172.16.255.0/24",
            ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[1]?.Id),
            SubnetName = "acc-test-subnet2",
        });
    
        var fooVpcAttachment = new Volcengine.Transit_router.VpcAttachment("fooVpcAttachment", new()
        {
            TransitRouterId = fooTransitRouter.Id,
            VpcId = fooVpc.Id,
            AttachPoints = new[]
            {
                new Volcengine.Transit_router.Inputs.VpcAttachmentAttachPointArgs
                {
                    SubnetId = fooSubnet.Id,
                    ZoneId = "cn-beijing-a",
                },
                new Volcengine.Transit_router.Inputs.VpcAttachmentAttachPointArgs
                {
                    SubnetId = foo2.Id,
                    ZoneId = "cn-beijing-b",
                },
            },
            TransitRouterAttachmentName = "tf-test-acc-name1",
            Description = "tf-test-acc-description",
            Tags = new[]
            {
                new Volcengine.Transit_router.Inputs.VpcAttachmentTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/transit_router"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooTransitRouter, err := transit_router.NewTransitRouter(ctx, "fooTransitRouter", &transit_router.TransitRouterArgs{
    			TransitRouterName: pulumi.String("test-tf-acc"),
    			Description:       pulumi.String("test-tf-acc"),
    		})
    		if err != nil {
    			return err
    		}
    		fooZones, err := ecs.Zones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
    			VpcName:   pulumi.String("acc-test-vpc-acc"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
    			VpcId:      fooVpc.ID(),
    			CidrBlock:  pulumi.String("172.16.0.0/24"),
    			ZoneId:     *pulumi.String(fooZones.Zones[0].Id),
    			SubnetName: pulumi.String("acc-test-subnet"),
    		})
    		if err != nil {
    			return err
    		}
    		foo2, err := vpc.NewSubnet(ctx, "foo2", &vpc.SubnetArgs{
    			VpcId:      fooVpc.ID(),
    			CidrBlock:  pulumi.String("172.16.255.0/24"),
    			ZoneId:     *pulumi.String(fooZones.Zones[1].Id),
    			SubnetName: pulumi.String("acc-test-subnet2"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = transit_router.NewVpcAttachment(ctx, "fooVpcAttachment", &transit_router.VpcAttachmentArgs{
    			TransitRouterId: fooTransitRouter.ID(),
    			VpcId:           fooVpc.ID(),
    			AttachPoints: transit_router.VpcAttachmentAttachPointArray{
    				&transit_router.VpcAttachmentAttachPointArgs{
    					SubnetId: fooSubnet.ID(),
    					ZoneId:   pulumi.String("cn-beijing-a"),
    				},
    				&transit_router.VpcAttachmentAttachPointArgs{
    					SubnetId: foo2.ID(),
    					ZoneId:   pulumi.String("cn-beijing-b"),
    				},
    			},
    			TransitRouterAttachmentName: pulumi.String("tf-test-acc-name1"),
    			Description:                 pulumi.String("tf-test-acc-description"),
    			Tags: transit_router.VpcAttachmentTagArray{
    				&transit_router.VpcAttachmentTagArgs{
    					Key:   pulumi.String("k1"),
    					Value: pulumi.String("v1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.transit_router.TransitRouter;
    import com.pulumi.volcengine.transit_router.TransitRouterArgs;
    import com.pulumi.volcengine.ecs.EcsFunctions;
    import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
    import com.pulumi.volcengine.vpc.Vpc;
    import com.pulumi.volcengine.vpc.VpcArgs;
    import com.pulumi.volcengine.vpc.Subnet;
    import com.pulumi.volcengine.vpc.SubnetArgs;
    import com.pulumi.volcengine.transit_router.VpcAttachment;
    import com.pulumi.volcengine.transit_router.VpcAttachmentArgs;
    import com.pulumi.volcengine.transit_router.inputs.VpcAttachmentAttachPointArgs;
    import com.pulumi.volcengine.transit_router.inputs.VpcAttachmentTagArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var fooTransitRouter = new TransitRouter("fooTransitRouter", TransitRouterArgs.builder()        
                .transitRouterName("test-tf-acc")
                .description("test-tf-acc")
                .build());
    
            final var fooZones = EcsFunctions.Zones();
    
            var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
                .vpcName("acc-test-vpc-acc")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
                .vpcId(fooVpc.id())
                .cidrBlock("172.16.0.0/24")
                .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
                .subnetName("acc-test-subnet")
                .build());
    
            var foo2 = new Subnet("foo2", SubnetArgs.builder()        
                .vpcId(fooVpc.id())
                .cidrBlock("172.16.255.0/24")
                .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[1].id()))
                .subnetName("acc-test-subnet2")
                .build());
    
            var fooVpcAttachment = new VpcAttachment("fooVpcAttachment", VpcAttachmentArgs.builder()        
                .transitRouterId(fooTransitRouter.id())
                .vpcId(fooVpc.id())
                .attachPoints(            
                    VpcAttachmentAttachPointArgs.builder()
                        .subnetId(fooSubnet.id())
                        .zoneId("cn-beijing-a")
                        .build(),
                    VpcAttachmentAttachPointArgs.builder()
                        .subnetId(foo2.id())
                        .zoneId("cn-beijing-b")
                        .build())
                .transitRouterAttachmentName("tf-test-acc-name1")
                .description("tf-test-acc-description")
                .tags(VpcAttachmentTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_transit_router = volcengine.transit_router.TransitRouter("fooTransitRouter",
        transit_router_name="test-tf-acc",
        description="test-tf-acc")
    foo_zones = volcengine.ecs.zones()
    foo_vpc = volcengine.vpc.Vpc("fooVpc",
        vpc_name="acc-test-vpc-acc",
        cidr_block="172.16.0.0/16")
    foo_subnet = volcengine.vpc.Subnet("fooSubnet",
        vpc_id=foo_vpc.id,
        cidr_block="172.16.0.0/24",
        zone_id=foo_zones.zones[0].id,
        subnet_name="acc-test-subnet")
    foo2 = volcengine.vpc.Subnet("foo2",
        vpc_id=foo_vpc.id,
        cidr_block="172.16.255.0/24",
        zone_id=foo_zones.zones[1].id,
        subnet_name="acc-test-subnet2")
    foo_vpc_attachment = volcengine.transit_router.VpcAttachment("fooVpcAttachment",
        transit_router_id=foo_transit_router.id,
        vpc_id=foo_vpc.id,
        attach_points=[
            volcengine.transit_router.VpcAttachmentAttachPointArgs(
                subnet_id=foo_subnet.id,
                zone_id="cn-beijing-a",
            ),
            volcengine.transit_router.VpcAttachmentAttachPointArgs(
                subnet_id=foo2.id,
                zone_id="cn-beijing-b",
            ),
        ],
        transit_router_attachment_name="tf-test-acc-name1",
        description="tf-test-acc-description",
        tags=[volcengine.transit_router.VpcAttachmentTagArgs(
            key="k1",
            value="v1",
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooTransitRouter = new volcengine.transit_router.TransitRouter("fooTransitRouter", {
        transitRouterName: "test-tf-acc",
        description: "test-tf-acc",
    });
    const fooZones = volcengine.ecs.Zones({});
    const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
        vpcName: "acc-test-vpc-acc",
        cidrBlock: "172.16.0.0/16",
    });
    const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
        vpcId: fooVpc.id,
        cidrBlock: "172.16.0.0/24",
        zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
        subnetName: "acc-test-subnet",
    });
    const foo2 = new volcengine.vpc.Subnet("foo2", {
        vpcId: fooVpc.id,
        cidrBlock: "172.16.255.0/24",
        zoneId: fooZones.then(fooZones => fooZones.zones?.[1]?.id),
        subnetName: "acc-test-subnet2",
    });
    const fooVpcAttachment = new volcengine.transit_router.VpcAttachment("fooVpcAttachment", {
        transitRouterId: fooTransitRouter.id,
        vpcId: fooVpc.id,
        attachPoints: [
            {
                subnetId: fooSubnet.id,
                zoneId: "cn-beijing-a",
            },
            {
                subnetId: foo2.id,
                zoneId: "cn-beijing-b",
            },
        ],
        transitRouterAttachmentName: "tf-test-acc-name1",
        description: "tf-test-acc-description",
        tags: [{
            key: "k1",
            value: "v1",
        }],
    });
    
    resources:
      fooTransitRouter:
        type: volcengine:transit_router:TransitRouter
        properties:
          transitRouterName: test-tf-acc
          description: test-tf-acc
      fooVpc:
        type: volcengine:vpc:Vpc
        properties:
          vpcName: acc-test-vpc-acc
          cidrBlock: 172.16.0.0/16
      fooSubnet:
        type: volcengine:vpc:Subnet
        properties:
          vpcId: ${fooVpc.id}
          cidrBlock: 172.16.0.0/24
          zoneId: ${fooZones.zones[0].id}
          subnetName: acc-test-subnet
      foo2:
        type: volcengine:vpc:Subnet
        properties:
          vpcId: ${fooVpc.id}
          cidrBlock: 172.16.255.0/24
          zoneId: ${fooZones.zones[1].id}
          subnetName: acc-test-subnet2
      fooVpcAttachment:
        type: volcengine:transit_router:VpcAttachment
        properties:
          transitRouterId: ${fooTransitRouter.id}
          vpcId: ${fooVpc.id}
          attachPoints:
            - subnetId: ${fooSubnet.id}
              zoneId: cn-beijing-a
            - subnetId: ${foo2.id}
              zoneId: cn-beijing-b
          transitRouterAttachmentName: tf-test-acc-name1
          description: tf-test-acc-description
          tags:
            - key: k1
              value: v1
    variables:
      fooZones:
        fn::invoke:
          Function: volcengine:ecs:Zones
          Arguments: {}
    

    Create VpcAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpcAttachment(name: string, args: VpcAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def VpcAttachment(resource_name: str,
                      args: VpcAttachmentArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcAttachment(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      attach_points: Optional[Sequence[VpcAttachmentAttachPointArgs]] = None,
                      transit_router_id: Optional[str] = None,
                      vpc_id: Optional[str] = None,
                      description: Optional[str] = None,
                      tags: Optional[Sequence[VpcAttachmentTagArgs]] = None,
                      transit_router_attachment_name: Optional[str] = None)
    func NewVpcAttachment(ctx *Context, name string, args VpcAttachmentArgs, opts ...ResourceOption) (*VpcAttachment, error)
    public VpcAttachment(string name, VpcAttachmentArgs args, CustomResourceOptions? opts = null)
    public VpcAttachment(String name, VpcAttachmentArgs args)
    public VpcAttachment(String name, VpcAttachmentArgs args, CustomResourceOptions options)
    
    type: volcengine:transit_router:VpcAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VpcAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VpcAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VpcAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var vpcAttachmentResource = new Volcengine.Transit_router.VpcAttachment("vpcAttachmentResource", new()
    {
        AttachPoints = new[]
        {
            new Volcengine.Transit_router.Inputs.VpcAttachmentAttachPointArgs
            {
                SubnetId = "string",
                ZoneId = "string",
            },
        },
        TransitRouterId = "string",
        VpcId = "string",
        Description = "string",
        Tags = new[]
        {
            new Volcengine.Transit_router.Inputs.VpcAttachmentTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        TransitRouterAttachmentName = "string",
    });
    
    example, err := transit_router.NewVpcAttachment(ctx, "vpcAttachmentResource", &transit_router.VpcAttachmentArgs{
    	AttachPoints: transit_router.VpcAttachmentAttachPointArray{
    		&transit_router.VpcAttachmentAttachPointArgs{
    			SubnetId: pulumi.String("string"),
    			ZoneId:   pulumi.String("string"),
    		},
    	},
    	TransitRouterId: pulumi.String("string"),
    	VpcId:           pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	Tags: transit_router.VpcAttachmentTagArray{
    		&transit_router.VpcAttachmentTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	TransitRouterAttachmentName: pulumi.String("string"),
    })
    
    var vpcAttachmentResource = new VpcAttachment("vpcAttachmentResource", VpcAttachmentArgs.builder()
        .attachPoints(VpcAttachmentAttachPointArgs.builder()
            .subnetId("string")
            .zoneId("string")
            .build())
        .transitRouterId("string")
        .vpcId("string")
        .description("string")
        .tags(VpcAttachmentTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .transitRouterAttachmentName("string")
        .build());
    
    vpc_attachment_resource = volcengine.transit_router.VpcAttachment("vpcAttachmentResource",
        attach_points=[volcengine.transit_router.VpcAttachmentAttachPointArgs(
            subnet_id="string",
            zone_id="string",
        )],
        transit_router_id="string",
        vpc_id="string",
        description="string",
        tags=[volcengine.transit_router.VpcAttachmentTagArgs(
            key="string",
            value="string",
        )],
        transit_router_attachment_name="string")
    
    const vpcAttachmentResource = new volcengine.transit_router.VpcAttachment("vpcAttachmentResource", {
        attachPoints: [{
            subnetId: "string",
            zoneId: "string",
        }],
        transitRouterId: "string",
        vpcId: "string",
        description: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
        transitRouterAttachmentName: "string",
    });
    
    type: volcengine:transit_router:VpcAttachment
    properties:
        attachPoints:
            - subnetId: string
              zoneId: string
        description: string
        tags:
            - key: string
              value: string
        transitRouterAttachmentName: string
        transitRouterId: string
        vpcId: string
    

    VpcAttachment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VpcAttachment resource accepts the following input properties:

    AttachPoints List<VpcAttachmentAttachPoint>
    The attach points of transit router vpc attachment.
    TransitRouterId string
    The id of the transit router.
    VpcId string
    The ID of vpc.
    Description string
    The description of the transit router vpc attachment.
    Tags List<VpcAttachmentTag>
    Tags.
    TransitRouterAttachmentName string
    The name of the transit router vpc attachment.
    AttachPoints []VpcAttachmentAttachPointArgs
    The attach points of transit router vpc attachment.
    TransitRouterId string
    The id of the transit router.
    VpcId string
    The ID of vpc.
    Description string
    The description of the transit router vpc attachment.
    Tags []VpcAttachmentTagArgs
    Tags.
    TransitRouterAttachmentName string
    The name of the transit router vpc attachment.
    attachPoints List<VpcAttachmentAttachPoint>
    The attach points of transit router vpc attachment.
    transitRouterId String
    The id of the transit router.
    vpcId String
    The ID of vpc.
    description String
    The description of the transit router vpc attachment.
    tags List<VpcAttachmentTag>
    Tags.
    transitRouterAttachmentName String
    The name of the transit router vpc attachment.
    attachPoints VpcAttachmentAttachPoint[]
    The attach points of transit router vpc attachment.
    transitRouterId string
    The id of the transit router.
    vpcId string
    The ID of vpc.
    description string
    The description of the transit router vpc attachment.
    tags VpcAttachmentTag[]
    Tags.
    transitRouterAttachmentName string
    The name of the transit router vpc attachment.
    attach_points Sequence[VpcAttachmentAttachPointArgs]
    The attach points of transit router vpc attachment.
    transit_router_id str
    The id of the transit router.
    vpc_id str
    The ID of vpc.
    description str
    The description of the transit router vpc attachment.
    tags Sequence[VpcAttachmentTagArgs]
    Tags.
    transit_router_attachment_name str
    The name of the transit router vpc attachment.
    attachPoints List<Property Map>
    The attach points of transit router vpc attachment.
    transitRouterId String
    The id of the transit router.
    vpcId String
    The ID of vpc.
    description String
    The description of the transit router vpc attachment.
    tags List<Property Map>
    Tags.
    transitRouterAttachmentName String
    The name of the transit router vpc attachment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcAttachment resource produces the following output properties:

    CreationTime string
    The create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the transit router.
    TransitRouterAttachmentId string
    The id of the transit router attachment.
    UpdateTime string
    The update time.
    CreationTime string
    The create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the transit router.
    TransitRouterAttachmentId string
    The id of the transit router attachment.
    UpdateTime string
    The update time.
    creationTime String
    The create time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the transit router.
    transitRouterAttachmentId String
    The id of the transit router attachment.
    updateTime String
    The update time.
    creationTime string
    The create time.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the transit router.
    transitRouterAttachmentId string
    The id of the transit router attachment.
    updateTime string
    The update time.
    creation_time str
    The create time.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the transit router.
    transit_router_attachment_id str
    The id of the transit router attachment.
    update_time str
    The update time.
    creationTime String
    The create time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the transit router.
    transitRouterAttachmentId String
    The id of the transit router attachment.
    updateTime String
    The update time.

    Look up Existing VpcAttachment Resource

    Get an existing VpcAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VpcAttachmentState, opts?: CustomResourceOptions): VpcAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attach_points: Optional[Sequence[VpcAttachmentAttachPointArgs]] = None,
            creation_time: Optional[str] = None,
            description: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[VpcAttachmentTagArgs]] = None,
            transit_router_attachment_id: Optional[str] = None,
            transit_router_attachment_name: Optional[str] = None,
            transit_router_id: Optional[str] = None,
            update_time: Optional[str] = None,
            vpc_id: Optional[str] = None) -> VpcAttachment
    func GetVpcAttachment(ctx *Context, name string, id IDInput, state *VpcAttachmentState, opts ...ResourceOption) (*VpcAttachment, error)
    public static VpcAttachment Get(string name, Input<string> id, VpcAttachmentState? state, CustomResourceOptions? opts = null)
    public static VpcAttachment get(String name, Output<String> id, VpcAttachmentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AttachPoints List<VpcAttachmentAttachPoint>
    The attach points of transit router vpc attachment.
    CreationTime string
    The create time.
    Description string
    The description of the transit router vpc attachment.
    Status string
    The status of the transit router.
    Tags List<VpcAttachmentTag>
    Tags.
    TransitRouterAttachmentId string
    The id of the transit router attachment.
    TransitRouterAttachmentName string
    The name of the transit router vpc attachment.
    TransitRouterId string
    The id of the transit router.
    UpdateTime string
    The update time.
    VpcId string
    The ID of vpc.
    AttachPoints []VpcAttachmentAttachPointArgs
    The attach points of transit router vpc attachment.
    CreationTime string
    The create time.
    Description string
    The description of the transit router vpc attachment.
    Status string
    The status of the transit router.
    Tags []VpcAttachmentTagArgs
    Tags.
    TransitRouterAttachmentId string
    The id of the transit router attachment.
    TransitRouterAttachmentName string
    The name of the transit router vpc attachment.
    TransitRouterId string
    The id of the transit router.
    UpdateTime string
    The update time.
    VpcId string
    The ID of vpc.
    attachPoints List<VpcAttachmentAttachPoint>
    The attach points of transit router vpc attachment.
    creationTime String
    The create time.
    description String
    The description of the transit router vpc attachment.
    status String
    The status of the transit router.
    tags List<VpcAttachmentTag>
    Tags.
    transitRouterAttachmentId String
    The id of the transit router attachment.
    transitRouterAttachmentName String
    The name of the transit router vpc attachment.
    transitRouterId String
    The id of the transit router.
    updateTime String
    The update time.
    vpcId String
    The ID of vpc.
    attachPoints VpcAttachmentAttachPoint[]
    The attach points of transit router vpc attachment.
    creationTime string
    The create time.
    description string
    The description of the transit router vpc attachment.
    status string
    The status of the transit router.
    tags VpcAttachmentTag[]
    Tags.
    transitRouterAttachmentId string
    The id of the transit router attachment.
    transitRouterAttachmentName string
    The name of the transit router vpc attachment.
    transitRouterId string
    The id of the transit router.
    updateTime string
    The update time.
    vpcId string
    The ID of vpc.
    attach_points Sequence[VpcAttachmentAttachPointArgs]
    The attach points of transit router vpc attachment.
    creation_time str
    The create time.
    description str
    The description of the transit router vpc attachment.
    status str
    The status of the transit router.
    tags Sequence[VpcAttachmentTagArgs]
    Tags.
    transit_router_attachment_id str
    The id of the transit router attachment.
    transit_router_attachment_name str
    The name of the transit router vpc attachment.
    transit_router_id str
    The id of the transit router.
    update_time str
    The update time.
    vpc_id str
    The ID of vpc.
    attachPoints List<Property Map>
    The attach points of transit router vpc attachment.
    creationTime String
    The create time.
    description String
    The description of the transit router vpc attachment.
    status String
    The status of the transit router.
    tags List<Property Map>
    Tags.
    transitRouterAttachmentId String
    The id of the transit router attachment.
    transitRouterAttachmentName String
    The name of the transit router vpc attachment.
    transitRouterId String
    The id of the transit router.
    updateTime String
    The update time.
    vpcId String
    The ID of vpc.

    Supporting Types

    VpcAttachmentAttachPoint, VpcAttachmentAttachPointArgs

    SubnetId string
    The id of subnet.
    ZoneId string
    The id of zone.
    SubnetId string
    The id of subnet.
    ZoneId string
    The id of zone.
    subnetId String
    The id of subnet.
    zoneId String
    The id of zone.
    subnetId string
    The id of subnet.
    zoneId string
    The id of zone.
    subnet_id str
    The id of subnet.
    zone_id str
    The id of zone.
    subnetId String
    The id of subnet.
    zoneId String
    The id of zone.

    VpcAttachmentTag, VpcAttachmentTagArgs

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Import

    TransitRouterVpcAttachment can be imported using the transitRouterId:attachmentId, e.g.

     $ pulumi import volcengine:transit_router/vpcAttachment:VpcAttachment default tr-2d6fr7mzya2gw58ozfes5g2oh:tr-attach-7qthudw0ll6jmc****
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine