putDedicatedIpWarmupAttributes method

Future<void> putDedicatedIpWarmupAttributes({
  1. required String ip,
  2. required int warmupPercentage,
})

May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.

Parameter ip : The dedicated IP address that you want to update the warm-up attributes for.

Parameter warmupPercentage : The warm-up percentage that you want to associate with the dedicated IP address.

Implementation

Future<void> putDedicatedIpWarmupAttributes({
  required String ip,
  required int warmupPercentage,
}) async {
  ArgumentError.checkNotNull(ip, 'ip');
  ArgumentError.checkNotNull(warmupPercentage, 'warmupPercentage');
  final $payload = <String, dynamic>{
    'WarmupPercentage': warmupPercentage,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/v2/email/dedicated-ips/${Uri.encodeComponent(ip)}/warmup',
    exceptionFnMap: _exceptionFns,
  );
}