Apply the service update. For more information on service updates and applying them, see Applying Service Updates.
Parameters:
Raises:
Source code in docs_src/capo_elasticache/_services/async_elasti_cache.py
| async def batch_apply_update_action(
self,
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
replication_group_ids: Optional[
"capo_elasticache.types.replication_group_id_list.ReplicationGroupIdList"
] = None,
cache_cluster_ids: Optional[
"capo_elasticache.types.cache_cluster_id_list.CacheClusterIdList"
] = None,
service_update_name: Optional["capo_elasticache.types.string.String"] = None,
) -> "capo_elasticache.types.update_action_results_message.UpdateActionResultsMessage":
"""<p>Apply the service update. For more information on service updates and applying them, see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/applying-updates.html">Applying Service Updates</a>.</p>
Args:
replication_group_ids: <p>The replication group IDs</p>
cache_cluster_ids: <p>The cache cluster IDs</p>
service_update_name: <p>The unique ID of the service update</p>
Raises:
capo_elasticache.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>The value for a parameter is invalid.</p>
capo_elasticache.errors.service_update_not_found_fault.ServiceUpdateNotFoundFault: <p>The service update doesn't exist</p>
capo_elasticache.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_elasticache.types.batch_apply_update_action_message.BatchApplyUpdateActionMessage]",
) -> AsyncOperationResponse[
"capo_elasticache.types.update_action_results_message.UpdateActionResultsMessage"
]:
import capo_elasticache._operations.amazon_elasti_cache_v9.batch_apply_update_action
(
output,
http_response,
) = await capo_elasticache._operations.amazon_elasti_cache_v9.batch_apply_update_action.async_batch_apply_update_action(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchApplyUpdateAction")
)
input_: capo_elasticache.types.batch_apply_update_action_message.BatchApplyUpdateActionMessage = {}
if replication_group_ids is not None:
input_["replication_group_ids"] = replication_group_ids
if cache_cluster_ids is not None:
input_["cache_cluster_ids"] = cache_cluster_ids
if service_update_name is not None:
input_["service_update_name"] = service_update_name
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|