batchStopUpdateAction method

Future<UpdateActionResultsMessage> batchStopUpdateAction({
  1. required String serviceUpdateName,
  2. List<String>? cacheClusterIds,
  3. List<String>? replicationGroupIds,
})

Stop the service update. For more information on service updates and stopping them, see Stopping Service Updates.

May throw ServiceUpdateNotFoundFault. May throw InvalidParameterValueException.

Parameter serviceUpdateName : The unique ID of the service update

Parameter cacheClusterIds : The cache cluster IDs

Parameter replicationGroupIds : The replication group IDs

Implementation

Future<UpdateActionResultsMessage> batchStopUpdateAction({
  required String serviceUpdateName,
  List<String>? cacheClusterIds,
  List<String>? replicationGroupIds,
}) async {
  ArgumentError.checkNotNull(serviceUpdateName, 'serviceUpdateName');
  final $request = <String, dynamic>{};
  $request['ServiceUpdateName'] = serviceUpdateName;
  cacheClusterIds?.also((arg) => $request['CacheClusterIds'] = arg);
  replicationGroupIds?.also((arg) => $request['ReplicationGroupIds'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'BatchStopUpdateAction',
    version: '2015-02-02',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['BatchStopUpdateActionMessage'],
    shapes: shapes,
    resultWrapper: 'BatchStopUpdateActionResult',
  );
  return UpdateActionResultsMessage.fromXml($result);
}