Skip to content

AssignPrivateIpAddressesRequest

Source code in docs_src/capo_ec2/types/assign_private_ip_addresses_request.py
class AssignPrivateIpAddressesRequest(TypedDict, closed=True):
    ipv4_prefixes: NotRequired["capo_ec2.types.ip_prefix_list.IpPrefixList"]
    """<p>One or more IPv4 prefixes assigned to the network interface. You can't use this option if you use the <code>Ipv4PrefixCount</code> option.</p>"""
    ipv4_prefix_count: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. You can't use this option if you use the <code>Ipv4 Prefixes</code> option.</p>"""
    network_interface_id: NotRequired[
        "capo_ec2.types.network_interface_id.NetworkInterfaceId"
    ]
    """<p>The ID of the network interface.</p>"""
    private_ip_addresses: NotRequired[
        "capo_ec2.types.private_ip_address_string_list.PrivateIpAddressStringList"
    ]
    """<p>The IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.</p> <p>If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.</p>"""
    secondary_private_ip_address_count: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.</p>"""
    allow_reassignment: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.</p>"""

allow_reassignment instance-attribute

allow_reassignment: NotRequired[Boolean]

Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.

ipv4_prefix_count instance-attribute

ipv4_prefix_count: NotRequired[Integer]

The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. You can't use this option if you use the Ipv4 Prefixes option.

ipv4_prefixes instance-attribute

ipv4_prefixes: NotRequired[IpPrefixList]

One or more IPv4 prefixes assigned to the network interface. You can't use this option if you use the Ipv4PrefixCount option.

network_interface_id instance-attribute

network_interface_id: NotRequired[NetworkInterfaceId]

The ID of the network interface.

private_ip_addresses instance-attribute

private_ip_addresses: NotRequired[PrivateIpAddressStringList]

The IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.

If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.

secondary_private_ip_address_count instance-attribute

secondary_private_ip_address_count: NotRequired[Integer]

The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.