Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Assumes an impersonation role for the given WorkMail organization. This method returns an authentication token you can use to make impersonated calls.
Synopsis
- data AssumeImpersonationRole = AssumeImpersonationRole' {}
- newAssumeImpersonationRole :: Text -> Text -> AssumeImpersonationRole
- assumeImpersonationRole_organizationId :: Lens' AssumeImpersonationRole Text
- assumeImpersonationRole_impersonationRoleId :: Lens' AssumeImpersonationRole Text
- data AssumeImpersonationRoleResponse = AssumeImpersonationRoleResponse' {}
- newAssumeImpersonationRoleResponse :: Int -> AssumeImpersonationRoleResponse
- assumeImpersonationRoleResponse_expiresIn :: Lens' AssumeImpersonationRoleResponse (Maybe Integer)
- assumeImpersonationRoleResponse_token :: Lens' AssumeImpersonationRoleResponse (Maybe Text)
- assumeImpersonationRoleResponse_httpStatus :: Lens' AssumeImpersonationRoleResponse Int
Creating a Request
data AssumeImpersonationRole Source #
See: newAssumeImpersonationRole
smart constructor.
AssumeImpersonationRole' | |
|
Instances
newAssumeImpersonationRole Source #
Create a value of AssumeImpersonationRole
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
AssumeImpersonationRole
, assumeImpersonationRole_organizationId
- The WorkMail organization under which the impersonation role will be
assumed.
AssumeImpersonationRole
, assumeImpersonationRole_impersonationRoleId
- The impersonation role ID to assume.
Request Lenses
assumeImpersonationRole_organizationId :: Lens' AssumeImpersonationRole Text Source #
The WorkMail organization under which the impersonation role will be assumed.
assumeImpersonationRole_impersonationRoleId :: Lens' AssumeImpersonationRole Text Source #
The impersonation role ID to assume.
Destructuring the Response
data AssumeImpersonationRoleResponse Source #
See: newAssumeImpersonationRoleResponse
smart constructor.
Instances
newAssumeImpersonationRoleResponse Source #
Create a value of AssumeImpersonationRoleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:expiresIn:AssumeImpersonationRoleResponse'
, assumeImpersonationRoleResponse_expiresIn
- The authentication token's validity, in seconds.
$sel:token:AssumeImpersonationRoleResponse'
, assumeImpersonationRoleResponse_token
- The authentication token for the impersonation role.
$sel:httpStatus:AssumeImpersonationRoleResponse'
, assumeImpersonationRoleResponse_httpStatus
- The response's http status code.
Response Lenses
assumeImpersonationRoleResponse_expiresIn :: Lens' AssumeImpersonationRoleResponse (Maybe Integer) Source #
The authentication token's validity, in seconds.
assumeImpersonationRoleResponse_token :: Lens' AssumeImpersonationRoleResponse (Maybe Text) Source #
The authentication token for the impersonation role.
assumeImpersonationRoleResponse_httpStatus :: Lens' AssumeImpersonationRoleResponse Int Source #
The response's http status code.