createDedicatedIpPool method

Future<void> createDedicatedIpPool({
  1. required String poolName,
  2. List<Tag>? tags,
})

Create a new pool of dedicated IP addresses. A pool can include one or more dedicated IP addresses that are associated with your Amazon Pinpoint account. You can associate a pool with a configuration set. When you send an email that uses that configuration set, Amazon Pinpoint sends it using only the IP 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: '/v1/email/dedicated-ip-pools',
    exceptionFnMap: _exceptionFns,
  );
}