:doc:`SSMContacts <../../ssm-contacts>` / Client / create_rotation_override

************************
create_rotation_override
************************



.. py:method:: SSMContacts.Client.create_rotation_override(**kwargs)

  

  Creates an override for a rotation in an on-call schedule.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ssm-contacts-2021-05-03/CreateRotationOverride>`_  


  **Request Syntax**
  ::

    response = client.create_rotation_override(
        RotationId='string',
        NewContactIds=[
            'string',
        ],
        StartTime=datetime(2015, 1, 1),
        EndTime=datetime(2015, 1, 1),
        IdempotencyToken='string'
    )
    
  :type RotationId: string
  :param RotationId: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the rotation to create an override for.

    

  
  :type NewContactIds: list
  :param NewContactIds: **[REQUIRED]** 

    The Amazon Resource Names (ARNs) of the contacts to replace those in the current on-call rotation with.

     

    If you want to include any current team members in the override shift, you must include their ARNs in the new contact ID list.

    

  
    - *(string) --* 

    

  :type StartTime: datetime
  :param StartTime: **[REQUIRED]** 

    The date and time when the override goes into effect.

    

  
  :type EndTime: datetime
  :param EndTime: **[REQUIRED]** 

    The date and time when the override ends.

    

  
  :type IdempotencyToken: string
  :param IdempotencyToken: 

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

    

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

    
    ::

      {
          'RotationOverrideId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RotationOverrideId** *(string) --* 

        The Amazon Resource Name (ARN) of the created rotation override.

        
  
  **Exceptions**
  
  *   :py:class:`SSMContacts.Client.exceptions.AccessDeniedException`

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

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

  
  *   :py:class:`SSMContacts.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`SSMContacts.Client.exceptions.ThrottlingException`

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

  