get_time_off
async
¶
get_time_off(
instance_id: InstanceIdOrArn,
user_id: UserIdOrArn,
time_off_id: TimeOffId,
*,
config_overrides: Optional[AsyncConnectSchedulingClientConfig] = None,
) -> GetTimeOffResponse
Returns a time off request, including its current status and validation results.
Parameters:
-
instance_id(InstanceIdOrArn) –The identifier of the Connect Customer instance. This can be the ID or the ARN of the instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
user_id(UserIdOrArn) –The identifier of the user who the time off request belongs to. This can be the ID or the ARN of the user.
-
time_off_id(TimeOffId) –The identifier of the time off request. If the time off request doesn't belong to
UserId, the operation returnsResourceNotFoundException.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServerException–The request processing failed because of an error or failure with the service.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To get a time off request The following example gets a time off request that was approved past a failed group allowance rule, which is reported as a WARNING.
>>> await client.get_time_off(instance_id='12345678-1234-1234-1234-123456789012', user_id='87654321-4321-4321-4321-210987654321', time_off_id='abcdef12-3456-7890-abcd-ef1234567890')