aws-sdk-cloudwatchevents 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bc70805263aaeb99915e21235a60e5d23058e41
4
- data.tar.gz: 0fabdc0b8b9ef3a0e0ef4283d4288a6694a97e45
3
+ metadata.gz: 5b991c9099043558206c3d924a9c588a93240222
4
+ data.tar.gz: 9b28e4914a199d440ab53647796bda9d9cdacad3
5
5
  SHA512:
6
- metadata.gz: b2834c42acc8351be426b87ead8d221edc73decbbfd93347ba294f3a7cf92eb20f7a7a3cf449595d390e74facb7c7d81bbb18c39915e89df78e490ffd6e35c63
7
- data.tar.gz: 7a61f3a89482cfda5bd9c05bee7c4d374065b9fd1f5881d04e102611d2c12d0fa9f28e30735e7fc615416a22ac5531c815fdeff978967d91c6df4920da2eea1a
6
+ metadata.gz: 66c97a678966d0d1968f2bb8cb2de069e429fbf9b2a4ce7991bdada53689b53d310bc127a4e4dfc064b378226996085f2abf9fad71c0b6d782299321795b47fe
7
+ data.tar.gz: 055b3d18802edaf976f72bafc19eb4fa006085213105453520ae4b26d07f76f043d9a965bc6ce04388f35675d44d313ce4a1284e780165efec6a800dd8f17a1f
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-cloudwatchevents/customizations'
42
42
  # @service
43
43
  module Aws::CloudWatchEvents
44
44
 
45
- GEM_VERSION = '1.12.0'
45
+ GEM_VERSION = '1.13.0'
46
46
 
47
47
  end
@@ -223,15 +223,29 @@ module Aws::CloudWatchEvents
223
223
  # When you delete a rule, incoming events might continue to match to the
224
224
  # deleted rule. Allow a short period of time for changes to take effect.
225
225
  #
226
+ # Managed rules are rules created and managed by another AWS service on
227
+ # your behalf. These rules are created by those other AWS services to
228
+ # support functionality in those services. You can delete these rules
229
+ # using the `Force` option, but you should do so only if you are sure
230
+ # the other service is not still using that rule.
231
+ #
226
232
  # @option params [required, String] :name
227
233
  # The name of the rule.
228
234
  #
235
+ # @option params [Boolean] :force
236
+ # If this is a managed rule, created by an AWS service on your behalf,
237
+ # you must specify `Force` as `True` to delete the rule. This parameter
238
+ # is ignored for rules that are not managed rules. You can check whether
239
+ # a rule is a managed rule by using `DescribeRule` or `ListRules` and
240
+ # checking the `ManagedBy` field of the response.
241
+ #
229
242
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
230
243
  #
231
244
  # @example Request syntax with placeholder values
232
245
  #
233
246
  # resp = client.delete_rule({
234
247
  # name: "RuleName", # required
248
+ # force: false,
235
249
  # })
236
250
  #
237
251
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule AWS API Documentation
@@ -286,6 +300,7 @@ module Aws::CloudWatchEvents
286
300
  # * {Types::DescribeRuleResponse#state #state} => String
287
301
  # * {Types::DescribeRuleResponse#description #description} => String
288
302
  # * {Types::DescribeRuleResponse#role_arn #role_arn} => String
303
+ # * {Types::DescribeRuleResponse#managed_by #managed_by} => String
289
304
  #
290
305
  # @example Request syntax with placeholder values
291
306
  #
@@ -302,6 +317,7 @@ module Aws::CloudWatchEvents
302
317
  # resp.state #=> String, one of "ENABLED", "DISABLED"
303
318
  # resp.description #=> String
304
319
  # resp.role_arn #=> String
320
+ # resp.managed_by #=> String
305
321
  #
306
322
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule AWS API Documentation
307
323
  #
@@ -447,6 +463,7 @@ module Aws::CloudWatchEvents
447
463
  # resp.rules[0].description #=> String
448
464
  # resp.rules[0].schedule_expression #=> String
449
465
  # resp.rules[0].role_arn #=> String
466
+ # resp.rules[0].managed_by #=> String
450
467
  # resp.next_token #=> String
451
468
  #
452
469
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules AWS API Documentation
@@ -1009,6 +1026,13 @@ module Aws::CloudWatchEvents
1009
1026
  # @option params [required, Array<String>] :ids
1010
1027
  # The IDs of the targets to remove from the rule.
1011
1028
  #
1029
+ # @option params [Boolean] :force
1030
+ # If this is a managed rule, created by an AWS service on your behalf,
1031
+ # you must specify `Force` as `True` to remove targets. This parameter
1032
+ # is ignored for rules that are not managed rules. You can check whether
1033
+ # a rule is a managed rule by using `DescribeRule` or `ListRules` and
1034
+ # checking the `ManagedBy` field of the response.
1035
+ #
1012
1036
  # @return [Types::RemoveTargetsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1013
1037
  #
1014
1038
  # * {Types::RemoveTargetsResponse#failed_entry_count #failed_entry_count} => Integer
@@ -1019,6 +1043,7 @@ module Aws::CloudWatchEvents
1019
1043
  # resp = client.remove_targets({
1020
1044
  # rule: "RuleName", # required
1021
1045
  # ids: ["TargetId"], # required
1046
+ # force: false,
1022
1047
  # })
1023
1048
  #
1024
1049
  # @example Response structure
@@ -1094,7 +1119,7 @@ module Aws::CloudWatchEvents
1094
1119
  params: params,
1095
1120
  config: config)
1096
1121
  context[:gem_name] = 'aws-sdk-cloudwatchevents'
1097
- context[:gem_version] = '1.12.0'
1122
+ context[:gem_version] = '1.13.0'
1098
1123
  Seahorse::Client::Request.new(handlers, context)
1099
1124
  end
1100
1125
 
@@ -52,6 +52,8 @@ module Aws::CloudWatchEvents
52
52
  ListRulesResponse = Shapes::StructureShape.new(name: 'ListRulesResponse')
53
53
  ListTargetsByRuleRequest = Shapes::StructureShape.new(name: 'ListTargetsByRuleRequest')
54
54
  ListTargetsByRuleResponse = Shapes::StructureShape.new(name: 'ListTargetsByRuleResponse')
55
+ ManagedBy = Shapes::StringShape.new(name: 'ManagedBy')
56
+ ManagedRuleException = Shapes::StructureShape.new(name: 'ManagedRuleException')
55
57
  MessageGroupId = Shapes::StringShape.new(name: 'MessageGroupId')
56
58
  NetworkConfiguration = Shapes::StructureShape.new(name: 'NetworkConfiguration')
57
59
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -131,6 +133,7 @@ module Aws::CloudWatchEvents
131
133
  Condition.struct_class = Types::Condition
132
134
 
133
135
  DeleteRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
136
+ DeleteRuleRequest.add_member(:force, Shapes::ShapeRef.new(shape: Boolean, location_name: "Force"))
134
137
  DeleteRuleRequest.struct_class = Types::DeleteRuleRequest
135
138
 
136
139
  DescribeEventBusRequest.struct_class = Types::DescribeEventBusRequest
@@ -150,6 +153,7 @@ module Aws::CloudWatchEvents
150
153
  DescribeRuleResponse.add_member(:state, Shapes::ShapeRef.new(shape: RuleState, location_name: "State"))
151
154
  DescribeRuleResponse.add_member(:description, Shapes::ShapeRef.new(shape: RuleDescription, location_name: "Description"))
152
155
  DescribeRuleResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
156
+ DescribeRuleResponse.add_member(:managed_by, Shapes::ShapeRef.new(shape: ManagedBy, location_name: "ManagedBy"))
153
157
  DescribeRuleResponse.struct_class = Types::DescribeRuleResponse
154
158
 
155
159
  DisableRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
@@ -265,6 +269,7 @@ module Aws::CloudWatchEvents
265
269
 
266
270
  RemoveTargetsRequest.add_member(:rule, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Rule"))
267
271
  RemoveTargetsRequest.add_member(:ids, Shapes::ShapeRef.new(shape: TargetIdList, required: true, location_name: "Ids"))
272
+ RemoveTargetsRequest.add_member(:force, Shapes::ShapeRef.new(shape: Boolean, location_name: "Force"))
268
273
  RemoveTargetsRequest.struct_class = Types::RemoveTargetsRequest
269
274
 
270
275
  RemoveTargetsResponse.add_member(:failed_entry_count, Shapes::ShapeRef.new(shape: Integer, location_name: "FailedEntryCount"))
@@ -285,6 +290,7 @@ module Aws::CloudWatchEvents
285
290
  Rule.add_member(:description, Shapes::ShapeRef.new(shape: RuleDescription, location_name: "Description"))
286
291
  Rule.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpression, location_name: "ScheduleExpression"))
287
292
  Rule.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
293
+ Rule.add_member(:managed_by, Shapes::ShapeRef.new(shape: ManagedBy, location_name: "ManagedBy"))
288
294
  Rule.struct_class = Types::Rule
289
295
 
290
296
  RuleNameList.member = Shapes::ShapeRef.new(shape: RuleName)
@@ -359,6 +365,7 @@ module Aws::CloudWatchEvents
359
365
  o.input = Shapes::ShapeRef.new(shape: DeleteRuleRequest)
360
366
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
361
367
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
368
+ o.errors << Shapes::ShapeRef.new(shape: ManagedRuleException)
362
369
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
363
370
  end)
364
371
 
@@ -390,6 +397,7 @@ module Aws::CloudWatchEvents
390
397
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
391
398
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
392
399
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
400
+ o.errors << Shapes::ShapeRef.new(shape: ManagedRuleException)
393
401
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
394
402
  end)
395
403
 
@@ -401,6 +409,7 @@ module Aws::CloudWatchEvents
401
409
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
402
410
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
403
411
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
412
+ o.errors << Shapes::ShapeRef.new(shape: ManagedRuleException)
404
413
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
405
414
  end)
406
415
 
@@ -462,6 +471,7 @@ module Aws::CloudWatchEvents
462
471
  o.errors << Shapes::ShapeRef.new(shape: InvalidEventPatternException)
463
472
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
464
473
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
474
+ o.errors << Shapes::ShapeRef.new(shape: ManagedRuleException)
465
475
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
466
476
  end)
467
477
 
@@ -474,6 +484,7 @@ module Aws::CloudWatchEvents
474
484
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
475
485
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
476
486
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
487
+ o.errors << Shapes::ShapeRef.new(shape: ManagedRuleException)
477
488
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
478
489
  end)
479
490
 
@@ -496,6 +507,7 @@ module Aws::CloudWatchEvents
496
507
  o.output = Shapes::ShapeRef.new(shape: RemoveTargetsResponse)
497
508
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
498
509
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
510
+ o.errors << Shapes::ShapeRef.new(shape: ManagedRuleException)
499
511
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
500
512
  end)
501
513
 
@@ -194,16 +194,26 @@ module Aws::CloudWatchEvents
194
194
  #
195
195
  # {
196
196
  # name: "RuleName", # required
197
+ # force: false,
197
198
  # }
198
199
  #
199
200
  # @!attribute [rw] name
200
201
  # The name of the rule.
201
202
  # @return [String]
202
203
  #
204
+ # @!attribute [rw] force
205
+ # If this is a managed rule, created by an AWS service on your behalf,
206
+ # you must specify `Force` as `True` to delete the rule. This
207
+ # parameter is ignored for rules that are not managed rules. You can
208
+ # check whether a rule is a managed rule by using `DescribeRule` or
209
+ # `ListRules` and checking the `ManagedBy` field of the response.
210
+ # @return [Boolean]
211
+ #
203
212
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRuleRequest AWS API Documentation
204
213
  #
205
214
  class DeleteRuleRequest < Struct.new(
206
- :name)
215
+ :name,
216
+ :force)
207
217
  include Aws::Structure
208
218
  end
209
219
 
@@ -289,6 +299,12 @@ module Aws::CloudWatchEvents
289
299
  # rule.
290
300
  # @return [String]
291
301
  #
302
+ # @!attribute [rw] managed_by
303
+ # If this is a managed rule, created by an AWS service on your behalf,
304
+ # this field displays the principal name of the AWS service that
305
+ # created the rule.
306
+ # @return [String]
307
+ #
292
308
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleResponse AWS API Documentation
293
309
  #
294
310
  class DescribeRuleResponse < Struct.new(
@@ -298,7 +314,8 @@ module Aws::CloudWatchEvents
298
314
  :schedule_expression,
299
315
  :state,
300
316
  :description,
301
- :role_arn)
317
+ :role_arn,
318
+ :managed_by)
302
319
  include Aws::Structure
303
320
  end
304
321
 
@@ -1100,6 +1117,7 @@ module Aws::CloudWatchEvents
1100
1117
  # {
1101
1118
  # rule: "RuleName", # required
1102
1119
  # ids: ["TargetId"], # required
1120
+ # force: false,
1103
1121
  # }
1104
1122
  #
1105
1123
  # @!attribute [rw] rule
@@ -1110,11 +1128,20 @@ module Aws::CloudWatchEvents
1110
1128
  # The IDs of the targets to remove from the rule.
1111
1129
  # @return [Array<String>]
1112
1130
  #
1131
+ # @!attribute [rw] force
1132
+ # If this is a managed rule, created by an AWS service on your behalf,
1133
+ # you must specify `Force` as `True` to remove targets. This parameter
1134
+ # is ignored for rules that are not managed rules. You can check
1135
+ # whether a rule is a managed rule by using `DescribeRule` or
1136
+ # `ListRules` and checking the `ManagedBy` field of the response.
1137
+ # @return [Boolean]
1138
+ #
1113
1139
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsRequest AWS API Documentation
1114
1140
  #
1115
1141
  class RemoveTargetsRequest < Struct.new(
1116
1142
  :rule,
1117
- :ids)
1143
+ :ids,
1144
+ :force)
1118
1145
  include Aws::Structure
1119
1146
  end
1120
1147
 
@@ -1196,6 +1223,12 @@ module Aws::CloudWatchEvents
1196
1223
  # invocation.
1197
1224
  # @return [String]
1198
1225
  #
1226
+ # @!attribute [rw] managed_by
1227
+ # If the rule was created on behalf of your account by an AWS service,
1228
+ # this field displays the principal name of the service that created
1229
+ # the rule.
1230
+ # @return [String]
1231
+ #
1199
1232
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Rule AWS API Documentation
1200
1233
  #
1201
1234
  class Rule < Struct.new(
@@ -1205,7 +1238,8 @@ module Aws::CloudWatchEvents
1205
1238
  :state,
1206
1239
  :description,
1207
1240
  :schedule_expression,
1208
- :role_arn)
1241
+ :role_arn,
1242
+ :managed_by)
1209
1243
  include Aws::Structure
1210
1244
  end
1211
1245
 
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.12.0
4
+ version: 1.13.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: 2018-11-20 00:00:00.000000000 Z
11
+ date: 2018-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core