Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates a mobile device access rule for the specified Amazon WorkMail organization.
Synopsis
- data UpdateMobileDeviceAccessRule = UpdateMobileDeviceAccessRule' {
- deviceUserAgents :: Maybe (NonEmpty Text)
- deviceTypes :: Maybe (NonEmpty Text)
- notDeviceTypes :: Maybe (NonEmpty Text)
- notDeviceOperatingSystems :: Maybe (NonEmpty Text)
- deviceModels :: Maybe (NonEmpty Text)
- deviceOperatingSystems :: Maybe (NonEmpty Text)
- description :: Maybe Text
- notDeviceUserAgents :: Maybe (NonEmpty Text)
- notDeviceModels :: Maybe (NonEmpty Text)
- organizationId :: Text
- mobileDeviceAccessRuleId :: Text
- name :: Text
- effect :: MobileDeviceAccessRuleEffect
- newUpdateMobileDeviceAccessRule :: Text -> Text -> Text -> MobileDeviceAccessRuleEffect -> UpdateMobileDeviceAccessRule
- updateMobileDeviceAccessRule_deviceUserAgents :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_deviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_notDeviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_deviceModels :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_deviceOperatingSystems :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_description :: Lens' UpdateMobileDeviceAccessRule (Maybe Text)
- updateMobileDeviceAccessRule_notDeviceUserAgents :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_notDeviceModels :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_organizationId :: Lens' UpdateMobileDeviceAccessRule Text
- updateMobileDeviceAccessRule_mobileDeviceAccessRuleId :: Lens' UpdateMobileDeviceAccessRule Text
- updateMobileDeviceAccessRule_name :: Lens' UpdateMobileDeviceAccessRule Text
- updateMobileDeviceAccessRule_effect :: Lens' UpdateMobileDeviceAccessRule MobileDeviceAccessRuleEffect
- data UpdateMobileDeviceAccessRuleResponse = UpdateMobileDeviceAccessRuleResponse' {
- httpStatus :: Int
- newUpdateMobileDeviceAccessRuleResponse :: Int -> UpdateMobileDeviceAccessRuleResponse
- updateMobileDeviceAccessRuleResponse_httpStatus :: Lens' UpdateMobileDeviceAccessRuleResponse Int
Creating a Request
data UpdateMobileDeviceAccessRule Source #
See: newUpdateMobileDeviceAccessRule
smart constructor.
UpdateMobileDeviceAccessRule' | |
|
Instances
newUpdateMobileDeviceAccessRule Source #
Create a value of UpdateMobileDeviceAccessRule
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:deviceUserAgents:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_deviceUserAgents
- User agents that the updated rule will match.
$sel:deviceTypes:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_deviceTypes
- Device types that the updated rule will match.
$sel:notDeviceTypes:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_notDeviceTypes
- Device types that the updated rule will not match. All other device
types will match.
$sel:notDeviceOperatingSystems:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_notDeviceOperatingSystems
- Device operating systems that the updated rule will not match. All
other device operating systems will match.
$sel:deviceModels:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_deviceModels
- Device models that the updated rule will match.
$sel:deviceOperatingSystems:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_deviceOperatingSystems
- Device operating systems that the updated rule will match.
$sel:description:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_description
- The updated rule description.
$sel:notDeviceUserAgents:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_notDeviceUserAgents
- User agents that the updated rule will not match. All other user
agents will match.
$sel:notDeviceModels:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_notDeviceModels
- Device models that the updated rule will not match. All other device
models will match.
$sel:organizationId:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_organizationId
- The Amazon WorkMail organization under which the rule will be updated.
$sel:mobileDeviceAccessRuleId:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_mobileDeviceAccessRuleId
- The identifier of the rule to be updated.
$sel:name:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_name
- The updated rule name.
$sel:effect:UpdateMobileDeviceAccessRule'
, updateMobileDeviceAccessRule_effect
- The effect of the rule when it matches. Allowed values are ALLOW
or
DENY
.
Request Lenses
updateMobileDeviceAccessRule_deviceUserAgents :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
User agents that the updated rule will match.
updateMobileDeviceAccessRule_deviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device types that the updated rule will match.
updateMobileDeviceAccessRule_notDeviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device types that the updated rule will not match. All other device types will match.
updateMobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device operating systems that the updated rule will not match. All other device operating systems will match.
updateMobileDeviceAccessRule_deviceModels :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device models that the updated rule will match.
updateMobileDeviceAccessRule_deviceOperatingSystems :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device operating systems that the updated rule will match.
updateMobileDeviceAccessRule_description :: Lens' UpdateMobileDeviceAccessRule (Maybe Text) Source #
The updated rule description.
updateMobileDeviceAccessRule_notDeviceUserAgents :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
User agents that the updated rule will not match. All other user agents will match.
updateMobileDeviceAccessRule_notDeviceModels :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device models that the updated rule will not match. All other device models will match.
updateMobileDeviceAccessRule_organizationId :: Lens' UpdateMobileDeviceAccessRule Text Source #
The Amazon WorkMail organization under which the rule will be updated.
updateMobileDeviceAccessRule_mobileDeviceAccessRuleId :: Lens' UpdateMobileDeviceAccessRule Text Source #
The identifier of the rule to be updated.
updateMobileDeviceAccessRule_name :: Lens' UpdateMobileDeviceAccessRule Text Source #
The updated rule name.
updateMobileDeviceAccessRule_effect :: Lens' UpdateMobileDeviceAccessRule MobileDeviceAccessRuleEffect Source #
The effect of the rule when it matches. Allowed values are ALLOW
or
DENY
.
Destructuring the Response
data UpdateMobileDeviceAccessRuleResponse Source #
See: newUpdateMobileDeviceAccessRuleResponse
smart constructor.
UpdateMobileDeviceAccessRuleResponse' | |
|
Instances
Eq UpdateMobileDeviceAccessRuleResponse Source # | |
Read UpdateMobileDeviceAccessRuleResponse Source # | |
Show UpdateMobileDeviceAccessRuleResponse Source # | |
Generic UpdateMobileDeviceAccessRuleResponse Source # | |
Defined in Amazonka.WorkMail.UpdateMobileDeviceAccessRule type Rep UpdateMobileDeviceAccessRuleResponse :: Type -> Type # | |
NFData UpdateMobileDeviceAccessRuleResponse Source # | |
Defined in Amazonka.WorkMail.UpdateMobileDeviceAccessRule rnf :: UpdateMobileDeviceAccessRuleResponse -> () # | |
type Rep UpdateMobileDeviceAccessRuleResponse Source # | |
Defined in Amazonka.WorkMail.UpdateMobileDeviceAccessRule type Rep UpdateMobileDeviceAccessRuleResponse = D1 ('MetaData "UpdateMobileDeviceAccessRuleResponse" "Amazonka.WorkMail.UpdateMobileDeviceAccessRule" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "UpdateMobileDeviceAccessRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateMobileDeviceAccessRuleResponse Source #
Create a value of UpdateMobileDeviceAccessRuleResponse
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:UpdateMobileDeviceAccessRuleResponse'
, updateMobileDeviceAccessRuleResponse_httpStatus
- The response's http status code.
Response Lenses
updateMobileDeviceAccessRuleResponse_httpStatus :: Lens' UpdateMobileDeviceAccessRuleResponse Int Source #
The response's http status code.