UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

147 lines (146 loc) 5.32 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage transit router direct connect gateway attachment * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const fooTransitRouter = new volcengine.transit_router.TransitRouter("fooTransitRouter", { * transitRouterName: "acc-test-tf-acc", * description: "acc-test-tf-acc", * }); * const fooGateway = new volcengine.direct_connect.Gateway("fooGateway", { * directConnectGatewayName: "acc-test-gateway-acc", * description: "acc-test-acc", * tags: [{ * key: "k1", * value: "v1", * }], * }); * const fooDirectConnectGatewayAttachment = new volcengine.transit_router.DirectConnectGatewayAttachment("fooDirectConnectGatewayAttachment", { * description: "acc-test-tf", * transitRouterAttachmentName: "acc-test-tf", * transitRouterId: fooTransitRouter.id, * directConnectGatewayId: fooGateway.id, * tags: [{ * key: "k1", * value: "v1", * }], * }); * ``` * * ## Import * * TransitRouterDirectConnectGatewayAttachment can be imported using the transitRouterId:attachmentId, e.g. * * ```sh * $ pulumi import volcengine:transit_router/directConnectGatewayAttachment:DirectConnectGatewayAttachment default tr-2d6fr7mzya2gw58ozfes5g2oh:tr-attach-7qthudw0ll6jmc**** * ``` */ export declare class DirectConnectGatewayAttachment extends pulumi.CustomResource { /** * Get an existing DirectConnectGatewayAttachment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DirectConnectGatewayAttachmentState, opts?: pulumi.CustomResourceOptions): DirectConnectGatewayAttachment; /** * Returns true if the given object is an instance of DirectConnectGatewayAttachment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DirectConnectGatewayAttachment; /** * The description. */ readonly description: pulumi.Output<string>; /** * The id of the direct connect gateway. */ readonly directConnectGatewayId: pulumi.Output<string>; /** * Tags. */ readonly tags: pulumi.Output<outputs.transit_router.DirectConnectGatewayAttachmentTag[] | undefined>; /** * The id of the transit router direct connect gateway attachment. */ readonly transitRouterAttachmentId: pulumi.Output<string>; /** * The name of the transit router direct connect gateway attachment. */ readonly transitRouterAttachmentName: pulumi.Output<string>; /** * The id of the transit router. */ readonly transitRouterId: pulumi.Output<string>; /** * Create a DirectConnectGatewayAttachment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DirectConnectGatewayAttachmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DirectConnectGatewayAttachment resources. */ export interface DirectConnectGatewayAttachmentState { /** * The description. */ description?: pulumi.Input<string>; /** * The id of the direct connect gateway. */ directConnectGatewayId?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.transit_router.DirectConnectGatewayAttachmentTag>[]>; /** * The id of the transit router direct connect gateway attachment. */ transitRouterAttachmentId?: pulumi.Input<string>; /** * The name of the transit router direct connect gateway attachment. */ transitRouterAttachmentName?: pulumi.Input<string>; /** * The id of the transit router. */ transitRouterId?: pulumi.Input<string>; } /** * The set of arguments for constructing a DirectConnectGatewayAttachment resource. */ export interface DirectConnectGatewayAttachmentArgs { /** * The description. */ description?: pulumi.Input<string>; /** * The id of the direct connect gateway. */ directConnectGatewayId: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.transit_router.DirectConnectGatewayAttachmentTag>[]>; /** * The name of the transit router direct connect gateway attachment. */ transitRouterAttachmentName?: pulumi.Input<string>; /** * The id of the transit router. */ transitRouterId: pulumi.Input<string>; }