Skip to content

batch_apply_update_action

batch_apply_update_action(
    *,
    config_overrides: Optional[ElastiCacheClientConfig] = None,
    replication_group_ids: Optional[ReplicationGroupIdList] = None,
    cache_cluster_ids: Optional[CacheClusterIdList] = None,
    service_update_name: Optional[String] = None,
) -> UpdateActionResultsMessage

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/elasti_cache.py
def batch_apply_update_action(
    self,
    *,
    config_overrides: Optional[ElastiCacheClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_elasticache.types.batch_apply_update_action_message.BatchApplyUpdateActionMessage]",
    ) -> OperationResponse[
        "capo_elasticache.types.update_action_results_message.UpdateActionResultsMessage"
    ]:
        import capo_elasticache._operations.amazon_elasti_cache_v9.batch_apply_update_action

        output, http_response = (
            capo_elasticache._operations.amazon_elasti_cache_v9.batch_apply_update_action.batch_apply_update_action(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output