:doc:`SSMIncidents <../../ssm-incidents>` / Client / update_replication_set

**********************
update_replication_set
**********************



.. py:method:: SSMIncidents.Client.update_replication_set(**kwargs)

  

  Add or delete Regions from your replication set.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ssm-incidents-2018-05-10/UpdateReplicationSet>`_  


  **Request Syntax**
  ::

    response = client.update_replication_set(
        actions=[
            {
                'addRegionAction': {
                    'regionName': 'string',
                    'sseKmsKeyId': 'string'
                },
                'deleteRegionAction': {
                    'regionName': 'string'
                }
            },
        ],
        arn='string',
        clientToken='string'
    )
    
  :type actions: list
  :param actions: **[REQUIRED]** 

    An action to add or delete a Region.

    

  
    - *(dict) --* 

      Details used when updating the replication set.

      .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``addRegionAction``, ``deleteRegionAction``. 

    
      - **addRegionAction** *(dict) --* 

        Details about the Amazon Web Services Region that you're adding to the replication set.

        

      
        - **regionName** *(string) --* **[REQUIRED]** 

          The Amazon Web Services Region name to add to the replication set.

          

        
        - **sseKmsKeyId** *(string) --* 

          The KMS key ID to use to encrypt your replication set.

          

        
      
      - **deleteRegionAction** *(dict) --* 

        Details about the Amazon Web Services Region that you're deleting to the replication set.

        

      
        - **regionName** *(string) --* **[REQUIRED]** 

          The name of the Amazon Web Services Region you're deleting from the replication set.

          

        
      
    

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

    The Amazon Resource Name (ARN) of the replication set you're updating.

    

  
  :type clientToken: string
  :param clientToken: 

    A token that ensures that the operation is called only once with the specified details.

    This field is autopopulated if not provided.

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SSMIncidents.Client.exceptions.ThrottlingException`

  
  *   :py:class:`SSMIncidents.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`SSMIncidents.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`SSMIncidents.Client.exceptions.ValidationException`

  
  *   :py:class:`SSMIncidents.Client.exceptions.ConflictException`

  
  *   :py:class:`SSMIncidents.Client.exceptions.InternalServerException`

  