@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
192 lines (191 loc) • 5.92 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a eip resource within HuaweiCloud IEC.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const iecSites = huaweicloud.Iec.getSites({});
* const eipTest = new huaweicloud.iec.Eip("eipTest", {siteId: iecSites.then(iecSites => iecSites.sites?[0]?.id)});
* ```
*
* ## Import
*
* IEC EIPs can be imported using the `id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Iec/eip:Eip eip_test b5ad19d1-57d1-48fd-aab7-1378f9bee169
* ```
*/
export declare class Eip extends pulumi.CustomResource {
/**
* Get an existing Eip 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?: EipState, opts?: pulumi.CustomResourceOptions): Eip;
/**
* Returns true if the given object is an instance of Eip. 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 Eip;
/**
* The id of bandwidth.
*/
readonly bandwidthId: pulumi.Output<string>;
/**
* The name of bandwidth.
*/
readonly bandwidthName: pulumi.Output<string>;
/**
* Whether the bandwidth is shared or exclusive.
*/
readonly bandwidthShareType: pulumi.Output<string>;
/**
* The size of bandwidth.
*/
readonly bandwidthSize: pulumi.Output<number>;
/**
* The version of elastic IP address.
*/
readonly ipVersion: pulumi.Output<number>;
/**
* Specifies the line ID of IEC service site.
* Changing this parameter creates a new resource.
*/
readonly lineId: pulumi.Output<string>;
/**
* Specifies the port ID which this eip will associate with.
*/
readonly portId: pulumi.Output<string>;
/**
* The address of private IP.
*/
readonly privateIp: pulumi.Output<string>;
/**
* The address of elastic IP.
*/
readonly publicIp: pulumi.Output<string>;
/**
* The region in which to create the resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* Specifies the ID of IEC service site. Changing this parameter creates a new
* resource.
*/
readonly siteId: pulumi.Output<string>;
/**
* The located information of the IEC site. It contains area, province and city.
*/
readonly siteInfo: pulumi.Output<string>;
/**
* The status of elastic IP.
*/
readonly status: pulumi.Output<string>;
/**
* Create a Eip 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: EipArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Eip resources.
*/
export interface EipState {
/**
* The id of bandwidth.
*/
bandwidthId?: pulumi.Input<string>;
/**
* The name of bandwidth.
*/
bandwidthName?: pulumi.Input<string>;
/**
* Whether the bandwidth is shared or exclusive.
*/
bandwidthShareType?: pulumi.Input<string>;
/**
* The size of bandwidth.
*/
bandwidthSize?: pulumi.Input<number>;
/**
* The version of elastic IP address.
*/
ipVersion?: pulumi.Input<number>;
/**
* Specifies the line ID of IEC service site.
* Changing this parameter creates a new resource.
*/
lineId?: pulumi.Input<string>;
/**
* Specifies the port ID which this eip will associate with.
*/
portId?: pulumi.Input<string>;
/**
* The address of private IP.
*/
privateIp?: pulumi.Input<string>;
/**
* The address of elastic IP.
*/
publicIp?: pulumi.Input<string>;
/**
* The region in which to create the resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the ID of IEC service site. Changing this parameter creates a new
* resource.
*/
siteId?: pulumi.Input<string>;
/**
* The located information of the IEC site. It contains area, province and city.
*/
siteInfo?: pulumi.Input<string>;
/**
* The status of elastic IP.
*/
status?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Eip resource.
*/
export interface EipArgs {
/**
* The version of elastic IP address.
*/
ipVersion?: pulumi.Input<number>;
/**
* Specifies the line ID of IEC service site.
* Changing this parameter creates a new resource.
*/
lineId?: pulumi.Input<string>;
/**
* Specifies the port ID which this eip will associate with.
*/
portId?: pulumi.Input<string>;
/**
* The region in which to create the resource. If omitted, the
* provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the ID of IEC service site. Changing this parameter creates a new
* resource.
*/
siteId: pulumi.Input<string>;
}