assume_impersonation_role
(**kwargs)¶Assumes an impersonation role for the given WorkMail organization. This method returns an authentication token you can use to make impersonated calls.
See also: AWS API Documentation
Request Syntax
response = client.assume_impersonation_role(
OrganizationId='string',
ImpersonationRoleId='string'
)
[REQUIRED]
The WorkMail organization under which the impersonation role will be assumed.
[REQUIRED]
The impersonation role ID to assume.
dict
Response Syntax
{
'Token': 'string',
'ExpiresIn': 123
}
Response Structure
(dict) --
Token (string) --
The authentication token for the impersonation role.
ExpiresIn (integer) --
The authentication token's validity, in seconds.
Exceptions
WorkMail.Client.exceptions.InvalidParameterException
WorkMail.Client.exceptions.OrganizationNotFoundException
WorkMail.Client.exceptions.OrganizationStateException
WorkMail.Client.exceptions.ResourceNotFoundException