list_access_control_rules
(**kwargs)¶Lists the access control rules for the specified organization.
See also: AWS API Documentation
Request Syntax
response = client.list_access_control_rules(
OrganizationId='string'
)
[REQUIRED]
The identifier for the organization.
{
'Rules': [
{
'Name': 'string',
'Effect': 'ALLOW'|'DENY',
'Description': 'string',
'IpRanges': [
'string',
],
'NotIpRanges': [
'string',
],
'Actions': [
'string',
],
'NotActions': [
'string',
],
'UserIds': [
'string',
],
'NotUserIds': [
'string',
],
'DateCreated': datetime(2015, 1, 1),
'DateModified': datetime(2015, 1, 1),
'ImpersonationRoleIds': [
'string',
],
'NotImpersonationRoleIds': [
'string',
]
},
]
}
Response Structure
The access control rules.
A rule that controls access to an WorkMail organization.
The rule name.
The rule effect.
The rule description.
IPv4 CIDR ranges to include in the rule.
IPv4 CIDR ranges to exclude from the rule.
Access protocol actions to include in the rule. Valid values include ActiveSync
, AutoDiscover
, EWS
, IMAP
, SMTP
, WindowsOutlook
, and WebMail
.
Access protocol actions to exclude from the rule. Valid values include ActiveSync
, AutoDiscover
, EWS
, IMAP
, SMTP
, WindowsOutlook
, and WebMail
.
User IDs to include in the rule.
User IDs to exclude from the rule.
The date that the rule was created.
The date that the rule was modified.
Impersonation role IDs to include in the rule.
Impersonation role IDs to exclude from the rule.
Exceptions
WorkMail.Client.exceptions.OrganizationNotFoundException
WorkMail.Client.exceptions.OrganizationStateException