@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
128 lines (127 loc) • 4.39 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Using this resource, one or more NICs (to which the ECS instance belongs) can be bound to the VIP.
*
* > A VIP can only have one resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const vipId = config.requireObject("vipId");
* const nicPortIds = config.requireObject("nicPortIds");
* const vipAssociated = new huaweicloud.vpc.VipAssociate("vipAssociated", {
* vipId: vipId,
* portIds: nicPortIds,
* });
* ```
*
* ## Import
*
* Vip associate can be imported using the `vip_id` and port IDs separated by slashes (no limit on the number of port IDs), e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Vpc/vipAssociate:VipAssociate vip_associated vip_id/port1_id/port2_id
* ```
*/
export declare class VipAssociate extends pulumi.CustomResource {
/**
* Get an existing VipAssociate 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?: VipAssociateState, opts?: pulumi.CustomResourceOptions): VipAssociate;
/**
* Returns true if the given object is an instance of VipAssociate. 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 VipAssociate;
/**
* The IP addresses of ports to attach the vip to.
*/
readonly ipAddresses: pulumi.Output<string[]>;
/**
* An array of one or more IDs of the ports to attach the vip to.
*/
readonly portIds: pulumi.Output<string[]>;
/**
* The region in which to create the vip associate resource. If omitted, the
* provider-level region will be used.
*/
readonly region: pulumi.Output<string>;
/**
* The ID of vip to attach the ports to.
*/
readonly vipId: pulumi.Output<string>;
/**
* The IP address in the subnet for this vip.
*/
readonly vipIpAddress: pulumi.Output<string>;
/**
* The ID of the subnet this vip connects to.
*/
readonly vipSubnetId: pulumi.Output<string>;
/**
* Create a VipAssociate 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: VipAssociateArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering VipAssociate resources.
*/
export interface VipAssociateState {
/**
* The IP addresses of ports to attach the vip to.
*/
ipAddresses?: pulumi.Input<pulumi.Input<string>[]>;
/**
* An array of one or more IDs of the ports to attach the vip to.
*/
portIds?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The region in which to create the vip associate resource. If omitted, the
* provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* The ID of vip to attach the ports to.
*/
vipId?: pulumi.Input<string>;
/**
* The IP address in the subnet for this vip.
*/
vipIpAddress?: pulumi.Input<string>;
/**
* The ID of the subnet this vip connects to.
*/
vipSubnetId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a VipAssociate resource.
*/
export interface VipAssociateArgs {
/**
* An array of one or more IDs of the ports to attach the vip to.
*/
portIds: pulumi.Input<pulumi.Input<string>[]>;
/**
* The region in which to create the vip associate resource. If omitted, the
* provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* The ID of vip to attach the ports to.
*/
vipId: pulumi.Input<string>;
}