Skip to content

EC2  >  Operations  >  restore_address_to_classic

restore_address_to_classic

Operation

restore_address_to_classic async

restore_address_to_classic(request: RestoreAddressToClassicInput | RestoreAddressToClassicInputDict, /, *, plugins: list[Plugin] | None = None) -> RestoreAddressToClassicOutput
restore_address_to_classic(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[RestoreAddressToClassicInputDict]) -> RestoreAddressToClassicOutput
Note

This action is deprecated.

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.

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
RestoreAddressToClassicOutput

An instance of RestoreAddressToClassicOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

RestoreAddressToClassicInput dataclass

Bases: _SerdeShape

Dataclass for RestoreAddressToClassicInput structure.

Attributes
dry_run class-attribute instance-attribute
dry_run: bool | None = ...

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

public_ip class-attribute instance-attribute
public_ip: str | None = ...

The Elastic IP address.

Dictionaries

RestoreAddressToClassicInputDict

Bases: TypedDict

Dictionary form of RestoreAddressToClassicInput.

Attributes
dry_run instance-attribute
dry_run: bool | None

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

public_ip instance-attribute
public_ip: Required[str]

The Elastic IP address.

Output

RestoreAddressToClassicOutput dataclass

Bases: _SerdeShape

Dataclass for RestoreAddressToClassicOutput structure.

Attributes

public_ip class-attribute instance-attribute
public_ip: str | None = ...

The Elastic IP address.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

status class-attribute instance-attribute
status: str | None = ...

The move status for the IP address.