@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
128 lines (127 loc) • 5.13 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage transit router route table association
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooTransitRouter = new volcengine.transit_router.TransitRouter("fooTransitRouter", {
* transitRouterName: "test-tf-acc",
* description: "test-tf-acc",
* });
* const fooRouteTable = new volcengine.transit_router.RouteTable("fooRouteTable", {
* description: "tf-test-acc-description",
* transitRouterRouteTableName: "tf-table-test-acc",
* transitRouterId: fooTransitRouter.id,
* });
* const fooCustomerGateway = new volcengine.vpn.CustomerGateway("fooCustomerGateway", {
* ipAddress: "192.0.1.3",
* customerGatewayName: "acc-test",
* description: "acc-test",
* });
* const fooConnection = new volcengine.vpn.Connection("fooConnection", {
* vpnConnectionName: "acc-tf-test",
* description: "acc-tf-test",
* attachType: "TransitRouter",
* customerGatewayId: fooCustomerGateway.id,
* localSubnets: ["192.168.0.0/22"],
* remoteSubnets: ["192.161.0.0/20"],
* dpdAction: "none",
* natTraversal: true,
* ikeConfigPsk: "acctest@!3",
* ikeConfigVersion: "ikev1",
* ikeConfigMode: "main",
* ikeConfigEncAlg: "aes",
* ikeConfigAuthAlg: "md5",
* ikeConfigDhGroup: "group2",
* ikeConfigLifetime: 9000,
* ikeConfigLocalId: "acc_test",
* ikeConfigRemoteId: "acc_test",
* ipsecConfigEncAlg: "aes",
* ipsecConfigAuthAlg: "sha256",
* ipsecConfigDhGroup: "group2",
* ipsecConfigLifetime: 9000,
* logEnabled: false,
* });
* const fooVpnAttachment = new volcengine.transit_router.VpnAttachment("fooVpnAttachment", {
* zoneId: "cn-beijing-a",
* transitRouterAttachmentName: "tf-test-acc",
* description: "tf-test-acc-desc",
* transitRouterId: fooTransitRouter.id,
* vpnConnectionId: fooConnection.id,
* });
* const fooRouteTableAssociation = new volcengine.transit_router.RouteTableAssociation("fooRouteTableAssociation", {
* transitRouterAttachmentId: fooVpnAttachment.transitRouterAttachmentId,
* transitRouterRouteTableId: fooRouteTable.transitRouterRouteTableId,
* });
* ```
*
* ## Import
*
* TransitRouterRouteTableAssociation can be imported using the TransitRouterAttachmentId:TransitRouterRouteTableId, e.g.
*
* ```sh
* $ pulumi import volcengine:transit_router/routeTableAssociation:RouteTableAssociation default tr-attach-13n2l4c****:tr-rt-1i5i8khf9m58gae5kcx6****
* ```
*/
export declare class RouteTableAssociation extends pulumi.CustomResource {
/**
* Get an existing RouteTableAssociation 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?: RouteTableAssociationState, opts?: pulumi.CustomResourceOptions): RouteTableAssociation;
/**
* Returns true if the given object is an instance of RouteTableAssociation. 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 RouteTableAssociation;
/**
* The ID of the network instance connection.
*/
readonly transitRouterAttachmentId: pulumi.Output<string>;
/**
* The ID of the routing table associated with the transit router instance.
*/
readonly transitRouterRouteTableId: pulumi.Output<string>;
/**
* Create a RouteTableAssociation 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: RouteTableAssociationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering RouteTableAssociation resources.
*/
export interface RouteTableAssociationState {
/**
* The ID of the network instance connection.
*/
transitRouterAttachmentId?: pulumi.Input<string>;
/**
* The ID of the routing table associated with the transit router instance.
*/
transitRouterRouteTableId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a RouteTableAssociation resource.
*/
export interface RouteTableAssociationArgs {
/**
* The ID of the network instance connection.
*/
transitRouterAttachmentId: pulumi.Input<string>;
/**
* The ID of the routing table associated with the transit router instance.
*/
transitRouterRouteTableId: pulumi.Input<string>;
}