libZSservicesZSamazonka-workmailZSamazonka-workmail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WorkMail.CreateMobileDeviceAccessRule

Description

Creates a new mobile device access rule for the specified Amazon WorkMail organization.

Synopsis

Creating a Request

data CreateMobileDeviceAccessRule Source #

See: newCreateMobileDeviceAccessRule smart constructor.

Constructors

CreateMobileDeviceAccessRule' 

Fields

Instances

Instances details
Eq CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

Read CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

Show CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

Generic CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

Associated Types

type Rep CreateMobileDeviceAccessRule :: Type -> Type #

NFData CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

Hashable CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

ToJSON CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

AWSRequest CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

ToHeaders CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

ToPath CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

ToQuery CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

type Rep CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

type Rep CreateMobileDeviceAccessRule = D1 ('MetaData "CreateMobileDeviceAccessRule" "Amazonka.WorkMail.CreateMobileDeviceAccessRule" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "CreateMobileDeviceAccessRule'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "deviceUserAgents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "deviceTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))))) :*: (S1 ('MetaSel ('Just "notDeviceTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: (S1 ('MetaSel ('Just "notDeviceOperatingSystems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "deviceModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text)))))) :*: ((S1 ('MetaSel ('Just "deviceOperatingSystems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "notDeviceUserAgents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))))) :*: ((S1 ('MetaSel ('Just "notDeviceModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "effect") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MobileDeviceAccessRuleEffect))))))
type AWSResponse CreateMobileDeviceAccessRule Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

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_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_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_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 #

Constructors

CreateMobileDeviceAccessRuleResponse' 

Fields

Instances

Instances details
Eq CreateMobileDeviceAccessRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

Read CreateMobileDeviceAccessRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

Show CreateMobileDeviceAccessRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

Generic CreateMobileDeviceAccessRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

NFData CreateMobileDeviceAccessRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

type Rep CreateMobileDeviceAccessRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateMobileDeviceAccessRule

type Rep CreateMobileDeviceAccessRuleResponse = D1 ('MetaData "CreateMobileDeviceAccessRuleResponse" "Amazonka.WorkMail.CreateMobileDeviceAccessRule" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "CreateMobileDeviceAccessRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "mobileDeviceAccessRuleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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