moveAddressToVpc

This action is deprecated.

Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.

Samples


fun main() { 
   //sampleStart 
   // This example moves the specified Elastic IP address to the EC2 VPC platform.
val resp = ec2Client.moveAddressToVpc {
    publicIp = "54.123.4.56"
} 
   //sampleEnd
}