Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

EipAssociation

Import

Elastic IP address association can be imported using the id, e.g.

 $ pulumi import alicloud:ecs/eipAssociation:EipAssociation example eip-abc12345678:i-abc12355

Create a EipAssociation Resource

new EipAssociation(name: string, args: EipAssociationArgs, opts?: CustomResourceOptions);
@overload
def EipAssociation(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   allocation_id: Optional[str] = None,
                   force: Optional[bool] = None,
                   instance_id: Optional[str] = None,
                   instance_type: Optional[str] = None,
                   private_ip_address: Optional[str] = None)
@overload
def EipAssociation(resource_name: str,
                   args: EipAssociationArgs,
                   opts: Optional[ResourceOptions] = None)
func NewEipAssociation(ctx *Context, name string, args EipAssociationArgs, opts ...ResourceOption) (*EipAssociation, error)
public EipAssociation(string name, EipAssociationArgs args, CustomResourceOptions? opts = null)
public EipAssociation(String name, EipAssociationArgs args)
public EipAssociation(String name, EipAssociationArgs args, CustomResourceOptions options)
type: alicloud:ecs:EipAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args EipAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args EipAssociationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args EipAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EipAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args EipAssociationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

EipAssociation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The EipAssociation resource accepts the following input properties:

AllocationId string

The allocation EIP ID.

InstanceId string

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

Force bool

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

InstanceType string

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

PrivateIpAddress string

The private IP address in the network segment of the vswitch which has been assigned.

AllocationId string

The allocation EIP ID.

InstanceId string

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

Force bool

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

InstanceType string

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

PrivateIpAddress string

The private IP address in the network segment of the vswitch which has been assigned.

allocationId String

The allocation EIP ID.

instanceId String

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

force Boolean

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

instanceType String

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

privateIpAddress String

The private IP address in the network segment of the vswitch which has been assigned.

allocationId string

The allocation EIP ID.

instanceId string

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

force boolean

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

instanceType string

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

privateIpAddress string

The private IP address in the network segment of the vswitch which has been assigned.

allocation_id str

The allocation EIP ID.

instance_id str

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

force bool

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

instance_type str

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

private_ip_address str

The private IP address in the network segment of the vswitch which has been assigned.

allocationId String

The allocation EIP ID.

instanceId String

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

force Boolean

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

instanceType String

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

privateIpAddress String

The private IP address in the network segment of the vswitch which has been assigned.

Outputs

All input properties are implicitly available as output properties. Additionally, the EipAssociation resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing EipAssociation Resource

Get an existing EipAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: EipAssociationState, opts?: CustomResourceOptions): EipAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        allocation_id: Optional[str] = None,
        force: Optional[bool] = None,
        instance_id: Optional[str] = None,
        instance_type: Optional[str] = None,
        private_ip_address: Optional[str] = None) -> EipAssociation
func GetEipAssociation(ctx *Context, name string, id IDInput, state *EipAssociationState, opts ...ResourceOption) (*EipAssociation, error)
public static EipAssociation Get(string name, Input<string> id, EipAssociationState? state, CustomResourceOptions? opts = null)
public static EipAssociation get(String name, Output<String> id, EipAssociationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AllocationId string

The allocation EIP ID.

Force bool

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

InstanceId string

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

InstanceType string

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

PrivateIpAddress string

The private IP address in the network segment of the vswitch which has been assigned.

AllocationId string

The allocation EIP ID.

Force bool

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

InstanceId string

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

InstanceType string

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

PrivateIpAddress string

The private IP address in the network segment of the vswitch which has been assigned.

allocationId String

The allocation EIP ID.

force Boolean

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

instanceId String

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

instanceType String

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

privateIpAddress String

The private IP address in the network segment of the vswitch which has been assigned.

allocationId string

The allocation EIP ID.

force boolean

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

instanceId string

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

instanceType string

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

privateIpAddress string

The private IP address in the network segment of the vswitch which has been assigned.

allocation_id str

The allocation EIP ID.

force bool

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

instance_id str

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

instance_type str

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

private_ip_address str

The private IP address in the network segment of the vswitch which has been assigned.

allocationId String

The allocation EIP ID.

force Boolean

When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for true can unassociation any way. Default to false.

instanceId String

The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.

instanceType String

The type of cloud product that the eip instance to bind. Valid values: EcsInstance, SlbInstance, Nat, NetworkInterface and HaVip.

privateIpAddress String

The private IP address in the network segment of the vswitch which has been assigned.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.