CloudWatchApplicationSignals / Paginator / ListEntityEvents

ListEntityEvents

class CloudWatchApplicationSignals.Paginator.ListEntityEvents
paginator = client.get_paginator('list_entity_events')
paginate(**kwargs)

Creates an iterator that will paginate through responses from CloudWatchApplicationSignals.Client.list_entity_events().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    Entity={
        'string': 'string'
    },
    StartTime=datetime(2015, 1, 1),
    EndTime=datetime(2015, 1, 1),
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • Entity (dict) –

    [REQUIRED]

    The entity for which to retrieve change events. This specifies the service, resource, or other entity whose event history you want to examine.

    This is a string-to-string map. It can include the following fields.

    • Type designates the type of object this is.

    • ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource.

    • Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service.

    • Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource.

    • Environment specifies the location where this object is hosted, or what it belongs to.

    • AwsAccountId specifies the account where this object is in.

    Below is an example of a service.

    { "Type": "Service", "Name": "visits-service", "Environment": "petclinic-test" }

    Below is an example of a resource.

    { "Type": "AWS::Resource", "ResourceType": "AWS::DynamoDB::Table", "Identifier": "Customers" }

    • (string) –

      • (string) –

  • StartTime (datetime) –

    [REQUIRED]

    The start of the time period to retrieve change events for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example: 1698778057

  • EndTime (datetime) –

    [REQUIRED]

    The end of the time period to retrieve change events for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example: 1698778057

  • 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

{
    'StartTime': datetime(2015, 1, 1),
    'EndTime': datetime(2015, 1, 1),
    'ChangeEvents': [
        {
            'Timestamp': datetime(2015, 1, 1),
            'AccountId': 'string',
            'Region': 'string',
            'Entity': {
                'string': 'string'
            },
            'ChangeEventType': 'DEPLOYMENT'|'CONFIGURATION',
            'EventId': 'string',
            'UserName': 'string',
            'EventName': 'string'
        },
    ],

}

Response Structure

  • (dict) –

    • StartTime (datetime) –

      The start of the time period that the returned change events apply to. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example: 1698778057

    • EndTime (datetime) –

      The end of the time period that the returned change events apply to. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example: 1698778057

    • ChangeEvents (list) –

      An array of structures, where each structure contains information about one change event that occurred for the specified entity during the requested time period.

      • (dict) –

        A structure that contains information about a change event that occurred for a service, such as a deployment or configuration change.

        • Timestamp (datetime) –

          The timestamp when this change event occurred. When used in a raw HTTP Query API, it is formatted as epoch time in seconds.

        • AccountId (string) –

          The Amazon Web Services account ID where this change event occurred.

        • Region (string) –

          The Amazon Web Services region where this change event occurred.

        • Entity (dict) –

          The entity (service or resource) that was affected by this change event, including its key attributes.

          This is a string-to-string map. It can include the following fields.

          • Type designates the type of object this is.

          • ResourceType specifies the type of the resource. This field is used only when the value of the Type field is Resource or AWS::Resource.

          • Name specifies the name of the object. This is used only if the value of the Type field is Service, RemoteService, or AWS::Service.

          • Identifier identifies the resource objects of this resource. This is used only if the value of the Type field is Resource or AWS::Resource.

          • Environment specifies the location where this object is hosted, or what it belongs to.

          • AwsAccountId specifies the account where this object is in.

          Below is an example of a service.

          { "Type": "Service", "Name": "visits-service", "Environment": "petclinic-test" }

          Below is an example of a resource.

          { "Type": "AWS::Resource", "ResourceType": "AWS::DynamoDB::Table", "Identifier": "Customers" }

          • (string) –

            • (string) –

        • ChangeEventType (string) –

          The type of change event that occurred, such as DEPLOYMENT.

        • EventId (string) –

          A unique identifier for this change event. For CloudTrail-based events, this is the CloudTrail event id. For other events, this will be Unknown.

        • UserName (string) –

          The name of the user who initiated this change event, if available.

        • EventName (string) –

          The name or description of this change event.