UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

92 lines (91 loc) 3.65 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage private zone user vpc authorization * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.private_zone.UserVpcAuthorization("foo", {accountId: "2100278462"}); * ``` * * ## Import * * PrivateZoneUserVpcAuthorization can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:private_zone/userVpcAuthorization:UserVpcAuthorization default resource_id * ``` */ export declare class UserVpcAuthorization extends pulumi.CustomResource { /** * Get an existing UserVpcAuthorization 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?: UserVpcAuthorizationState, opts?: pulumi.CustomResourceOptions): UserVpcAuthorization; /** * Returns true if the given object is an instance of UserVpcAuthorization. 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 UserVpcAuthorization; /** * The account Id which authorizes the private zone resource. */ readonly accountId: pulumi.Output<string>; /** * The auth type of the private zone resource. 0: authorized by organization, 1: authorized by verify code. Default is 0. */ readonly authType: pulumi.Output<number | undefined>; /** * The verify code of the private zone resource. This field is required when the authType is 1. */ readonly verifyCode: pulumi.Output<string | undefined>; /** * Create a UserVpcAuthorization 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: UserVpcAuthorizationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering UserVpcAuthorization resources. */ export interface UserVpcAuthorizationState { /** * The account Id which authorizes the private zone resource. */ accountId?: pulumi.Input<string>; /** * The auth type of the private zone resource. 0: authorized by organization, 1: authorized by verify code. Default is 0. */ authType?: pulumi.Input<number>; /** * The verify code of the private zone resource. This field is required when the authType is 1. */ verifyCode?: pulumi.Input<string>; } /** * The set of arguments for constructing a UserVpcAuthorization resource. */ export interface UserVpcAuthorizationArgs { /** * The account Id which authorizes the private zone resource. */ accountId: pulumi.Input<string>; /** * The auth type of the private zone resource. 0: authorized by organization, 1: authorized by verify code. Default is 0. */ authType?: pulumi.Input<number>; /** * The verify code of the private zone resource. This field is required when the authType is 1. */ verifyCode?: pulumi.Input<string>; }