PrometheusService / Paginator / ListRuleGroupsNamespaces

ListRuleGroupsNamespaces#

class PrometheusService.Paginator.ListRuleGroupsNamespaces#
paginator = client.get_paginator('list_rule_groups_namespaces')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from PrometheusService.Client.list_rule_groups_namespaces().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    workspaceId='string',
    name='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • workspaceId (string) –

    [REQUIRED]

    The ID of the workspace.

  • name (string) – Optional filter for rule groups namespace name. Only the rule groups namespace that begin with this value will be returned.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'ruleGroupsNamespaces': [
        {
            'arn': 'string',
            'name': 'string',
            'status': {
                'statusCode': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATION_FAILED'|'UPDATE_FAILED',
                'statusReason': 'string'
            },
            'createdAt': datetime(2015, 1, 1),
            'modifiedAt': datetime(2015, 1, 1),
            'tags': {
                'string': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    Represents the output of a ListRuleGroupsNamespaces operation.

    • ruleGroupsNamespaces (list) –

      The list of the selected rule groups namespaces.

      • (dict) –

        Represents a summary of the rule groups namespace.

        • arn (string) –

          The Amazon Resource Name (ARN) of this rule groups namespace.

        • name (string) –

          The rule groups namespace name.

        • status (dict) –

          The status of rule groups namespace.

          • statusCode (string) –

            Status code of this namespace.

          • statusReason (string) –

            The reason for failure if any.

        • createdAt (datetime) –

          The time when the rule groups namespace was created.

        • modifiedAt (datetime) –

          The time when the rule groups namespace was modified.

        • tags (dict) –

          The tags of this rule groups namespace.

          • (string) –

            The key of the tag.

            Constraints: Tag keys are case-sensitive and accept a maximum of 128 Unicode characters. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @ May not begin with aws:.

            • (string) –

              The value of the tag.

              Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @

    • NextToken (string) –

      A token to resume pagination.