volcengine.transit_router.VpcAttachment
Explore with Pulumi AI
Provides a resource to manage transit router vpc attachment
Example Usage
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",
    asn: 4294967293,
});
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-vpc-attach",
    description: "tf-test-acc-description",
    autoPublishRouteEnabled: true,
    tags: [{
        key: "k1",
        value: "v1",
    }],
});
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",
    asn=4294967293)
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-vpc-attach",
    description="tf-test-acc-description",
    auto_publish_route_enabled=True,
    tags=[volcengine.transit_router.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"),
			Asn:               pulumi.Int(4294967293),
		})
		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-vpc-attach"),
			Description:                 pulumi.String("tf-test-acc-description"),
			AutoPublishRouteEnabled:     pulumi.Bool(true),
			Tags: transit_router.VpcAttachmentTagArray{
				&transit_router.VpcAttachmentTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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",
        Asn = 4294967293,
    });
    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-vpc-attach",
        Description = "tf-test-acc-description",
        AutoPublishRouteEnabled = true,
        Tags = new[]
        {
            new Volcengine.Transit_router.Inputs.VpcAttachmentTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
    });
});
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")
            .asn(4294967293)
            .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-vpc-attach")
            .description("tf-test-acc-description")
            .autoPublishRouteEnabled(true)
            .tags(VpcAttachmentTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .build());
    }
}
resources:
  fooTransitRouter:
    type: volcengine:transit_router:TransitRouter
    properties:
      transitRouterName: test-tf-acc
      description: test-tf-acc
      asn: 4.294967293e+09
  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-vpc-attach
      description: tf-test-acc-description
      autoPublishRouteEnabled: true
      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,
                  auto_publish_route_enabled: Optional[bool] = 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",
    AutoPublishRouteEnabled = false,
    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"),
	AutoPublishRouteEnabled: pulumi.Bool(false),
	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")
    .autoPublishRouteEnabled(false)
    .description("string")
    .tags(VpcAttachmentTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .transitRouterAttachmentName("string")
    .build());
vpc_attachment_resource = volcengine.transit_router.VpcAttachment("vpcAttachmentResource",
    attach_points=[{
        "subnet_id": "string",
        "zone_id": "string",
    }],
    transit_router_id="string",
    vpc_id="string",
    auto_publish_route_enabled=False,
    description="string",
    tags=[{
        "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",
    autoPublishRouteEnabled: false,
    description: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
    transitRouterAttachmentName: "string",
});
type: volcengine:transit_router:VpcAttachment
properties:
    attachPoints:
        - subnetId: string
          zoneId: string
    autoPublishRouteEnabled: false
    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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcAttachment resource accepts the following input properties:
- AttachPoints List<VpcAttachment Attach Point> 
- The attach points of transit router vpc attachment.
- TransitRouter stringId 
- The id of the transit router.
- VpcId string
- The ID of vpc.
- AutoPublish boolRoute Enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- Description string
- The description of the transit router vpc attachment.
- 
List<VpcAttachment Tag> 
- Tags.
- TransitRouter stringAttachment Name 
- The name of the transit router vpc attachment.
- AttachPoints []VpcAttachment Attach Point Args 
- The attach points of transit router vpc attachment.
- TransitRouter stringId 
- The id of the transit router.
- VpcId string
- The ID of vpc.
- AutoPublish boolRoute Enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- Description string
- The description of the transit router vpc attachment.
- 
[]VpcAttachment Tag Args 
- Tags.
- TransitRouter stringAttachment Name 
- The name of the transit router vpc attachment.
- attachPoints List<VpcAttachment Attach Point> 
- The attach points of transit router vpc attachment.
- transitRouter StringId 
- The id of the transit router.
- vpcId String
- The ID of vpc.
- autoPublish BooleanRoute Enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- description String
- The description of the transit router vpc attachment.
- 
List<VpcAttachment Tag> 
- Tags.
- transitRouter StringAttachment Name 
- The name of the transit router vpc attachment.
- attachPoints VpcAttachment Attach Point[] 
- The attach points of transit router vpc attachment.
- transitRouter stringId 
- The id of the transit router.
- vpcId string
- The ID of vpc.
- autoPublish booleanRoute Enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- description string
- The description of the transit router vpc attachment.
- 
VpcAttachment Tag[] 
- Tags.
- transitRouter stringAttachment Name 
- The name of the transit router vpc attachment.
- attach_points Sequence[VpcAttachment Attach Point Args] 
- The attach points of transit router vpc attachment.
- transit_router_ strid 
- The id of the transit router.
- vpc_id str
- The ID of vpc.
- auto_publish_ boolroute_ enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- description str
- The description of the transit router vpc attachment.
- 
Sequence[VpcAttachment Tag Args] 
- Tags.
- transit_router_ strattachment_ name 
- The name of the transit router vpc attachment.
- attachPoints List<Property Map>
- The attach points of transit router vpc attachment.
- transitRouter StringId 
- The id of the transit router.
- vpcId String
- The ID of vpc.
- autoPublish BooleanRoute Enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- description String
- The description of the transit router vpc attachment.
- List<Property Map>
- Tags.
- transitRouter StringAttachment Name 
- 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.
- TransitRouter stringAttachment Id 
- 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.
- TransitRouter stringAttachment Id 
- 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.
- transitRouter StringAttachment Id 
- 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.
- transitRouter stringAttachment Id 
- 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_ strattachment_ id 
- 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.
- transitRouter StringAttachment Id 
- 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,
        auto_publish_route_enabled: Optional[bool] = 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) -> VpcAttachmentfunc 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)resources:  _:    type: volcengine:transit_router:VpcAttachment    get:      id: ${id}- 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.
- AttachPoints List<VpcAttachment Attach Point> 
- The attach points of transit router vpc attachment.
- AutoPublish boolRoute Enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- CreationTime string
- The create time.
- Description string
- The description of the transit router vpc attachment.
- Status string
- The status of the transit router.
- 
List<VpcAttachment Tag> 
- Tags.
- TransitRouter stringAttachment Id 
- The id of the transit router attachment.
- TransitRouter stringAttachment Name 
- The name of the transit router vpc attachment.
- TransitRouter stringId 
- The id of the transit router.
- UpdateTime string
- The update time.
- VpcId string
- The ID of vpc.
- AttachPoints []VpcAttachment Attach Point Args 
- The attach points of transit router vpc attachment.
- AutoPublish boolRoute Enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- CreationTime string
- The create time.
- Description string
- The description of the transit router vpc attachment.
- Status string
- The status of the transit router.
- 
[]VpcAttachment Tag Args 
- Tags.
- TransitRouter stringAttachment Id 
- The id of the transit router attachment.
- TransitRouter stringAttachment Name 
- The name of the transit router vpc attachment.
- TransitRouter stringId 
- The id of the transit router.
- UpdateTime string
- The update time.
- VpcId string
- The ID of vpc.
- attachPoints List<VpcAttachment Attach Point> 
- The attach points of transit router vpc attachment.
- autoPublish BooleanRoute Enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- creationTime String
- The create time.
- description String
- The description of the transit router vpc attachment.
- status String
- The status of the transit router.
- 
List<VpcAttachment Tag> 
- Tags.
- transitRouter StringAttachment Id 
- The id of the transit router attachment.
- transitRouter StringAttachment Name 
- The name of the transit router vpc attachment.
- transitRouter StringId 
- The id of the transit router.
- updateTime String
- The update time.
- vpcId String
- The ID of vpc.
- attachPoints VpcAttachment Attach Point[] 
- The attach points of transit router vpc attachment.
- autoPublish booleanRoute Enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- creationTime string
- The create time.
- description string
- The description of the transit router vpc attachment.
- status string
- The status of the transit router.
- 
VpcAttachment Tag[] 
- Tags.
- transitRouter stringAttachment Id 
- The id of the transit router attachment.
- transitRouter stringAttachment Name 
- The name of the transit router vpc attachment.
- transitRouter stringId 
- The id of the transit router.
- updateTime string
- The update time.
- vpcId string
- The ID of vpc.
- attach_points Sequence[VpcAttachment Attach Point Args] 
- The attach points of transit router vpc attachment.
- auto_publish_ boolroute_ enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- creation_time str
- The create time.
- description str
- The description of the transit router vpc attachment.
- status str
- The status of the transit router.
- 
Sequence[VpcAttachment Tag Args] 
- Tags.
- transit_router_ strattachment_ id 
- The id of the transit router attachment.
- transit_router_ strattachment_ name 
- The name of the transit router vpc attachment.
- transit_router_ strid 
- 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.
- autoPublish BooleanRoute Enabled 
- Whether to auto publish route of the transit router to vpc instance. Default is false.
- creationTime String
- The create time.
- description String
- The description of the transit router vpc attachment.
- status String
- The status of the transit router.
- List<Property Map>
- Tags.
- transitRouter StringAttachment Id 
- The id of the transit router attachment.
- transitRouter StringAttachment Name 
- The name of the transit router vpc attachment.
- transitRouter StringId 
- The id of the transit router.
- updateTime String
- The update time.
- vpcId String
- The ID of vpc.
Supporting Types
VpcAttachmentAttachPoint, VpcAttachmentAttachPointArgs        
VpcAttachmentTag, VpcAttachmentTagArgs      
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 volcengineTerraform Provider.