@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
144 lines (143 loc) • 4.2 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage direct connect gateway route
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.direct_connect.GatewayRoute("foo", {
* destinationCidrBlock: "192.168.40.0/24",
* directConnectGatewayId: "dcg-172frxs5utjb44d1w33op****",
* nextHopId: "dcv-1729lrbfx7fuo4d1w34pk****",
* });
* ```
*
* ## Import
*
* DirectConnectGatewayRoute can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:direct_connect/gatewayRoute:GatewayRoute default resource_id
* ```
*/
export declare class GatewayRoute extends pulumi.CustomResource {
/**
* Get an existing GatewayRoute 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?: GatewayRouteState, opts?: pulumi.CustomResourceOptions): GatewayRoute;
/**
* Returns true if the given object is an instance of GatewayRoute. 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 GatewayRoute;
/**
* The id of account.
*/
readonly accountId: pulumi.Output<string>;
/**
* The create time.
*/
readonly creationTime: pulumi.Output<string>;
/**
* The cidr block.
*/
readonly destinationCidrBlock: pulumi.Output<string>;
/**
* The id of direct connect gateway.
*/
readonly directConnectGatewayId: pulumi.Output<string>;
/**
* The id of direct connect gateway route.
*/
readonly directConnectGatewayRouteId: pulumi.Output<string>;
/**
* The id of next hop.
*/
readonly nextHopId: pulumi.Output<string>;
/**
* The type of next hop.
*/
readonly nextHopType: pulumi.Output<string>;
/**
* The type of route.
*/
readonly routeType: pulumi.Output<string>;
/**
* The status info.
*/
readonly status: pulumi.Output<string>;
/**
* Create a GatewayRoute 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: GatewayRouteArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering GatewayRoute resources.
*/
export interface GatewayRouteState {
/**
* The id of account.
*/
accountId?: pulumi.Input<string>;
/**
* The create time.
*/
creationTime?: pulumi.Input<string>;
/**
* The cidr block.
*/
destinationCidrBlock?: pulumi.Input<string>;
/**
* The id of direct connect gateway.
*/
directConnectGatewayId?: pulumi.Input<string>;
/**
* The id of direct connect gateway route.
*/
directConnectGatewayRouteId?: pulumi.Input<string>;
/**
* The id of next hop.
*/
nextHopId?: pulumi.Input<string>;
/**
* The type of next hop.
*/
nextHopType?: pulumi.Input<string>;
/**
* The type of route.
*/
routeType?: pulumi.Input<string>;
/**
* The status info.
*/
status?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a GatewayRoute resource.
*/
export interface GatewayRouteArgs {
/**
* The cidr block.
*/
destinationCidrBlock: pulumi.Input<string>;
/**
* The id of direct connect gateway.
*/
directConnectGatewayId: pulumi.Input<string>;
/**
* The id of next hop.
*/
nextHopId: pulumi.Input<string>;
}