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 |
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
- data PutAccessControlRule = PutAccessControlRule' {
- userIds :: Maybe [Text]
- actions :: Maybe [Text]
- notUserIds :: Maybe [Text]
- ipRanges :: Maybe [Text]
- notIpRanges :: Maybe [Text]
- notActions :: Maybe [Text]
- name :: Text
- effect :: AccessControlRuleEffect
- description :: Text
- organizationId :: Text
- newPutAccessControlRule :: Text -> AccessControlRuleEffect -> Text -> Text -> PutAccessControlRule
- putAccessControlRule_userIds :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_actions :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_notUserIds :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_ipRanges :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_notIpRanges :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_notActions :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_name :: Lens' PutAccessControlRule Text
- putAccessControlRule_effect :: Lens' PutAccessControlRule AccessControlRuleEffect
- putAccessControlRule_description :: Lens' PutAccessControlRule Text
- putAccessControlRule_organizationId :: Lens' PutAccessControlRule Text
- data PutAccessControlRuleResponse = PutAccessControlRuleResponse' {
- httpStatus :: Int
- newPutAccessControlRuleResponse :: Int -> PutAccessControlRuleResponse
- putAccessControlRuleResponse_httpStatus :: Lens' PutAccessControlRuleResponse Int
Creating a Request
data PutAccessControlRule Source #
See: newPutAccessControlRule
smart constructor.
PutAccessControlRule' | |
|
Instances
newPutAccessControlRule Source #
:: Text | |
-> AccessControlRuleEffect | |
-> Text | |
-> Text | |
-> PutAccessControlRule |
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_userIds :: Lens' PutAccessControlRule (Maybe [Text]) Source #
User IDs to include in the rule.
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_notUserIds :: Lens' PutAccessControlRule (Maybe [Text]) Source #
User IDs to exclude from the rule.
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
.
putAccessControlRule_name :: Lens' PutAccessControlRule Text Source #
The rule name.
putAccessControlRule_effect :: Lens' PutAccessControlRule AccessControlRuleEffect Source #
The rule effect.
putAccessControlRule_description :: Lens' PutAccessControlRule Text Source #
The rule description.
putAccessControlRule_organizationId :: Lens' PutAccessControlRule Text Source #
The identifier of the organization.
Destructuring the Response
data PutAccessControlRuleResponse Source #
See: newPutAccessControlRuleResponse
smart constructor.
PutAccessControlRuleResponse' | |
|
Instances
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
putAccessControlRuleResponse_httpStatus :: Lens' PutAccessControlRuleResponse Int Source #
The response's http status code.