describe_events

DatabaseMigrationService.Client.describe_events(**kwargs)

Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on DMS events, see Working with Events and Notifications in the Database Migration Service User Guide.

See also: AWS API Documentation

Request Syntax

response = client.describe_events(
    SourceIdentifier='string',
    SourceType='replication-instance',
    StartTime=datetime(2015, 1, 1),
    EndTime=datetime(2015, 1, 1),
    Duration=123,
    EventCategories=[
        'string',
    ],
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    Marker='string'
)
Parameters
  • SourceIdentifier (string) -- The identifier of an event source.
  • SourceType (string) --

    The type of DMS resource that generates events.

    Valid values: replication-instance | replication-task

  • StartTime (datetime) -- The start time for the events to be listed.
  • EndTime (datetime) -- The end time for the events to be listed.
  • Duration (integer) -- The duration of the events to be listed.
  • EventCategories (list) --

    A list of event categories for the source type that you've chosen.

    • (string) --
  • Filters (list) --

    Filters applied to events. The only valid filter is replication-instance-id .

    • (dict) --

      Identifies the name and value of a filter object. This filter is used to limit the number and type of DMS objects that are returned for a particular Describe* call or similar operation. Filters are used as an optional parameter for certain API operations.

      • Name (string) -- [REQUIRED]

        The name of the filter as specified for a Describe* or similar operation.

      • Values (list) -- [REQUIRED]

        The filter value, which can specify one or more values used to narrow the returned results.

        • (string) --
  • MaxRecords (integer) --

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • Marker (string) -- An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Return type

dict

Returns

Response Syntax

{
    'Marker': 'string',
    'Events': [
        {
            'SourceIdentifier': 'string',
            'SourceType': 'replication-instance',
            'Message': 'string',
            'EventCategories': [
                'string',
            ],
            'Date': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) --

    • Marker (string) --

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    • Events (list) --

      The events described.

      • (dict) --

        Describes an identifiable significant activity that affects a replication instance or task. This object can provide the message, the available event categories, the date and source of the event, and the DMS resource type.

        • SourceIdentifier (string) --

          The identifier of an event source.

        • SourceType (string) --

          The type of DMS resource that generates events.

          Valid values: replication-instance | endpoint | replication-task

        • Message (string) --

          The event message.

        • EventCategories (list) --

          The event categories available for the specified source type.

          • (string) --
        • Date (datetime) --

          The date of the event.