alicloud.ecs.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 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:
- Allocation
Id string The allocation EIP ID.
- Instance
Id 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 tofalse
.- Instance
Type string The type of cloud product that the eip instance to bind. Valid values:
EcsInstance
,SlbInstance
,Nat
,NetworkInterface
andHaVip
.- Private
Ip stringAddress The private IP address in the network segment of the vswitch which has been assigned.
- Allocation
Id string The allocation EIP ID.
- Instance
Id 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 tofalse
.- Instance
Type string The type of cloud product that the eip instance to bind. Valid values:
EcsInstance
,SlbInstance
,Nat
,NetworkInterface
andHaVip
.- Private
Ip stringAddress The private IP address in the network segment of the vswitch which has been assigned.
- allocation
Id String The allocation EIP ID.
- instance
Id 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 tofalse
.- instance
Type String The type of cloud product that the eip instance to bind. Valid values:
EcsInstance
,SlbInstance
,Nat
,NetworkInterface
andHaVip
.- private
Ip StringAddress The private IP address in the network segment of the vswitch which has been assigned.
- allocation
Id string The allocation EIP ID.
- instance
Id 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 tofalse
.- instance
Type string The type of cloud product that the eip instance to bind. Valid values:
EcsInstance
,SlbInstance
,Nat
,NetworkInterface
andHaVip
.- private
Ip stringAddress 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 tofalse
.- instance_
type str The type of cloud product that the eip instance to bind. Valid values:
EcsInstance
,SlbInstance
,Nat
,NetworkInterface
andHaVip
.- private_
ip_ straddress The private IP address in the network segment of the vswitch which has been assigned.
- allocation
Id String The allocation EIP ID.
- instance
Id 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 tofalse
.- instance
Type String The type of cloud product that the eip instance to bind. Valid values:
EcsInstance
,SlbInstance
,Nat
,NetworkInterface
andHaVip
.- private
Ip StringAddress 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 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.
- Allocation
Id 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 tofalse
.- Instance
Id string The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
- Instance
Type string The type of cloud product that the eip instance to bind. Valid values:
EcsInstance
,SlbInstance
,Nat
,NetworkInterface
andHaVip
.- Private
Ip stringAddress The private IP address in the network segment of the vswitch which has been assigned.
- Allocation
Id 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 tofalse
.- Instance
Id string The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
- Instance
Type string The type of cloud product that the eip instance to bind. Valid values:
EcsInstance
,SlbInstance
,Nat
,NetworkInterface
andHaVip
.- Private
Ip stringAddress The private IP address in the network segment of the vswitch which has been assigned.
- allocation
Id 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 tofalse
.- instance
Id String The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
- instance
Type String The type of cloud product that the eip instance to bind. Valid values:
EcsInstance
,SlbInstance
,Nat
,NetworkInterface
andHaVip
.- private
Ip StringAddress The private IP address in the network segment of the vswitch which has been assigned.
- allocation
Id 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 tofalse
.- instance
Id string The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
- instance
Type string The type of cloud product that the eip instance to bind. Valid values:
EcsInstance
,SlbInstance
,Nat
,NetworkInterface
andHaVip
.- private
Ip stringAddress 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 tofalse
.- 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
andHaVip
.- private_
ip_ straddress The private IP address in the network segment of the vswitch which has been assigned.
- allocation
Id 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 tofalse
.- instance
Id String The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
- instance
Type String The type of cloud product that the eip instance to bind. Valid values:
EcsInstance
,SlbInstance
,Nat
,NetworkInterface
andHaVip
.- private
Ip StringAddress The private IP address in the network segment of the vswitch which has been assigned.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.