The AssociateAddress operation associates an elastic IP address with an instance.
If the IP address is currently assigned to another instance, the IP address is assigned to the new instance. This is an idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.
Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public virtual AssociateAddressResponse AssociateAddress( AssociateAddressRequest associateAddressRequest )
Parameters
- associateAddressRequest
-
Type: Amazon.EC2.Model.AssociateAddressRequest
Container for the necessary parameters to execute the AssociateAddress service method on AmazonEC2.
Return Value
Type: Amazon.EC2.Model.AssociateAddressResponse
The response from the AssociateAddress service method, as returned by AmazonEC2.
Type: Amazon.EC2.Model.AssociateAddressResponse
The response from the AssociateAddress service method, as returned by AmazonEC2.
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5