UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

150 lines (149 loc) 4.59 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage cen attach instance * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-vpc", * cidrBlock: "172.16.0.0/16", * }); * const fooCen = new volcengine.cen.Cen("fooCen", { * cenName: "acc-test-cen", * description: "acc-test", * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * }); * const fooAttachInstance = new volcengine.cen.AttachInstance("fooAttachInstance", { * cenId: fooCen.id, * instanceId: fooVpc.id, * instanceRegionId: "cn-beijing", * instanceType: "VPC", * }); * ``` * * ## Import * * Cen attach instance can be imported using the CenId:InstanceId:InstanceType:RegionId, e.g. * * ```sh * $ pulumi import volcengine:cen/attachInstance:AttachInstance default cen-7qthudw0ll6jmc***:vpc-2fexiqjlgjif45oxruvso****:VPC:cn-beijing * ``` */ export declare class AttachInstance extends pulumi.CustomResource { /** * Get an existing AttachInstance 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?: AttachInstanceState, opts?: pulumi.CustomResourceOptions): AttachInstance; /** * Returns true if the given object is an instance of AttachInstance. 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 AttachInstance; /** * The ID of the cen. */ readonly cenId: pulumi.Output<string>; /** * The create time of the cen attaching instance. */ readonly creationTime: pulumi.Output<string>; /** * The ID of the instance. */ readonly instanceId: pulumi.Output<string>; /** * The owner ID of the instance. */ readonly instanceOwnerId: pulumi.Output<string>; /** * The region ID of the instance. */ readonly instanceRegionId: pulumi.Output<string>; /** * The type of the instance. Valid values: `VPC`, `DCGW`. */ readonly instanceType: pulumi.Output<string>; /** * The status of the cen attaching instance. */ readonly status: pulumi.Output<string>; /** * Create a AttachInstance 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: AttachInstanceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AttachInstance resources. */ export interface AttachInstanceState { /** * The ID of the cen. */ cenId?: pulumi.Input<string>; /** * The create time of the cen attaching instance. */ creationTime?: pulumi.Input<string>; /** * The ID of the instance. */ instanceId?: pulumi.Input<string>; /** * The owner ID of the instance. */ instanceOwnerId?: pulumi.Input<string>; /** * The region ID of the instance. */ instanceRegionId?: pulumi.Input<string>; /** * The type of the instance. Valid values: `VPC`, `DCGW`. */ instanceType?: pulumi.Input<string>; /** * The status of the cen attaching instance. */ status?: pulumi.Input<string>; } /** * The set of arguments for constructing a AttachInstance resource. */ export interface AttachInstanceArgs { /** * The ID of the cen. */ cenId: pulumi.Input<string>; /** * The ID of the instance. */ instanceId: pulumi.Input<string>; /** * The owner ID of the instance. */ instanceOwnerId?: pulumi.Input<string>; /** * The region ID of the instance. */ instanceRegionId: pulumi.Input<string>; /** * The type of the instance. Valid values: `VPC`, `DCGW`. */ instanceType: pulumi.Input<string>; }