aws-sdk-cloudwatchevents 1.39.0 → 1.40.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b03d535cd960bdd4710ecda4abb49dfb2428ff784d28f64fc221a5a2eb094af
4
- data.tar.gz: 61364d1e8c1b596eb647c6af721be7fc289c1afb62efffb1ab474642434b6e66
3
+ metadata.gz: 924af7288ca4912ab5e15ecfdb2d660635ae2c4742d8813b05452e8aaa79461b
4
+ data.tar.gz: 581df338608d3d0713be7aa83d01047387b8b0cff1b518256a5bd0b0e53d3215
5
5
  SHA512:
6
- metadata.gz: db0f56b7e24868dd4ce2deecc838134dee0328c56f46c62469512ae2a9bfdc0917f4cc8fe8798641fd3563d97e54f3a69700fda1109a5ab077dfa9155b691cfe
7
- data.tar.gz: 22950e7b7f66d4bc5e9a918e3f633867b9bbb966236fe2796fd5218a6eb07b9eb7ece5bacee6b5daa506566310ba188479939ecf6af6344b83263db3eda50574
6
+ metadata.gz: 7faefa20cee28aa3f38df09e7964ea0e3bebf0443c2e15fe8ea46d9ffd3b98e9b0f1386027f4141e955e08006cb26bd326170dafc0a12335fee99562698410ea
7
+ data.tar.gz: c53492e8d49424c3828b9569df6552f7776702246218d7e85b06067b5db3584ac0101d33e9a88a52bb88cbacf9131a641534c130fc932cc1fcbf82977ffc01db
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-cloudwatchevents/customizations'
48
48
  # @!group service
49
49
  module Aws::CloudWatchEvents
50
50
 
51
- GEM_VERSION = '1.39.0'
51
+ GEM_VERSION = '1.40.0'
52
52
 
53
53
  end
@@ -396,7 +396,9 @@ module Aws::CloudWatchEvents
396
396
  # Creates an archive of events with the specified settings. When you
397
397
  # create an archive, incoming events might not immediately start being
398
398
  # sent to the archive. Allow a short period of time for changes to take
399
- # effect.
399
+ # effect. If you do not specify a pattern to filter events sent to the
400
+ # archive, all events are sent to the archive except replayed events.
401
+ # Replayed events are not sent to an archive.
400
402
  #
401
403
  # @option params [required, String] :archive_name
402
404
  # The name for the archive to create.
@@ -688,8 +690,8 @@ module Aws::CloudWatchEvents
688
690
  # The name of the rule.
689
691
  #
690
692
  # @option params [String] :event_bus_name
691
- # The event bus associated with the rule. If you omit this, the default
692
- # event bus is used.
693
+ # The name or ARN of the event bus associated with the rule. If you omit
694
+ # this, the default event bus is used.
693
695
  #
694
696
  # @option params [Boolean] :force
695
697
  # If this is a managed rule, created by an AWS service on your behalf,
@@ -704,7 +706,7 @@ module Aws::CloudWatchEvents
704
706
  #
705
707
  # resp = client.delete_rule({
706
708
  # name: "RuleName", # required
707
- # event_bus_name: "EventBusName",
709
+ # event_bus_name: "EventBusNameOrArn",
708
710
  # force: false,
709
711
  # })
710
712
  #
@@ -777,8 +779,8 @@ module Aws::CloudWatchEvents
777
779
  # For more information about partner event buses, see CreateEventBus.
778
780
  #
779
781
  # @option params [String] :name
780
- # The name of the event bus to show details for. If you omit this, the
781
- # default event bus is displayed.
782
+ # The name or ARN of the event bus to show details for. If you omit
783
+ # this, the default event bus is displayed.
782
784
  #
783
785
  # @return [Types::DescribeEventBusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
784
786
  #
@@ -789,7 +791,7 @@ module Aws::CloudWatchEvents
789
791
  # @example Request syntax with placeholder values
790
792
  #
791
793
  # resp = client.describe_event_bus({
792
- # name: "EventBusName",
794
+ # name: "EventBusNameOrArn",
793
795
  # })
794
796
  #
795
797
  # @example Response structure
@@ -949,8 +951,8 @@ module Aws::CloudWatchEvents
949
951
  # The name of the rule.
950
952
  #
951
953
  # @option params [String] :event_bus_name
952
- # The event bus associated with the rule. If you omit this, the default
953
- # event bus is used.
954
+ # The name or ARN of the event bus associated with the rule. If you omit
955
+ # this, the default event bus is used.
954
956
  #
955
957
  # @return [Types::DescribeRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
956
958
  #
@@ -963,12 +965,13 @@ module Aws::CloudWatchEvents
963
965
  # * {Types::DescribeRuleResponse#role_arn #role_arn} => String
964
966
  # * {Types::DescribeRuleResponse#managed_by #managed_by} => String
965
967
  # * {Types::DescribeRuleResponse#event_bus_name #event_bus_name} => String
968
+ # * {Types::DescribeRuleResponse#created_by #created_by} => String
966
969
  #
967
970
  # @example Request syntax with placeholder values
968
971
  #
969
972
  # resp = client.describe_rule({
970
973
  # name: "RuleName", # required
971
- # event_bus_name: "EventBusName",
974
+ # event_bus_name: "EventBusNameOrArn",
972
975
  # })
973
976
  #
974
977
  # @example Response structure
@@ -982,6 +985,7 @@ module Aws::CloudWatchEvents
982
985
  # resp.role_arn #=> String
983
986
  # resp.managed_by #=> String
984
987
  # resp.event_bus_name #=> String
988
+ # resp.created_by #=> String
985
989
  #
986
990
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule AWS API Documentation
987
991
  #
@@ -1003,8 +1007,8 @@ module Aws::CloudWatchEvents
1003
1007
  # The name of the rule.
1004
1008
  #
1005
1009
  # @option params [String] :event_bus_name
1006
- # The event bus associated with the rule. If you omit this, the default
1007
- # event bus is used.
1010
+ # The name or ARN of the event bus associated with the rule. If you omit
1011
+ # this, the default event bus is used.
1008
1012
  #
1009
1013
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1010
1014
  #
@@ -1012,7 +1016,7 @@ module Aws::CloudWatchEvents
1012
1016
  #
1013
1017
  # resp = client.disable_rule({
1014
1018
  # name: "RuleName", # required
1015
- # event_bus_name: "EventBusName",
1019
+ # event_bus_name: "EventBusNameOrArn",
1016
1020
  # })
1017
1021
  #
1018
1022
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule AWS API Documentation
@@ -1035,8 +1039,8 @@ module Aws::CloudWatchEvents
1035
1039
  # The name of the rule.
1036
1040
  #
1037
1041
  # @option params [String] :event_bus_name
1038
- # The event bus associated with the rule. If you omit this, the default
1039
- # event bus is used.
1042
+ # The name or ARN of the event bus associated with the rule. If you omit
1043
+ # this, the default event bus is used.
1040
1044
  #
1041
1045
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1042
1046
  #
@@ -1044,7 +1048,7 @@ module Aws::CloudWatchEvents
1044
1048
  #
1045
1049
  # resp = client.enable_rule({
1046
1050
  # name: "RuleName", # required
1047
- # event_bus_name: "EventBusName",
1051
+ # event_bus_name: "EventBusNameOrArn",
1048
1052
  # })
1049
1053
  #
1050
1054
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule AWS API Documentation
@@ -1309,7 +1313,7 @@ module Aws::CloudWatchEvents
1309
1313
  # exclusive.
1310
1314
  #
1311
1315
  # @option params [String] :name_prefix
1312
- # A name prefix to filter the archives returned. Only archives with name
1316
+ # A name prefix to filter the replays returned. Only replays with name
1313
1317
  # that match the prefix are returned.
1314
1318
  #
1315
1319
  # @option params [String] :state
@@ -1371,8 +1375,8 @@ module Aws::CloudWatchEvents
1371
1375
  # The Amazon Resource Name (ARN) of the target resource.
1372
1376
  #
1373
1377
  # @option params [String] :event_bus_name
1374
- # Limits the results to show only the rules associated with the
1375
- # specified event bus.
1378
+ # The name or ARN of the event bus to list rules for. If you omit this,
1379
+ # the default event bus is used.
1376
1380
  #
1377
1381
  # @option params [String] :next_token
1378
1382
  # The token returned by a previous call to retrieve the next set of
@@ -1390,7 +1394,7 @@ module Aws::CloudWatchEvents
1390
1394
  #
1391
1395
  # resp = client.list_rule_names_by_target({
1392
1396
  # target_arn: "TargetArn", # required
1393
- # event_bus_name: "EventBusName",
1397
+ # event_bus_name: "EventBusNameOrArn",
1394
1398
  # next_token: "NextToken",
1395
1399
  # limit: 1,
1396
1400
  # })
@@ -1420,8 +1424,8 @@ module Aws::CloudWatchEvents
1420
1424
  # The prefix matching the rule name.
1421
1425
  #
1422
1426
  # @option params [String] :event_bus_name
1423
- # Limits the results to show only the rules associated with the
1424
- # specified event bus.
1427
+ # The name or ARN of the event bus to list the rules for. If you omit
1428
+ # this, the default event bus is used.
1425
1429
  #
1426
1430
  # @option params [String] :next_token
1427
1431
  # The token returned by a previous call to retrieve the next set of
@@ -1439,7 +1443,7 @@ module Aws::CloudWatchEvents
1439
1443
  #
1440
1444
  # resp = client.list_rules({
1441
1445
  # name_prefix: "RuleName",
1442
- # event_bus_name: "EventBusName",
1446
+ # event_bus_name: "EventBusNameOrArn",
1443
1447
  # next_token: "NextToken",
1444
1448
  # limit: 1,
1445
1449
  # })
@@ -1504,8 +1508,8 @@ module Aws::CloudWatchEvents
1504
1508
  # The name of the rule.
1505
1509
  #
1506
1510
  # @option params [String] :event_bus_name
1507
- # The event bus associated with the rule. If you omit this, the default
1508
- # event bus is used.
1511
+ # The name or ARN of the event bus associated with the rule. If you omit
1512
+ # this, the default event bus is used.
1509
1513
  #
1510
1514
  # @option params [String] :next_token
1511
1515
  # The token returned by a previous call to retrieve the next set of
@@ -1523,7 +1527,7 @@ module Aws::CloudWatchEvents
1523
1527
  #
1524
1528
  # resp = client.list_targets_by_rule({
1525
1529
  # rule: "RuleName", # required
1526
- # event_bus_name: "EventBusName",
1530
+ # event_bus_name: "EventBusNameOrArn",
1527
1531
  # next_token: "NextToken",
1528
1532
  # limit: 1,
1529
1533
  # })
@@ -1608,7 +1612,7 @@ module Aws::CloudWatchEvents
1608
1612
  # resources: ["EventResource"],
1609
1613
  # detail_type: "String",
1610
1614
  # detail: "String",
1611
- # event_bus_name: "NonPartnerEventBusName",
1615
+ # event_bus_name: "NonPartnerEventBusNameOrArn",
1612
1616
  # },
1613
1617
  # ],
1614
1618
  # })
@@ -1702,14 +1706,14 @@ module Aws::CloudWatchEvents
1702
1706
  # [1]: https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html
1703
1707
  #
1704
1708
  # @option params [String] :event_bus_name
1705
- # The event bus associated with the rule. If you omit this, the default
1706
- # event bus is used.
1709
+ # The name of the event bus associated with the rule. If you omit this,
1710
+ # the default event bus is used.
1707
1711
  #
1708
- # @option params [required, String] :action
1712
+ # @option params [String] :action
1709
1713
  # The action that you are enabling the other account to perform.
1710
1714
  # Currently, this must be `events:PutEvents`.
1711
1715
  #
1712
- # @option params [required, String] :principal
1716
+ # @option params [String] :principal
1713
1717
  # The 12-digit AWS account ID that you are permitting to put events to
1714
1718
  # your default event bus. Specify "*" to permit any account to put
1715
1719
  # events to your default event bus.
@@ -1721,7 +1725,7 @@ module Aws::CloudWatchEvents
1721
1725
  # with an account field do not match any events sent from other
1722
1726
  # accounts.
1723
1727
  #
1724
- # @option params [required, String] :statement_id
1728
+ # @option params [String] :statement_id
1725
1729
  # An identifier string for the external account that you are granting
1726
1730
  # permissions to. If you later want to revoke the permission for this
1727
1731
  # external account, specify this `StatementId` when you run
@@ -1744,20 +1748,26 @@ module Aws::CloudWatchEvents
1744
1748
  #
1745
1749
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html
1746
1750
  #
1751
+ # @option params [String] :policy
1752
+ # A JSON string that describes the permission policy statement. You can
1753
+ # include a `Policy` parameter in the request instead of using the
1754
+ # `StatementId`, `Action`, `Principal`, or `Condition` parameters.
1755
+ #
1747
1756
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1748
1757
  #
1749
1758
  # @example Request syntax with placeholder values
1750
1759
  #
1751
1760
  # resp = client.put_permission({
1752
1761
  # event_bus_name: "NonPartnerEventBusName",
1753
- # action: "Action", # required
1754
- # principal: "Principal", # required
1755
- # statement_id: "StatementId", # required
1762
+ # action: "Action",
1763
+ # principal: "Principal",
1764
+ # statement_id: "StatementId",
1756
1765
  # condition: {
1757
1766
  # type: "String", # required
1758
1767
  # key: "String", # required
1759
1768
  # value: "String", # required
1760
1769
  # },
1770
+ # policy: "String",
1761
1771
  # })
1762
1772
  #
1763
1773
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission AWS API Documentation
@@ -1863,8 +1873,8 @@ module Aws::CloudWatchEvents
1863
1873
  # The list of key-value pairs to associate with the rule.
1864
1874
  #
1865
1875
  # @option params [String] :event_bus_name
1866
- # The event bus to associate with this rule. If you omit this, the
1867
- # default event bus is used.
1876
+ # The name or ARN of the event bus to associate with this rule. If you
1877
+ # omit this, the default event bus is used.
1868
1878
  #
1869
1879
  # @return [Types::PutRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1870
1880
  #
@@ -1885,7 +1895,7 @@ module Aws::CloudWatchEvents
1885
1895
  # value: "TagValue", # required
1886
1896
  # },
1887
1897
  # ],
1888
- # event_bus_name: "EventBusName",
1898
+ # event_bus_name: "EventBusNameOrArn",
1889
1899
  # })
1890
1900
  #
1891
1901
  # @example Response structure
@@ -2031,8 +2041,8 @@ module Aws::CloudWatchEvents
2031
2041
  # The name of the rule.
2032
2042
  #
2033
2043
  # @option params [String] :event_bus_name
2034
- # The name of the event bus associated with the rule. If you omit this,
2035
- # the default event bus is used.
2044
+ # The name or ARN of the event bus associated with the rule. If you omit
2045
+ # this, the default event bus is used.
2036
2046
  #
2037
2047
  # @option params [required, Array<Types::Target>] :targets
2038
2048
  # The targets to update or add to the rule.
@@ -2046,7 +2056,7 @@ module Aws::CloudWatchEvents
2046
2056
  #
2047
2057
  # resp = client.put_targets({
2048
2058
  # rule: "RuleName", # required
2049
- # event_bus_name: "EventBusName",
2059
+ # event_bus_name: "EventBusNameOrArn",
2050
2060
  # targets: [ # required
2051
2061
  # {
2052
2062
  # id: "TargetId", # required
@@ -2149,10 +2159,13 @@ module Aws::CloudWatchEvents
2149
2159
  # granted it permission with `PutPermission`. You can find the
2150
2160
  # `StatementId` by using DescribeEventBus.
2151
2161
  #
2152
- # @option params [required, String] :statement_id
2162
+ # @option params [String] :statement_id
2153
2163
  # The statement ID corresponding to the account that is no longer
2154
2164
  # allowed to put events to the default event bus.
2155
2165
  #
2166
+ # @option params [Boolean] :remove_all_permissions
2167
+ # Specifies whether to remove all permissions.
2168
+ #
2156
2169
  # @option params [String] :event_bus_name
2157
2170
  # The name of the event bus to revoke permissions for. If you omit this,
2158
2171
  # the default event bus is used.
@@ -2162,7 +2175,8 @@ module Aws::CloudWatchEvents
2162
2175
  # @example Request syntax with placeholder values
2163
2176
  #
2164
2177
  # resp = client.remove_permission({
2165
- # statement_id: "StatementId", # required
2178
+ # statement_id: "StatementId",
2179
+ # remove_all_permissions: false,
2166
2180
  # event_bus_name: "NonPartnerEventBusName",
2167
2181
  # })
2168
2182
  #
@@ -2191,7 +2205,8 @@ module Aws::CloudWatchEvents
2191
2205
  # The name of the rule.
2192
2206
  #
2193
2207
  # @option params [String] :event_bus_name
2194
- # The name of the event bus associated with the rule.
2208
+ # The name or ARN of the event bus associated with the rule. If you omit
2209
+ # this, the default event bus is used.
2195
2210
  #
2196
2211
  # @option params [required, Array<String>] :ids
2197
2212
  # The IDs of the targets to remove from the rule.
@@ -2212,7 +2227,7 @@ module Aws::CloudWatchEvents
2212
2227
  #
2213
2228
  # resp = client.remove_targets({
2214
2229
  # rule: "RuleName", # required
2215
- # event_bus_name: "EventBusName",
2230
+ # event_bus_name: "EventBusNameOrArn",
2216
2231
  # ids: ["TargetId"], # required
2217
2232
  # force: false,
2218
2233
  # })
@@ -2479,7 +2494,7 @@ module Aws::CloudWatchEvents
2479
2494
  params: params,
2480
2495
  config: config)
2481
2496
  context[:gem_name] = 'aws-sdk-cloudwatchevents'
2482
- context[:gem_version] = '1.39.0'
2497
+ context[:gem_version] = '1.40.0'
2483
2498
  Seahorse::Client::Request.new(handlers, context)
2484
2499
  end
2485
2500
 
@@ -40,6 +40,7 @@ module Aws::CloudWatchEvents
40
40
  CreateEventBusResponse = Shapes::StructureShape.new(name: 'CreateEventBusResponse')
41
41
  CreatePartnerEventSourceRequest = Shapes::StructureShape.new(name: 'CreatePartnerEventSourceRequest')
42
42
  CreatePartnerEventSourceResponse = Shapes::StructureShape.new(name: 'CreatePartnerEventSourceResponse')
43
+ CreatedBy = Shapes::StringShape.new(name: 'CreatedBy')
43
44
  Database = Shapes::StringShape.new(name: 'Database')
44
45
  DbUser = Shapes::StringShape.new(name: 'DbUser')
45
46
  DeactivateEventSourceRequest = Shapes::StructureShape.new(name: 'DeactivateEventSourceRequest')
@@ -69,6 +70,7 @@ module Aws::CloudWatchEvents
69
70
  EventBus = Shapes::StructureShape.new(name: 'EventBus')
70
71
  EventBusList = Shapes::ListShape.new(name: 'EventBusList')
71
72
  EventBusName = Shapes::StringShape.new(name: 'EventBusName')
73
+ EventBusNameOrArn = Shapes::StringShape.new(name: 'EventBusNameOrArn')
72
74
  EventId = Shapes::StringShape.new(name: 'EventId')
73
75
  EventPattern = Shapes::StringShape.new(name: 'EventPattern')
74
76
  EventResource = Shapes::StringShape.new(name: 'EventResource')
@@ -124,6 +126,7 @@ module Aws::CloudWatchEvents
124
126
  NetworkConfiguration = Shapes::StructureShape.new(name: 'NetworkConfiguration')
125
127
  NextToken = Shapes::StringShape.new(name: 'NextToken')
126
128
  NonPartnerEventBusName = Shapes::StringShape.new(name: 'NonPartnerEventBusName')
129
+ NonPartnerEventBusNameOrArn = Shapes::StringShape.new(name: 'NonPartnerEventBusNameOrArn')
127
130
  OperationDisabledException = Shapes::StructureShape.new(name: 'OperationDisabledException')
128
131
  PartnerEventSource = Shapes::StructureShape.new(name: 'PartnerEventSource')
129
132
  PartnerEventSourceAccount = Shapes::StructureShape.new(name: 'PartnerEventSourceAccount')
@@ -319,7 +322,7 @@ module Aws::CloudWatchEvents
319
322
  DeletePartnerEventSourceRequest.struct_class = Types::DeletePartnerEventSourceRequest
320
323
 
321
324
  DeleteRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
322
- DeleteRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "EventBusName"))
325
+ DeleteRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "EventBusName"))
323
326
  DeleteRuleRequest.add_member(:force, Shapes::ShapeRef.new(shape: Boolean, location_name: "Force"))
324
327
  DeleteRuleRequest.struct_class = Types::DeleteRuleRequest
325
328
 
@@ -339,7 +342,7 @@ module Aws::CloudWatchEvents
339
342
  DescribeArchiveResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTime"))
340
343
  DescribeArchiveResponse.struct_class = Types::DescribeArchiveResponse
341
344
 
342
- DescribeEventBusRequest.add_member(:name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "Name"))
345
+ DescribeEventBusRequest.add_member(:name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "Name"))
343
346
  DescribeEventBusRequest.struct_class = Types::DescribeEventBusRequest
344
347
 
345
348
  DescribeEventBusResponse.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
@@ -383,7 +386,7 @@ module Aws::CloudWatchEvents
383
386
  DescribeReplayResponse.struct_class = Types::DescribeReplayResponse
384
387
 
385
388
  DescribeRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
386
- DescribeRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "EventBusName"))
389
+ DescribeRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "EventBusName"))
387
390
  DescribeRuleRequest.struct_class = Types::DescribeRuleRequest
388
391
 
389
392
  DescribeRuleResponse.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, location_name: "Name"))
@@ -395,10 +398,11 @@ module Aws::CloudWatchEvents
395
398
  DescribeRuleResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
396
399
  DescribeRuleResponse.add_member(:managed_by, Shapes::ShapeRef.new(shape: ManagedBy, location_name: "ManagedBy"))
397
400
  DescribeRuleResponse.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "EventBusName"))
401
+ DescribeRuleResponse.add_member(:created_by, Shapes::ShapeRef.new(shape: CreatedBy, location_name: "CreatedBy"))
398
402
  DescribeRuleResponse.struct_class = Types::DescribeRuleResponse
399
403
 
400
404
  DisableRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
401
- DisableRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "EventBusName"))
405
+ DisableRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "EventBusName"))
402
406
  DisableRuleRequest.struct_class = Types::DisableRuleRequest
403
407
 
404
408
  EcsParameters.add_member(:task_definition_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "TaskDefinitionArn"))
@@ -410,7 +414,7 @@ module Aws::CloudWatchEvents
410
414
  EcsParameters.struct_class = Types::EcsParameters
411
415
 
412
416
  EnableRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
413
- EnableRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "EventBusName"))
417
+ EnableRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "EventBusName"))
414
418
  EnableRuleRequest.struct_class = Types::EnableRuleRequest
415
419
 
416
420
  EventBus.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
@@ -516,7 +520,7 @@ module Aws::CloudWatchEvents
516
520
  ListReplaysResponse.struct_class = Types::ListReplaysResponse
517
521
 
518
522
  ListRuleNamesByTargetRequest.add_member(:target_arn, Shapes::ShapeRef.new(shape: TargetArn, required: true, location_name: "TargetArn"))
519
- ListRuleNamesByTargetRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "EventBusName"))
523
+ ListRuleNamesByTargetRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "EventBusName"))
520
524
  ListRuleNamesByTargetRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
521
525
  ListRuleNamesByTargetRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
522
526
  ListRuleNamesByTargetRequest.struct_class = Types::ListRuleNamesByTargetRequest
@@ -526,7 +530,7 @@ module Aws::CloudWatchEvents
526
530
  ListRuleNamesByTargetResponse.struct_class = Types::ListRuleNamesByTargetResponse
527
531
 
528
532
  ListRulesRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: RuleName, location_name: "NamePrefix"))
529
- ListRulesRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "EventBusName"))
533
+ ListRulesRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "EventBusName"))
530
534
  ListRulesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
531
535
  ListRulesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
532
536
  ListRulesRequest.struct_class = Types::ListRulesRequest
@@ -542,7 +546,7 @@ module Aws::CloudWatchEvents
542
546
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
543
547
 
544
548
  ListTargetsByRuleRequest.add_member(:rule, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Rule"))
545
- ListTargetsByRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "EventBusName"))
549
+ ListTargetsByRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "EventBusName"))
546
550
  ListTargetsByRuleRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
547
551
  ListTargetsByRuleRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
548
552
  ListTargetsByRuleRequest.struct_class = Types::ListTargetsByRuleRequest
@@ -584,7 +588,7 @@ module Aws::CloudWatchEvents
584
588
  PutEventsRequestEntry.add_member(:resources, Shapes::ShapeRef.new(shape: EventResourceList, location_name: "Resources"))
585
589
  PutEventsRequestEntry.add_member(:detail_type, Shapes::ShapeRef.new(shape: String, location_name: "DetailType"))
586
590
  PutEventsRequestEntry.add_member(:detail, Shapes::ShapeRef.new(shape: String, location_name: "Detail"))
587
- PutEventsRequestEntry.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: NonPartnerEventBusName, location_name: "EventBusName"))
591
+ PutEventsRequestEntry.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: NonPartnerEventBusNameOrArn, location_name: "EventBusName"))
588
592
  PutEventsRequestEntry.struct_class = Types::PutEventsRequestEntry
589
593
 
590
594
  PutEventsRequestEntryList.member = Shapes::ShapeRef.new(shape: PutEventsRequestEntry)
@@ -624,10 +628,11 @@ module Aws::CloudWatchEvents
624
628
  PutPartnerEventsResultEntryList.member = Shapes::ShapeRef.new(shape: PutPartnerEventsResultEntry)
625
629
 
626
630
  PutPermissionRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: NonPartnerEventBusName, location_name: "EventBusName"))
627
- PutPermissionRequest.add_member(:action, Shapes::ShapeRef.new(shape: Action, required: true, location_name: "Action"))
628
- PutPermissionRequest.add_member(:principal, Shapes::ShapeRef.new(shape: Principal, required: true, location_name: "Principal"))
629
- PutPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "StatementId"))
631
+ PutPermissionRequest.add_member(:action, Shapes::ShapeRef.new(shape: Action, location_name: "Action"))
632
+ PutPermissionRequest.add_member(:principal, Shapes::ShapeRef.new(shape: Principal, location_name: "Principal"))
633
+ PutPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, location_name: "StatementId"))
630
634
  PutPermissionRequest.add_member(:condition, Shapes::ShapeRef.new(shape: Condition, location_name: "Condition"))
635
+ PutPermissionRequest.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
631
636
  PutPermissionRequest.struct_class = Types::PutPermissionRequest
632
637
 
633
638
  PutRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
@@ -637,14 +642,14 @@ module Aws::CloudWatchEvents
637
642
  PutRuleRequest.add_member(:description, Shapes::ShapeRef.new(shape: RuleDescription, location_name: "Description"))
638
643
  PutRuleRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
639
644
  PutRuleRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
640
- PutRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "EventBusName"))
645
+ PutRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "EventBusName"))
641
646
  PutRuleRequest.struct_class = Types::PutRuleRequest
642
647
 
643
648
  PutRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
644
649
  PutRuleResponse.struct_class = Types::PutRuleResponse
645
650
 
646
651
  PutTargetsRequest.add_member(:rule, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Rule"))
647
- PutTargetsRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "EventBusName"))
652
+ PutTargetsRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "EventBusName"))
648
653
  PutTargetsRequest.add_member(:targets, Shapes::ShapeRef.new(shape: TargetList, required: true, location_name: "Targets"))
649
654
  PutTargetsRequest.struct_class = Types::PutTargetsRequest
650
655
 
@@ -670,12 +675,13 @@ module Aws::CloudWatchEvents
670
675
  RedshiftDataParameters.add_member(:with_event, Shapes::ShapeRef.new(shape: Boolean, location_name: "WithEvent"))
671
676
  RedshiftDataParameters.struct_class = Types::RedshiftDataParameters
672
677
 
673
- RemovePermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "StatementId"))
678
+ RemovePermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, location_name: "StatementId"))
679
+ RemovePermissionRequest.add_member(:remove_all_permissions, Shapes::ShapeRef.new(shape: Boolean, location_name: "RemoveAllPermissions"))
674
680
  RemovePermissionRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: NonPartnerEventBusName, location_name: "EventBusName"))
675
681
  RemovePermissionRequest.struct_class = Types::RemovePermissionRequest
676
682
 
677
683
  RemoveTargetsRequest.add_member(:rule, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Rule"))
678
- RemoveTargetsRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusName, location_name: "EventBusName"))
684
+ RemoveTargetsRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "EventBusName"))
679
685
  RemoveTargetsRequest.add_member(:ids, Shapes::ShapeRef.new(shape: TargetIdList, required: true, location_name: "Ids"))
680
686
  RemoveTargetsRequest.add_member(:force, Shapes::ShapeRef.new(shape: Boolean, location_name: "Force"))
681
687
  RemoveTargetsRequest.struct_class = Types::RemoveTargetsRequest
@@ -1183,6 +1189,7 @@ module Aws::CloudWatchEvents
1183
1189
  o.errors << Shapes::ShapeRef.new(shape: PolicyLengthExceededException)
1184
1190
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
1185
1191
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1192
+ o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
1186
1193
  end)
1187
1194
 
1188
1195
  api.add_operation(:put_rule, Seahorse::Model::Operation.new.tap do |o|
@@ -1221,6 +1228,7 @@ module Aws::CloudWatchEvents
1221
1228
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1222
1229
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
1223
1230
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1231
+ o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
1224
1232
  end)
1225
1233
 
1226
1234
  api.add_operation(:remove_targets, Seahorse::Model::Operation.new.tap do |o|
@@ -599,7 +599,7 @@ module Aws::CloudWatchEvents
599
599
  #
600
600
  # {
601
601
  # name: "RuleName", # required
602
- # event_bus_name: "EventBusName",
602
+ # event_bus_name: "EventBusNameOrArn",
603
603
  # force: false,
604
604
  # }
605
605
  #
@@ -608,8 +608,8 @@ module Aws::CloudWatchEvents
608
608
  # @return [String]
609
609
  #
610
610
  # @!attribute [rw] event_bus_name
611
- # The event bus associated with the rule. If you omit this, the
612
- # 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.
613
613
  # @return [String]
614
614
  #
615
615
  # @!attribute [rw] force
@@ -715,12 +715,12 @@ module Aws::CloudWatchEvents
715
715
  # data as a hash:
716
716
  #
717
717
  # {
718
- # name: "EventBusName",
718
+ # name: "EventBusNameOrArn",
719
719
  # }
720
720
  #
721
721
  # @!attribute [rw] name
722
- # The name of the event bus to show details for. If you omit this, the
723
- # 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.
724
724
  # @return [String]
725
725
  #
726
726
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBusRequest AWS API Documentation
@@ -946,7 +946,7 @@ module Aws::CloudWatchEvents
946
946
  #
947
947
  # {
948
948
  # name: "RuleName", # required
949
- # event_bus_name: "EventBusName",
949
+ # event_bus_name: "EventBusNameOrArn",
950
950
  # }
951
951
  #
952
952
  # @!attribute [rw] name
@@ -954,8 +954,8 @@ module Aws::CloudWatchEvents
954
954
  # @return [String]
955
955
  #
956
956
  # @!attribute [rw] event_bus_name
957
- # The event bus associated with the rule. If you omit this, the
958
- # 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.
959
959
  # @return [String]
960
960
  #
961
961
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleRequest AWS API Documentation
@@ -1009,7 +1009,16 @@ module Aws::CloudWatchEvents
1009
1009
  # @return [String]
1010
1010
  #
1011
1011
  # @!attribute [rw] event_bus_name
1012
- # 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.
1013
1022
  # @return [String]
1014
1023
  #
1015
1024
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleResponse AWS API Documentation
@@ -1023,7 +1032,8 @@ module Aws::CloudWatchEvents
1023
1032
  :description,
1024
1033
  :role_arn,
1025
1034
  :managed_by,
1026
- :event_bus_name)
1035
+ :event_bus_name,
1036
+ :created_by)
1027
1037
  SENSITIVE = []
1028
1038
  include Aws::Structure
1029
1039
  end
@@ -1033,7 +1043,7 @@ module Aws::CloudWatchEvents
1033
1043
  #
1034
1044
  # {
1035
1045
  # name: "RuleName", # required
1036
- # event_bus_name: "EventBusName",
1046
+ # event_bus_name: "EventBusNameOrArn",
1037
1047
  # }
1038
1048
  #
1039
1049
  # @!attribute [rw] name
@@ -1041,8 +1051,8 @@ module Aws::CloudWatchEvents
1041
1051
  # @return [String]
1042
1052
  #
1043
1053
  # @!attribute [rw] event_bus_name
1044
- # The event bus associated with the rule. If you omit this, the
1045
- # 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.
1046
1056
  # @return [String]
1047
1057
  #
1048
1058
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRuleRequest AWS API Documentation
@@ -1146,7 +1156,7 @@ module Aws::CloudWatchEvents
1146
1156
  #
1147
1157
  # {
1148
1158
  # name: "RuleName", # required
1149
- # event_bus_name: "EventBusName",
1159
+ # event_bus_name: "EventBusNameOrArn",
1150
1160
  # }
1151
1161
  #
1152
1162
  # @!attribute [rw] name
@@ -1154,8 +1164,8 @@ module Aws::CloudWatchEvents
1154
1164
  # @return [String]
1155
1165
  #
1156
1166
  # @!attribute [rw] event_bus_name
1157
- # The event bus associated with the rule. If you omit this, the
1158
- # 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.
1159
1169
  # @return [String]
1160
1170
  #
1161
1171
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRuleRequest AWS API Documentation
@@ -1714,8 +1724,8 @@ module Aws::CloudWatchEvents
1714
1724
  # }
1715
1725
  #
1716
1726
  # @!attribute [rw] name_prefix
1717
- # A name prefix to filter the archives returned. Only archives with
1718
- # name that match the prefix are returned.
1727
+ # A name prefix to filter the replays returned. Only replays with name
1728
+ # that match the prefix are returned.
1719
1729
  # @return [String]
1720
1730
  #
1721
1731
  # @!attribute [rw] state
@@ -1771,7 +1781,7 @@ module Aws::CloudWatchEvents
1771
1781
  #
1772
1782
  # {
1773
1783
  # target_arn: "TargetArn", # required
1774
- # event_bus_name: "EventBusName",
1784
+ # event_bus_name: "EventBusNameOrArn",
1775
1785
  # next_token: "NextToken",
1776
1786
  # limit: 1,
1777
1787
  # }
@@ -1781,8 +1791,8 @@ module Aws::CloudWatchEvents
1781
1791
  # @return [String]
1782
1792
  #
1783
1793
  # @!attribute [rw] event_bus_name
1784
- # Limits the results to show only the rules associated with the
1785
- # 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.
1786
1796
  # @return [String]
1787
1797
  #
1788
1798
  # @!attribute [rw] next_token
@@ -1828,7 +1838,7 @@ module Aws::CloudWatchEvents
1828
1838
  #
1829
1839
  # {
1830
1840
  # name_prefix: "RuleName",
1831
- # event_bus_name: "EventBusName",
1841
+ # event_bus_name: "EventBusNameOrArn",
1832
1842
  # next_token: "NextToken",
1833
1843
  # limit: 1,
1834
1844
  # }
@@ -1838,8 +1848,8 @@ module Aws::CloudWatchEvents
1838
1848
  # @return [String]
1839
1849
  #
1840
1850
  # @!attribute [rw] event_bus_name
1841
- # Limits the results to show only the rules associated with the
1842
- # 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.
1843
1853
  # @return [String]
1844
1854
  #
1845
1855
  # @!attribute [rw] next_token
@@ -1917,7 +1927,7 @@ module Aws::CloudWatchEvents
1917
1927
  #
1918
1928
  # {
1919
1929
  # rule: "RuleName", # required
1920
- # event_bus_name: "EventBusName",
1930
+ # event_bus_name: "EventBusNameOrArn",
1921
1931
  # next_token: "NextToken",
1922
1932
  # limit: 1,
1923
1933
  # }
@@ -1927,8 +1937,8 @@ module Aws::CloudWatchEvents
1927
1937
  # @return [String]
1928
1938
  #
1929
1939
  # @!attribute [rw] event_bus_name
1930
- # The event bus associated with the rule. If you omit this, the
1931
- # 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.
1932
1942
  # @return [String]
1933
1943
  #
1934
1944
  # @!attribute [rw] next_token
@@ -2090,7 +2100,7 @@ module Aws::CloudWatchEvents
2090
2100
  # resources: ["EventResource"],
2091
2101
  # detail_type: "String",
2092
2102
  # detail: "String",
2093
- # event_bus_name: "NonPartnerEventBusName",
2103
+ # event_bus_name: "NonPartnerEventBusNameOrArn",
2094
2104
  # },
2095
2105
  # ],
2096
2106
  # }
@@ -2120,7 +2130,7 @@ module Aws::CloudWatchEvents
2120
2130
  # resources: ["EventResource"],
2121
2131
  # detail_type: "String",
2122
2132
  # detail: "String",
2123
- # event_bus_name: "NonPartnerEventBusName",
2133
+ # event_bus_name: "NonPartnerEventBusNameOrArn",
2124
2134
  # }
2125
2135
  #
2126
2136
  # @!attribute [rw] time
@@ -2153,8 +2163,9 @@ module Aws::CloudWatchEvents
2153
2163
  # @return [String]
2154
2164
  #
2155
2165
  # @!attribute [rw] event_bus_name
2156
- # The event bus that will receive the event. Only the rules that are
2157
- # 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.
2158
2169
  # @return [String]
2159
2170
  #
2160
2171
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequestEntry AWS API Documentation
@@ -2338,19 +2349,20 @@ module Aws::CloudWatchEvents
2338
2349
  #
2339
2350
  # {
2340
2351
  # event_bus_name: "NonPartnerEventBusName",
2341
- # action: "Action", # required
2342
- # principal: "Principal", # required
2343
- # statement_id: "StatementId", # required
2352
+ # action: "Action",
2353
+ # principal: "Principal",
2354
+ # statement_id: "StatementId",
2344
2355
  # condition: {
2345
2356
  # type: "String", # required
2346
2357
  # key: "String", # required
2347
2358
  # value: "String", # required
2348
2359
  # },
2360
+ # policy: "String",
2349
2361
  # }
2350
2362
  #
2351
2363
  # @!attribute [rw] event_bus_name
2352
- # The event bus associated with the rule. If you omit this, the
2353
- # 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.
2354
2366
  # @return [String]
2355
2367
  #
2356
2368
  # @!attribute [rw] action
@@ -2397,6 +2409,12 @@ module Aws::CloudWatchEvents
2397
2409
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html
2398
2410
  # @return [Types::Condition]
2399
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
+ #
2400
2418
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermissionRequest AWS API Documentation
2401
2419
  #
2402
2420
  class PutPermissionRequest < Struct.new(
@@ -2404,7 +2422,8 @@ module Aws::CloudWatchEvents
2404
2422
  :action,
2405
2423
  :principal,
2406
2424
  :statement_id,
2407
- :condition)
2425
+ :condition,
2426
+ :policy)
2408
2427
  SENSITIVE = []
2409
2428
  include Aws::Structure
2410
2429
  end
@@ -2425,7 +2444,7 @@ module Aws::CloudWatchEvents
2425
2444
  # value: "TagValue", # required
2426
2445
  # },
2427
2446
  # ],
2428
- # event_bus_name: "EventBusName",
2447
+ # event_bus_name: "EventBusNameOrArn",
2429
2448
  # }
2430
2449
  #
2431
2450
  # @!attribute [rw] name
@@ -2464,8 +2483,8 @@ module Aws::CloudWatchEvents
2464
2483
  # @return [Array<Types::Tag>]
2465
2484
  #
2466
2485
  # @!attribute [rw] event_bus_name
2467
- # The event bus to associate with this rule. If you omit this, the
2468
- # 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.
2469
2488
  # @return [String]
2470
2489
  #
2471
2490
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRuleRequest AWS API Documentation
@@ -2500,7 +2519,7 @@ module Aws::CloudWatchEvents
2500
2519
  #
2501
2520
  # {
2502
2521
  # rule: "RuleName", # required
2503
- # event_bus_name: "EventBusName",
2522
+ # event_bus_name: "EventBusNameOrArn",
2504
2523
  # targets: [ # required
2505
2524
  # {
2506
2525
  # id: "TargetId", # required
@@ -2585,8 +2604,8 @@ module Aws::CloudWatchEvents
2585
2604
  # @return [String]
2586
2605
  #
2587
2606
  # @!attribute [rw] event_bus_name
2588
- # The name of the event bus associated with the rule. If you omit
2589
- # 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.
2590
2609
  # @return [String]
2591
2610
  #
2592
2611
  # @!attribute [rw] targets
@@ -2708,7 +2727,8 @@ module Aws::CloudWatchEvents
2708
2727
  # data as a hash:
2709
2728
  #
2710
2729
  # {
2711
- # statement_id: "StatementId", # required
2730
+ # statement_id: "StatementId",
2731
+ # remove_all_permissions: false,
2712
2732
  # event_bus_name: "NonPartnerEventBusName",
2713
2733
  # }
2714
2734
  #
@@ -2717,6 +2737,10 @@ module Aws::CloudWatchEvents
2717
2737
  # allowed to put events to the default event bus.
2718
2738
  # @return [String]
2719
2739
  #
2740
+ # @!attribute [rw] remove_all_permissions
2741
+ # Specifies whether to remove all permissions.
2742
+ # @return [Boolean]
2743
+ #
2720
2744
  # @!attribute [rw] event_bus_name
2721
2745
  # The name of the event bus to revoke permissions for. If you omit
2722
2746
  # this, the default event bus is used.
@@ -2726,6 +2750,7 @@ module Aws::CloudWatchEvents
2726
2750
  #
2727
2751
  class RemovePermissionRequest < Struct.new(
2728
2752
  :statement_id,
2753
+ :remove_all_permissions,
2729
2754
  :event_bus_name)
2730
2755
  SENSITIVE = []
2731
2756
  include Aws::Structure
@@ -2736,7 +2761,7 @@ module Aws::CloudWatchEvents
2736
2761
  #
2737
2762
  # {
2738
2763
  # rule: "RuleName", # required
2739
- # event_bus_name: "EventBusName",
2764
+ # event_bus_name: "EventBusNameOrArn",
2740
2765
  # ids: ["TargetId"], # required
2741
2766
  # force: false,
2742
2767
  # }
@@ -2746,7 +2771,8 @@ module Aws::CloudWatchEvents
2746
2771
  # @return [String]
2747
2772
  #
2748
2773
  # @!attribute [rw] event_bus_name
2749
- # 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.
2750
2776
  # @return [String]
2751
2777
  #
2752
2778
  # @!attribute [rw] ids
@@ -2991,7 +3017,8 @@ module Aws::CloudWatchEvents
2991
3017
  # @return [String]
2992
3018
  #
2993
3019
  # @!attribute [rw] event_bus_name
2994
- # 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.
2995
3022
  # @return [String]
2996
3023
  #
2997
3024
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Rule AWS API Documentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatchevents
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.39.0
4
+ version: 1.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-05 00:00:00.000000000 Z
11
+ date: 2020-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core