UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

120 lines (119 loc) 4.38 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a VIP resource within HuaweiCloud IEC. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const iecSubnetId = config.requireObject("iecSubnetId"); * const vipTest = new huaweicloud.iec.Vip("vipTest", {subnetId: iecSubnetId}); * ``` * * ## Import * * IEC VIP can be imported using the `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Iec/vip:Vip vip_test 61fd8d31-8f92-4526-a5f5-07ec303e69e7 * ``` */ export declare class Vip extends pulumi.CustomResource { /** * Get an existing Vip 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?: VipState, opts?: pulumi.CustomResourceOptions): Vip; /** * Returns true if the given object is an instance of Vip. 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 Vip; /** * An array of IP addresses of the ports to attach the vip to. */ readonly allowedAddresses: pulumi.Output<string[]>; /** * Specifies the IP address desired in the subnet for this vip. * If you don't specify it, an available IP address from the specified subnet will be allocated to this vip. * Changing this parameter creates a new vip resource. */ readonly ipAddress: pulumi.Output<string>; /** * The MAC address of the vip. */ readonly macAddress: pulumi.Output<string>; /** * Specifies an array of IDs of the ports to attach the vip to. */ readonly portIds: pulumi.Output<string[] | undefined>; /** * Specifies the ID of the network to which the vip belongs. * Changing this parameter creates a new vip resource. */ readonly subnetId: pulumi.Output<string>; /** * Create a Vip 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: VipArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Vip resources. */ export interface VipState { /** * An array of IP addresses of the ports to attach the vip to. */ allowedAddresses?: pulumi.Input<pulumi.Input<string>[]>; /** * Specifies the IP address desired in the subnet for this vip. * If you don't specify it, an available IP address from the specified subnet will be allocated to this vip. * Changing this parameter creates a new vip resource. */ ipAddress?: pulumi.Input<string>; /** * The MAC address of the vip. */ macAddress?: pulumi.Input<string>; /** * Specifies an array of IDs of the ports to attach the vip to. */ portIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Specifies the ID of the network to which the vip belongs. * Changing this parameter creates a new vip resource. */ subnetId?: pulumi.Input<string>; } /** * The set of arguments for constructing a Vip resource. */ export interface VipArgs { /** * Specifies the IP address desired in the subnet for this vip. * If you don't specify it, an available IP address from the specified subnet will be allocated to this vip. * Changing this parameter creates a new vip resource. */ ipAddress?: pulumi.Input<string>; /** * Specifies an array of IDs of the ports to attach the vip to. */ portIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Specifies the ID of the network to which the vip belongs. * Changing this parameter creates a new vip resource. */ subnetId: pulumi.Input<string>; }