ResilienceHubV2 / Paginator / ListTestSources

ListTestSources

class ResilienceHubV2.Paginator.ListTestSources
paginator = client.get_paginator('list_test_sources')
paginate(**kwargs)

Creates an iterator that will paginate through responses from ResilienceHubV2.Client.list_test_sources().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    testId='string',
    serviceArn='string',
    type='SUCCESS_CRITERIA'|'OBSERVABILITY',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • testId (string) –

    [REQUIRED]

    The identifier of the test to list sources for.

  • serviceArn (string) –

    [REQUIRED]

    The ARN of the service the test belongs to.

  • type (string) – Filter sources by type.

  • 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

{
    'testSources': [
        {
            'successCriteriaAlarm': {
                'alarmArn': 'string',
                'alarmName': 'string',
                'region': 'string',
                'accountId': 'string',
                'createdAt': datetime(2015, 1, 1)
            },
            'observabilityAlarm': {
                'alarmArn': 'string',
                'alarmName': 'string',
                'region': 'string',
                'accountId': 'string',
                'createdAt': datetime(2015, 1, 1)
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • testSources (list) –

      The list of configured monitoring sources.

      • (dict) –

        A configured monitoring source returned by ListTestSources. Exactly one member is set.

        Note

        This is a Tagged Union structure. Only one of the following top level keys will be set: successCriteriaAlarm, observabilityAlarm. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

        'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
        
        • successCriteriaAlarm (dict) –

          A configured success criteria alarm.

          • alarmArn (string) –

            The ARN of the CloudWatch alarm.

          • alarmName (string) –

            The name of the CloudWatch alarm.

          • region (string) –

            The Region of the CloudWatch alarm.

          • accountId (string) –

            The account ID that owns the CloudWatch alarm.

          • createdAt (datetime) –

            The timestamp when the source was configured.

        • observabilityAlarm (dict) –

          A configured observability alarm.

          • alarmArn (string) –

            The ARN of the CloudWatch alarm.

          • alarmName (string) –

            The name of the CloudWatch alarm.

          • region (string) –

            The Region of the CloudWatch alarm.

          • accountId (string) –

            The account ID that owns the CloudWatch alarm.

          • createdAt (datetime) –

            The timestamp when the source was configured.

    • NextToken (string) –

      A token to resume pagination.