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 |
Updates an impersonation role for the given WorkMail organization.
Synopsis
- data UpdateImpersonationRole = UpdateImpersonationRole' {}
- newUpdateImpersonationRole :: Text -> Text -> Text -> ImpersonationRoleType -> UpdateImpersonationRole
- updateImpersonationRole_description :: Lens' UpdateImpersonationRole (Maybe Text)
- updateImpersonationRole_organizationId :: Lens' UpdateImpersonationRole Text
- updateImpersonationRole_impersonationRoleId :: Lens' UpdateImpersonationRole Text
- updateImpersonationRole_name :: Lens' UpdateImpersonationRole Text
- updateImpersonationRole_type :: Lens' UpdateImpersonationRole ImpersonationRoleType
- updateImpersonationRole_rules :: Lens' UpdateImpersonationRole [ImpersonationRule]
- data UpdateImpersonationRoleResponse = UpdateImpersonationRoleResponse' {
- httpStatus :: Int
- newUpdateImpersonationRoleResponse :: Int -> UpdateImpersonationRoleResponse
- updateImpersonationRoleResponse_httpStatus :: Lens' UpdateImpersonationRoleResponse Int
Creating a Request
data UpdateImpersonationRole Source #
See: newUpdateImpersonationRole
smart constructor.
UpdateImpersonationRole' | |
|
Instances
newUpdateImpersonationRole Source #
:: Text | |
-> Text | |
-> Text | |
-> ImpersonationRoleType | |
-> UpdateImpersonationRole |
Create a value of UpdateImpersonationRole
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:
UpdateImpersonationRole
, updateImpersonationRole_description
- The updated impersonation role description.
UpdateImpersonationRole
, updateImpersonationRole_organizationId
- The WorkMail organization that contains the impersonation role to
update.
UpdateImpersonationRole
, updateImpersonationRole_impersonationRoleId
- The ID of the impersonation role to update.
UpdateImpersonationRole
, updateImpersonationRole_name
- The updated impersonation role name.
UpdateImpersonationRole
, updateImpersonationRole_type
- The updated impersonation role type.
$sel:rules:UpdateImpersonationRole'
, updateImpersonationRole_rules
- The updated list of rules.
Request Lenses
updateImpersonationRole_description :: Lens' UpdateImpersonationRole (Maybe Text) Source #
The updated impersonation role description.
updateImpersonationRole_organizationId :: Lens' UpdateImpersonationRole Text Source #
The WorkMail organization that contains the impersonation role to update.
updateImpersonationRole_impersonationRoleId :: Lens' UpdateImpersonationRole Text Source #
The ID of the impersonation role to update.
updateImpersonationRole_name :: Lens' UpdateImpersonationRole Text Source #
The updated impersonation role name.
updateImpersonationRole_type :: Lens' UpdateImpersonationRole ImpersonationRoleType Source #
The updated impersonation role type.
updateImpersonationRole_rules :: Lens' UpdateImpersonationRole [ImpersonationRule] Source #
The updated list of rules.
Destructuring the Response
data UpdateImpersonationRoleResponse Source #
See: newUpdateImpersonationRoleResponse
smart constructor.
UpdateImpersonationRoleResponse' | |
|
Instances
Generic UpdateImpersonationRoleResponse Source # | |
Read UpdateImpersonationRoleResponse Source # | |
Show UpdateImpersonationRoleResponse Source # | |
Defined in Amazonka.WorkMail.UpdateImpersonationRole | |
NFData UpdateImpersonationRoleResponse Source # | |
Defined in Amazonka.WorkMail.UpdateImpersonationRole rnf :: UpdateImpersonationRoleResponse -> () # | |
Eq UpdateImpersonationRoleResponse Source # | |
type Rep UpdateImpersonationRoleResponse Source # | |
Defined in Amazonka.WorkMail.UpdateImpersonationRole type Rep UpdateImpersonationRoleResponse = D1 ('MetaData "UpdateImpersonationRoleResponse" "Amazonka.WorkMail.UpdateImpersonationRole" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "UpdateImpersonationRoleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateImpersonationRoleResponse Source #
Create a value of UpdateImpersonationRoleResponse
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:httpStatus:UpdateImpersonationRoleResponse'
, updateImpersonationRoleResponse_httpStatus
- The response's http status code.
Response Lenses
updateImpersonationRoleResponse_httpStatus :: Lens' UpdateImpersonationRoleResponse Int Source #
The response's http status code.