ResilienceHubV2 / Client / list_assertions

list_assertions

ResilienceHubV2.Client.list_assertions(**kwargs)

Lists resilience assertions for a service.

See also: AWS API Documentation

Request Syntax

response = client.list_assertions(
    serviceArn='string',
    source='AI_GENERATED'|'USER',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • serviceArn (string) –

    [REQUIRED]

    ARN identifier.

  • source (string) – Filter assertions by source type.

  • maxResults (integer) – Pagination page size.

  • nextToken (string) – Pagination token.

Return type:

dict

Returns:

Response Syntax

{
    'assertions': [
        {
            'serviceArn': 'string',
            'assertionId': 'string',
            'text': 'string',
            'source': 'AI_GENERATED'|'USER',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • assertions (list) –

      The list of assertions.

      • (dict) –

        Represents a resilience assertion for a service.

        • serviceArn (string) –

          ARN identifier.

        • assertionId (string) –

          The unique identifier of the assertion.

        • text (string) –

          The text content of the assertion.

        • source (string) –

          The source of the assertion, indicating whether it was AI-generated or created by a user.

        • createdAt (datetime) –

          The timestamp when the assertion was created.

        • updatedAt (datetime) –

          The timestamp when the assertion was last updated.

    • nextToken (string) –

      Pagination token.

Exceptions

  • ResilienceHubV2.Client.exceptions.InternalServerException

  • ResilienceHubV2.Client.exceptions.ResourceNotFoundException

  • ResilienceHubV2.Client.exceptions.ValidationException

  • ResilienceHubV2.Client.exceptions.AccessDeniedException