assign_private_nat_gateway_address
async
¶
assign_private_nat_gateway_address(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
nat_gateway_id: Optional[NatGatewayId] = None,
private_ip_addresses: Optional[IpList] = None,
private_ip_address_count: Optional[PrivateIpAddressCount] = None,
dry_run: Optional[Boolean] = None,
) -> AssignPrivateNatGatewayAddressResult
Assigns private IPv4 addresses to a private NAT gateway. For more information, see Work with NAT gateways in the Amazon VPC User Guide.
Parameters:
-
nat_gateway_id(Optional[NatGatewayId], default:None) –The ID of the NAT gateway.
-
private_ip_addresses(Optional[IpList], default:None) –The private IPv4 addresses you want to assign to the private NAT gateway.
-
private_ip_address_count(Optional[PrivateIpAddressCount], default:None) –The number of private IP addresses to assign to the NAT gateway. You can't specify this parameter when also specifying private IP addresses.
-
dry_run(Optional[Boolean], default: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 isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.