:doc:`ElastiCache <../../elasticache>` / Client / batch_apply_update_action

*************************
batch_apply_update_action
*************************



.. py:method:: ElastiCache.Client.batch_apply_update_action(**kwargs)

  

  Apply the service update. For more information on service updates and applying them, see `Applying Service Updates <https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/applying-updates.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/BatchApplyUpdateAction>`_  


  **Request Syntax**
  ::

    response = client.batch_apply_update_action(
        ReplicationGroupIds=[
            'string',
        ],
        CacheClusterIds=[
            'string',
        ],
        ServiceUpdateName='string'
    )
    
  :type ReplicationGroupIds: list
  :param ReplicationGroupIds: 

    The replication group IDs

    

  
    - *(string) --* 

    

  :type CacheClusterIds: list
  :param CacheClusterIds: 

    The cache cluster IDs

    

  
    - *(string) --* 

    

  :type ServiceUpdateName: string
  :param ServiceUpdateName: **[REQUIRED]** 

    The unique ID of the service update

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ProcessedUpdateActions': [
              {
                  'ReplicationGroupId': 'string',
                  'CacheClusterId': 'string',
                  'ServiceUpdateName': 'string',
                  'UpdateActionStatus': 'not-applied'|'waiting-to-start'|'in-progress'|'stopping'|'stopped'|'complete'|'scheduling'|'scheduled'|'not-applicable'
              },
          ],
          'UnprocessedUpdateActions': [
              {
                  'ReplicationGroupId': 'string',
                  'CacheClusterId': 'string',
                  'ServiceUpdateName': 'string',
                  'ErrorType': 'string',
                  'ErrorMessage': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ProcessedUpdateActions** *(list) --* 

        Update actions that have been processed successfully

        
        

        - *(dict) --* 

          Update action that has been processed for the corresponding apply/stop request

          
          

          - **ReplicationGroupId** *(string) --* 

            The ID of the replication group

            
          

          - **CacheClusterId** *(string) --* 

            The ID of the cache cluster

            
          

          - **ServiceUpdateName** *(string) --* 

            The unique ID of the service update

            
          

          - **UpdateActionStatus** *(string) --* 

            The status of the update action on the Valkey or Redis OSS cluster

            
      
    
      

      - **UnprocessedUpdateActions** *(list) --* 

        Update actions that haven't been processed successfully

        
        

        - *(dict) --* 

          Update action that has failed to be processed for the corresponding apply/stop request

          
          

          - **ReplicationGroupId** *(string) --* 

            The replication group ID

            
          

          - **CacheClusterId** *(string) --* 

            The ID of the cache cluster

            
          

          - **ServiceUpdateName** *(string) --* 

            The unique ID of the service update

            
          

          - **ErrorType** *(string) --* 

            The error type for requests that are not processed

            
          

          - **ErrorMessage** *(string) --* 

            The error message that describes the reason the request was not processed

            
      
    
  
  **Exceptions**
  
  *   :py:class:`ElastiCache.Client.exceptions.ServiceUpdateNotFoundFault`

  
  *   :py:class:`ElastiCache.Client.exceptions.InvalidParameterValueException`

  