createDedicatedIpPool method
Create a new pool of dedicated IP addresses. A pool can include one or more dedicated IP addresses that are associated with your AWS account. You can associate a pool with a configuration set. When you send an email that uses that configuration set, the message is sent from one of the addresses in the associated pool.
May throw AlreadyExistsException. May throw LimitExceededException. May throw TooManyRequestsException. May throw BadRequestException. May throw ConcurrentModificationException.
Parameter poolName
:
The name of the dedicated IP pool.
Parameter tags
:
An object that defines the tags (keys and values) that you want to
associate with the pool.
Implementation
Future<void> createDedicatedIpPool({
required String poolName,
List<Tag>? tags,
}) async {
ArgumentError.checkNotNull(poolName, 'poolName');
final $payload = <String, dynamic>{
'PoolName': poolName,
if (tags != null) 'Tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v2/email/dedicated-ip-pools',
exceptionFnMap: _exceptionFns,
);
}