@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
199 lines (198 loc) • 6.05 kB
TypeScript
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
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.transit_router.TransitRouter("foo", {
* asn: 4294967294,
* description: "acc-test",
* projectName: "default",
* tags: [{
* key: "k1",
* value: "v1",
* }],
* transitRouterName: "acc-test-tr",
* });
* ```
*
* ## Import
*
* TransitRouter can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:transit_router/transitRouter:TransitRouter default tr-2d6fr7mzya2gw58ozfes5g2oh
* ```
*/
export declare class TransitRouter extends pulumi.CustomResource {
/**
* Get an existing TransitRouter 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?: TransitRouterState, opts?: pulumi.CustomResourceOptions): TransitRouter;
/**
* Returns true if the given object is an instance of TransitRouter. 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 TransitRouter;
/**
* The ID of account.
*/
readonly accountId: pulumi.Output<string>;
/**
* The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
*/
readonly asn: pulumi.Output<number>;
/**
* The business status of the transit router.
*/
readonly businessStatus: pulumi.Output<string>;
/**
* The create time.
*/
readonly creationTime: pulumi.Output<string>;
/**
* The description of the transit router.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The grant status of the transit router.
*/
readonly grantStatus: pulumi.Output<string>;
/**
* The overdue time.
*/
readonly overdueTime: pulumi.Output<string>;
/**
* The ProjectName of the transit router.
*/
readonly projectName: pulumi.Output<string>;
/**
* The status of the transit router.
*/
readonly status: pulumi.Output<string>;
/**
* Tags.
*/
readonly tags: pulumi.Output<outputs.transit_router.TransitRouterTag[] | undefined>;
/**
* The attachments of transit router.
*/
readonly transitRouterAttachments: pulumi.Output<outputs.transit_router.TransitRouterTransitRouterAttachment[]>;
/**
* The ID of the transit router.
*/
readonly transitRouterId: pulumi.Output<string>;
/**
* The name of the transit router.
*/
readonly transitRouterName: pulumi.Output<string>;
/**
* The update time.
*/
readonly updateTime: pulumi.Output<string>;
/**
* Create a TransitRouter 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?: TransitRouterArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering TransitRouter resources.
*/
export interface TransitRouterState {
/**
* The ID of account.
*/
accountId?: pulumi.Input<string>;
/**
* The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
*/
asn?: pulumi.Input<number>;
/**
* The business status of the transit router.
*/
businessStatus?: pulumi.Input<string>;
/**
* The create time.
*/
creationTime?: pulumi.Input<string>;
/**
* The description of the transit router.
*/
description?: pulumi.Input<string>;
/**
* The grant status of the transit router.
*/
grantStatus?: pulumi.Input<string>;
/**
* The overdue time.
*/
overdueTime?: pulumi.Input<string>;
/**
* The ProjectName of the transit router.
*/
projectName?: pulumi.Input<string>;
/**
* The status of the transit router.
*/
status?: pulumi.Input<string>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.transit_router.TransitRouterTag>[]>;
/**
* The attachments of transit router.
*/
transitRouterAttachments?: pulumi.Input<pulumi.Input<inputs.transit_router.TransitRouterTransitRouterAttachment>[]>;
/**
* The ID of the transit router.
*/
transitRouterId?: pulumi.Input<string>;
/**
* The name of the transit router.
*/
transitRouterName?: pulumi.Input<string>;
/**
* The update time.
*/
updateTime?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a TransitRouter resource.
*/
export interface TransitRouterArgs {
/**
* The asn of the transit router. Valid value range in 64512-65534 and 4200000000-4294967294. Default is 64512.
*/
asn?: pulumi.Input<number>;
/**
* The description of the transit router.
*/
description?: pulumi.Input<string>;
/**
* The ProjectName of the transit router.
*/
projectName?: pulumi.Input<string>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.transit_router.TransitRouterTag>[]>;
/**
* The name of the transit router.
*/
transitRouterName?: pulumi.Input<string>;
}