amazonka-workmail-2.0: Amazon WorkMail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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, user IDs and impersonation 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
ToJSON PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.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

AWSRequest PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Associated Types

type AWSResponse PutAccessControlRule #

Generic PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Associated Types

type Rep PutAccessControlRule :: Type -> Type #

Read PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Show PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

NFData PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Methods

rnf :: PutAccessControlRule -> () #

Eq PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Hashable PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

type AWSResponse PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

type Rep PutAccessControlRule Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

type Rep PutAccessControlRule = D1 ('MetaData "PutAccessControlRule" "Amazonka.WorkMail.PutAccessControlRule" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "PutAccessControlRule'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "actions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "impersonationRoleIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "ipRanges") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: (S1 ('MetaSel ('Just "notActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "notImpersonationRoleIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "notIpRanges") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))) :*: ((S1 ('MetaSel ('Just "notUserIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "userIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "effect") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AccessControlRuleEffect) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

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:

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

PutAccessControlRule, putAccessControlRule_impersonationRoleIds - Impersonation role IDs to include in the rule.

PutAccessControlRule, putAccessControlRule_ipRanges - IPv4 CIDR ranges to include in the rule.

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

PutAccessControlRule, putAccessControlRule_notImpersonationRoleIds - Impersonation role IDs to exclude from the rule.

PutAccessControlRule, putAccessControlRule_notIpRanges - IPv4 CIDR ranges to exclude from the rule.

PutAccessControlRule, putAccessControlRule_notUserIds - User IDs to exclude from the rule.

PutAccessControlRule, putAccessControlRule_userIds - User IDs to include in the rule.

PutAccessControlRule, putAccessControlRule_name - The rule name.

PutAccessControlRule, putAccessControlRule_effect - The rule effect.

PutAccessControlRule, putAccessControlRule_description - The rule description.

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_impersonationRoleIds :: Lens' PutAccessControlRule (Maybe [Text]) Source #

Impersonation role IDs to include in the rule.

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

IPv4 CIDR ranges to include in 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.

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

Impersonation role IDs to exclude from the rule.

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

IPv4 CIDR ranges to exclude from the rule.

Destructuring the Response

data PutAccessControlRuleResponse Source #

See: newPutAccessControlRuleResponse smart constructor.

Constructors

PutAccessControlRuleResponse' 

Fields

Instances

Instances details
Generic PutAccessControlRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Associated Types

type Rep PutAccessControlRuleResponse :: Type -> Type #

Read PutAccessControlRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Show PutAccessControlRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

NFData PutAccessControlRuleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.PutAccessControlRule

Eq 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" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" '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