| 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 |
Amazonka.WorkMail.UpdateMobileDeviceAccessRule
Description
Updates a mobile device access rule for the specified WorkMail organization.
Synopsis
- data UpdateMobileDeviceAccessRule = UpdateMobileDeviceAccessRule' {
- description :: Maybe Text
- deviceModels :: Maybe (NonEmpty Text)
- deviceOperatingSystems :: Maybe (NonEmpty Text)
- deviceTypes :: Maybe (NonEmpty Text)
- deviceUserAgents :: Maybe (NonEmpty Text)
- notDeviceModels :: Maybe (NonEmpty Text)
- notDeviceOperatingSystems :: Maybe (NonEmpty Text)
- notDeviceTypes :: Maybe (NonEmpty Text)
- notDeviceUserAgents :: Maybe (NonEmpty Text)
- organizationId :: Text
- mobileDeviceAccessRuleId :: Text
- name :: Text
- effect :: MobileDeviceAccessRuleEffect
- newUpdateMobileDeviceAccessRule :: Text -> Text -> Text -> MobileDeviceAccessRuleEffect -> UpdateMobileDeviceAccessRule
- updateMobileDeviceAccessRule_description :: Lens' UpdateMobileDeviceAccessRule (Maybe Text)
- updateMobileDeviceAccessRule_deviceModels :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_deviceOperatingSystems :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_deviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_deviceUserAgents :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_notDeviceModels :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_notDeviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- updateMobileDeviceAccessRule_notDeviceUserAgents :: 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.
Constructors
| UpdateMobileDeviceAccessRule' | |
Fields
| |
Instances
newUpdateMobileDeviceAccessRule Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> MobileDeviceAccessRuleEffect | |
| -> UpdateMobileDeviceAccessRule |
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:
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_description - The updated rule description.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_deviceModels - Device models that the updated rule will match.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_deviceOperatingSystems - Device operating systems that the updated rule will match.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_deviceTypes - Device types that the updated rule will match.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_deviceUserAgents - User agents that the updated rule will match.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_notDeviceModels - Device models that the updated rule will not match. All other device
models will match.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_notDeviceOperatingSystems - Device operating systems that the updated rule will not match. All
other device operating systems will match.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_notDeviceTypes - Device types that the updated rule will not match. All other device
types will match.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_notDeviceUserAgents - User agents that the updated rule will not match. All other user
agents will match.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_organizationId - The WorkMail organization under which the rule will be updated.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_mobileDeviceAccessRuleId - The identifier of the rule to be updated.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_name - The updated rule name.
UpdateMobileDeviceAccessRule, updateMobileDeviceAccessRule_effect - The effect of the rule when it matches. Allowed values are ALLOW or
DENY.
Request Lenses
updateMobileDeviceAccessRule_description :: Lens' UpdateMobileDeviceAccessRule (Maybe Text) Source #
The updated rule description.
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_deviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device types that the updated rule will match.
updateMobileDeviceAccessRule_deviceUserAgents :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
User agents that the updated rule 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_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_notDeviceTypes :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device types that the updated rule will not match. All other device types will match.
updateMobileDeviceAccessRule_notDeviceUserAgents :: Lens' UpdateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
User agents that the updated rule will not match. All other user agents will match.
updateMobileDeviceAccessRule_organizationId :: Lens' UpdateMobileDeviceAccessRule Text Source #
The 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.
Constructors
| UpdateMobileDeviceAccessRuleResponse' | |
Fields
| |
Instances
newUpdateMobileDeviceAccessRuleResponse Source #
Arguments
| :: Int | |
| -> UpdateMobileDeviceAccessRuleResponse |
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.