Skip to content

AssociateAddressRequest

Source code in docs_src/capo_ec2/types/associate_address_request.py
class AssociateAddressRequest(TypedDict, closed=True):
    allocation_id: NotRequired["capo_ec2.types.allocation_id.AllocationId"]
    """<p>The allocation ID. This is required.</p>"""
    instance_id: NotRequired["capo_ec2.types.instance_id.InstanceId"]
    """<p>The ID of the instance. The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.</p>"""
    public_ip: NotRequired[
        "capo_ec2.types.eip_allocation_public_ip.EipAllocationPublicIp"
    ]
    """<p>Deprecated.</p>"""
    dry_run: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"""
    network_interface_id: NotRequired[
        "capo_ec2.types.network_interface_id.NetworkInterfaceId"
    ]
    """<p>The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.</p> <p>You can specify either the instance ID or the network interface ID, but not both. </p>"""
    private_ip_address: NotRequired["capo_ec2.types.string.String"]
    """<p>The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.</p>"""
    allow_reassociation: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.</p>"""

allocation_id instance-attribute

allocation_id: NotRequired[AllocationId]

The allocation ID. This is required.

allow_reassociation instance-attribute

allow_reassociation: NotRequired[Boolean]

Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.

dry_run instance-attribute

dry_run: NotRequired[Boolean]

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.

instance_id instance-attribute

instance_id: NotRequired[InstanceId]

The ID of the instance. The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.

network_interface_id instance-attribute

network_interface_id: NotRequired[NetworkInterfaceId]

The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.

You can specify either the instance ID or the network interface ID, but not both.

private_ip_address instance-attribute

private_ip_address: NotRequired[String]

The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.

public_ip instance-attribute

public_ip: NotRequired[EipAllocationPublicIp]

Deprecated.