aws-sdk-cloudwatchevents 1.38.0 → 1.39.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,6 +28,7 @@ module Aws::CloudWatchEvents
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {ConcurrentModificationException}
31
+ # * {IllegalStatusException}
31
32
  # * {InternalException}
32
33
  # * {InvalidEventPatternException}
33
34
  # * {InvalidStateException}
@@ -54,6 +55,16 @@ module Aws::CloudWatchEvents
54
55
  end
55
56
  end
56
57
 
58
+ class IllegalStatusException < ServiceError
59
+
60
+ # @param [Seahorse::Client::RequestContext] context
61
+ # @param [String] message
62
+ # @param [Aws::CloudWatchEvents::Types::IllegalStatusException] data
63
+ def initialize(context, message, data = Aws::EmptyStructure.new)
64
+ super(context, message, data)
65
+ end
66
+ end
67
+
57
68
  class InternalException < ServiceError
58
69
 
59
70
  # @param [Seahorse::Client::RequestContext] context
@@ -29,6 +29,58 @@ module Aws::CloudWatchEvents
29
29
  include Aws::Structure
30
30
  end
31
31
 
32
+ # An `Archive` object that contains details about an archive.
33
+ #
34
+ # @!attribute [rw] archive_name
35
+ # The name of the archive.
36
+ # @return [String]
37
+ #
38
+ # @!attribute [rw] event_source_arn
39
+ # The ARN of the event bus associated with the archive. Only events
40
+ # from this event bus are sent to the archive.
41
+ # @return [String]
42
+ #
43
+ # @!attribute [rw] state
44
+ # The current state of the archive.
45
+ # @return [String]
46
+ #
47
+ # @!attribute [rw] state_reason
48
+ # A description for the reason that the archive is in the current
49
+ # state.
50
+ # @return [String]
51
+ #
52
+ # @!attribute [rw] retention_days
53
+ # The number of days to retain events in the archive before they are
54
+ # deleted.
55
+ # @return [Integer]
56
+ #
57
+ # @!attribute [rw] size_bytes
58
+ # The size of the archive, in bytes.
59
+ # @return [Integer]
60
+ #
61
+ # @!attribute [rw] event_count
62
+ # The number of events in the archive.
63
+ # @return [Integer]
64
+ #
65
+ # @!attribute [rw] creation_time
66
+ # The time stamp for the time that the archive was created.
67
+ # @return [Time]
68
+ #
69
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Archive AWS API Documentation
70
+ #
71
+ class Archive < Struct.new(
72
+ :archive_name,
73
+ :event_source_arn,
74
+ :state,
75
+ :state_reason,
76
+ :retention_days,
77
+ :size_bytes,
78
+ :event_count,
79
+ :creation_time)
80
+ SENSITIVE = []
81
+ include Aws::Structure
82
+ end
83
+
32
84
  # This structure specifies the VPC subnets and security groups for the
33
85
  # task, and whether a public IP address is to be used. This structure is
34
86
  # relevant only for ECS tasks that use the `awsvpc` network mode.
@@ -171,7 +223,49 @@ module Aws::CloudWatchEvents
171
223
  include Aws::Structure
172
224
  end
173
225
 
174
- # There is concurrent modification on a rule or target.
226
+ # @note When making an API call, you may pass CancelReplayRequest
227
+ # data as a hash:
228
+ #
229
+ # {
230
+ # replay_name: "ReplayName", # required
231
+ # }
232
+ #
233
+ # @!attribute [rw] replay_name
234
+ # The name of the replay to cancel.
235
+ # @return [String]
236
+ #
237
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplayRequest AWS API Documentation
238
+ #
239
+ class CancelReplayRequest < Struct.new(
240
+ :replay_name)
241
+ SENSITIVE = []
242
+ include Aws::Structure
243
+ end
244
+
245
+ # @!attribute [rw] replay_arn
246
+ # The ARN of the replay to cancel.
247
+ # @return [String]
248
+ #
249
+ # @!attribute [rw] state
250
+ # The current state of the replay.
251
+ # @return [String]
252
+ #
253
+ # @!attribute [rw] state_reason
254
+ # The reason that the replay is in the current state.
255
+ # @return [String]
256
+ #
257
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplayResponse AWS API Documentation
258
+ #
259
+ class CancelReplayResponse < Struct.new(
260
+ :replay_arn,
261
+ :state,
262
+ :state_reason)
263
+ SENSITIVE = []
264
+ include Aws::Structure
265
+ end
266
+
267
+ # There is concurrent modification on a rule, target, archive, or
268
+ # replay.
175
269
  #
176
270
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ConcurrentModificationException AWS API Documentation
177
271
  #
@@ -221,6 +315,77 @@ module Aws::CloudWatchEvents
221
315
  include Aws::Structure
222
316
  end
223
317
 
318
+ # @note When making an API call, you may pass CreateArchiveRequest
319
+ # data as a hash:
320
+ #
321
+ # {
322
+ # archive_name: "ArchiveName", # required
323
+ # event_source_arn: "Arn", # required
324
+ # description: "ArchiveDescription",
325
+ # event_pattern: "EventPattern",
326
+ # retention_days: 1,
327
+ # }
328
+ #
329
+ # @!attribute [rw] archive_name
330
+ # The name for the archive to create.
331
+ # @return [String]
332
+ #
333
+ # @!attribute [rw] event_source_arn
334
+ # The ARN of the event source associated with the archive.
335
+ # @return [String]
336
+ #
337
+ # @!attribute [rw] description
338
+ # A description for the archive.
339
+ # @return [String]
340
+ #
341
+ # @!attribute [rw] event_pattern
342
+ # An event pattern to use to filter events sent to the archive.
343
+ # @return [String]
344
+ #
345
+ # @!attribute [rw] retention_days
346
+ # The number of days to retain events for. Default value is 0. If set
347
+ # to 0, events are retained indefinitely
348
+ # @return [Integer]
349
+ #
350
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchiveRequest AWS API Documentation
351
+ #
352
+ class CreateArchiveRequest < Struct.new(
353
+ :archive_name,
354
+ :event_source_arn,
355
+ :description,
356
+ :event_pattern,
357
+ :retention_days)
358
+ SENSITIVE = []
359
+ include Aws::Structure
360
+ end
361
+
362
+ # @!attribute [rw] archive_arn
363
+ # The ARN of the archive that was created.
364
+ # @return [String]
365
+ #
366
+ # @!attribute [rw] state
367
+ # The state of the archive that was created.
368
+ # @return [String]
369
+ #
370
+ # @!attribute [rw] state_reason
371
+ # The reason that the archive is in the state.
372
+ # @return [String]
373
+ #
374
+ # @!attribute [rw] creation_time
375
+ # The time at which the archive was created.
376
+ # @return [Time]
377
+ #
378
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchiveResponse AWS API Documentation
379
+ #
380
+ class CreateArchiveResponse < Struct.new(
381
+ :archive_arn,
382
+ :state,
383
+ :state_reason,
384
+ :creation_time)
385
+ SENSITIVE = []
386
+ include Aws::Structure
387
+ end
388
+
224
389
  # @note When making an API call, you may pass CreateEventBusRequest
225
390
  # data as a hash:
226
391
  #
@@ -361,6 +526,29 @@ module Aws::CloudWatchEvents
361
526
  include Aws::Structure
362
527
  end
363
528
 
529
+ # @note When making an API call, you may pass DeleteArchiveRequest
530
+ # data as a hash:
531
+ #
532
+ # {
533
+ # archive_name: "ArchiveName", # required
534
+ # }
535
+ #
536
+ # @!attribute [rw] archive_name
537
+ # The name of the archive to delete.
538
+ # @return [String]
539
+ #
540
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchiveRequest AWS API Documentation
541
+ #
542
+ class DeleteArchiveRequest < Struct.new(
543
+ :archive_name)
544
+ SENSITIVE = []
545
+ include Aws::Structure
546
+ end
547
+
548
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchiveResponse AWS API Documentation
549
+ #
550
+ class DeleteArchiveResponse < Aws::EmptyStructure; end
551
+
364
552
  # @note When making an API call, you may pass DeleteEventBusRequest
365
553
  # data as a hash:
366
554
  #
@@ -442,6 +630,87 @@ module Aws::CloudWatchEvents
442
630
  include Aws::Structure
443
631
  end
444
632
 
633
+ # @note When making an API call, you may pass DescribeArchiveRequest
634
+ # data as a hash:
635
+ #
636
+ # {
637
+ # archive_name: "ArchiveName", # required
638
+ # }
639
+ #
640
+ # @!attribute [rw] archive_name
641
+ # The name of the archive to retrieve.
642
+ # @return [String]
643
+ #
644
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchiveRequest AWS API Documentation
645
+ #
646
+ class DescribeArchiveRequest < Struct.new(
647
+ :archive_name)
648
+ SENSITIVE = []
649
+ include Aws::Structure
650
+ end
651
+
652
+ # @!attribute [rw] archive_arn
653
+ # The ARN of the archive.
654
+ # @return [String]
655
+ #
656
+ # @!attribute [rw] archive_name
657
+ # The name of the archive.
658
+ # @return [String]
659
+ #
660
+ # @!attribute [rw] event_source_arn
661
+ # The ARN of the event source associated with the archive.
662
+ # @return [String]
663
+ #
664
+ # @!attribute [rw] description
665
+ # The description of the archive.
666
+ # @return [String]
667
+ #
668
+ # @!attribute [rw] event_pattern
669
+ # The event pattern used to filter events sent to the archive.
670
+ # @return [String]
671
+ #
672
+ # @!attribute [rw] state
673
+ # The state of the archive.
674
+ # @return [String]
675
+ #
676
+ # @!attribute [rw] state_reason
677
+ # The reason that the archive is in the state.
678
+ # @return [String]
679
+ #
680
+ # @!attribute [rw] retention_days
681
+ # The number of days to retain events for in the archive.
682
+ # @return [Integer]
683
+ #
684
+ # @!attribute [rw] size_bytes
685
+ # The size of the archive in bytes.
686
+ # @return [Integer]
687
+ #
688
+ # @!attribute [rw] event_count
689
+ # The number of events in the archive.
690
+ # @return [Integer]
691
+ #
692
+ # @!attribute [rw] creation_time
693
+ # The time at which the archive was created.
694
+ # @return [Time]
695
+ #
696
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchiveResponse AWS API Documentation
697
+ #
698
+ class DescribeArchiveResponse < Struct.new(
699
+ :archive_arn,
700
+ :archive_name,
701
+ :event_source_arn,
702
+ :description,
703
+ :event_pattern,
704
+ :state,
705
+ :state_reason,
706
+ :retention_days,
707
+ :size_bytes,
708
+ :event_count,
709
+ :creation_time)
710
+ SENSITIVE = []
711
+ include Aws::Structure
712
+ end
713
+
445
714
  # @note When making an API call, you may pass DescribeEventBusRequest
446
715
  # data as a hash:
447
716
  #
@@ -584,6 +853,94 @@ module Aws::CloudWatchEvents
584
853
  include Aws::Structure
585
854
  end
586
855
 
856
+ # @note When making an API call, you may pass DescribeReplayRequest
857
+ # data as a hash:
858
+ #
859
+ # {
860
+ # replay_name: "ReplayName", # required
861
+ # }
862
+ #
863
+ # @!attribute [rw] replay_name
864
+ # The name of the replay to retrieve.
865
+ # @return [String]
866
+ #
867
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplayRequest AWS API Documentation
868
+ #
869
+ class DescribeReplayRequest < Struct.new(
870
+ :replay_name)
871
+ SENSITIVE = []
872
+ include Aws::Structure
873
+ end
874
+
875
+ # @!attribute [rw] replay_name
876
+ # The name of the replay.
877
+ # @return [String]
878
+ #
879
+ # @!attribute [rw] replay_arn
880
+ # The ARN of the replay.
881
+ # @return [String]
882
+ #
883
+ # @!attribute [rw] description
884
+ # The description of the replay.
885
+ # @return [String]
886
+ #
887
+ # @!attribute [rw] state
888
+ # The current state of the replay.
889
+ # @return [String]
890
+ #
891
+ # @!attribute [rw] state_reason
892
+ # The reason that the replay is in the current state.
893
+ # @return [String]
894
+ #
895
+ # @!attribute [rw] event_source_arn
896
+ # The ARN of the archive events were replayed from.
897
+ # @return [String]
898
+ #
899
+ # @!attribute [rw] destination
900
+ # A `ReplayDestination` object that contains details about the replay.
901
+ # @return [Types::ReplayDestination]
902
+ #
903
+ # @!attribute [rw] event_start_time
904
+ # The time stamp of the first event that was last replayed from the
905
+ # archive.
906
+ # @return [Time]
907
+ #
908
+ # @!attribute [rw] event_end_time
909
+ # The time stamp for the last event that was replayed from the
910
+ # archive.
911
+ # @return [Time]
912
+ #
913
+ # @!attribute [rw] event_last_replayed_time
914
+ # The time that the event was last replayed.
915
+ # @return [Time]
916
+ #
917
+ # @!attribute [rw] replay_start_time
918
+ # A time stamp for the time that the replay started.
919
+ # @return [Time]
920
+ #
921
+ # @!attribute [rw] replay_end_time
922
+ # A time stamp for the time that the replay stopped.
923
+ # @return [Time]
924
+ #
925
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplayResponse AWS API Documentation
926
+ #
927
+ class DescribeReplayResponse < Struct.new(
928
+ :replay_name,
929
+ :replay_arn,
930
+ :description,
931
+ :state,
932
+ :state_reason,
933
+ :event_source_arn,
934
+ :destination,
935
+ :event_start_time,
936
+ :event_end_time,
937
+ :event_last_replayed_time,
938
+ :replay_start_time,
939
+ :replay_end_time)
940
+ SENSITIVE = []
941
+ include Aws::Structure
942
+ end
943
+
587
944
  # @note When making an API call, you may pass DescribeRuleRequest
588
945
  # data as a hash:
589
946
  #
@@ -930,6 +1287,13 @@ module Aws::CloudWatchEvents
930
1287
  include Aws::Structure
931
1288
  end
932
1289
 
1290
+ # An error occurred because a replay can be canceled only when the state
1291
+ # is Running or Starting.
1292
+ #
1293
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/IllegalStatusException AWS API Documentation
1294
+ #
1295
+ class IllegalStatusException < Aws::EmptyStructure; end
1296
+
933
1297
  # Contains the parameters needed for you to provide custom input to a
934
1298
  # target based on one or more pieces of data extracted from the event.
935
1299
  #
@@ -1056,13 +1420,76 @@ module Aws::CloudWatchEvents
1056
1420
  include Aws::Structure
1057
1421
  end
1058
1422
 
1059
- # You tried to create more rules or add more targets to a rule than is
1060
- # allowed.
1423
+ # The request failed because it attempted to create resource beyond the
1424
+ # allowed service quota.
1061
1425
  #
1062
1426
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/LimitExceededException AWS API Documentation
1063
1427
  #
1064
1428
  class LimitExceededException < Aws::EmptyStructure; end
1065
1429
 
1430
+ # @note When making an API call, you may pass ListArchivesRequest
1431
+ # data as a hash:
1432
+ #
1433
+ # {
1434
+ # name_prefix: "ArchiveName",
1435
+ # event_source_arn: "Arn",
1436
+ # state: "ENABLED", # accepts ENABLED, DISABLED, CREATING, UPDATING, CREATE_FAILED, UPDATE_FAILED
1437
+ # next_token: "NextToken",
1438
+ # limit: 1,
1439
+ # }
1440
+ #
1441
+ # @!attribute [rw] name_prefix
1442
+ # A name prefix to filter the archives returned. Only archives with
1443
+ # name that match the prefix are returned.
1444
+ # @return [String]
1445
+ #
1446
+ # @!attribute [rw] event_source_arn
1447
+ # The ARN of the event source associated with the archive.
1448
+ # @return [String]
1449
+ #
1450
+ # @!attribute [rw] state
1451
+ # The state of the archive.
1452
+ # @return [String]
1453
+ #
1454
+ # @!attribute [rw] next_token
1455
+ # The token returned by a previous call to retrieve the next set of
1456
+ # results.
1457
+ # @return [String]
1458
+ #
1459
+ # @!attribute [rw] limit
1460
+ # The maximum number of results to return.
1461
+ # @return [Integer]
1462
+ #
1463
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchivesRequest AWS API Documentation
1464
+ #
1465
+ class ListArchivesRequest < Struct.new(
1466
+ :name_prefix,
1467
+ :event_source_arn,
1468
+ :state,
1469
+ :next_token,
1470
+ :limit)
1471
+ SENSITIVE = []
1472
+ include Aws::Structure
1473
+ end
1474
+
1475
+ # @!attribute [rw] archives
1476
+ # An array of `Archive` objects that include details about an archive.
1477
+ # @return [Array<Types::Archive>]
1478
+ #
1479
+ # @!attribute [rw] next_token
1480
+ # The token returned by a previous call to retrieve the next set of
1481
+ # results.
1482
+ # @return [String]
1483
+ #
1484
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchivesResponse AWS API Documentation
1485
+ #
1486
+ class ListArchivesResponse < Struct.new(
1487
+ :archives,
1488
+ :next_token)
1489
+ SENSITIVE = []
1490
+ include Aws::Structure
1491
+ end
1492
+
1066
1493
  # @note When making an API call, you may pass ListEventBusesRequest
1067
1494
  # data as a hash:
1068
1495
  #
@@ -1275,6 +1702,70 @@ module Aws::CloudWatchEvents
1275
1702
  include Aws::Structure
1276
1703
  end
1277
1704
 
1705
+ # @note When making an API call, you may pass ListReplaysRequest
1706
+ # data as a hash:
1707
+ #
1708
+ # {
1709
+ # name_prefix: "ReplayName",
1710
+ # state: "STARTING", # accepts STARTING, RUNNING, CANCELLING, COMPLETED, CANCELLED, FAILED
1711
+ # event_source_arn: "Arn",
1712
+ # next_token: "NextToken",
1713
+ # limit: 1,
1714
+ # }
1715
+ #
1716
+ # @!attribute [rw] name_prefix
1717
+ # A name prefix to filter the archives returned. Only archives with
1718
+ # name that match the prefix are returned.
1719
+ # @return [String]
1720
+ #
1721
+ # @!attribute [rw] state
1722
+ # The state of the replay.
1723
+ # @return [String]
1724
+ #
1725
+ # @!attribute [rw] event_source_arn
1726
+ # The ARN of the event source associated with the replay.
1727
+ # @return [String]
1728
+ #
1729
+ # @!attribute [rw] next_token
1730
+ # The token returned by a previous call to retrieve the next set of
1731
+ # results.
1732
+ # @return [String]
1733
+ #
1734
+ # @!attribute [rw] limit
1735
+ # The maximum number of replays to retrieve.
1736
+ # @return [Integer]
1737
+ #
1738
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplaysRequest AWS API Documentation
1739
+ #
1740
+ class ListReplaysRequest < Struct.new(
1741
+ :name_prefix,
1742
+ :state,
1743
+ :event_source_arn,
1744
+ :next_token,
1745
+ :limit)
1746
+ SENSITIVE = []
1747
+ include Aws::Structure
1748
+ end
1749
+
1750
+ # @!attribute [rw] replays
1751
+ # An array of `Replay` objects that contain information about the
1752
+ # replay.
1753
+ # @return [Array<Types::Replay>]
1754
+ #
1755
+ # @!attribute [rw] next_token
1756
+ # The token returned by a previous call to retrieve the next set of
1757
+ # results.
1758
+ # @return [String]
1759
+ #
1760
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplaysResponse AWS API Documentation
1761
+ #
1762
+ class ListReplaysResponse < Struct.new(
1763
+ :replays,
1764
+ :next_token)
1765
+ SENSITIVE = []
1766
+ include Aws::Structure
1767
+ end
1768
+
1278
1769
  # @note When making an API call, you may pass ListRuleNamesByTargetRequest
1279
1770
  # data as a hash:
1280
1771
  #
@@ -2324,6 +2815,94 @@ module Aws::CloudWatchEvents
2324
2815
  include Aws::Structure
2325
2816
  end
2326
2817
 
2818
+ # A `Replay` object that contains details about a replay.
2819
+ #
2820
+ # @!attribute [rw] replay_name
2821
+ # The name of the replay.
2822
+ # @return [String]
2823
+ #
2824
+ # @!attribute [rw] event_source_arn
2825
+ # The ARN of the archive to replay event from.
2826
+ # @return [String]
2827
+ #
2828
+ # @!attribute [rw] state
2829
+ # The current state of the replay.
2830
+ # @return [String]
2831
+ #
2832
+ # @!attribute [rw] state_reason
2833
+ # A description of why the replay is in the current state.
2834
+ # @return [String]
2835
+ #
2836
+ # @!attribute [rw] event_start_time
2837
+ # A time stamp for the time to start replaying events. This is
2838
+ # determined by the time in the event as described in [Time][1].
2839
+ #
2840
+ #
2841
+ #
2842
+ # [1]: https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html#eventbridge-Type-PutEventsRequestEntry-Time
2843
+ # @return [Time]
2844
+ #
2845
+ # @!attribute [rw] event_end_time
2846
+ # A time stamp for the time to start replaying events. Any event with
2847
+ # a creation time prior to the `EventEndTime` specified is replayed.
2848
+ # @return [Time]
2849
+ #
2850
+ # @!attribute [rw] event_last_replayed_time
2851
+ # A time stamp for the time that the last event was replayed.
2852
+ # @return [Time]
2853
+ #
2854
+ # @!attribute [rw] replay_start_time
2855
+ # A time stamp for the time that the replay started.
2856
+ # @return [Time]
2857
+ #
2858
+ # @!attribute [rw] replay_end_time
2859
+ # A time stamp for the time that the replay completed.
2860
+ # @return [Time]
2861
+ #
2862
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Replay AWS API Documentation
2863
+ #
2864
+ class Replay < Struct.new(
2865
+ :replay_name,
2866
+ :event_source_arn,
2867
+ :state,
2868
+ :state_reason,
2869
+ :event_start_time,
2870
+ :event_end_time,
2871
+ :event_last_replayed_time,
2872
+ :replay_start_time,
2873
+ :replay_end_time)
2874
+ SENSITIVE = []
2875
+ include Aws::Structure
2876
+ end
2877
+
2878
+ # A `ReplayDestination` object that contains details about a replay.
2879
+ #
2880
+ # @note When making an API call, you may pass ReplayDestination
2881
+ # data as a hash:
2882
+ #
2883
+ # {
2884
+ # arn: "Arn", # required
2885
+ # filter_arns: ["Arn"],
2886
+ # }
2887
+ #
2888
+ # @!attribute [rw] arn
2889
+ # The ARN of the event bus to replay event to. You can replay events
2890
+ # only to the event bus specified to create the archive.
2891
+ # @return [String]
2892
+ #
2893
+ # @!attribute [rw] filter_arns
2894
+ # A list of ARNs for rules to replay events to.
2895
+ # @return [Array<String>]
2896
+ #
2897
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ReplayDestination AWS API Documentation
2898
+ #
2899
+ class ReplayDestination < Struct.new(
2900
+ :arn,
2901
+ :filter_arns)
2902
+ SENSITIVE = []
2903
+ include Aws::Structure
2904
+ end
2905
+
2327
2906
  # The resource you are trying to create already exists.
2328
2907
  #
2329
2908
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ResourceAlreadyExistsException AWS API Documentation
@@ -2512,6 +3091,90 @@ module Aws::CloudWatchEvents
2512
3091
  include Aws::Structure
2513
3092
  end
2514
3093
 
3094
+ # @note When making an API call, you may pass StartReplayRequest
3095
+ # data as a hash:
3096
+ #
3097
+ # {
3098
+ # replay_name: "ReplayName", # required
3099
+ # description: "ReplayDescription",
3100
+ # event_source_arn: "Arn", # required
3101
+ # event_start_time: Time.now, # required
3102
+ # event_end_time: Time.now, # required
3103
+ # destination: { # required
3104
+ # arn: "Arn", # required
3105
+ # filter_arns: ["Arn"],
3106
+ # },
3107
+ # }
3108
+ #
3109
+ # @!attribute [rw] replay_name
3110
+ # The name of the replay to start.
3111
+ # @return [String]
3112
+ #
3113
+ # @!attribute [rw] description
3114
+ # A description for the replay to start.
3115
+ # @return [String]
3116
+ #
3117
+ # @!attribute [rw] event_source_arn
3118
+ # The ARN of the archive to replay events from.
3119
+ # @return [String]
3120
+ #
3121
+ # @!attribute [rw] event_start_time
3122
+ # A time stamp for the time to start replaying events. Only events
3123
+ # that occurred between the `EventStartTime` and `EventEndTime` are
3124
+ # replayed.
3125
+ # @return [Time]
3126
+ #
3127
+ # @!attribute [rw] event_end_time
3128
+ # A time stamp for the time to stop replaying events. Only events that
3129
+ # occurred between the `EventStartTime` and `EventEndTime` are
3130
+ # replayed.
3131
+ # @return [Time]
3132
+ #
3133
+ # @!attribute [rw] destination
3134
+ # A `ReplayDestination` object that includes details about the
3135
+ # destination for the replay.
3136
+ # @return [Types::ReplayDestination]
3137
+ #
3138
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplayRequest AWS API Documentation
3139
+ #
3140
+ class StartReplayRequest < Struct.new(
3141
+ :replay_name,
3142
+ :description,
3143
+ :event_source_arn,
3144
+ :event_start_time,
3145
+ :event_end_time,
3146
+ :destination)
3147
+ SENSITIVE = []
3148
+ include Aws::Structure
3149
+ end
3150
+
3151
+ # @!attribute [rw] replay_arn
3152
+ # The ARN of the replay.
3153
+ # @return [String]
3154
+ #
3155
+ # @!attribute [rw] state
3156
+ # The state of the replay.
3157
+ # @return [String]
3158
+ #
3159
+ # @!attribute [rw] state_reason
3160
+ # The reason that the replay is in the state.
3161
+ # @return [String]
3162
+ #
3163
+ # @!attribute [rw] replay_start_time
3164
+ # The time at which the replay started.
3165
+ # @return [Time]
3166
+ #
3167
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplayResponse AWS API Documentation
3168
+ #
3169
+ class StartReplayResponse < Struct.new(
3170
+ :replay_arn,
3171
+ :state,
3172
+ :state_reason,
3173
+ :replay_start_time)
3174
+ SENSITIVE = []
3175
+ include Aws::Structure
3176
+ end
3177
+
2515
3178
  # A key-value pair associated with an AWS resource. In EventBridge,
2516
3179
  # rules and event buses support tagging.
2517
3180
  #
@@ -2873,5 +3536,69 @@ module Aws::CloudWatchEvents
2873
3536
  #
2874
3537
  class UntagResourceResponse < Aws::EmptyStructure; end
2875
3538
 
3539
+ # @note When making an API call, you may pass UpdateArchiveRequest
3540
+ # data as a hash:
3541
+ #
3542
+ # {
3543
+ # archive_name: "ArchiveName", # required
3544
+ # description: "ArchiveDescription",
3545
+ # event_pattern: "EventPattern",
3546
+ # retention_days: 1,
3547
+ # }
3548
+ #
3549
+ # @!attribute [rw] archive_name
3550
+ # The name of the archive to update.
3551
+ # @return [String]
3552
+ #
3553
+ # @!attribute [rw] description
3554
+ # The description for the archive.
3555
+ # @return [String]
3556
+ #
3557
+ # @!attribute [rw] event_pattern
3558
+ # The event pattern to use to filter events sent to the archive.
3559
+ # @return [String]
3560
+ #
3561
+ # @!attribute [rw] retention_days
3562
+ # The number of days to retain events in the archive.
3563
+ # @return [Integer]
3564
+ #
3565
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchiveRequest AWS API Documentation
3566
+ #
3567
+ class UpdateArchiveRequest < Struct.new(
3568
+ :archive_name,
3569
+ :description,
3570
+ :event_pattern,
3571
+ :retention_days)
3572
+ SENSITIVE = []
3573
+ include Aws::Structure
3574
+ end
3575
+
3576
+ # @!attribute [rw] archive_arn
3577
+ # The ARN of the archive.
3578
+ # @return [String]
3579
+ #
3580
+ # @!attribute [rw] state
3581
+ # The state of the archive.
3582
+ # @return [String]
3583
+ #
3584
+ # @!attribute [rw] state_reason
3585
+ # The reason that the archive is in the current state.
3586
+ # @return [String]
3587
+ #
3588
+ # @!attribute [rw] creation_time
3589
+ # The time at which the archive was updated.
3590
+ # @return [Time]
3591
+ #
3592
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchiveResponse AWS API Documentation
3593
+ #
3594
+ class UpdateArchiveResponse < Struct.new(
3595
+ :archive_arn,
3596
+ :state,
3597
+ :state_reason,
3598
+ :creation_time)
3599
+ SENSITIVE = []
3600
+ include Aws::Structure
3601
+ end
3602
+
2876
3603
  end
2877
3604
  end