batchApplyUpdateAction method
Apply the service update. For more information on service updates and applying them, see Applying 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> batchApplyUpdateAction({
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: 'BatchApplyUpdateAction',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['BatchApplyUpdateActionMessage'],
shapes: shapes,
resultWrapper: 'BatchApplyUpdateActionResult',
);
return UpdateActionResultsMessage.fromXml($result);
}