start_replay
¶
start_replay(
replay_name: ReplayName,
event_source_arn: Arn,
event_start_time: Timestamp,
event_end_time: Timestamp,
destination: ReplayDestination,
*,
config_overrides: Optional[CloudWatchEventsClientConfig] = None,
description: Optional[ReplayDescription] = None,
) -> StartReplayResponse
Starts 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:
-
replay_name(ReplayName) –The name of the replay to start.
-
description(Optional[ReplayDescription], default:None) –A description for the replay to start.
-
event_source_arn(Arn) –The ARN of the archive to replay events from.
-
event_start_time(Timestamp) –A time stamp for the time to start replaying events. Only events that occurred between the
EventStartTimeandEventEndTimeare replayed. -
event_end_time(Timestamp) –A time stamp for the time to stop replaying events. Only events that occurred between the
EventStartTimeandEventEndTimeare replayed. -
destination(ReplayDestination) –A
ReplayDestinationobject that includes details about the destination for the replay.
Raises:
-
InternalException–This exception occurs due to unexpected causes.
-
InvalidEventPatternException–The event pattern is not valid.
-
LimitExceededException–The request failed because it attempted to create resource beyond the allowed service quota.
-
ResourceAlreadyExistsException–The resource you are trying to create already exists.
-
ResourceNotFoundException–An entity that you specified does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_events/_services/cloud_watch_events.py
2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 | |