aws-sdk-cloudwatchevents 1.35.0 → 1.40.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
  #
@@ -338,6 +503,52 @@ module Aws::CloudWatchEvents
338
503
  include Aws::Structure
339
504
  end
340
505
 
506
+ # A `DeadLetterConfig` object that contains information about a
507
+ # dead-letter queue configuration.
508
+ #
509
+ # @note When making an API call, you may pass DeadLetterConfig
510
+ # data as a hash:
511
+ #
512
+ # {
513
+ # arn: "ResourceArn",
514
+ # }
515
+ #
516
+ # @!attribute [rw] arn
517
+ # The ARN of the SQS queue specified as the target for the dead-letter
518
+ # queue.
519
+ # @return [String]
520
+ #
521
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeadLetterConfig AWS API Documentation
522
+ #
523
+ class DeadLetterConfig < Struct.new(
524
+ :arn)
525
+ SENSITIVE = []
526
+ include Aws::Structure
527
+ end
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
+
341
552
  # @note When making an API call, you may pass DeleteEventBusRequest
342
553
  # data as a hash:
343
554
  #
@@ -388,7 +599,7 @@ module Aws::CloudWatchEvents
388
599
  #
389
600
  # {
390
601
  # name: "RuleName", # required
391
- # event_bus_name: "EventBusName",
602
+ # event_bus_name: "EventBusNameOrArn",
392
603
  # force: false,
393
604
  # }
394
605
  #
@@ -397,8 +608,8 @@ module Aws::CloudWatchEvents
397
608
  # @return [String]
398
609
  #
399
610
  # @!attribute [rw] event_bus_name
400
- # The event bus associated with the rule. If you omit this, the
401
- # default event bus is used.
611
+ # The name or ARN of the event bus associated with the rule. If you
612
+ # omit this, the default event bus is used.
402
613
  # @return [String]
403
614
  #
404
615
  # @!attribute [rw] force
@@ -419,16 +630,97 @@ module Aws::CloudWatchEvents
419
630
  include Aws::Structure
420
631
  end
421
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
+
422
714
  # @note When making an API call, you may pass DescribeEventBusRequest
423
715
  # data as a hash:
424
716
  #
425
717
  # {
426
- # name: "EventBusName",
718
+ # name: "EventBusNameOrArn",
427
719
  # }
428
720
  #
429
721
  # @!attribute [rw] name
430
- # The name of the event bus to show details for. If you omit this, the
431
- # default event bus is displayed.
722
+ # The name or ARN of the event bus to show details for. If you omit
723
+ # this, the default event bus is displayed.
432
724
  # @return [String]
433
725
  #
434
726
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBusRequest AWS API Documentation
@@ -561,12 +853,100 @@ module Aws::CloudWatchEvents
561
853
  include Aws::Structure
562
854
  end
563
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
+
564
944
  # @note When making an API call, you may pass DescribeRuleRequest
565
945
  # data as a hash:
566
946
  #
567
947
  # {
568
948
  # name: "RuleName", # required
569
- # event_bus_name: "EventBusName",
949
+ # event_bus_name: "EventBusNameOrArn",
570
950
  # }
571
951
  #
572
952
  # @!attribute [rw] name
@@ -574,8 +954,8 @@ module Aws::CloudWatchEvents
574
954
  # @return [String]
575
955
  #
576
956
  # @!attribute [rw] event_bus_name
577
- # The event bus associated with the rule. If you omit this, the
578
- # default event bus is used.
957
+ # The name or ARN of the event bus associated with the rule. If you
958
+ # omit this, the default event bus is used.
579
959
  # @return [String]
580
960
  #
581
961
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleRequest AWS API Documentation
@@ -629,7 +1009,16 @@ module Aws::CloudWatchEvents
629
1009
  # @return [String]
630
1010
  #
631
1011
  # @!attribute [rw] event_bus_name
632
- # The event bus associated with the rule.
1012
+ # The name of the event bus associated with the rule.
1013
+ # @return [String]
1014
+ #
1015
+ # @!attribute [rw] created_by
1016
+ # The account ID of the user that created the rule. If you use
1017
+ # `PutRule` to put a rule on an event bus in another account, the
1018
+ # other account is the owner of the rule, and the rule ARN includes
1019
+ # the account ID for that account. However, the value for `CreatedBy`
1020
+ # is the account ID as the account that created the rule in the other
1021
+ # account.
633
1022
  # @return [String]
634
1023
  #
635
1024
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleResponse AWS API Documentation
@@ -643,7 +1032,8 @@ module Aws::CloudWatchEvents
643
1032
  :description,
644
1033
  :role_arn,
645
1034
  :managed_by,
646
- :event_bus_name)
1035
+ :event_bus_name,
1036
+ :created_by)
647
1037
  SENSITIVE = []
648
1038
  include Aws::Structure
649
1039
  end
@@ -653,7 +1043,7 @@ module Aws::CloudWatchEvents
653
1043
  #
654
1044
  # {
655
1045
  # name: "RuleName", # required
656
- # event_bus_name: "EventBusName",
1046
+ # event_bus_name: "EventBusNameOrArn",
657
1047
  # }
658
1048
  #
659
1049
  # @!attribute [rw] name
@@ -661,8 +1051,8 @@ module Aws::CloudWatchEvents
661
1051
  # @return [String]
662
1052
  #
663
1053
  # @!attribute [rw] event_bus_name
664
- # The event bus associated with the rule. If you omit this, the
665
- # default event bus is used.
1054
+ # The name or ARN of the event bus associated with the rule. If you
1055
+ # omit this, the default event bus is used.
666
1056
  # @return [String]
667
1057
  #
668
1058
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRuleRequest AWS API Documentation
@@ -766,7 +1156,7 @@ module Aws::CloudWatchEvents
766
1156
  #
767
1157
  # {
768
1158
  # name: "RuleName", # required
769
- # event_bus_name: "EventBusName",
1159
+ # event_bus_name: "EventBusNameOrArn",
770
1160
  # }
771
1161
  #
772
1162
  # @!attribute [rw] name
@@ -774,8 +1164,8 @@ module Aws::CloudWatchEvents
774
1164
  # @return [String]
775
1165
  #
776
1166
  # @!attribute [rw] event_bus_name
777
- # The event bus associated with the rule. If you omit this, the
778
- # default event bus is used.
1167
+ # The name or ARN of the event bus associated with the rule. If you
1168
+ # omit this, the default event bus is used.
779
1169
  # @return [String]
780
1170
  #
781
1171
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRuleRequest AWS API Documentation
@@ -907,6 +1297,13 @@ module Aws::CloudWatchEvents
907
1297
  include Aws::Structure
908
1298
  end
909
1299
 
1300
+ # An error occurred because a replay can be canceled only when the state
1301
+ # is Running or Starting.
1302
+ #
1303
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/IllegalStatusException AWS API Documentation
1304
+ #
1305
+ class IllegalStatusException < Aws::EmptyStructure; end
1306
+
910
1307
  # Contains the parameters needed for you to provide custom input to a
911
1308
  # target based on one or more pieces of data extracted from the event.
912
1309
  #
@@ -1033,13 +1430,76 @@ module Aws::CloudWatchEvents
1033
1430
  include Aws::Structure
1034
1431
  end
1035
1432
 
1036
- # You tried to create more rules or add more targets to a rule than is
1037
- # allowed.
1433
+ # The request failed because it attempted to create resource beyond the
1434
+ # allowed service quota.
1038
1435
  #
1039
1436
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/LimitExceededException AWS API Documentation
1040
1437
  #
1041
1438
  class LimitExceededException < Aws::EmptyStructure; end
1042
1439
 
1440
+ # @note When making an API call, you may pass ListArchivesRequest
1441
+ # data as a hash:
1442
+ #
1443
+ # {
1444
+ # name_prefix: "ArchiveName",
1445
+ # event_source_arn: "Arn",
1446
+ # state: "ENABLED", # accepts ENABLED, DISABLED, CREATING, UPDATING, CREATE_FAILED, UPDATE_FAILED
1447
+ # next_token: "NextToken",
1448
+ # limit: 1,
1449
+ # }
1450
+ #
1451
+ # @!attribute [rw] name_prefix
1452
+ # A name prefix to filter the archives returned. Only archives with
1453
+ # name that match the prefix are returned.
1454
+ # @return [String]
1455
+ #
1456
+ # @!attribute [rw] event_source_arn
1457
+ # The ARN of the event source associated with the archive.
1458
+ # @return [String]
1459
+ #
1460
+ # @!attribute [rw] state
1461
+ # The state of the archive.
1462
+ # @return [String]
1463
+ #
1464
+ # @!attribute [rw] next_token
1465
+ # The token returned by a previous call to retrieve the next set of
1466
+ # results.
1467
+ # @return [String]
1468
+ #
1469
+ # @!attribute [rw] limit
1470
+ # The maximum number of results to return.
1471
+ # @return [Integer]
1472
+ #
1473
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchivesRequest AWS API Documentation
1474
+ #
1475
+ class ListArchivesRequest < Struct.new(
1476
+ :name_prefix,
1477
+ :event_source_arn,
1478
+ :state,
1479
+ :next_token,
1480
+ :limit)
1481
+ SENSITIVE = []
1482
+ include Aws::Structure
1483
+ end
1484
+
1485
+ # @!attribute [rw] archives
1486
+ # An array of `Archive` objects that include details about an archive.
1487
+ # @return [Array<Types::Archive>]
1488
+ #
1489
+ # @!attribute [rw] next_token
1490
+ # The token returned by a previous call to retrieve the next set of
1491
+ # results.
1492
+ # @return [String]
1493
+ #
1494
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchivesResponse AWS API Documentation
1495
+ #
1496
+ class ListArchivesResponse < Struct.new(
1497
+ :archives,
1498
+ :next_token)
1499
+ SENSITIVE = []
1500
+ include Aws::Structure
1501
+ end
1502
+
1043
1503
  # @note When making an API call, you may pass ListEventBusesRequest
1044
1504
  # data as a hash:
1045
1505
  #
@@ -1252,12 +1712,76 @@ module Aws::CloudWatchEvents
1252
1712
  include Aws::Structure
1253
1713
  end
1254
1714
 
1715
+ # @note When making an API call, you may pass ListReplaysRequest
1716
+ # data as a hash:
1717
+ #
1718
+ # {
1719
+ # name_prefix: "ReplayName",
1720
+ # state: "STARTING", # accepts STARTING, RUNNING, CANCELLING, COMPLETED, CANCELLED, FAILED
1721
+ # event_source_arn: "Arn",
1722
+ # next_token: "NextToken",
1723
+ # limit: 1,
1724
+ # }
1725
+ #
1726
+ # @!attribute [rw] name_prefix
1727
+ # A name prefix to filter the replays returned. Only replays with name
1728
+ # that match the prefix are returned.
1729
+ # @return [String]
1730
+ #
1731
+ # @!attribute [rw] state
1732
+ # The state of the replay.
1733
+ # @return [String]
1734
+ #
1735
+ # @!attribute [rw] event_source_arn
1736
+ # The ARN of the event source associated with the replay.
1737
+ # @return [String]
1738
+ #
1739
+ # @!attribute [rw] next_token
1740
+ # The token returned by a previous call to retrieve the next set of
1741
+ # results.
1742
+ # @return [String]
1743
+ #
1744
+ # @!attribute [rw] limit
1745
+ # The maximum number of replays to retrieve.
1746
+ # @return [Integer]
1747
+ #
1748
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplaysRequest AWS API Documentation
1749
+ #
1750
+ class ListReplaysRequest < Struct.new(
1751
+ :name_prefix,
1752
+ :state,
1753
+ :event_source_arn,
1754
+ :next_token,
1755
+ :limit)
1756
+ SENSITIVE = []
1757
+ include Aws::Structure
1758
+ end
1759
+
1760
+ # @!attribute [rw] replays
1761
+ # An array of `Replay` objects that contain information about the
1762
+ # replay.
1763
+ # @return [Array<Types::Replay>]
1764
+ #
1765
+ # @!attribute [rw] next_token
1766
+ # The token returned by a previous call to retrieve the next set of
1767
+ # results.
1768
+ # @return [String]
1769
+ #
1770
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplaysResponse AWS API Documentation
1771
+ #
1772
+ class ListReplaysResponse < Struct.new(
1773
+ :replays,
1774
+ :next_token)
1775
+ SENSITIVE = []
1776
+ include Aws::Structure
1777
+ end
1778
+
1255
1779
  # @note When making an API call, you may pass ListRuleNamesByTargetRequest
1256
1780
  # data as a hash:
1257
1781
  #
1258
1782
  # {
1259
1783
  # target_arn: "TargetArn", # required
1260
- # event_bus_name: "EventBusName",
1784
+ # event_bus_name: "EventBusNameOrArn",
1261
1785
  # next_token: "NextToken",
1262
1786
  # limit: 1,
1263
1787
  # }
@@ -1267,8 +1791,8 @@ module Aws::CloudWatchEvents
1267
1791
  # @return [String]
1268
1792
  #
1269
1793
  # @!attribute [rw] event_bus_name
1270
- # Limits the results to show only the rules associated with the
1271
- # specified event bus.
1794
+ # The name or ARN of the event bus to list rules for. If you omit
1795
+ # this, the default event bus is used.
1272
1796
  # @return [String]
1273
1797
  #
1274
1798
  # @!attribute [rw] next_token
@@ -1314,7 +1838,7 @@ module Aws::CloudWatchEvents
1314
1838
  #
1315
1839
  # {
1316
1840
  # name_prefix: "RuleName",
1317
- # event_bus_name: "EventBusName",
1841
+ # event_bus_name: "EventBusNameOrArn",
1318
1842
  # next_token: "NextToken",
1319
1843
  # limit: 1,
1320
1844
  # }
@@ -1324,8 +1848,8 @@ module Aws::CloudWatchEvents
1324
1848
  # @return [String]
1325
1849
  #
1326
1850
  # @!attribute [rw] event_bus_name
1327
- # Limits the results to show only the rules associated with the
1328
- # specified event bus.
1851
+ # The name or ARN of the event bus to list the rules for. If you omit
1852
+ # this, the default event bus is used.
1329
1853
  # @return [String]
1330
1854
  #
1331
1855
  # @!attribute [rw] next_token
@@ -1403,7 +1927,7 @@ module Aws::CloudWatchEvents
1403
1927
  #
1404
1928
  # {
1405
1929
  # rule: "RuleName", # required
1406
- # event_bus_name: "EventBusName",
1930
+ # event_bus_name: "EventBusNameOrArn",
1407
1931
  # next_token: "NextToken",
1408
1932
  # limit: 1,
1409
1933
  # }
@@ -1413,8 +1937,8 @@ module Aws::CloudWatchEvents
1413
1937
  # @return [String]
1414
1938
  #
1415
1939
  # @!attribute [rw] event_bus_name
1416
- # The event bus associated with the rule. If you omit this, the
1417
- # default event bus is used.
1940
+ # The name or ARN of the event bus associated with the rule. If you
1941
+ # omit this, the default event bus is used.
1418
1942
  # @return [String]
1419
1943
  #
1420
1944
  # @!attribute [rw] next_token
@@ -1576,7 +2100,7 @@ module Aws::CloudWatchEvents
1576
2100
  # resources: ["EventResource"],
1577
2101
  # detail_type: "String",
1578
2102
  # detail: "String",
1579
- # event_bus_name: "NonPartnerEventBusName",
2103
+ # event_bus_name: "NonPartnerEventBusNameOrArn",
1580
2104
  # },
1581
2105
  # ],
1582
2106
  # }
@@ -1606,7 +2130,7 @@ module Aws::CloudWatchEvents
1606
2130
  # resources: ["EventResource"],
1607
2131
  # detail_type: "String",
1608
2132
  # detail: "String",
1609
- # event_bus_name: "NonPartnerEventBusName",
2133
+ # event_bus_name: "NonPartnerEventBusNameOrArn",
1610
2134
  # }
1611
2135
  #
1612
2136
  # @!attribute [rw] time
@@ -1639,8 +2163,9 @@ module Aws::CloudWatchEvents
1639
2163
  # @return [String]
1640
2164
  #
1641
2165
  # @!attribute [rw] event_bus_name
1642
- # The event bus that will receive the event. Only the rules that are
1643
- # associated with this event bus will be able to match the event.
2166
+ # The name or ARN of the event bus to receive the event. Only the
2167
+ # rules that are associated with this event bus are used to match the
2168
+ # event. If you omit this, the default event bus is used.
1644
2169
  # @return [String]
1645
2170
  #
1646
2171
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequestEntry AWS API Documentation
@@ -1824,19 +2349,20 @@ module Aws::CloudWatchEvents
1824
2349
  #
1825
2350
  # {
1826
2351
  # event_bus_name: "NonPartnerEventBusName",
1827
- # action: "Action", # required
1828
- # principal: "Principal", # required
1829
- # statement_id: "StatementId", # required
2352
+ # action: "Action",
2353
+ # principal: "Principal",
2354
+ # statement_id: "StatementId",
1830
2355
  # condition: {
1831
2356
  # type: "String", # required
1832
2357
  # key: "String", # required
1833
2358
  # value: "String", # required
1834
2359
  # },
2360
+ # policy: "String",
1835
2361
  # }
1836
2362
  #
1837
2363
  # @!attribute [rw] event_bus_name
1838
- # The event bus associated with the rule. If you omit this, the
1839
- # default event bus is used.
2364
+ # The name of the event bus associated with the rule. If you omit
2365
+ # this, the default event bus is used.
1840
2366
  # @return [String]
1841
2367
  #
1842
2368
  # @!attribute [rw] action
@@ -1883,6 +2409,12 @@ module Aws::CloudWatchEvents
1883
2409
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html
1884
2410
  # @return [Types::Condition]
1885
2411
  #
2412
+ # @!attribute [rw] policy
2413
+ # A JSON string that describes the permission policy statement. You
2414
+ # can include a `Policy` parameter in the request instead of using the
2415
+ # `StatementId`, `Action`, `Principal`, or `Condition` parameters.
2416
+ # @return [String]
2417
+ #
1886
2418
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermissionRequest AWS API Documentation
1887
2419
  #
1888
2420
  class PutPermissionRequest < Struct.new(
@@ -1890,7 +2422,8 @@ module Aws::CloudWatchEvents
1890
2422
  :action,
1891
2423
  :principal,
1892
2424
  :statement_id,
1893
- :condition)
2425
+ :condition,
2426
+ :policy)
1894
2427
  SENSITIVE = []
1895
2428
  include Aws::Structure
1896
2429
  end
@@ -1911,7 +2444,7 @@ module Aws::CloudWatchEvents
1911
2444
  # value: "TagValue", # required
1912
2445
  # },
1913
2446
  # ],
1914
- # event_bus_name: "EventBusName",
2447
+ # event_bus_name: "EventBusNameOrArn",
1915
2448
  # }
1916
2449
  #
1917
2450
  # @!attribute [rw] name
@@ -1950,8 +2483,8 @@ module Aws::CloudWatchEvents
1950
2483
  # @return [Array<Types::Tag>]
1951
2484
  #
1952
2485
  # @!attribute [rw] event_bus_name
1953
- # The event bus to associate with this rule. If you omit this, the
1954
- # default event bus is used.
2486
+ # The name or ARN of the event bus to associate with this rule. If you
2487
+ # omit this, the default event bus is used.
1955
2488
  # @return [String]
1956
2489
  #
1957
2490
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRuleRequest AWS API Documentation
@@ -1986,7 +2519,7 @@ module Aws::CloudWatchEvents
1986
2519
  #
1987
2520
  # {
1988
2521
  # rule: "RuleName", # required
1989
- # event_bus_name: "EventBusName",
2522
+ # event_bus_name: "EventBusNameOrArn",
1990
2523
  # targets: [ # required
1991
2524
  # {
1992
2525
  # id: "TargetId", # required
@@ -2047,6 +2580,21 @@ module Aws::CloudWatchEvents
2047
2580
  # "QueryStringKey" => "QueryStringValue",
2048
2581
  # },
2049
2582
  # },
2583
+ # redshift_data_parameters: {
2584
+ # secret_manager_arn: "RedshiftSecretManagerArn",
2585
+ # database: "Database", # required
2586
+ # db_user: "DbUser",
2587
+ # sql: "Sql", # required
2588
+ # statement_name: "StatementName",
2589
+ # with_event: false,
2590
+ # },
2591
+ # dead_letter_config: {
2592
+ # arn: "ResourceArn",
2593
+ # },
2594
+ # retry_policy: {
2595
+ # maximum_retry_attempts: 1,
2596
+ # maximum_event_age_in_seconds: 1,
2597
+ # },
2050
2598
  # },
2051
2599
  # ],
2052
2600
  # }
@@ -2056,8 +2604,8 @@ module Aws::CloudWatchEvents
2056
2604
  # @return [String]
2057
2605
  #
2058
2606
  # @!attribute [rw] event_bus_name
2059
- # The name of the event bus associated with the rule. If you omit
2060
- # this, the default event bus is used.
2607
+ # The name or ARN of the event bus associated with the rule. If you
2608
+ # omit this, the default event bus is used.
2061
2609
  # @return [String]
2062
2610
  #
2063
2611
  # @!attribute [rw] targets
@@ -2117,11 +2665,70 @@ module Aws::CloudWatchEvents
2117
2665
  include Aws::Structure
2118
2666
  end
2119
2667
 
2668
+ # These are custom parameters to be used when the target is a Redshift
2669
+ # cluster to invoke the Redshift Data API ExecuteStatement based on
2670
+ # EventBridge events.
2671
+ #
2672
+ # @note When making an API call, you may pass RedshiftDataParameters
2673
+ # data as a hash:
2674
+ #
2675
+ # {
2676
+ # secret_manager_arn: "RedshiftSecretManagerArn",
2677
+ # database: "Database", # required
2678
+ # db_user: "DbUser",
2679
+ # sql: "Sql", # required
2680
+ # statement_name: "StatementName",
2681
+ # with_event: false,
2682
+ # }
2683
+ #
2684
+ # @!attribute [rw] secret_manager_arn
2685
+ # The name or ARN of the secret that enables access to the database.
2686
+ # Required when authenticating using AWS Secrets Manager.
2687
+ # @return [String]
2688
+ #
2689
+ # @!attribute [rw] database
2690
+ # The name of the database. Required when authenticating using
2691
+ # temporary credentials.
2692
+ # @return [String]
2693
+ #
2694
+ # @!attribute [rw] db_user
2695
+ # The database user name. Required when authenticating using temporary
2696
+ # credentials.
2697
+ # @return [String]
2698
+ #
2699
+ # @!attribute [rw] sql
2700
+ # The SQL statement text to run.
2701
+ # @return [String]
2702
+ #
2703
+ # @!attribute [rw] statement_name
2704
+ # The name of the SQL statement. You can name the SQL statement when
2705
+ # you create it to identify the query.
2706
+ # @return [String]
2707
+ #
2708
+ # @!attribute [rw] with_event
2709
+ # Indicates whether to send an event back to EventBridge after the SQL
2710
+ # statement runs.
2711
+ # @return [Boolean]
2712
+ #
2713
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RedshiftDataParameters AWS API Documentation
2714
+ #
2715
+ class RedshiftDataParameters < Struct.new(
2716
+ :secret_manager_arn,
2717
+ :database,
2718
+ :db_user,
2719
+ :sql,
2720
+ :statement_name,
2721
+ :with_event)
2722
+ SENSITIVE = []
2723
+ include Aws::Structure
2724
+ end
2725
+
2120
2726
  # @note When making an API call, you may pass RemovePermissionRequest
2121
2727
  # data as a hash:
2122
2728
  #
2123
2729
  # {
2124
- # statement_id: "StatementId", # required
2730
+ # statement_id: "StatementId",
2731
+ # remove_all_permissions: false,
2125
2732
  # event_bus_name: "NonPartnerEventBusName",
2126
2733
  # }
2127
2734
  #
@@ -2130,6 +2737,10 @@ module Aws::CloudWatchEvents
2130
2737
  # allowed to put events to the default event bus.
2131
2738
  # @return [String]
2132
2739
  #
2740
+ # @!attribute [rw] remove_all_permissions
2741
+ # Specifies whether to remove all permissions.
2742
+ # @return [Boolean]
2743
+ #
2133
2744
  # @!attribute [rw] event_bus_name
2134
2745
  # The name of the event bus to revoke permissions for. If you omit
2135
2746
  # this, the default event bus is used.
@@ -2139,6 +2750,7 @@ module Aws::CloudWatchEvents
2139
2750
  #
2140
2751
  class RemovePermissionRequest < Struct.new(
2141
2752
  :statement_id,
2753
+ :remove_all_permissions,
2142
2754
  :event_bus_name)
2143
2755
  SENSITIVE = []
2144
2756
  include Aws::Structure
@@ -2149,7 +2761,7 @@ module Aws::CloudWatchEvents
2149
2761
  #
2150
2762
  # {
2151
2763
  # rule: "RuleName", # required
2152
- # event_bus_name: "EventBusName",
2764
+ # event_bus_name: "EventBusNameOrArn",
2153
2765
  # ids: ["TargetId"], # required
2154
2766
  # force: false,
2155
2767
  # }
@@ -2159,7 +2771,8 @@ module Aws::CloudWatchEvents
2159
2771
  # @return [String]
2160
2772
  #
2161
2773
  # @!attribute [rw] event_bus_name
2162
- # The name of the event bus associated with the rule.
2774
+ # The name or ARN of the event bus associated with the rule. If you
2775
+ # omit this, the default event bus is used.
2163
2776
  # @return [String]
2164
2777
  #
2165
2778
  # @!attribute [rw] ids
@@ -2228,6 +2841,94 @@ module Aws::CloudWatchEvents
2228
2841
  include Aws::Structure
2229
2842
  end
2230
2843
 
2844
+ # A `Replay` object that contains details about a replay.
2845
+ #
2846
+ # @!attribute [rw] replay_name
2847
+ # The name of the replay.
2848
+ # @return [String]
2849
+ #
2850
+ # @!attribute [rw] event_source_arn
2851
+ # The ARN of the archive to replay event from.
2852
+ # @return [String]
2853
+ #
2854
+ # @!attribute [rw] state
2855
+ # The current state of the replay.
2856
+ # @return [String]
2857
+ #
2858
+ # @!attribute [rw] state_reason
2859
+ # A description of why the replay is in the current state.
2860
+ # @return [String]
2861
+ #
2862
+ # @!attribute [rw] event_start_time
2863
+ # A time stamp for the time to start replaying events. This is
2864
+ # determined by the time in the event as described in [Time][1].
2865
+ #
2866
+ #
2867
+ #
2868
+ # [1]: https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html#eventbridge-Type-PutEventsRequestEntry-Time
2869
+ # @return [Time]
2870
+ #
2871
+ # @!attribute [rw] event_end_time
2872
+ # A time stamp for the time to start replaying events. Any event with
2873
+ # a creation time prior to the `EventEndTime` specified is replayed.
2874
+ # @return [Time]
2875
+ #
2876
+ # @!attribute [rw] event_last_replayed_time
2877
+ # A time stamp for the time that the last event was replayed.
2878
+ # @return [Time]
2879
+ #
2880
+ # @!attribute [rw] replay_start_time
2881
+ # A time stamp for the time that the replay started.
2882
+ # @return [Time]
2883
+ #
2884
+ # @!attribute [rw] replay_end_time
2885
+ # A time stamp for the time that the replay completed.
2886
+ # @return [Time]
2887
+ #
2888
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Replay AWS API Documentation
2889
+ #
2890
+ class Replay < Struct.new(
2891
+ :replay_name,
2892
+ :event_source_arn,
2893
+ :state,
2894
+ :state_reason,
2895
+ :event_start_time,
2896
+ :event_end_time,
2897
+ :event_last_replayed_time,
2898
+ :replay_start_time,
2899
+ :replay_end_time)
2900
+ SENSITIVE = []
2901
+ include Aws::Structure
2902
+ end
2903
+
2904
+ # A `ReplayDestination` object that contains details about a replay.
2905
+ #
2906
+ # @note When making an API call, you may pass ReplayDestination
2907
+ # data as a hash:
2908
+ #
2909
+ # {
2910
+ # arn: "Arn", # required
2911
+ # filter_arns: ["Arn"],
2912
+ # }
2913
+ #
2914
+ # @!attribute [rw] arn
2915
+ # The ARN of the event bus to replay event to. You can replay events
2916
+ # only to the event bus specified to create the archive.
2917
+ # @return [String]
2918
+ #
2919
+ # @!attribute [rw] filter_arns
2920
+ # A list of ARNs for rules to replay events to.
2921
+ # @return [Array<String>]
2922
+ #
2923
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ReplayDestination AWS API Documentation
2924
+ #
2925
+ class ReplayDestination < Struct.new(
2926
+ :arn,
2927
+ :filter_arns)
2928
+ SENSITIVE = []
2929
+ include Aws::Structure
2930
+ end
2931
+
2231
2932
  # The resource you are trying to create already exists.
2232
2933
  #
2233
2934
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ResourceAlreadyExistsException AWS API Documentation
@@ -2240,6 +2941,38 @@ module Aws::CloudWatchEvents
2240
2941
  #
2241
2942
  class ResourceNotFoundException < Aws::EmptyStructure; end
2242
2943
 
2944
+ # A `RetryPolicy` object that includes information about the retry
2945
+ # policy settings.
2946
+ #
2947
+ # @note When making an API call, you may pass RetryPolicy
2948
+ # data as a hash:
2949
+ #
2950
+ # {
2951
+ # maximum_retry_attempts: 1,
2952
+ # maximum_event_age_in_seconds: 1,
2953
+ # }
2954
+ #
2955
+ # @!attribute [rw] maximum_retry_attempts
2956
+ # The maximum number of retry attempts to make before the request
2957
+ # fails. Retry attempts continue until either the maximum number of
2958
+ # attempts is made or until the duration of the
2959
+ # `MaximumEventAgeInSeconds` is met.
2960
+ # @return [Integer]
2961
+ #
2962
+ # @!attribute [rw] maximum_event_age_in_seconds
2963
+ # The maximum amount of time, in seconds, to continue to make retry
2964
+ # attempts.
2965
+ # @return [Integer]
2966
+ #
2967
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RetryPolicy AWS API Documentation
2968
+ #
2969
+ class RetryPolicy < Struct.new(
2970
+ :maximum_retry_attempts,
2971
+ :maximum_event_age_in_seconds)
2972
+ SENSITIVE = []
2973
+ include Aws::Structure
2974
+ end
2975
+
2243
2976
  # Contains information about a rule in Amazon EventBridge.
2244
2977
  #
2245
2978
  # @!attribute [rw] name
@@ -2284,7 +3017,8 @@ module Aws::CloudWatchEvents
2284
3017
  # @return [String]
2285
3018
  #
2286
3019
  # @!attribute [rw] event_bus_name
2287
- # The event bus associated with the rule.
3020
+ # The name or ARN of the event bus associated with the rule. If you
3021
+ # omit this, the default event bus is used.
2288
3022
  # @return [String]
2289
3023
  #
2290
3024
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Rule AWS API Documentation
@@ -2384,6 +3118,90 @@ module Aws::CloudWatchEvents
2384
3118
  include Aws::Structure
2385
3119
  end
2386
3120
 
3121
+ # @note When making an API call, you may pass StartReplayRequest
3122
+ # data as a hash:
3123
+ #
3124
+ # {
3125
+ # replay_name: "ReplayName", # required
3126
+ # description: "ReplayDescription",
3127
+ # event_source_arn: "Arn", # required
3128
+ # event_start_time: Time.now, # required
3129
+ # event_end_time: Time.now, # required
3130
+ # destination: { # required
3131
+ # arn: "Arn", # required
3132
+ # filter_arns: ["Arn"],
3133
+ # },
3134
+ # }
3135
+ #
3136
+ # @!attribute [rw] replay_name
3137
+ # The name of the replay to start.
3138
+ # @return [String]
3139
+ #
3140
+ # @!attribute [rw] description
3141
+ # A description for the replay to start.
3142
+ # @return [String]
3143
+ #
3144
+ # @!attribute [rw] event_source_arn
3145
+ # The ARN of the archive to replay events from.
3146
+ # @return [String]
3147
+ #
3148
+ # @!attribute [rw] event_start_time
3149
+ # A time stamp for the time to start replaying events. Only events
3150
+ # that occurred between the `EventStartTime` and `EventEndTime` are
3151
+ # replayed.
3152
+ # @return [Time]
3153
+ #
3154
+ # @!attribute [rw] event_end_time
3155
+ # A time stamp for the time to stop replaying events. Only events that
3156
+ # occurred between the `EventStartTime` and `EventEndTime` are
3157
+ # replayed.
3158
+ # @return [Time]
3159
+ #
3160
+ # @!attribute [rw] destination
3161
+ # A `ReplayDestination` object that includes details about the
3162
+ # destination for the replay.
3163
+ # @return [Types::ReplayDestination]
3164
+ #
3165
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplayRequest AWS API Documentation
3166
+ #
3167
+ class StartReplayRequest < Struct.new(
3168
+ :replay_name,
3169
+ :description,
3170
+ :event_source_arn,
3171
+ :event_start_time,
3172
+ :event_end_time,
3173
+ :destination)
3174
+ SENSITIVE = []
3175
+ include Aws::Structure
3176
+ end
3177
+
3178
+ # @!attribute [rw] replay_arn
3179
+ # The ARN of the replay.
3180
+ # @return [String]
3181
+ #
3182
+ # @!attribute [rw] state
3183
+ # The state of the replay.
3184
+ # @return [String]
3185
+ #
3186
+ # @!attribute [rw] state_reason
3187
+ # The reason that the replay is in the state.
3188
+ # @return [String]
3189
+ #
3190
+ # @!attribute [rw] replay_start_time
3191
+ # The time at which the replay started.
3192
+ # @return [Time]
3193
+ #
3194
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplayResponse AWS API Documentation
3195
+ #
3196
+ class StartReplayResponse < Struct.new(
3197
+ :replay_arn,
3198
+ :state,
3199
+ :state_reason,
3200
+ :replay_start_time)
3201
+ SENSITIVE = []
3202
+ include Aws::Structure
3203
+ end
3204
+
2387
3205
  # A key-value pair associated with an AWS resource. In EventBridge,
2388
3206
  # rules and event buses support tagging.
2389
3207
  #
@@ -2524,6 +3342,21 @@ module Aws::CloudWatchEvents
2524
3342
  # "QueryStringKey" => "QueryStringValue",
2525
3343
  # },
2526
3344
  # },
3345
+ # redshift_data_parameters: {
3346
+ # secret_manager_arn: "RedshiftSecretManagerArn",
3347
+ # database: "Database", # required
3348
+ # db_user: "DbUser",
3349
+ # sql: "Sql", # required
3350
+ # statement_name: "StatementName",
3351
+ # with_event: false,
3352
+ # },
3353
+ # dead_letter_config: {
3354
+ # arn: "ResourceArn",
3355
+ # },
3356
+ # retry_policy: {
3357
+ # maximum_retry_attempts: 1,
3358
+ # maximum_event_age_in_seconds: 1,
3359
+ # },
2527
3360
  # }
2528
3361
  #
2529
3362
  # @!attribute [rw] id
@@ -2617,6 +3450,25 @@ module Aws::CloudWatchEvents
2617
3450
  # keys/values as part of your target invoking request.
2618
3451
  # @return [Types::HttpParameters]
2619
3452
  #
3453
+ # @!attribute [rw] redshift_data_parameters
3454
+ # Contains the Redshift Data API parameters to use when the target is
3455
+ # a Redshift cluster.
3456
+ #
3457
+ # If you specify a Redshift Cluster as a Target, you can use this to
3458
+ # specify parameters to invoke the Redshift Data API ExecuteStatement
3459
+ # based on EventBridge events.
3460
+ # @return [Types::RedshiftDataParameters]
3461
+ #
3462
+ # @!attribute [rw] dead_letter_config
3463
+ # The `DeadLetterConfig` that defines the target queue to send
3464
+ # dead-letter queue events to.
3465
+ # @return [Types::DeadLetterConfig]
3466
+ #
3467
+ # @!attribute [rw] retry_policy
3468
+ # The `RetryPolicy` object that contains the retry policy
3469
+ # configuration to use for the dead-letter queue.
3470
+ # @return [Types::RetryPolicy]
3471
+ #
2620
3472
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Target AWS API Documentation
2621
3473
  #
2622
3474
  class Target < Struct.new(
@@ -2631,7 +3483,10 @@ module Aws::CloudWatchEvents
2631
3483
  :ecs_parameters,
2632
3484
  :batch_parameters,
2633
3485
  :sqs_parameters,
2634
- :http_parameters)
3486
+ :http_parameters,
3487
+ :redshift_data_parameters,
3488
+ :dead_letter_config,
3489
+ :retry_policy)
2635
3490
  SENSITIVE = []
2636
3491
  include Aws::Structure
2637
3492
  end
@@ -2708,5 +3563,69 @@ module Aws::CloudWatchEvents
2708
3563
  #
2709
3564
  class UntagResourceResponse < Aws::EmptyStructure; end
2710
3565
 
3566
+ # @note When making an API call, you may pass UpdateArchiveRequest
3567
+ # data as a hash:
3568
+ #
3569
+ # {
3570
+ # archive_name: "ArchiveName", # required
3571
+ # description: "ArchiveDescription",
3572
+ # event_pattern: "EventPattern",
3573
+ # retention_days: 1,
3574
+ # }
3575
+ #
3576
+ # @!attribute [rw] archive_name
3577
+ # The name of the archive to update.
3578
+ # @return [String]
3579
+ #
3580
+ # @!attribute [rw] description
3581
+ # The description for the archive.
3582
+ # @return [String]
3583
+ #
3584
+ # @!attribute [rw] event_pattern
3585
+ # The event pattern to use to filter events sent to the archive.
3586
+ # @return [String]
3587
+ #
3588
+ # @!attribute [rw] retention_days
3589
+ # The number of days to retain events in the archive.
3590
+ # @return [Integer]
3591
+ #
3592
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchiveRequest AWS API Documentation
3593
+ #
3594
+ class UpdateArchiveRequest < Struct.new(
3595
+ :archive_name,
3596
+ :description,
3597
+ :event_pattern,
3598
+ :retention_days)
3599
+ SENSITIVE = []
3600
+ include Aws::Structure
3601
+ end
3602
+
3603
+ # @!attribute [rw] archive_arn
3604
+ # The ARN of the archive.
3605
+ # @return [String]
3606
+ #
3607
+ # @!attribute [rw] state
3608
+ # The state of the archive.
3609
+ # @return [String]
3610
+ #
3611
+ # @!attribute [rw] state_reason
3612
+ # The reason that the archive is in the current state.
3613
+ # @return [String]
3614
+ #
3615
+ # @!attribute [rw] creation_time
3616
+ # The time at which the archive was updated.
3617
+ # @return [Time]
3618
+ #
3619
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchiveResponse AWS API Documentation
3620
+ #
3621
+ class UpdateArchiveResponse < Struct.new(
3622
+ :archive_arn,
3623
+ :state,
3624
+ :state_reason,
3625
+ :creation_time)
3626
+ SENSITIVE = []
3627
+ include Aws::Structure
3628
+ end
3629
+
2711
3630
  end
2712
3631
  end