start_replay
async
¶
start_replay(
replay_name: ReplayName,
event_source_arn: Arn,
event_start_time: Timestamp,
event_end_time: Timestamp,
destination: ReplayDestination,
*,
config_overrides: Optional[AsyncCloudWatchEventsClientConfig] = 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/async_cloud_watch_events.py
2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 | |