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 |
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
- data PutAccessControlRule = PutAccessControlRule' {
- actions :: Maybe [Text]
- impersonationRoleIds :: Maybe [Text]
- ipRanges :: Maybe [Text]
- notActions :: Maybe [Text]
- notImpersonationRoleIds :: Maybe [Text]
- notIpRanges :: Maybe [Text]
- notUserIds :: Maybe [Text]
- userIds :: Maybe [Text]
- name :: Text
- effect :: AccessControlRuleEffect
- description :: Text
- organizationId :: Text
- newPutAccessControlRule :: Text -> AccessControlRuleEffect -> Text -> Text -> PutAccessControlRule
- putAccessControlRule_actions :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_impersonationRoleIds :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_ipRanges :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_notActions :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_notImpersonationRoleIds :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_notIpRanges :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_notUserIds :: Lens' PutAccessControlRule (Maybe [Text])
- putAccessControlRule_userIds :: 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:
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.
putAccessControlRule_notUserIds :: Lens' PutAccessControlRule (Maybe [Text]) Source #
User IDs to exclude from the rule.
putAccessControlRule_userIds :: Lens' PutAccessControlRule (Maybe [Text]) Source #
User IDs to include in the rule.
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.