UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

92 lines (91 loc) 3.11 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage vpc user cidr block associate * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.vpc.Vpc("foo", { * vpcName: "acc-test-vpc", * cidrBlock: "10.200.0.0/16", * projectName: "default", * }); * const foo1 = new volcengine.vpc.UserCidrBlockAssociate("foo1", { * vpcId: foo.id, * userCidrBlock: "10.201.0.0/16", * }); * const foo2 = new volcengine.vpc.UserCidrBlockAssociate("foo2", { * vpcId: foo.id, * userCidrBlock: "10.202.0.0/16", * }); * const foo3 = new volcengine.vpc.UserCidrBlockAssociate("foo3", { * vpcId: foo.id, * userCidrBlock: "10.203.0.0/16", * }); * ``` * * ## Import * * The VpcCidrBlockAssociate is not support import. */ export declare class UserCidrBlockAssociate extends pulumi.CustomResource { /** * Get an existing UserCidrBlockAssociate 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?: UserCidrBlockAssociateState, opts?: pulumi.CustomResourceOptions): UserCidrBlockAssociate; /** * Returns true if the given object is an instance of UserCidrBlockAssociate. 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 UserCidrBlockAssociate; /** * The user cidr block of the VPC. */ readonly userCidrBlock: pulumi.Output<string>; /** * The id of the VPC. */ readonly vpcId: pulumi.Output<string>; /** * Create a UserCidrBlockAssociate 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: UserCidrBlockAssociateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering UserCidrBlockAssociate resources. */ export interface UserCidrBlockAssociateState { /** * The user cidr block of the VPC. */ userCidrBlock?: pulumi.Input<string>; /** * The id of the VPC. */ vpcId?: pulumi.Input<string>; } /** * The set of arguments for constructing a UserCidrBlockAssociate resource. */ export interface UserCidrBlockAssociateArgs { /** * The user cidr block of the VPC. */ userCidrBlock: pulumi.Input<string>; /** * The id of the VPC. */ vpcId: pulumi.Input<string>; }