create_rotation_override
async
¶
create_rotation_override(
rotation_id: SsmContactsArn,
new_contact_ids: RotationOverrideContactsArnList,
start_time: DateTime,
end_time: DateTime,
*,
config_overrides: Optional[AsyncSSMContactsClientConfig] = None,
idempotency_token: Optional[IdempotencyToken] = None,
) -> CreateRotationOverrideResult
Creates an override for a rotation in an on-call schedule.
Parameters:
-
rotation_id(SsmContactsArn) –The Amazon Resource Name (ARN) of the rotation to create an override for.
-
new_contact_ids(RotationOverrideContactsArnList) –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.
-
start_time(DateTime) –The date and time when the override goes into effect.
-
end_time(DateTime) –The date and time when the override ends.
-
idempotency_token(Optional[IdempotencyToken], default:None) –A token that ensures that the operation is called only once with the specified details.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation.
-
InternalServerException–Unexpected error occurred while processing the request.
-
ResourceNotFoundException–Request references a resource that doesn't exist.
-
ServiceQuotaExceededException–Request would cause a service quota to be exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.