putDedicatedIpInPool method
Move a dedicated IP address to an existing dedicated IP pool.
The dedicated IP pool you specify must already exist. You can create a new
pool by using the CreateDedicatedIpPool
operation.
May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.
Parameter destinationPoolName
:
The name of the IP pool that you want to add the dedicated IP address to.
You have to specify an IP pool that already exists.
Parameter ip
:
The IP address that you want to move to the dedicated IP pool. The value
you specify has to be a dedicated IP address that's associated with your
AWS account.
Implementation
Future<void> putDedicatedIpInPool({
required String destinationPoolName,
required String ip,
}) async {
ArgumentError.checkNotNull(destinationPoolName, 'destinationPoolName');
ArgumentError.checkNotNull(ip, 'ip');
final $payload = <String, dynamic>{
'DestinationPoolName': destinationPoolName,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/v2/email/dedicated-ips/${Uri.encodeComponent(ip)}/pool',
exceptionFnMap: _exceptionFns,
);
}