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.PutAccessControlRule

Description

Adds a new access control rule for the specified organization. The rule allows or denies access to the organization for the specified IPv4 addresses, access protocol actions, and user IDs. Adding a new rule with the same name as an existing rule replaces the older rule.

Synopsis

Creating a Request

data PutAccessControlRule Source #

See: newPutAccessControlRule smart constructor.

Constructors

PutAccessControlRule' 

Fields

Instances

Instances details
Eq PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Read PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Show PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Generic PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Associated Types

type Rep PutAccessControlRule :: Type -> Type #

NFData PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Methods

rnf :: PutAccessControlRule -> () #

Hashable PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

ToJSON PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

AWSRequest PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Associated Types

type AWSResponse PutAccessControlRule #

ToHeaders PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

ToPath PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

ToQuery PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

type Rep PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

type AWSResponse PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

newPutAccessControlRule Source #

Create a value of PutAccessControlRule 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:userIds:PutAccessControlRule', putAccessControlRule_userIds - User IDs to include in the rule.

$sel:actions:PutAccessControlRule', putAccessControlRule_actions - Access protocol actions to include in the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail.

$sel:notUserIds:PutAccessControlRule', putAccessControlRule_notUserIds - User IDs to exclude from the rule.

$sel:ipRanges:PutAccessControlRule', putAccessControlRule_ipRanges - IPv4 CIDR ranges to include in the rule.

$sel:notIpRanges:PutAccessControlRule', putAccessControlRule_notIpRanges - IPv4 CIDR ranges to exclude from the rule.

$sel:notActions:PutAccessControlRule', putAccessControlRule_notActions - Access protocol actions to exclude from the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail.

$sel:name:PutAccessControlRule', putAccessControlRule_name - The rule name.

$sel:effect:PutAccessControlRule', putAccessControlRule_effect - The rule effect.

$sel:description:PutAccessControlRule', putAccessControlRule_description - The rule description.

$sel:organizationId:PutAccessControlRule', putAccessControlRule_organizationId - The identifier of the organization.

Request Lenses

putAccessControlRule_actions :: Lens' PutAccessControlRule (Maybe [Text]) Source #

Access protocol actions to include in the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail.

putAccessControlRule_ipRanges :: Lens' PutAccessControlRule (Maybe [Text]) Source #

IPv4 CIDR ranges to include in the rule.

putAccessControlRule_notIpRanges :: Lens' PutAccessControlRule (Maybe [Text]) Source #

IPv4 CIDR ranges to exclude from the rule.

putAccessControlRule_notActions :: Lens' PutAccessControlRule (Maybe [Text]) Source #

Access protocol actions to exclude from the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail.

Destructuring the Response

data PutAccessControlRuleResponse Source #

See: newPutAccessControlRuleResponse smart constructor.

Constructors

PutAccessControlRuleResponse' 

Fields

Instances

Instances details
Eq PutAccessControlRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Read PutAccessControlRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Show PutAccessControlRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Generic PutAccessControlRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Associated Types

type Rep PutAccessControlRuleResponse :: Type -> Type #

NFData PutAccessControlRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

type Rep PutAccessControlRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

type Rep PutAccessControlRuleResponse = D1 ('MetaData "PutAccessControlRuleResponse" "Amazonka.WorkMail.PutAccessControlRule" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "PutAccessControlRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutAccessControlRuleResponse Source #

Create a value of PutAccessControlRuleResponse 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:PutAccessControlRuleResponse', putAccessControlRuleResponse_httpStatus - The response's http status code.

Response Lenses