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

volcengine.transit_router.VpcAttachments

Explore with Pulumi AI

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

    Use this data source to query detailed information of transit router vpc attachments

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Transit_router.VpcAttachments.Invoke(new()
        {
            TransitRouterAttachmentIds = new[]
            {
                "tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt",
            },
            TransitRouterId = "tr-2d6fr7f39unsw58ozfe1ow21x",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/transit_router"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := transit_router.VpcAttachments(ctx, &transit_router.VpcAttachmentsArgs{
    			TransitRouterAttachmentIds: []string{
    				"tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt",
    			},
    			TransitRouterId: "tr-2d6fr7f39unsw58ozfe1ow21x",
    		}, nil)
    		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.Transit_routerFunctions;
    import com.pulumi.volcengine.transit_router_vpcAttachments.inputs.VpcAttachmentsArgs;
    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) {
            final var default = Transit_routerFunctions.VpcAttachments(VpcAttachmentsArgs.builder()
                .transitRouterAttachmentIds("tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt")
                .transitRouterId("tr-2d6fr7f39unsw58ozfe1ow21x")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.transit_router.vpc_attachments(transit_router_attachment_ids=["tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt"],
        transit_router_id="tr-2d6fr7f39unsw58ozfe1ow21x")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.transit_router.VpcAttachments({
        transitRouterAttachmentIds: ["tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt"],
        transitRouterId: "tr-2d6fr7f39unsw58ozfe1ow21x",
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:transit_router:VpcAttachments
          Arguments:
            transitRouterAttachmentIds:
              - tr-attach-3rf2xi7ae6y9s5zsk2hm6pibt
            transitRouterId: tr-2d6fr7f39unsw58ozfe1ow21x
    

    Using VpcAttachments

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function vpcAttachments(args: VpcAttachmentsArgs, opts?: InvokeOptions): Promise<VpcAttachmentsResult>
    function vpcAttachmentsOutput(args: VpcAttachmentsOutputArgs, opts?: InvokeOptions): Output<VpcAttachmentsResult>
    def vpc_attachments(output_file: Optional[str] = None,
                        tags: Optional[Sequence[VpcAttachmentsTag]] = None,
                        transit_router_attachment_ids: Optional[Sequence[str]] = None,
                        transit_router_id: Optional[str] = None,
                        vpc_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> VpcAttachmentsResult
    def vpc_attachments_output(output_file: Optional[pulumi.Input[str]] = None,
                        tags: Optional[pulumi.Input[Sequence[pulumi.Input[VpcAttachmentsTagArgs]]]] = None,
                        transit_router_attachment_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        transit_router_id: Optional[pulumi.Input[str]] = None,
                        vpc_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[VpcAttachmentsResult]
    func VpcAttachments(ctx *Context, args *VpcAttachmentsArgs, opts ...InvokeOption) (*VpcAttachmentsResult, error)
    func VpcAttachmentsOutput(ctx *Context, args *VpcAttachmentsOutputArgs, opts ...InvokeOption) VpcAttachmentsResultOutput
    public static class VpcAttachments 
    {
        public static Task<VpcAttachmentsResult> InvokeAsync(VpcAttachmentsArgs args, InvokeOptions? opts = null)
        public static Output<VpcAttachmentsResult> Invoke(VpcAttachmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<VpcAttachmentsResult> vpcAttachments(VpcAttachmentsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:transit_router:VpcAttachments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TransitRouterId string
    The id of transit router.
    OutputFile string
    File name where to save data source results.
    Tags List<VpcAttachmentsTag>
    Tags.
    TransitRouterAttachmentIds List<string>
    A list of Transit Router Attachment ids.
    VpcId string
    The id of vpc.
    TransitRouterId string
    The id of transit router.
    OutputFile string
    File name where to save data source results.
    Tags []VpcAttachmentsTag
    Tags.
    TransitRouterAttachmentIds []string
    A list of Transit Router Attachment ids.
    VpcId string
    The id of vpc.
    transitRouterId String
    The id of transit router.
    outputFile String
    File name where to save data source results.
    tags List<VpcAttachmentsTag>
    Tags.
    transitRouterAttachmentIds List<String>
    A list of Transit Router Attachment ids.
    vpcId String
    The id of vpc.
    transitRouterId string
    The id of transit router.
    outputFile string
    File name where to save data source results.
    tags VpcAttachmentsTag[]
    Tags.
    transitRouterAttachmentIds string[]
    A list of Transit Router Attachment ids.
    vpcId string
    The id of vpc.
    transit_router_id str
    The id of transit router.
    output_file str
    File name where to save data source results.
    tags Sequence[VpcAttachmentsTag]
    Tags.
    transit_router_attachment_ids Sequence[str]
    A list of Transit Router Attachment ids.
    vpc_id str
    The id of vpc.
    transitRouterId String
    The id of transit router.
    outputFile String
    File name where to save data source results.
    tags List<Property Map>
    Tags.
    transitRouterAttachmentIds List<String>
    A list of Transit Router Attachment ids.
    vpcId String
    The id of vpc.

    VpcAttachments Result

    The following output properties are available:

    Attachments List<VpcAttachmentsAttachment>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    TransitRouterId string
    The id of the transit router.
    OutputFile string
    Tags List<VpcAttachmentsTag>
    Tags.
    TransitRouterAttachmentIds List<string>
    VpcId string
    The ID of vpc.
    Attachments []VpcAttachmentsAttachment
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    TransitRouterId string
    The id of the transit router.
    OutputFile string
    Tags []VpcAttachmentsTag
    Tags.
    TransitRouterAttachmentIds []string
    VpcId string
    The ID of vpc.
    attachments List<VpcAttachmentsAttachment>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    transitRouterId String
    The id of the transit router.
    outputFile String
    tags List<VpcAttachmentsTag>
    Tags.
    transitRouterAttachmentIds List<String>
    vpcId String
    The ID of vpc.
    attachments VpcAttachmentsAttachment[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    transitRouterId string
    The id of the transit router.
    outputFile string
    tags VpcAttachmentsTag[]
    Tags.
    transitRouterAttachmentIds string[]
    vpcId string
    The ID of vpc.
    attachments Sequence[VpcAttachmentsAttachment]
    The collection of query.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    transit_router_id str
    The id of the transit router.
    output_file str
    tags Sequence[VpcAttachmentsTag]
    Tags.
    transit_router_attachment_ids Sequence[str]
    vpc_id str
    The ID of vpc.
    attachments List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    transitRouterId String
    The id of the transit router.
    outputFile String
    tags List<Property Map>
    Tags.
    transitRouterAttachmentIds List<String>
    vpcId String
    The ID of vpc.

    Supporting Types

    VpcAttachmentsAttachment

    AttachPoints List<VpcAttachmentsAttachmentAttachPoint>
    The collection of attach points.
    CreationTime string
    The create time.
    Description string
    The description info.
    Status string
    The status of the transit router.
    Tags List<VpcAttachmentsAttachmentTag>
    Tags.
    TransitRouterAttachmentId string
    The id of the transit router attachment.
    TransitRouterAttachmentName string
    The name of the transit router attachment.
    TransitRouterId string
    The id of transit router.
    UpdateTime string
    The update time.
    VpcId string
    The id of vpc.
    AttachPoints []VpcAttachmentsAttachmentAttachPoint
    The collection of attach points.
    CreationTime string
    The create time.
    Description string
    The description info.
    Status string
    The status of the transit router.
    Tags []VpcAttachmentsAttachmentTag
    Tags.
    TransitRouterAttachmentId string
    The id of the transit router attachment.
    TransitRouterAttachmentName string
    The name of the transit router attachment.
    TransitRouterId string
    The id of transit router.
    UpdateTime string
    The update time.
    VpcId string
    The id of vpc.
    attachPoints List<VpcAttachmentsAttachmentAttachPoint>
    The collection of attach points.
    creationTime String
    The create time.
    description String
    The description info.
    status String
    The status of the transit router.
    tags List<VpcAttachmentsAttachmentTag>
    Tags.
    transitRouterAttachmentId String
    The id of the transit router attachment.
    transitRouterAttachmentName String
    The name of the transit router attachment.
    transitRouterId String
    The id of transit router.
    updateTime String
    The update time.
    vpcId String
    The id of vpc.
    attachPoints VpcAttachmentsAttachmentAttachPoint[]
    The collection of attach points.
    creationTime string
    The create time.
    description string
    The description info.
    status string
    The status of the transit router.
    tags VpcAttachmentsAttachmentTag[]
    Tags.
    transitRouterAttachmentId string
    The id of the transit router attachment.
    transitRouterAttachmentName string
    The name of the transit router attachment.
    transitRouterId string
    The id of transit router.
    updateTime string
    The update time.
    vpcId string
    The id of vpc.
    attach_points Sequence[VpcAttachmentsAttachmentAttachPoint]
    The collection of attach points.
    creation_time str
    The create time.
    description str
    The description info.
    status str
    The status of the transit router.
    tags Sequence[VpcAttachmentsAttachmentTag]
    Tags.
    transit_router_attachment_id str
    The id of the transit router attachment.
    transit_router_attachment_name str
    The name of the transit router attachment.
    transit_router_id str
    The id of transit router.
    update_time str
    The update time.
    vpc_id str
    The id of vpc.
    attachPoints List<Property Map>
    The collection of attach points.
    creationTime String
    The create time.
    description String
    The description info.
    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 attachment.
    transitRouterId String
    The id of transit router.
    updateTime String
    The update time.
    vpcId String
    The id of vpc.

    VpcAttachmentsAttachmentAttachPoint

    NetworkInterfaceId string
    The ID of network interface.
    SubnetId string
    The ID of subnet.
    ZoneId string
    The ID of zone.
    NetworkInterfaceId string
    The ID of network interface.
    SubnetId string
    The ID of subnet.
    ZoneId string
    The ID of zone.
    networkInterfaceId String
    The ID of network interface.
    subnetId String
    The ID of subnet.
    zoneId String
    The ID of zone.
    networkInterfaceId string
    The ID of network interface.
    subnetId string
    The ID of subnet.
    zoneId string
    The ID of zone.
    network_interface_id str
    The ID of network interface.
    subnet_id str
    The ID of subnet.
    zone_id str
    The ID of zone.
    networkInterfaceId String
    The ID of network interface.
    subnetId String
    The ID of subnet.
    zoneId String
    The ID of zone.

    VpcAttachmentsAttachmentTag

    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.

    VpcAttachmentsTag

    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.

    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