Skip to main content

replays

Creates, updates, deletes, gets or lists a replays resource.

Overview

Namereplays
TypeResource
Idaws.events.replays

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringThe description of the replay. (pattern: <code>.*</code>)
destinationobjectA ReplayDestination object that contains details about the replay.
event_end_timestring (date-time)The time stamp for the last event that was replayed from the archive.
event_last_replayed_timestring (date-time)The time that the event was last replayed.
event_source_arnstringThe ARN of the archive events were replayed from. (pattern: <code>^arn:aws([a-z]|-):events:([a-z]|\d|-):([0-9]{12})?:.+/.+$</code>)
event_start_timestring (date-time)The time stamp of the first event that was last replayed from the archive.
replay_arnstringThe ARN of the replay. (pattern: <code>^arn:aws([a-z]|-):events:([a-z]|\d|-):([0-9]{12})?:.+/[.-_A-Za-z0-9]+$</code>)
replay_end_timestring (date-time)A time stamp for the time that the replay stopped.
replay_namestringThe name of the replay. (pattern: <code>[.-_A-Za-z0-9]+</code>)
replay_start_timestring (date-time)A time stamp for the time that the replay started.
statestringThe current state of the replay. (STARTING, RUNNING, CANCELLING, COMPLETED, CANCELLED, FAILED)
state_reasonstringThe reason that the replay is in the current state. (pattern: <code>.*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_replayselectregionRetrieves details about a replay. Use DescribeReplay to determine the progress of a running replay. A replay processes events to replay based on the time in the event, and replays them using 1 minute intervals. If you use StartReplay and specify an EventStartTime and an EventEndTime that covers a 20 minute time range, the events are replayed from the first minute of that 20 minute range first. Then the events from the second minute are replayed. You can use DescribeReplay to determine the progress of a replay. The value returned for EventLastReplayedTime indicates the time within the specified time range associated with the last event replayed.
list_replaysselectregionLists your replays. You can either list all the replays or you can provide a prefix to match to the replay names. Filter parameters are exclusive.
cancel_replayexecregion, ReplayNameCancels the specified replay.
start_replayexecregion, ReplayName, EventSourceArn, EventStartTime, EventEndTimeStarts the specified replay. Events are not necessarily replayed in the exact same order that they were added to the archive. A replay processes events to replay based on the time in the event, and replays them using 1 minute intervals. If you specify an EventStartTime and an EventEndTime that covers a 20 minute time range, the events are replayed from the first minute of that 20 minute range first. Then the events from the second minute are replayed. You can use DescribeReplay to determine the progress of a replay. The value returned for EventLastReplayedTime indicates the time within the specified time range associated with the last event replayed.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves details about a replay. Use DescribeReplay to determine the progress of a running replay. A replay processes events to replay based on the time in the event, and replays them using 1 minute intervals. If you use StartReplay and specify an EventStartTime and an EventEndTime that covers a 20 minute time range, the events are replayed from the first minute of that 20 minute range first. Then the events from the second minute are replayed. You can use DescribeReplay to determine the progress of a replay. The value returned for EventLastReplayedTime indicates the time within the specified time range associated with the last event replayed.

SELECT
description,
destination,
event_end_time,
event_last_replayed_time,
event_source_arn,
event_start_time,
replay_arn,
replay_end_time,
replay_name,
replay_start_time,
state,
state_reason
FROM aws.events.replays
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Cancels the specified replay.

EXEC aws.events.replays.cancel_replay
@region='{{ region }}' --required
@@json=
'{
"ReplayName": "{{ ReplayName }}"
}'
;