Skip to content

move_address_to_vpc

Operation

move_address_to_vpc

move_address_to_vpc(request: MoveAddressToVpcInput | MoveAddressToVpcInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[MoveAddressToVpcInputDict]) -> MoveAddressToVpcOutput
Note

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. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.

Parameters:

Name Type Description Default
request MoveAddressToVpcInput | MoveAddressToVpcInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[MoveAddressToVpcInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
MoveAddressToVpcOutput

An instance of MoveAddressToVpcOutput.

move_address_to_vpc async

move_address_to_vpc(request: MoveAddressToVpcInput | MoveAddressToVpcInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[MoveAddressToVpcInputDict]) -> MoveAddressToVpcOutput
Note

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. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.

Parameters:

Name Type Description Default
request MoveAddressToVpcInput | MoveAddressToVpcInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[MoveAddressToVpcInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
MoveAddressToVpcOutput

An instance of MoveAddressToVpcOutput.

Input

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

MoveAddressToVpcInputDict

Bases: TypedDict

Dictionary form of MoveAddressToVpcInput.

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.

MoveAddressToVpcInput dataclass

Bases: _SerdeShape

Dataclass for MoveAddressToVpcInput 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.

Output

MoveAddressToVpcOutput dataclass

Bases: _SerdeShape

Dataclass for MoveAddressToVpcOutput structure.

Attributes

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

The allocation ID for 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 status of the move of the IP address.