@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
156 lines (155 loc) • 5.12 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a network VIP resource within HuaweiCloud VPC.
*
* ## Import
*
* Network VIPs can be imported using their `id`, e.g.bash
*
* ```sh
* $ pulumi import huaweicloud:Vpc/vip:Vip test ce595799-da26-4015-8db5-7733c6db292e
* ```
*/
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;
/**
* The device owner of the VIP.
*/
readonly deviceOwner: pulumi.Output<string>;
/**
* Specifies the IP address desired in the subnet for this VIP.
* Changing this will create a new VIP resource.
*/
readonly ipAddress: pulumi.Output<string>;
/**
* Specifies the IP version, either `4` (default) or `6`.
* Changing this will create a new VIP resource.
*/
readonly ipVersion: pulumi.Output<number>;
/**
* The MAC address of the VIP.
*/
readonly macAddress: pulumi.Output<string>;
/**
* Specifies a unique name for the VIP.
*/
readonly name: pulumi.Output<string>;
/**
* Specifies the network ID of the VPC subnet to which the VIP belongs.
* Changing this will create a new VIP resource.
*/
readonly networkId: pulumi.Output<string>;
/**
* Specifies the region in which to create the VIP.
* If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
*/
readonly region: pulumi.Output<string>;
/**
* The VIP status.
*/
readonly status: pulumi.Output<string>;
/**
* @deprecated use ip_version instead
*/
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 {
/**
* The device owner of the VIP.
*/
deviceOwner?: pulumi.Input<string>;
/**
* Specifies the IP address desired in the subnet for this VIP.
* Changing this will create a new VIP resource.
*/
ipAddress?: pulumi.Input<string>;
/**
* Specifies the IP version, either `4` (default) or `6`.
* Changing this will create a new VIP resource.
*/
ipVersion?: pulumi.Input<number>;
/**
* The MAC address of the VIP.
*/
macAddress?: pulumi.Input<string>;
/**
* Specifies a unique name for the VIP.
*/
name?: pulumi.Input<string>;
/**
* Specifies the network ID of the VPC subnet to which the VIP belongs.
* Changing this will create a new VIP resource.
*/
networkId?: pulumi.Input<string>;
/**
* Specifies the region in which to create the VIP.
* If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
*/
region?: pulumi.Input<string>;
/**
* The VIP status.
*/
status?: pulumi.Input<string>;
/**
* @deprecated use ip_version instead
*/
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.
* Changing this will create a new VIP resource.
*/
ipAddress?: pulumi.Input<string>;
/**
* Specifies the IP version, either `4` (default) or `6`.
* Changing this will create a new VIP resource.
*/
ipVersion?: pulumi.Input<number>;
/**
* Specifies a unique name for the VIP.
*/
name?: pulumi.Input<string>;
/**
* Specifies the network ID of the VPC subnet to which the VIP belongs.
* Changing this will create a new VIP resource.
*/
networkId: pulumi.Input<string>;
/**
* Specifies the region in which to create the VIP.
* If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
*/
region?: pulumi.Input<string>;
/**
* @deprecated use ip_version instead
*/
subnetId?: pulumi.Input<string>;
}