Assurance / Paginator / GetResourceActivitiesQueryResults

GetResourceActivitiesQueryResults

class Assurance.Paginator.GetResourceActivitiesQueryResults
paginator = client.get_paginator('get_resource_activities_query_results')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Assurance.Client.get_resource_activities_query_results().

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The ARN of the environment that the query ran in.

  • project (string) –

    [REQUIRED]

    The project that the query ran in.

  • queryId (string) –

    [REQUIRED]

    The ID of the query, as returned by StartResourceActivitiesQuery.

  • 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

{
    'status': 'RUNNING'|'COMPLETE'|'FAILED'|'EXPIRED',
    'entries': [
        {
            'actionDetail': {
                'service': 'string',
                'api': 'string',
                'successCount': 123,
                'failureCount': 123
            },
            'resourceDetail': {
                'resourceType': 'string',
                'arn': 'string',
                'accessType': 'WRITE'|'READ',
                'successCount': 123,
                'failureCount': 123
            },
            'sessionDetail': {
                'sessionId': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • status (string) –

      The status of the query. Valid values:

      • COMPLETE – The query finished, and the results are available.

      • EXPIRED – The query and its results are no longer available. Start a new query.

      • FAILED – The query failed, and no results are available.

      • RUNNING – The query is still running. Call the operation again later.

    • entries (list) –

      A page of query results. The response includes this field only when status is COMPLETE and the query found activity.

      • (dict) –

        One query result. The field that’s set shows how the result is grouped.

        Note

        This is a Tagged Union structure. Only one of the following top level keys will be set: actionDetail, resourceDetail, sessionDetail. 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'}
        
        • actionDetail (dict) –

          The calls that the agent made to one API action.

          • service (string) –

            The endpoint name of the AWS service, such as dynamodb.amazonaws.com.

          • api (string) –

            The name of the API action, such as PutItem.

          • successCount (integer) –

            The number of calls to the API action that succeeded.

          • failureCount (integer) –

            The number of calls to the API action that failed.

        • resourceDetail (dict) –

          The calls that the agent made to one resource.

          • resourceType (string) –

            The AWS CloudFormation resource type of the resource, such as AWS::DynamoDB::Table. The response omits this field when the type isn’t known.

          • arn (string) –

            The ARN of the resource.

          • accessType (string) –

            The kind of access that the agent had to the resource. Valid values:

            • READ – The agent only read the resource.

            • WRITE – The agent made at least one call that changed the resource.

          • successCount (integer) –

            The number of calls to the resource that succeeded.

          • failureCount (integer) –

            The number of calls to the resource that failed.

        • sessionDetail (dict) –

          An agent session in the time range of the query.

          • sessionId (string) –

            The ID of the session, as reported by Amazon Bedrock AgentCore Runtime.

    • NextToken (string) –

      A token to resume pagination.