1. Packages
  2. Volcengine
  3. API Docs
  4. transit_router
  5. DirectConnectGatewayAttachment
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.transit_router.DirectConnectGatewayAttachment

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    Provides a resource to manage transit router direct connect gateway attachment

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Volcengine.Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Transit_router.DirectConnectGatewayAttachment("foo", new()
        {
            Description = "tf-test-modify",
            DirectConnectGatewayId = "dcg-3reaq6ymdzegw5zsk2igxzusb",
            TransitRouterAttachmentName = "tf-test-modify",
            TransitRouterId = "tr-2bzy39x27qtxc2dx0eg5qaj05",
        });
    
    });
    
    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.NewDirectConnectGatewayAttachment(ctx, "foo", &transit_router.DirectConnectGatewayAttachmentArgs{
    			Description:                 pulumi.String("tf-test-modify"),
    			DirectConnectGatewayId:      pulumi.String("dcg-3reaq6ymdzegw5zsk2igxzusb"),
    			TransitRouterAttachmentName: pulumi.String("tf-test-modify"),
    			TransitRouterId:             pulumi.String("tr-2bzy39x27qtxc2dx0eg5qaj05"),
    		})
    		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.DirectConnectGatewayAttachment;
    import com.pulumi.volcengine.transit_router.DirectConnectGatewayAttachmentArgs;
    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 foo = new DirectConnectGatewayAttachment("foo", DirectConnectGatewayAttachmentArgs.builder()        
                .description("tf-test-modify")
                .directConnectGatewayId("dcg-3reaq6ymdzegw5zsk2igxzusb")
                .transitRouterAttachmentName("tf-test-modify")
                .transitRouterId("tr-2bzy39x27qtxc2dx0eg5qaj05")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.transit_router.DirectConnectGatewayAttachment("foo",
        description="tf-test-modify",
        direct_connect_gateway_id="dcg-3reaq6ymdzegw5zsk2igxzusb",
        transit_router_attachment_name="tf-test-modify",
        transit_router_id="tr-2bzy39x27qtxc2dx0eg5qaj05")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.transit_router.DirectConnectGatewayAttachment("foo", {
        description: "tf-test-modify",
        directConnectGatewayId: "dcg-3reaq6ymdzegw5zsk2igxzusb",
        transitRouterAttachmentName: "tf-test-modify",
        transitRouterId: "tr-2bzy39x27qtxc2dx0eg5qaj05",
    });
    
    resources:
      foo:
        type: volcengine:transit_router:DirectConnectGatewayAttachment
        properties:
          description: tf-test-modify
          directConnectGatewayId: dcg-3reaq6ymdzegw5zsk2igxzusb
          transitRouterAttachmentName: tf-test-modify
          transitRouterId: tr-2bzy39x27qtxc2dx0eg5qaj05
    

    Create DirectConnectGatewayAttachment Resource

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

    Constructor syntax

    new DirectConnectGatewayAttachment(name: string, args: DirectConnectGatewayAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def DirectConnectGatewayAttachment(resource_name: str,
                                       args: DirectConnectGatewayAttachmentArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def DirectConnectGatewayAttachment(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       direct_connect_gateway_id: Optional[str] = None,
                                       transit_router_id: Optional[str] = None,
                                       description: Optional[str] = None,
                                       transit_router_attachment_name: Optional[str] = None)
    func NewDirectConnectGatewayAttachment(ctx *Context, name string, args DirectConnectGatewayAttachmentArgs, opts ...ResourceOption) (*DirectConnectGatewayAttachment, error)
    public DirectConnectGatewayAttachment(string name, DirectConnectGatewayAttachmentArgs args, CustomResourceOptions? opts = null)
    public DirectConnectGatewayAttachment(String name, DirectConnectGatewayAttachmentArgs args)
    public DirectConnectGatewayAttachment(String name, DirectConnectGatewayAttachmentArgs args, CustomResourceOptions options)
    
    type: volcengine:transit_router:DirectConnectGatewayAttachment
    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 DirectConnectGatewayAttachmentArgs
    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 DirectConnectGatewayAttachmentArgs
    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 DirectConnectGatewayAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DirectConnectGatewayAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DirectConnectGatewayAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var directConnectGatewayAttachmentResource = new Volcengine.Transit_router.DirectConnectGatewayAttachment("directConnectGatewayAttachmentResource", new()
    {
        DirectConnectGatewayId = "string",
        TransitRouterId = "string",
        Description = "string",
        TransitRouterAttachmentName = "string",
    });
    
    example, err := transit_router.NewDirectConnectGatewayAttachment(ctx, "directConnectGatewayAttachmentResource", &transit_router.DirectConnectGatewayAttachmentArgs{
    	DirectConnectGatewayId:      pulumi.String("string"),
    	TransitRouterId:             pulumi.String("string"),
    	Description:                 pulumi.String("string"),
    	TransitRouterAttachmentName: pulumi.String("string"),
    })
    
    var directConnectGatewayAttachmentResource = new DirectConnectGatewayAttachment("directConnectGatewayAttachmentResource", DirectConnectGatewayAttachmentArgs.builder()        
        .directConnectGatewayId("string")
        .transitRouterId("string")
        .description("string")
        .transitRouterAttachmentName("string")
        .build());
    
    direct_connect_gateway_attachment_resource = volcengine.transit_router.DirectConnectGatewayAttachment("directConnectGatewayAttachmentResource",
        direct_connect_gateway_id="string",
        transit_router_id="string",
        description="string",
        transit_router_attachment_name="string")
    
    const directConnectGatewayAttachmentResource = new volcengine.transit_router.DirectConnectGatewayAttachment("directConnectGatewayAttachmentResource", {
        directConnectGatewayId: "string",
        transitRouterId: "string",
        description: "string",
        transitRouterAttachmentName: "string",
    });
    
    type: volcengine:transit_router:DirectConnectGatewayAttachment
    properties:
        description: string
        directConnectGatewayId: string
        transitRouterAttachmentName: string
        transitRouterId: string
    

    DirectConnectGatewayAttachment 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 DirectConnectGatewayAttachment resource accepts the following input properties:

    DirectConnectGatewayId string
    The id of the direct connect gateway.
    TransitRouterId string
    The id of the transit router.
    Description string
    The description.
    TransitRouterAttachmentName string
    The name of the transit router direct connect gateway attachment.
    DirectConnectGatewayId string
    The id of the direct connect gateway.
    TransitRouterId string
    The id of the transit router.
    Description string
    The description.
    TransitRouterAttachmentName string
    The name of the transit router direct connect gateway attachment.
    directConnectGatewayId String
    The id of the direct connect gateway.
    transitRouterId String
    The id of the transit router.
    description String
    The description.
    transitRouterAttachmentName String
    The name of the transit router direct connect gateway attachment.
    directConnectGatewayId string
    The id of the direct connect gateway.
    transitRouterId string
    The id of the transit router.
    description string
    The description.
    transitRouterAttachmentName string
    The name of the transit router direct connect gateway attachment.
    direct_connect_gateway_id str
    The id of the direct connect gateway.
    transit_router_id str
    The id of the transit router.
    description str
    The description.
    transit_router_attachment_name str
    The name of the transit router direct connect gateway attachment.
    directConnectGatewayId String
    The id of the direct connect gateway.
    transitRouterId String
    The id of the transit router.
    description String
    The description.
    transitRouterAttachmentName String
    The name of the transit router direct connect gateway attachment.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    TransitRouterAttachmentId string
    The id of the transit router direct connect gateway attachment.
    Id string
    The provider-assigned unique ID for this managed resource.
    TransitRouterAttachmentId string
    The id of the transit router direct connect gateway attachment.
    id String
    The provider-assigned unique ID for this managed resource.
    transitRouterAttachmentId String
    The id of the transit router direct connect gateway attachment.
    id string
    The provider-assigned unique ID for this managed resource.
    transitRouterAttachmentId string
    The id of the transit router direct connect gateway attachment.
    id str
    The provider-assigned unique ID for this managed resource.
    transit_router_attachment_id str
    The id of the transit router direct connect gateway attachment.
    id String
    The provider-assigned unique ID for this managed resource.
    transitRouterAttachmentId String
    The id of the transit router direct connect gateway attachment.

    Look up Existing DirectConnectGatewayAttachment Resource

    Get an existing DirectConnectGatewayAttachment 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?: DirectConnectGatewayAttachmentState, opts?: CustomResourceOptions): DirectConnectGatewayAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            direct_connect_gateway_id: Optional[str] = None,
            transit_router_attachment_id: Optional[str] = None,
            transit_router_attachment_name: Optional[str] = None,
            transit_router_id: Optional[str] = None) -> DirectConnectGatewayAttachment
    func GetDirectConnectGatewayAttachment(ctx *Context, name string, id IDInput, state *DirectConnectGatewayAttachmentState, opts ...ResourceOption) (*DirectConnectGatewayAttachment, error)
    public static DirectConnectGatewayAttachment Get(string name, Input<string> id, DirectConnectGatewayAttachmentState? state, CustomResourceOptions? opts = null)
    public static DirectConnectGatewayAttachment get(String name, Output<String> id, DirectConnectGatewayAttachmentState 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:
    Description string
    The description.
    DirectConnectGatewayId string
    The id of the direct connect gateway.
    TransitRouterAttachmentId string
    The id of the transit router direct connect gateway attachment.
    TransitRouterAttachmentName string
    The name of the transit router direct connect gateway attachment.
    TransitRouterId string
    The id of the transit router.
    Description string
    The description.
    DirectConnectGatewayId string
    The id of the direct connect gateway.
    TransitRouterAttachmentId string
    The id of the transit router direct connect gateway attachment.
    TransitRouterAttachmentName string
    The name of the transit router direct connect gateway attachment.
    TransitRouterId string
    The id of the transit router.
    description String
    The description.
    directConnectGatewayId String
    The id of the direct connect gateway.
    transitRouterAttachmentId String
    The id of the transit router direct connect gateway attachment.
    transitRouterAttachmentName String
    The name of the transit router direct connect gateway attachment.
    transitRouterId String
    The id of the transit router.
    description string
    The description.
    directConnectGatewayId string
    The id of the direct connect gateway.
    transitRouterAttachmentId string
    The id of the transit router direct connect gateway attachment.
    transitRouterAttachmentName string
    The name of the transit router direct connect gateway attachment.
    transitRouterId string
    The id of the transit router.
    description str
    The description.
    direct_connect_gateway_id str
    The id of the direct connect gateway.
    transit_router_attachment_id str
    The id of the transit router direct connect gateway attachment.
    transit_router_attachment_name str
    The name of the transit router direct connect gateway attachment.
    transit_router_id str
    The id of the transit router.
    description String
    The description.
    directConnectGatewayId String
    The id of the direct connect gateway.
    transitRouterAttachmentId String
    The id of the transit router direct connect gateway attachment.
    transitRouterAttachmentName String
    The name of the transit router direct connect gateway attachment.
    transitRouterId String
    The id of the transit router.

    Import

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

     $ pulumi import volcengine:transit_router/directConnectGatewayAttachment:DirectConnectGatewayAttachment 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.23 published on Wednesday, Jan 3, 2024 by Volcengine