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 |
Gets the impersonation role details for the given WorkMail organization.
Synopsis
- data GetImpersonationRole = GetImpersonationRole' {}
- newGetImpersonationRole :: Text -> Text -> GetImpersonationRole
- getImpersonationRole_organizationId :: Lens' GetImpersonationRole Text
- getImpersonationRole_impersonationRoleId :: Lens' GetImpersonationRole Text
- data GetImpersonationRoleResponse = GetImpersonationRoleResponse' {}
- newGetImpersonationRoleResponse :: Int -> GetImpersonationRoleResponse
- getImpersonationRoleResponse_dateCreated :: Lens' GetImpersonationRoleResponse (Maybe UTCTime)
- getImpersonationRoleResponse_dateModified :: Lens' GetImpersonationRoleResponse (Maybe UTCTime)
- getImpersonationRoleResponse_description :: Lens' GetImpersonationRoleResponse (Maybe Text)
- getImpersonationRoleResponse_impersonationRoleId :: Lens' GetImpersonationRoleResponse (Maybe Text)
- getImpersonationRoleResponse_name :: Lens' GetImpersonationRoleResponse (Maybe Text)
- getImpersonationRoleResponse_rules :: Lens' GetImpersonationRoleResponse (Maybe [ImpersonationRule])
- getImpersonationRoleResponse_type :: Lens' GetImpersonationRoleResponse (Maybe ImpersonationRoleType)
- getImpersonationRoleResponse_httpStatus :: Lens' GetImpersonationRoleResponse Int
Creating a Request
data GetImpersonationRole Source #
See: newGetImpersonationRole
smart constructor.
GetImpersonationRole' | |
|
Instances
newGetImpersonationRole Source #
Create a value of GetImpersonationRole
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:
GetImpersonationRole
, getImpersonationRole_organizationId
- The WorkMail organization from which to retrieve the impersonation role.
GetImpersonationRole
, getImpersonationRole_impersonationRoleId
- The impersonation role ID to retrieve.
Request Lenses
getImpersonationRole_organizationId :: Lens' GetImpersonationRole Text Source #
The WorkMail organization from which to retrieve the impersonation role.
getImpersonationRole_impersonationRoleId :: Lens' GetImpersonationRole Text Source #
The impersonation role ID to retrieve.
Destructuring the Response
data GetImpersonationRoleResponse Source #
See: newGetImpersonationRoleResponse
smart constructor.
GetImpersonationRoleResponse' | |
|
Instances
newGetImpersonationRoleResponse Source #
Create a value of GetImpersonationRoleResponse
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:
GetImpersonationRoleResponse
, getImpersonationRoleResponse_dateCreated
- The date when the impersonation role was created.
GetImpersonationRoleResponse
, getImpersonationRoleResponse_dateModified
- The date when the impersonation role was last modified.
GetImpersonationRoleResponse
, getImpersonationRoleResponse_description
- The impersonation role description.
GetImpersonationRole
, getImpersonationRoleResponse_impersonationRoleId
- The impersonation role ID.
GetImpersonationRoleResponse
, getImpersonationRoleResponse_name
- The impersonation role name.
$sel:rules:GetImpersonationRoleResponse'
, getImpersonationRoleResponse_rules
- The list of rules for the given impersonation role.
GetImpersonationRoleResponse
, getImpersonationRoleResponse_type
- The impersonation role type.
$sel:httpStatus:GetImpersonationRoleResponse'
, getImpersonationRoleResponse_httpStatus
- The response's http status code.
Response Lenses
getImpersonationRoleResponse_dateCreated :: Lens' GetImpersonationRoleResponse (Maybe UTCTime) Source #
The date when the impersonation role was created.
getImpersonationRoleResponse_dateModified :: Lens' GetImpersonationRoleResponse (Maybe UTCTime) Source #
The date when the impersonation role was last modified.
getImpersonationRoleResponse_description :: Lens' GetImpersonationRoleResponse (Maybe Text) Source #
The impersonation role description.
getImpersonationRoleResponse_impersonationRoleId :: Lens' GetImpersonationRoleResponse (Maybe Text) Source #
The impersonation role ID.
getImpersonationRoleResponse_name :: Lens' GetImpersonationRoleResponse (Maybe Text) Source #
The impersonation role name.
getImpersonationRoleResponse_rules :: Lens' GetImpersonationRoleResponse (Maybe [ImpersonationRule]) Source #
The list of rules for the given impersonation role.
getImpersonationRoleResponse_type :: Lens' GetImpersonationRoleResponse (Maybe ImpersonationRoleType) Source #
The impersonation role type.
getImpersonationRoleResponse_httpStatus :: Lens' GetImpersonationRoleResponse Int Source #
The response's http status code.