AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the RestoreAddressToClassic operation.
Restores an Elastic IP address that was previously moved to the EC2-VPC platform back
to the EC2-Classic platform. You cannot move an Elastic IP address that was originally
allocated for use in EC2-VPC. The Elastic IP address must not be associated with an
instance or network interface.
We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC.
For more information, see Migrate
from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class RestoreAddressToClassicRequest : AmazonEC2Request IAmazonWebServiceRequest
The RestoreAddressToClassicRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
RestoreAddressToClassicRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
PublicIp | System.String |
Gets and sets the property PublicIp. The Elastic IP address. |
This example restores the specified Elastic IP address to the EC2-Classic platform.
var client = new AmazonEC2Client(); var response = client.RestoreAddressToClassic(new RestoreAddressToClassicRequest { PublicIp = "198.51.100.0" }); string publicIp = response.PublicIp; string status = response.Status;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5