@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
140 lines (139 loc) • 5.89 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* * Associates the **IPv4** address of an ECS instance to a specified EIP.
* * Associates the **IPv6** address of an ECS instance to a specified **Shared** Bandwidth.
*
* ## Example Usage
*
* ## Import
*
* This resource can be imported using the related `eip address` or `bandwidth_id`, `instance_id` and `fixed_ip`, separated by slashes, e.g.
*
* ```sh
* $ pulumi import huaweicloud:Ecs/eipAssociate:EipAssociate bind <eip address or bandwidth_id>/<instance_id>/<fixed_ip>
* ```
*/
export declare class EipAssociate extends pulumi.CustomResource {
/**
* Get an existing EipAssociate 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?: EipAssociateState, opts?: pulumi.CustomResourceOptions): EipAssociate;
/**
* Returns true if the given object is an instance of EipAssociate. 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 EipAssociate;
/**
* Specifies the **shared** bandwidth ID to associate.
* It's **mandatory** when you want to associate the ECS instance with a specified shared bandwidth.
* Changing this creates a new resource.
*/
readonly bandwidthId: pulumi.Output<string | undefined>;
/**
* Specifies the private IP address to direct traffic to. It's **mandatory**
* and must be a valid IPv6 address when you want to associate the ECS instance with a specified shared bandwidth.
* Changing this creates a new resource.
*/
readonly fixedIp: pulumi.Output<string>;
/**
* Specifies the ID of ECS instance to associated with.
* Changing this creates a new resource.
*/
readonly instanceId: pulumi.Output<string>;
/**
* The port ID of the ECS instance that associated with.
*/
readonly portId: pulumi.Output<string>;
/**
* Specifies the EIP address to associate. It's **mandatory**
* when you want to associate the ECS instance with an EIP. Changing this creates a new resource.
*/
readonly publicIp: pulumi.Output<string | undefined>;
/**
* Specifies the region in which to create the associated resource.
* If omitted, the provider-level region will be used. Changing this creates a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* Create a EipAssociate 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: EipAssociateArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering EipAssociate resources.
*/
export interface EipAssociateState {
/**
* Specifies the **shared** bandwidth ID to associate.
* It's **mandatory** when you want to associate the ECS instance with a specified shared bandwidth.
* Changing this creates a new resource.
*/
bandwidthId?: pulumi.Input<string>;
/**
* Specifies the private IP address to direct traffic to. It's **mandatory**
* and must be a valid IPv6 address when you want to associate the ECS instance with a specified shared bandwidth.
* Changing this creates a new resource.
*/
fixedIp?: pulumi.Input<string>;
/**
* Specifies the ID of ECS instance to associated with.
* Changing this creates a new resource.
*/
instanceId?: pulumi.Input<string>;
/**
* The port ID of the ECS instance that associated with.
*/
portId?: pulumi.Input<string>;
/**
* Specifies the EIP address to associate. It's **mandatory**
* when you want to associate the ECS instance with an EIP. Changing this creates a new resource.
*/
publicIp?: pulumi.Input<string>;
/**
* Specifies the region in which to create the associated resource.
* If omitted, the provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a EipAssociate resource.
*/
export interface EipAssociateArgs {
/**
* Specifies the **shared** bandwidth ID to associate.
* It's **mandatory** when you want to associate the ECS instance with a specified shared bandwidth.
* Changing this creates a new resource.
*/
bandwidthId?: pulumi.Input<string>;
/**
* Specifies the private IP address to direct traffic to. It's **mandatory**
* and must be a valid IPv6 address when you want to associate the ECS instance with a specified shared bandwidth.
* Changing this creates a new resource.
*/
fixedIp?: pulumi.Input<string>;
/**
* Specifies the ID of ECS instance to associated with.
* Changing this creates a new resource.
*/
instanceId: pulumi.Input<string>;
/**
* Specifies the EIP address to associate. It's **mandatory**
* when you want to associate the ECS instance with an EIP. Changing this creates a new resource.
*/
publicIp?: pulumi.Input<string>;
/**
* Specifies the region in which to create the associated resource.
* If omitted, the provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
}