assign_ipv6_addresses
¶
assign_ipv6_addresses(
*,
config_overrides: Optional[EC2ClientConfig] = None,
ipv6_prefix_count: Optional[Integer] = None,
ipv6_prefixes: Optional[IpPrefixList] = None,
network_interface_id: Optional[NetworkInterfaceId] = None,
ipv6_addresses: Optional[Ipv6AddressList] = None,
ipv6_address_count: Optional[Integer] = None,
) -> AssignIpv6AddressesResult
Assigns the specified IPv6 addresses to the specified network interface. You can specify specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from the subnet's IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies by instance type.
You must specify either the IPv6 addresses or the IPv6 address count in the request.
You can optionally use Prefix Delegation on the network interface. You must specify either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.
Parameters:
-
ipv6_prefix_count(Optional[Integer], default:None) –The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use the
Ipv6Prefixesoption. -
ipv6_prefixes(Optional[IpPrefixList], default:None) –One or more IPv6 prefixes assigned to the network interface. You can't use this option if you use the
Ipv6PrefixCountoption. -
network_interface_id(Optional[NetworkInterfaceId], default:None) –The ID of the network interface.
-
ipv6_addresses(Optional[Ipv6AddressList], default:None) –The IPv6 addresses to be assigned to the network interface. You can't use this option if you're specifying a number of IPv6 addresses.
-
ipv6_address_count(Optional[Integer], default:None) –The number of additional IPv6 addresses to assign to the network interface. The specified number of IPv6 addresses are assigned in addition to the existing IPv6 addresses that are already assigned to the network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 | |