batchApplyUpdateAction method
Apply the service update. For more information on service updates and applying them, see Applying Service Updates.
May throw InvalidParameterValueException.
May throw ServiceUpdateNotFoundFault.
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 {
final $request = <String, String>{
'ServiceUpdateName': serviceUpdateName,
if (cacheClusterIds != null)
if (cacheClusterIds.isEmpty)
'CacheClusterIds': ''
else
for (var i1 = 0; i1 < cacheClusterIds.length; i1++)
'CacheClusterIds.member.${i1 + 1}': cacheClusterIds[i1],
if (replicationGroupIds != null)
if (replicationGroupIds.isEmpty)
'ReplicationGroupIds': ''
else
for (var i1 = 0; i1 < replicationGroupIds.length; i1++)
'ReplicationGroupIds.member.${i1 + 1}': replicationGroupIds[i1],
};
final $result = await _protocol.send(
$request,
action: 'BatchApplyUpdateAction',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
resultWrapper: 'BatchApplyUpdateActionResult',
);
return UpdateActionResultsMessage.fromXml($result);
}