| 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.CreateMobileDeviceAccessRule
Description
Creates a new mobile device access rule for the specified WorkMail organization.
Synopsis
- data CreateMobileDeviceAccessRule = CreateMobileDeviceAccessRule' {
- clientToken :: Maybe Text
- 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
- name :: Text
- effect :: MobileDeviceAccessRuleEffect
- newCreateMobileDeviceAccessRule :: Text -> Text -> MobileDeviceAccessRuleEffect -> CreateMobileDeviceAccessRule
- createMobileDeviceAccessRule_clientToken :: Lens' CreateMobileDeviceAccessRule (Maybe Text)
- createMobileDeviceAccessRule_description :: Lens' CreateMobileDeviceAccessRule (Maybe Text)
- createMobileDeviceAccessRule_deviceModels :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_deviceOperatingSystems :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_deviceTypes :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_deviceUserAgents :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_notDeviceModels :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_notDeviceOperatingSystems :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_notDeviceTypes :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text))
- createMobileDeviceAccessRule_notDeviceUserAgents :: 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.
Constructors
| CreateMobileDeviceAccessRule' | |
Fields
| |
Instances
newCreateMobileDeviceAccessRule Source #
Arguments
| :: Text | |
| -> Text | |
| -> MobileDeviceAccessRuleEffect | |
| -> CreateMobileDeviceAccessRule |
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.
CreateMobileDeviceAccessRule, createMobileDeviceAccessRule_description - The rule description.
CreateMobileDeviceAccessRule, createMobileDeviceAccessRule_deviceModels - Device models that the rule will match.
CreateMobileDeviceAccessRule, createMobileDeviceAccessRule_deviceOperatingSystems - Device operating systems that the rule will match.
CreateMobileDeviceAccessRule, createMobileDeviceAccessRule_deviceTypes - Device types that the rule will match.
CreateMobileDeviceAccessRule, createMobileDeviceAccessRule_deviceUserAgents - Device user agents that the rule will match.
CreateMobileDeviceAccessRule, createMobileDeviceAccessRule_notDeviceModels - Device models that the rule will not match. All other device models
will match.
CreateMobileDeviceAccessRule, createMobileDeviceAccessRule_notDeviceOperatingSystems - Device operating systems that the rule will not match. All other
device operating systems will match.
CreateMobileDeviceAccessRule, createMobileDeviceAccessRule_notDeviceTypes - Device types that the rule will not match. All other device types
will match.
CreateMobileDeviceAccessRule, createMobileDeviceAccessRule_notDeviceUserAgents - Device user agents that the rule will not match. All other device
user agents will match.
CreateMobileDeviceAccessRule, createMobileDeviceAccessRule_organizationId - The WorkMail organization under which the rule will be created.
CreateMobileDeviceAccessRule, createMobileDeviceAccessRule_name - The rule name.
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_description :: Lens' CreateMobileDeviceAccessRule (Maybe Text) Source #
The rule description.
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_deviceTypes :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device types that the rule will match.
createMobileDeviceAccessRule_deviceUserAgents :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device user agents that the rule 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_notDeviceOperatingSystems :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device operating systems that the rule will not match. All other device operating systems 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_notDeviceUserAgents :: Lens' CreateMobileDeviceAccessRule (Maybe (NonEmpty Text)) Source #
Device user agents that the rule will not match. All other device user agents will match.
createMobileDeviceAccessRule_organizationId :: Lens' CreateMobileDeviceAccessRule Text Source #
The 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.
Constructors
| CreateMobileDeviceAccessRuleResponse' | |
Fields
| |
Instances
newCreateMobileDeviceAccessRuleResponse Source #
Arguments
| :: Int | |
| -> CreateMobileDeviceAccessRuleResponse |
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:
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.