SSMContacts / Client / create_rotation_override
create_rotation_override#
- SSMContacts.Client.create_rotation_override(**kwargs)#
Creates an override for a rotation in an on-call schedule.
See also: AWS API Documentation
Request Syntax
response = client.create_rotation_override( RotationId='string', NewContactIds=[ 'string', ], StartTime=datetime(2015, 1, 1), EndTime=datetime(2015, 1, 1), IdempotencyToken='string' )
- Parameters:
RotationId (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the rotation to create an override for.
NewContactIds (list) –
[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) –
StartTime (datetime) –
[REQUIRED]
The date and time when the override goes into effect.
EndTime (datetime) –
[REQUIRED]
The date and time when the override ends.
IdempotencyToken (string) – A token that ensures that the operation is called only once with the specified details.
- Return type:
dict
- Returns:
Response Syntax
{ 'RotationOverrideId': 'string' }
Response Structure
(dict) –
RotationOverrideId (string) –
The Amazon Resource Name (ARN) of the created rotation override.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ServiceQuotaExceededException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException