v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1480317256.9 KB

Assumes an impersonation role for the given WorkMail organization. This method returns an authentication token you can use to make impersonated calls.

post/#X-Amz-Target=WorkMailService.AssumeImpersonationRole

Headers

X-Amz-Target'WorkMailService.AssumeImpersonationRole' required

Request body

OrganizationIdstring required

The WorkMail organization under which the impersonation role will be assumed.

ImpersonationRoleIdstring required

The impersonation role ID to assume.

Response

Success

Tokenstring

The authentication token for the impersonation role.

ExpiresIninteger

The authentication token's validity, in seconds.