MailManager / Client / list_rule_sets

list_rule_sets#

MailManager.Client.list_rule_sets(**kwargs)#

List rule sets for this account.

See also: AWS API Documentation

Request Syntax

response = client.list_rule_sets(
    NextToken='string',
    PageSize=123
)
Parameters:
  • NextToken (string) – If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

  • PageSize (integer) – The maximum number of rule set resources that are returned per call. You can use NextToken to obtain further rule sets.

Return type:

dict

Returns:

Response Syntax

{
    'NextToken': 'string',
    'RuleSets': [
        {
            'LastModificationDate': datetime(2015, 1, 1),
            'RuleSetId': 'string',
            'RuleSetName': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • NextToken (string) –

      If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

    • RuleSets (list) –

      The list of rule sets.

      • (dict) –

        A rule set contains a list of rules that are evaluated in order. Each rule is evaluated sequentially for each email.

        • LastModificationDate (datetime) –

          The last modification date of the rule set.

        • RuleSetId (string) –

          The identifier of the rule set.

        • RuleSetName (string) –

          A user-friendly name for the rule set.

Exceptions