@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
126 lines (125 loc) • 5 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage transit router route table propagation
* ## Example Usage
*
* ```typescript
* 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",
* });
* const fooRouteTable = new volcengine.transit_router.RouteTable("fooRouteTable", {
* description: "tf-test-acc-description",
* transitRouterRouteTableName: "tf-table-test-acc",
* transitRouterId: fooTransitRouter.id,
* });
* const fooZones = volcengine.ecs.getZones({});
* 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-name1",
* description: "tf-test-acc-description",
* });
* const fooRouteTablePropagation = new volcengine.transit_router.RouteTablePropagation("fooRouteTablePropagation", {
* transitRouterAttachmentId: fooVpcAttachment.transitRouterAttachmentId,
* transitRouterRouteTableId: fooRouteTable.transitRouterRouteTableId,
* });
* ```
*
* ## Import
*
* TransitRouterRouteTablePropagation can be imported using the propagation:TransitRouterAttachmentId:TransitRouterRouteTableId, e.g.
*
* ```sh
* $ pulumi import volcengine:transit_router/routeTablePropagation:RouteTablePropagation default propagation:tr-attach-13n2l4c****:tr-rt-1i5i8khf9m58gae5kcx6****
* ```
*/
export declare class RouteTablePropagation extends pulumi.CustomResource {
/**
* Get an existing RouteTablePropagation 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?: RouteTablePropagationState, opts?: pulumi.CustomResourceOptions): RouteTablePropagation;
/**
* Returns true if the given object is an instance of RouteTablePropagation. 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 RouteTablePropagation;
/**
* 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 RouteTablePropagation 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: RouteTablePropagationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering RouteTablePropagation resources.
*/
export interface RouteTablePropagationState {
/**
* 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 RouteTablePropagation resource.
*/
export interface RouteTablePropagationArgs {
/**
* 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>;
}