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 |
Creates a new mobile device access rule for the specified Amazon WorkMail organization.
Synopsis
- data CreateMobileDeviceAccessRule = CreateMobileDeviceAccessRule' {
- clientToken :: Maybe Text
- 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
- name :: Text
- effect :: MobileDeviceAccessRuleEffect
- newCreateMobileDeviceAccessRule :: Text -> Text -> MobileDeviceAccessRuleEffect -> CreateMobileDeviceAccessRule
- createMobileDeviceAccessRule_clientToken :: Lens' CreateMobileDeviceAccessRule (Maybe Text)
- createMobileDeviceAccessRule_deviceUserAgents :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_deviceTypes :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_notDeviceTypes :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_deviceModels :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_deviceOperatingSystems :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_description :: Lens' CreateMobileDeviceAccessRule (Maybe Text)
- createMobileDeviceAccessRule_notDeviceUserAgents :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_notDeviceModels :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_organizationId :: Lens' CreateMobileDeviceAccessRule Text
- createMobileDeviceAccessRule_name :: Lens' CreateMobileDeviceAccessRule Text
- createMobileDeviceAccessRule_effect :: Lens' CreateMobileDeviceAccessRule MobileDeviceAccessRuleEffect
- data CreateMobileDeviceAccessRuleResponse = CreateMobileDeviceAccessRuleResponse' {}
- newCreateMobileDeviceAccessRuleResponse :: Int -> CreateMobileDeviceAccessRuleResponse
- createMobileDeviceAccessRuleResponse_mobileDeviceAccessRuleId :: Lens' CreateMobileDeviceAccessRuleResponse (Maybe Text)
- createMobileDeviceAccessRuleResponse_httpStatus :: Lens' CreateMobileDeviceAccessRuleResponse Int
Creating a Request
data CreateMobileDeviceAccessRule Source #
See: newCreateMobileDeviceAccessRule
smart constructor.
CreateMobileDeviceAccessRule' | |
|
Instances
newCreateMobileDeviceAccessRule Source #
Create a value of CreateMobileDeviceAccessRule
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:clientToken:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_clientToken
- The idempotency token for the client request.
$sel:deviceUserAgents:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_deviceUserAgents
- Device user agents that the rule will match.
$sel:deviceTypes:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_deviceTypes
- Device types that the rule will match.
$sel:notDeviceTypes:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_notDeviceTypes
- Device types that the rule will not match. All other device types
will match.
$sel:notDeviceOperatingSystems:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_notDeviceOperatingSystems
- Device operating systems that the rule will not match. All other
device operating systems will match.
$sel:deviceModels:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_deviceModels
- Device models that the rule will match.
$sel:deviceOperatingSystems:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_deviceOperatingSystems
- Device operating systems that the rule will match.
$sel:description:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_description
- The rule description.
$sel:notDeviceUserAgents:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_notDeviceUserAgents
- Device user agents that the rule will not match. All other device
user agents will match.
$sel:notDeviceModels:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_notDeviceModels
- Device models that the rule will not match. All other device models
will match.
$sel:organizationId:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_organizationId
- The Amazon WorkMail organization under which the rule will be created.
$sel:name:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_name
- The rule name.
$sel:effect:CreateMobileDeviceAccessRule'
, createMobileDeviceAccessRule_effect
- The effect of the rule when it matches. Allowed values are ALLOW
or
DENY
.
Request Lenses
createMobileDeviceAccessRule_clientToken :: Lens' CreateMobileDeviceAccessRule (Maybe Text) Source #
The idempotency token for the client request.
createMobileDeviceAccessRule_deviceUserAgents :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device user agents that the rule will match.
createMobileDeviceAccessRule_deviceTypes :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device types that the rule will match.
createMobileDeviceAccessRule_notDeviceTypes :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device types that the rule will not match. All other device types will match.
createMobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device operating systems that the rule will not match. All other device operating systems will match.
createMobileDeviceAccessRule_deviceModels :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device models that the rule will match.
createMobileDeviceAccessRule_deviceOperatingSystems :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device operating systems that the rule will match.
createMobileDeviceAccessRule_description :: Lens' CreateMobileDeviceAccessRule (Maybe Text) Source #
The rule description.
createMobileDeviceAccessRule_notDeviceUserAgents :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device user agents that the rule will not match. All other device user agents will match.
createMobileDeviceAccessRule_notDeviceModels :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device models that the rule will not match. All other device models will match.
createMobileDeviceAccessRule_organizationId :: Lens' CreateMobileDeviceAccessRule Text Source #
The Amazon WorkMail organization under which the rule will be created.
createMobileDeviceAccessRule_name :: Lens' CreateMobileDeviceAccessRule Text Source #
The rule name.
createMobileDeviceAccessRule_effect :: Lens' CreateMobileDeviceAccessRule MobileDeviceAccessRuleEffect Source #
The effect of the rule when it matches. Allowed values are ALLOW
or
DENY
.
Destructuring the Response
data CreateMobileDeviceAccessRuleResponse Source #
See: newCreateMobileDeviceAccessRuleResponse
smart constructor.
CreateMobileDeviceAccessRuleResponse' | |
|
Instances
newCreateMobileDeviceAccessRuleResponse Source #
Create a value of CreateMobileDeviceAccessRuleResponse
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:mobileDeviceAccessRuleId:CreateMobileDeviceAccessRuleResponse'
, createMobileDeviceAccessRuleResponse_mobileDeviceAccessRuleId
- The identifier for the newly created mobile device access rule.
$sel:httpStatus:CreateMobileDeviceAccessRuleResponse'
, createMobileDeviceAccessRuleResponse_httpStatus
- The response's http status code.
Response Lenses
createMobileDeviceAccessRuleResponse_mobileDeviceAccessRuleId :: Lens' CreateMobileDeviceAccessRuleResponse (Maybe Text) Source #
The identifier for the newly created mobile device access rule.
createMobileDeviceAccessRuleResponse_httpStatus :: Lens' CreateMobileDeviceAccessRuleResponse Int Source #
The response's http status code.