aws-sdk-cloudwatchevents 1.24.0 → 1.29.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 +5 -5
- data/lib/aws-sdk-cloudwatchevents.rb +7 -4
- data/lib/aws-sdk-cloudwatchevents/client.rb +230 -205
- data/lib/aws-sdk-cloudwatchevents/client_api.rb +24 -1
- data/lib/aws-sdk-cloudwatchevents/errors.rb +121 -0
- data/lib/aws-sdk-cloudwatchevents/resource.rb +1 -0
- data/lib/aws-sdk-cloudwatchevents/types.rb +203 -131
- metadata +5 -5
@@ -185,6 +185,8 @@ module Aws::CloudWatchEvents
|
|
185
185
|
BatchRetryStrategy.add_member(:attempts, Shapes::ShapeRef.new(shape: Integer, location_name: "Attempts"))
|
186
186
|
BatchRetryStrategy.struct_class = Types::BatchRetryStrategy
|
187
187
|
|
188
|
+
ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
|
189
|
+
|
188
190
|
Condition.add_member(:type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Type"))
|
189
191
|
Condition.add_member(:key, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Key"))
|
190
192
|
Condition.add_member(:value, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Value"))
|
@@ -192,6 +194,7 @@ module Aws::CloudWatchEvents
|
|
192
194
|
|
193
195
|
CreateEventBusRequest.add_member(:name, Shapes::ShapeRef.new(shape: EventBusName, required: true, location_name: "Name"))
|
194
196
|
CreateEventBusRequest.add_member(:event_source_name, Shapes::ShapeRef.new(shape: EventSourceName, location_name: "EventSourceName"))
|
197
|
+
CreateEventBusRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
195
198
|
CreateEventBusRequest.struct_class = Types::CreateEventBusRequest
|
196
199
|
|
197
200
|
CreateEventBusResponse.add_member(:event_bus_arn, Shapes::ShapeRef.new(shape: String, location_name: "EventBusArn"))
|
@@ -299,9 +302,17 @@ module Aws::CloudWatchEvents
|
|
299
302
|
InputTransformer.add_member(:input_template, Shapes::ShapeRef.new(shape: TransformerInput, required: true, location_name: "InputTemplate"))
|
300
303
|
InputTransformer.struct_class = Types::InputTransformer
|
301
304
|
|
305
|
+
InternalException.struct_class = Types::InternalException
|
306
|
+
|
307
|
+
InvalidEventPatternException.struct_class = Types::InvalidEventPatternException
|
308
|
+
|
309
|
+
InvalidStateException.struct_class = Types::InvalidStateException
|
310
|
+
|
302
311
|
KinesisParameters.add_member(:partition_key_path, Shapes::ShapeRef.new(shape: TargetPartitionKeyPath, required: true, location_name: "PartitionKeyPath"))
|
303
312
|
KinesisParameters.struct_class = Types::KinesisParameters
|
304
313
|
|
314
|
+
LimitExceededException.struct_class = Types::LimitExceededException
|
315
|
+
|
305
316
|
ListEventBusesRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: EventBusName, location_name: "NamePrefix"))
|
306
317
|
ListEventBusesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
307
318
|
ListEventBusesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
|
@@ -374,6 +385,8 @@ module Aws::CloudWatchEvents
|
|
374
385
|
ListTargetsByRuleResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
375
386
|
ListTargetsByRuleResponse.struct_class = Types::ListTargetsByRuleResponse
|
376
387
|
|
388
|
+
ManagedRuleException.struct_class = Types::ManagedRuleException
|
389
|
+
|
377
390
|
NetworkConfiguration.add_member(:awsvpc_configuration, Shapes::ShapeRef.new(shape: AwsVpcConfiguration, location_name: "awsvpcConfiguration"))
|
378
391
|
NetworkConfiguration.struct_class = Types::NetworkConfiguration
|
379
392
|
|
@@ -391,6 +404,8 @@ module Aws::CloudWatchEvents
|
|
391
404
|
|
392
405
|
PartnerEventSourceList.member = Shapes::ShapeRef.new(shape: PartnerEventSource)
|
393
406
|
|
407
|
+
PolicyLengthExceededException.struct_class = Types::PolicyLengthExceededException
|
408
|
+
|
394
409
|
PutEventsRequest.add_member(:entries, Shapes::ShapeRef.new(shape: PutEventsRequestEntryList, required: true, location_name: "Entries"))
|
395
410
|
PutEventsRequest.struct_class = Types::PutEventsRequest
|
396
411
|
|
@@ -419,7 +434,7 @@ module Aws::CloudWatchEvents
|
|
419
434
|
PutPartnerEventsRequest.struct_class = Types::PutPartnerEventsRequest
|
420
435
|
|
421
436
|
PutPartnerEventsRequestEntry.add_member(:time, Shapes::ShapeRef.new(shape: EventTime, location_name: "Time"))
|
422
|
-
PutPartnerEventsRequestEntry.add_member(:source, Shapes::ShapeRef.new(shape:
|
437
|
+
PutPartnerEventsRequestEntry.add_member(:source, Shapes::ShapeRef.new(shape: EventSourceName, location_name: "Source"))
|
423
438
|
PutPartnerEventsRequestEntry.add_member(:resources, Shapes::ShapeRef.new(shape: EventResourceList, location_name: "Resources"))
|
424
439
|
PutPartnerEventsRequestEntry.add_member(:detail_type, Shapes::ShapeRef.new(shape: String, location_name: "DetailType"))
|
425
440
|
PutPartnerEventsRequestEntry.add_member(:detail, Shapes::ShapeRef.new(shape: String, location_name: "Detail"))
|
@@ -495,6 +510,10 @@ module Aws::CloudWatchEvents
|
|
495
510
|
|
496
511
|
RemoveTargetsResultEntryList.member = Shapes::ShapeRef.new(shape: RemoveTargetsResultEntry)
|
497
512
|
|
513
|
+
ResourceAlreadyExistsException.struct_class = Types::ResourceAlreadyExistsException
|
514
|
+
|
515
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
516
|
+
|
498
517
|
Rule.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, location_name: "Name"))
|
499
518
|
Rule.add_member(:arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "Arn"))
|
500
519
|
Rule.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, location_name: "EventPattern"))
|
@@ -598,6 +617,7 @@ module Aws::CloudWatchEvents
|
|
598
617
|
o.input = Shapes::ShapeRef.new(shape: ActivateEventSourceRequest)
|
599
618
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
600
619
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
620
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
601
621
|
o.errors << Shapes::ShapeRef.new(shape: InvalidStateException)
|
602
622
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
603
623
|
end)
|
@@ -635,6 +655,7 @@ module Aws::CloudWatchEvents
|
|
635
655
|
o.input = Shapes::ShapeRef.new(shape: DeactivateEventSourceRequest)
|
636
656
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
637
657
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
658
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
638
659
|
o.errors << Shapes::ShapeRef.new(shape: InvalidStateException)
|
639
660
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
640
661
|
end)
|
@@ -646,6 +667,7 @@ module Aws::CloudWatchEvents
|
|
646
667
|
o.input = Shapes::ShapeRef.new(shape: DeleteEventBusRequest)
|
647
668
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
648
669
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
670
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
649
671
|
end)
|
650
672
|
|
651
673
|
api.add_operation(:delete_partner_event_source, Seahorse::Model::Operation.new.tap do |o|
|
@@ -655,6 +677,7 @@ module Aws::CloudWatchEvents
|
|
655
677
|
o.input = Shapes::ShapeRef.new(shape: DeletePartnerEventSourceRequest)
|
656
678
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
657
679
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
680
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
658
681
|
end)
|
659
682
|
|
660
683
|
api.add_operation(:delete_rule, Seahorse::Model::Operation.new.tap do |o|
|
@@ -6,9 +6,130 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::CloudWatchEvents
|
9
|
+
|
10
|
+
# When CloudWatchEvents returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::CloudWatchEvents::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all CloudWatchEvents errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::CloudWatchEvents::Errors::ServiceError
|
18
|
+
# # rescues all CloudWatchEvents API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {ConcurrentModificationException}
|
29
|
+
# * {InternalException}
|
30
|
+
# * {InvalidEventPatternException}
|
31
|
+
# * {InvalidStateException}
|
32
|
+
# * {LimitExceededException}
|
33
|
+
# * {ManagedRuleException}
|
34
|
+
# * {PolicyLengthExceededException}
|
35
|
+
# * {ResourceAlreadyExistsException}
|
36
|
+
# * {ResourceNotFoundException}
|
37
|
+
#
|
38
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
39
|
+
# if they are not defined above.
|
9
40
|
module Errors
|
10
41
|
|
11
42
|
extend Aws::Errors::DynamicErrors
|
12
43
|
|
44
|
+
class ConcurrentModificationException < ServiceError
|
45
|
+
|
46
|
+
# @param [Seahorse::Client::RequestContext] context
|
47
|
+
# @param [String] message
|
48
|
+
# @param [Aws::CloudWatchEvents::Types::ConcurrentModificationException] data
|
49
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
50
|
+
super(context, message, data)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
class InternalException < ServiceError
|
55
|
+
|
56
|
+
# @param [Seahorse::Client::RequestContext] context
|
57
|
+
# @param [String] message
|
58
|
+
# @param [Aws::CloudWatchEvents::Types::InternalException] data
|
59
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
60
|
+
super(context, message, data)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
class InvalidEventPatternException < ServiceError
|
65
|
+
|
66
|
+
# @param [Seahorse::Client::RequestContext] context
|
67
|
+
# @param [String] message
|
68
|
+
# @param [Aws::CloudWatchEvents::Types::InvalidEventPatternException] data
|
69
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
70
|
+
super(context, message, data)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
class InvalidStateException < ServiceError
|
75
|
+
|
76
|
+
# @param [Seahorse::Client::RequestContext] context
|
77
|
+
# @param [String] message
|
78
|
+
# @param [Aws::CloudWatchEvents::Types::InvalidStateException] data
|
79
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
80
|
+
super(context, message, data)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class LimitExceededException < ServiceError
|
85
|
+
|
86
|
+
# @param [Seahorse::Client::RequestContext] context
|
87
|
+
# @param [String] message
|
88
|
+
# @param [Aws::CloudWatchEvents::Types::LimitExceededException] data
|
89
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
90
|
+
super(context, message, data)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
class ManagedRuleException < ServiceError
|
95
|
+
|
96
|
+
# @param [Seahorse::Client::RequestContext] context
|
97
|
+
# @param [String] message
|
98
|
+
# @param [Aws::CloudWatchEvents::Types::ManagedRuleException] data
|
99
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
100
|
+
super(context, message, data)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
class PolicyLengthExceededException < ServiceError
|
105
|
+
|
106
|
+
# @param [Seahorse::Client::RequestContext] context
|
107
|
+
# @param [String] message
|
108
|
+
# @param [Aws::CloudWatchEvents::Types::PolicyLengthExceededException] data
|
109
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
110
|
+
super(context, message, data)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
class ResourceAlreadyExistsException < ServiceError
|
115
|
+
|
116
|
+
# @param [Seahorse::Client::RequestContext] context
|
117
|
+
# @param [String] message
|
118
|
+
# @param [Aws::CloudWatchEvents::Types::ResourceAlreadyExistsException] data
|
119
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
120
|
+
super(context, message, data)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
class ResourceNotFoundException < ServiceError
|
125
|
+
|
126
|
+
# @param [Seahorse::Client::RequestContext] context
|
127
|
+
# @param [String] message
|
128
|
+
# @param [Aws::CloudWatchEvents::Types::ResourceNotFoundException] data
|
129
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
130
|
+
super(context, message, data)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
13
134
|
end
|
14
135
|
end
|
@@ -27,7 +27,7 @@ module Aws::CloudWatchEvents
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# This structure specifies the VPC subnets and security groups for the
|
30
|
-
# task and whether a public IP address is to be used. This structure is
|
30
|
+
# task, and whether a public IP address is to be used. This structure is
|
31
31
|
# relevant only for ECS tasks that use the `awsvpc` network mode.
|
32
32
|
#
|
33
33
|
# @note When making an API call, you may pass AwsVpcConfiguration
|
@@ -47,7 +47,7 @@ module Aws::CloudWatchEvents
|
|
47
47
|
# @!attribute [rw] security_groups
|
48
48
|
# Specifies the security groups associated with the task. These
|
49
49
|
# security groups must all be in the same VPC. You can specify as many
|
50
|
-
# as five security groups. If you
|
50
|
+
# as five security groups. If you do not specify a security group, the
|
51
51
|
# default security group for the VPC is used.
|
52
52
|
# @return [Array<String>]
|
53
53
|
#
|
@@ -124,7 +124,7 @@ module Aws::CloudWatchEvents
|
|
124
124
|
# @return [Types::BatchArrayProperties]
|
125
125
|
#
|
126
126
|
# @!attribute [rw] retry_strategy
|
127
|
-
# The retry strategy to use for failed jobs if the target is an AWS
|
127
|
+
# The retry strategy to use for failed jobs, if the target is an AWS
|
128
128
|
# Batch job. The retry strategy is the number of times to retry the
|
129
129
|
# failed job execution. Valid values are 1–10. When you specify a
|
130
130
|
# retry strategy here, it overrides the retry strategy defined in the
|
@@ -141,7 +141,7 @@ module Aws::CloudWatchEvents
|
|
141
141
|
include Aws::Structure
|
142
142
|
end
|
143
143
|
|
144
|
-
# The retry strategy to use for failed jobs if the target is an AWS
|
144
|
+
# The retry strategy to use for failed jobs, if the target is an AWS
|
145
145
|
# Batch job. If you specify a retry strategy here, it overrides the
|
146
146
|
# retry strategy defined in the job definition.
|
147
147
|
#
|
@@ -164,12 +164,18 @@ module Aws::CloudWatchEvents
|
|
164
164
|
include Aws::Structure
|
165
165
|
end
|
166
166
|
|
167
|
-
#
|
168
|
-
#
|
169
|
-
#
|
167
|
+
# There is concurrent modification on a rule or target.
|
168
|
+
#
|
169
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ConcurrentModificationException AWS API Documentation
|
170
|
+
#
|
171
|
+
class ConcurrentModificationException < Aws::EmptyStructure; end
|
172
|
+
|
173
|
+
# A JSON string which you can use to limit the event bus permissions you
|
174
|
+
# are granting to only accounts that fulfill the condition. Currently,
|
175
|
+
# the only supported condition is membership in a certain AWS
|
170
176
|
# organization. The string must contain `Type`, `Key`, and `Value`
|
171
177
|
# fields. The `Value` field specifies the ID of the AWS organization.
|
172
|
-
#
|
178
|
+
# Following is an example value for `Condition`\:
|
173
179
|
#
|
174
180
|
# `'\{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value":
|
175
181
|
# "o-1234567890"\}'`
|
@@ -184,18 +190,18 @@ module Aws::CloudWatchEvents
|
|
184
190
|
# }
|
185
191
|
#
|
186
192
|
# @!attribute [rw] type
|
187
|
-
#
|
188
|
-
# `StringEquals`.
|
193
|
+
# Specifies the type of condition. Currently the only supported value
|
194
|
+
# is `StringEquals`.
|
189
195
|
# @return [String]
|
190
196
|
#
|
191
197
|
# @!attribute [rw] key
|
192
|
-
#
|
193
|
-
# `aws:PrincipalOrgID`.
|
198
|
+
# Specifies the key for the condition. Currently the only supported
|
199
|
+
# key is `aws:PrincipalOrgID`.
|
194
200
|
# @return [String]
|
195
201
|
#
|
196
202
|
# @!attribute [rw] value
|
197
|
-
#
|
198
|
-
# organization.
|
203
|
+
# Specifies the value for the key. Currently, this must be the ID of
|
204
|
+
# the organization.
|
199
205
|
# @return [String]
|
200
206
|
#
|
201
207
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Condition AWS API Documentation
|
@@ -213,30 +219,40 @@ module Aws::CloudWatchEvents
|
|
213
219
|
# {
|
214
220
|
# name: "EventBusName", # required
|
215
221
|
# event_source_name: "EventSourceName",
|
222
|
+
# tags: [
|
223
|
+
# {
|
224
|
+
# key: "TagKey", # required
|
225
|
+
# value: "TagValue", # required
|
226
|
+
# },
|
227
|
+
# ],
|
216
228
|
# }
|
217
229
|
#
|
218
230
|
# @!attribute [rw] name
|
219
231
|
# The name of the new event bus.
|
220
232
|
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
233
|
+
# Event bus names cannot contain the / character. You can't use the
|
234
|
+
# name `default` for a custom event bus, as this name is already used
|
235
|
+
# for your account's default event bus.
|
224
236
|
#
|
225
237
|
# If this is a partner event bus, the name must exactly match the name
|
226
|
-
# of the partner event source that this event bus is matched to.
|
227
|
-
# name will include the `/` character.
|
238
|
+
# of the partner event source that this event bus is matched to.
|
228
239
|
# @return [String]
|
229
240
|
#
|
230
241
|
# @!attribute [rw] event_source_name
|
231
|
-
# If you
|
242
|
+
# If you are creating a partner event bus, this specifies the partner
|
232
243
|
# event source that the new event bus will be matched with.
|
233
244
|
# @return [String]
|
234
245
|
#
|
246
|
+
# @!attribute [rw] tags
|
247
|
+
# Tags to associate with the event bus.
|
248
|
+
# @return [Array<Types::Tag>]
|
249
|
+
#
|
235
250
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBusRequest AWS API Documentation
|
236
251
|
#
|
237
252
|
class CreateEventBusRequest < Struct.new(
|
238
253
|
:name,
|
239
|
-
:event_source_name
|
254
|
+
:event_source_name,
|
255
|
+
:tags)
|
240
256
|
include Aws::Structure
|
241
257
|
end
|
242
258
|
|
@@ -268,8 +284,8 @@ module Aws::CloudWatchEvents
|
|
268
284
|
# @return [String]
|
269
285
|
#
|
270
286
|
# @!attribute [rw] account
|
271
|
-
# The AWS account ID
|
272
|
-
#
|
287
|
+
# The AWS account ID that is permitted to create a matching partner
|
288
|
+
# event bus for this partner event source.
|
273
289
|
# @return [String]
|
274
290
|
#
|
275
291
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSourceRequest AWS API Documentation
|
@@ -460,7 +476,7 @@ module Aws::CloudWatchEvents
|
|
460
476
|
# @return [Time]
|
461
477
|
#
|
462
478
|
# @!attribute [rw] expiration_time
|
463
|
-
# The date and time that the event source will expire if you
|
479
|
+
# The date and time that the event source will expire if you do not
|
464
480
|
# create a matching event bus.
|
465
481
|
# @return [Time]
|
466
482
|
#
|
@@ -469,12 +485,12 @@ module Aws::CloudWatchEvents
|
|
469
485
|
# @return [String]
|
470
486
|
#
|
471
487
|
# @!attribute [rw] state
|
472
|
-
# The state of the event source. If it
|
488
|
+
# The state of the event source. If it is ACTIVE, you have already
|
473
489
|
# created a matching event bus for this event source, and that event
|
474
|
-
# bus is active. If it
|
475
|
-
# matching event bus, or that event bus is deactivated. If it
|
476
|
-
#
|
477
|
-
#
|
490
|
+
# bus is active. If it is PENDING, either you haven't yet created a
|
491
|
+
# matching event bus, or that event bus is deactivated. If it is
|
492
|
+
# DELETED, you have created a matching event bus, but the event source
|
493
|
+
# has since been deleted.
|
478
494
|
# @return [String]
|
479
495
|
#
|
480
496
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSourceResponse AWS API Documentation
|
@@ -557,8 +573,8 @@ module Aws::CloudWatchEvents
|
|
557
573
|
# @return [String]
|
558
574
|
#
|
559
575
|
# @!attribute [rw] event_pattern
|
560
|
-
# The event pattern. For more information, see [
|
561
|
-
# the *Amazon EventBridge User Guide*.
|
576
|
+
# The event pattern. For more information, see [Events and Event
|
577
|
+
# Patterns][1] in the *Amazon EventBridge User Guide*.
|
562
578
|
#
|
563
579
|
#
|
564
580
|
#
|
@@ -566,8 +582,8 @@ module Aws::CloudWatchEvents
|
|
566
582
|
# @return [String]
|
567
583
|
#
|
568
584
|
# @!attribute [rw] schedule_expression
|
569
|
-
# The scheduling expression
|
570
|
-
#
|
585
|
+
# The scheduling expression. For example, "cron(0 20 * * ? *)",
|
586
|
+
# "rate(5 minutes)".
|
571
587
|
# @return [String]
|
572
588
|
#
|
573
589
|
# @!attribute [rw] state
|
@@ -680,12 +696,12 @@ module Aws::CloudWatchEvents
|
|
680
696
|
# @!attribute [rw] network_configuration
|
681
697
|
# Use this structure if the ECS task uses the `awsvpc` network mode.
|
682
698
|
# This structure specifies the VPC subnets and security groups
|
683
|
-
# associated with the task and whether a public IP address is to be
|
699
|
+
# associated with the task, and whether a public IP address is to be
|
684
700
|
# used. This structure is required if `LaunchType` is `FARGATE`
|
685
701
|
# because the `awsvpc` mode is required for Fargate tasks.
|
686
702
|
#
|
687
|
-
# If you specify `NetworkConfiguration` when the target ECS task
|
688
|
-
#
|
703
|
+
# If you specify `NetworkConfiguration` when the target ECS task does
|
704
|
+
# not use the `awsvpc` network mode, the task fails.
|
689
705
|
# @return [Types::NetworkConfiguration]
|
690
706
|
#
|
691
707
|
# @!attribute [rw] platform_version
|
@@ -788,11 +804,11 @@ module Aws::CloudWatchEvents
|
|
788
804
|
# @return [String]
|
789
805
|
#
|
790
806
|
# @!attribute [rw] creation_time
|
791
|
-
# The date and time
|
807
|
+
# The date and time the event source was created.
|
792
808
|
# @return [Time]
|
793
809
|
#
|
794
810
|
# @!attribute [rw] expiration_time
|
795
|
-
# The date and time
|
811
|
+
# The date and time that the event source will expire, if the AWS
|
796
812
|
# account doesn't create a matching event bus for it.
|
797
813
|
# @return [Time]
|
798
814
|
#
|
@@ -801,12 +817,12 @@ module Aws::CloudWatchEvents
|
|
801
817
|
# @return [String]
|
802
818
|
#
|
803
819
|
# @!attribute [rw] state
|
804
|
-
# The state of the event source. If it
|
820
|
+
# The state of the event source. If it is ACTIVE, you have already
|
805
821
|
# created a matching event bus for this event source, and that event
|
806
|
-
# bus is active. If it
|
807
|
-
# matching event bus, or that event bus is deactivated. If it
|
808
|
-
#
|
809
|
-
#
|
822
|
+
# bus is active. If it is PENDING, either you haven't yet created a
|
823
|
+
# matching event bus, or that event bus is deactivated. If it is
|
824
|
+
# DELETED, you have created a matching event bus, but the event source
|
825
|
+
# has since been deleted.
|
810
826
|
# @return [String]
|
811
827
|
#
|
812
828
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EventSource AWS API Documentation
|
@@ -837,27 +853,27 @@ module Aws::CloudWatchEvents
|
|
837
853
|
# @!attribute [rw] input_paths_map
|
838
854
|
# Map of JSON paths to be extracted from the event. You can then
|
839
855
|
# insert these in the template in `InputTemplate` to produce the
|
840
|
-
# output to be sent to the target.
|
856
|
+
# output you want to be sent to the target.
|
841
857
|
#
|
842
858
|
# `InputPathsMap` is an array key-value pairs, where each value is a
|
843
859
|
# valid JSON path. You can have as many as 10 key-value pairs. You
|
844
860
|
# must use JSON dot notation, not bracket notation.
|
845
861
|
#
|
846
|
-
# The keys
|
862
|
+
# The keys cannot start with "AWS."
|
847
863
|
# @return [Hash<String,String>]
|
848
864
|
#
|
849
865
|
# @!attribute [rw] input_template
|
850
866
|
# Input template where you specify placeholders that will be filled
|
851
867
|
# with the values of the keys from `InputPathsMap` to customize the
|
852
868
|
# data sent to the target. Enclose each `InputPathsMaps` value in
|
853
|
-
# brackets: <*value*>
|
869
|
+
# brackets: <*value*> The InputTemplate must be valid JSON.
|
854
870
|
#
|
855
871
|
# If `InputTemplate` is a JSON object (surrounded by curly braces),
|
856
872
|
# the following restrictions apply:
|
857
873
|
#
|
858
|
-
# * The placeholder
|
874
|
+
# * The placeholder cannot be used as an object key.
|
859
875
|
#
|
860
|
-
# * Object values
|
876
|
+
# * Object values cannot include quote marks.
|
861
877
|
#
|
862
878
|
# The following example shows the syntax for using `InputPathsMap` and
|
863
879
|
# `InputTemplate`.
|
@@ -897,11 +913,29 @@ module Aws::CloudWatchEvents
|
|
897
913
|
include Aws::Structure
|
898
914
|
end
|
899
915
|
|
916
|
+
# This exception occurs due to unexpected causes.
|
917
|
+
#
|
918
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/InternalException AWS API Documentation
|
919
|
+
#
|
920
|
+
class InternalException < Aws::EmptyStructure; end
|
921
|
+
|
922
|
+
# The event pattern is not valid.
|
923
|
+
#
|
924
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/InvalidEventPatternException AWS API Documentation
|
925
|
+
#
|
926
|
+
class InvalidEventPatternException < Aws::EmptyStructure; end
|
927
|
+
|
928
|
+
# The specified state is not a valid state for an event source.
|
929
|
+
#
|
930
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/InvalidStateException AWS API Documentation
|
931
|
+
#
|
932
|
+
class InvalidStateException < Aws::EmptyStructure; end
|
933
|
+
|
900
934
|
# This object enables you to specify a JSON path to extract from the
|
901
|
-
# event and use as the partition key for the Amazon Kinesis data stream
|
902
|
-
# so that you can control the shard
|
903
|
-
#
|
904
|
-
#
|
935
|
+
# event and use as the partition key for the Amazon Kinesis data stream,
|
936
|
+
# so that you can control the shard to which the event goes. If you do
|
937
|
+
# not include this parameter, the default is to use the `eventId` as the
|
938
|
+
# partition key.
|
905
939
|
#
|
906
940
|
# @note When making an API call, you may pass KinesisParameters
|
907
941
|
# data as a hash:
|
@@ -927,6 +961,13 @@ module Aws::CloudWatchEvents
|
|
927
961
|
include Aws::Structure
|
928
962
|
end
|
929
963
|
|
964
|
+
# You tried to create more rules or add more targets to a rule than is
|
965
|
+
# allowed.
|
966
|
+
#
|
967
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/LimitExceededException AWS API Documentation
|
968
|
+
#
|
969
|
+
class LimitExceededException < Aws::EmptyStructure; end
|
970
|
+
|
930
971
|
# @note When making an API call, you may pass ListEventBusesRequest
|
931
972
|
# data as a hash:
|
932
973
|
#
|
@@ -948,7 +989,7 @@ module Aws::CloudWatchEvents
|
|
948
989
|
#
|
949
990
|
# @!attribute [rw] limit
|
950
991
|
# Specifying this limits the number of results returned by this
|
951
|
-
# operation. The operation also returns a
|
992
|
+
# operation. The operation also returns a NextToken which you can use
|
952
993
|
# in a subsequent operation to retrieve the next set of results.
|
953
994
|
# @return [Integer]
|
954
995
|
#
|
@@ -999,7 +1040,7 @@ module Aws::CloudWatchEvents
|
|
999
1040
|
#
|
1000
1041
|
# @!attribute [rw] limit
|
1001
1042
|
# Specifying this limits the number of results returned by this
|
1002
|
-
# operation. The operation also returns a
|
1043
|
+
# operation. The operation also returns a NextToken which you can use
|
1003
1044
|
# in a subsequent operation to retrieve the next set of results.
|
1004
1045
|
# @return [Integer]
|
1005
1046
|
#
|
@@ -1050,7 +1091,7 @@ module Aws::CloudWatchEvents
|
|
1050
1091
|
#
|
1051
1092
|
# @!attribute [rw] limit
|
1052
1093
|
# Specifying this limits the number of results returned by this
|
1053
|
-
# operation. The operation also returns a
|
1094
|
+
# operation. The operation also returns a NextToken which you can use
|
1054
1095
|
# in a subsequent operation to retrieve the next set of results.
|
1055
1096
|
# @return [Integer]
|
1056
1097
|
#
|
@@ -1101,7 +1142,7 @@ module Aws::CloudWatchEvents
|
|
1101
1142
|
#
|
1102
1143
|
# @!attribute [rw] limit
|
1103
1144
|
# pecifying this limits the number of results returned by this
|
1104
|
-
# operation. The operation also returns a
|
1145
|
+
# operation. The operation also returns a NextToken which you can use
|
1105
1146
|
# in a subsequent operation to retrieve the next set of results.
|
1106
1147
|
# @return [Integer]
|
1107
1148
|
#
|
@@ -1249,7 +1290,7 @@ module Aws::CloudWatchEvents
|
|
1249
1290
|
# }
|
1250
1291
|
#
|
1251
1292
|
# @!attribute [rw] resource_arn
|
1252
|
-
# The ARN of the
|
1293
|
+
# The ARN of the EventBridge resource for which you want to view tags.
|
1253
1294
|
# @return [String]
|
1254
1295
|
#
|
1255
1296
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResourceRequest AWS API Documentation
|
@@ -1260,8 +1301,8 @@ module Aws::CloudWatchEvents
|
|
1260
1301
|
end
|
1261
1302
|
|
1262
1303
|
# @!attribute [rw] tags
|
1263
|
-
# The list of tag keys and values associated with the
|
1264
|
-
# specified
|
1304
|
+
# The list of tag keys and values associated with the resource you
|
1305
|
+
# specified
|
1265
1306
|
# @return [Array<Types::Tag>]
|
1266
1307
|
#
|
1267
1308
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResourceResponse AWS API Documentation
|
@@ -1326,6 +1367,18 @@ module Aws::CloudWatchEvents
|
|
1326
1367
|
include Aws::Structure
|
1327
1368
|
end
|
1328
1369
|
|
1370
|
+
# This rule was created by an AWS service on behalf of your account. It
|
1371
|
+
# is managed by that service. If you see this error in response to
|
1372
|
+
# `DeleteRule` or `RemoveTargets`, you can use the `Force` parameter in
|
1373
|
+
# those calls to delete the rule or remove targets from the rule. You
|
1374
|
+
# cannot modify these managed rules by using `DisableRule`,
|
1375
|
+
# `EnableRule`, `PutTargets`, `PutRule`, `TagResource`, or
|
1376
|
+
# `UntagResource`.
|
1377
|
+
#
|
1378
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ManagedRuleException AWS API Documentation
|
1379
|
+
#
|
1380
|
+
class ManagedRuleException < Aws::EmptyStructure; end
|
1381
|
+
|
1329
1382
|
# This structure specifies the network configuration for an ECS task.
|
1330
1383
|
#
|
1331
1384
|
# @note When making an API call, you may pass NetworkConfiguration
|
@@ -1341,7 +1394,7 @@ module Aws::CloudWatchEvents
|
|
1341
1394
|
#
|
1342
1395
|
# @!attribute [rw] awsvpc_configuration
|
1343
1396
|
# Use this structure to specify the VPC subnets and security groups
|
1344
|
-
# for the task and whether a public IP address is to be used. This
|
1397
|
+
# for the task, and whether a public IP address is to be used. This
|
1345
1398
|
# structure is relevant only for ECS tasks that use the `awsvpc`
|
1346
1399
|
# network mode.
|
1347
1400
|
# @return [Types::AwsVpcConfiguration]
|
@@ -1381,21 +1434,21 @@ module Aws::CloudWatchEvents
|
|
1381
1434
|
# @return [String]
|
1382
1435
|
#
|
1383
1436
|
# @!attribute [rw] creation_time
|
1384
|
-
# The date and time
|
1437
|
+
# The date and time the event source was created.
|
1385
1438
|
# @return [Time]
|
1386
1439
|
#
|
1387
1440
|
# @!attribute [rw] expiration_time
|
1388
|
-
# The date and time
|
1441
|
+
# The date and time that the event source will expire, if the AWS
|
1389
1442
|
# account doesn't create a matching event bus for it.
|
1390
1443
|
# @return [Time]
|
1391
1444
|
#
|
1392
1445
|
# @!attribute [rw] state
|
1393
|
-
# The state of the event source. If it
|
1446
|
+
# The state of the event source. If it is ACTIVE, you have already
|
1394
1447
|
# created a matching event bus for this event source, and that event
|
1395
|
-
# bus is active. If it
|
1396
|
-
# matching event bus, or that event bus is deactivated. If it
|
1397
|
-
#
|
1398
|
-
#
|
1448
|
+
# bus is active. If it is PENDING, either you haven't yet created a
|
1449
|
+
# matching event bus, or that event bus is deactivated. If it is
|
1450
|
+
# DELETED, you have created a matching event bus, but the event source
|
1451
|
+
# has since been deleted.
|
1399
1452
|
# @return [String]
|
1400
1453
|
#
|
1401
1454
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PartnerEventSourceAccount AWS API Documentation
|
@@ -1408,6 +1461,13 @@ module Aws::CloudWatchEvents
|
|
1408
1461
|
include Aws::Structure
|
1409
1462
|
end
|
1410
1463
|
|
1464
|
+
# The event bus policy is too long. For more information, see the
|
1465
|
+
# limits.
|
1466
|
+
#
|
1467
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PolicyLengthExceededException AWS API Documentation
|
1468
|
+
#
|
1469
|
+
class PolicyLengthExceededException < Aws::EmptyStructure; end
|
1470
|
+
|
1411
1471
|
# @note When making an API call, you may pass PutEventsRequest
|
1412
1472
|
# data as a hash:
|
1413
1473
|
#
|
@@ -1452,8 +1512,8 @@ module Aws::CloudWatchEvents
|
|
1452
1512
|
# }
|
1453
1513
|
#
|
1454
1514
|
# @!attribute [rw] time
|
1455
|
-
# The
|
1456
|
-
# provided, the
|
1515
|
+
# The time stamp of the event, per [RFC3339][1]. If no time stamp is
|
1516
|
+
# provided, the time stamp of the PutEvents call is used.
|
1457
1517
|
#
|
1458
1518
|
#
|
1459
1519
|
#
|
@@ -1461,28 +1521,28 @@ module Aws::CloudWatchEvents
|
|
1461
1521
|
# @return [Time]
|
1462
1522
|
#
|
1463
1523
|
# @!attribute [rw] source
|
1464
|
-
# The source of the event.
|
1524
|
+
# The source of the event.
|
1465
1525
|
# @return [String]
|
1466
1526
|
#
|
1467
1527
|
# @!attribute [rw] resources
|
1468
|
-
# AWS resources, identified by Amazon Resource Name (ARN),
|
1469
|
-
# event primarily concerns. Any number, including zero,
|
1528
|
+
# AWS resources, identified by Amazon Resource Name (ARN), which the
|
1529
|
+
# event primarily concerns. Any number, including zero, may be
|
1470
1530
|
# present.
|
1471
1531
|
# @return [Array<String>]
|
1472
1532
|
#
|
1473
1533
|
# @!attribute [rw] detail_type
|
1474
|
-
# Free-form string used to decide
|
1534
|
+
# Free-form string used to decide what fields to expect in the event
|
1475
1535
|
# detail.
|
1476
1536
|
# @return [String]
|
1477
1537
|
#
|
1478
1538
|
# @!attribute [rw] detail
|
1479
1539
|
# A valid JSON string. There is no other schema imposed. The JSON
|
1480
|
-
# string
|
1540
|
+
# string may contain fields and nested subobjects.
|
1481
1541
|
# @return [String]
|
1482
1542
|
#
|
1483
1543
|
# @!attribute [rw] event_bus_name
|
1484
1544
|
# The event bus that will receive the event. Only the rules that are
|
1485
|
-
# associated with this event bus
|
1545
|
+
# associated with this event bus will be able to match the event.
|
1486
1546
|
# @return [String]
|
1487
1547
|
#
|
1488
1548
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequestEntry AWS API Documentation
|
@@ -1546,7 +1606,7 @@ module Aws::CloudWatchEvents
|
|
1546
1606
|
# entries: [ # required
|
1547
1607
|
# {
|
1548
1608
|
# time: Time.now,
|
1549
|
-
# source: "
|
1609
|
+
# source: "EventSourceName",
|
1550
1610
|
# resources: ["EventResource"],
|
1551
1611
|
# detail_type: "String",
|
1552
1612
|
# detail: "String",
|
@@ -1572,7 +1632,7 @@ module Aws::CloudWatchEvents
|
|
1572
1632
|
#
|
1573
1633
|
# {
|
1574
1634
|
# time: Time.now,
|
1575
|
-
# source: "
|
1635
|
+
# source: "EventSourceName",
|
1576
1636
|
# resources: ["EventResource"],
|
1577
1637
|
# detail_type: "String",
|
1578
1638
|
# detail: "String",
|
@@ -1587,19 +1647,19 @@ module Aws::CloudWatchEvents
|
|
1587
1647
|
# @return [String]
|
1588
1648
|
#
|
1589
1649
|
# @!attribute [rw] resources
|
1590
|
-
# AWS resources, identified by Amazon Resource Name (ARN),
|
1591
|
-
# event primarily concerns. Any number, including zero,
|
1650
|
+
# AWS resources, identified by Amazon Resource Name (ARN), which the
|
1651
|
+
# event primarily concerns. Any number, including zero, may be
|
1592
1652
|
# present.
|
1593
1653
|
# @return [Array<String>]
|
1594
1654
|
#
|
1595
1655
|
# @!attribute [rw] detail_type
|
1596
|
-
# A free-form string used to decide
|
1597
|
-
#
|
1656
|
+
# A free-form string used to decide what fields to expect in the event
|
1657
|
+
# detail.
|
1598
1658
|
# @return [String]
|
1599
1659
|
#
|
1600
1660
|
# @!attribute [rw] detail
|
1601
1661
|
# A valid JSON string. There is no other schema imposed. The JSON
|
1602
|
-
# string
|
1662
|
+
# string may contain fields and nested subobjects.
|
1603
1663
|
# @return [String]
|
1604
1664
|
#
|
1605
1665
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEventsRequestEntry AWS API Documentation
|
@@ -1614,7 +1674,7 @@ module Aws::CloudWatchEvents
|
|
1614
1674
|
end
|
1615
1675
|
|
1616
1676
|
# @!attribute [rw] failed_entry_count
|
1617
|
-
# The number of events from this operation that
|
1677
|
+
# The number of events from this operation that could not be written
|
1618
1678
|
# to the partner event bus.
|
1619
1679
|
# @return [Integer]
|
1620
1680
|
#
|
@@ -1631,7 +1691,7 @@ module Aws::CloudWatchEvents
|
|
1631
1691
|
include Aws::Structure
|
1632
1692
|
end
|
1633
1693
|
|
1634
|
-
# Represents an event that a partner tried to generate but failed.
|
1694
|
+
# Represents an event that a partner tried to generate, but failed.
|
1635
1695
|
#
|
1636
1696
|
# @!attribute [rw] event_id
|
1637
1697
|
# The ID of the event.
|
@@ -1675,7 +1735,7 @@ module Aws::CloudWatchEvents
|
|
1675
1735
|
# @return [String]
|
1676
1736
|
#
|
1677
1737
|
# @!attribute [rw] action
|
1678
|
-
# The action that you
|
1738
|
+
# The action that you are enabling the other account to perform.
|
1679
1739
|
# Currently, this must be `events:PutEvents`.
|
1680
1740
|
# @return [String]
|
1681
1741
|
#
|
@@ -1685,15 +1745,15 @@ module Aws::CloudWatchEvents
|
|
1685
1745
|
# events to your default event bus.
|
1686
1746
|
#
|
1687
1747
|
# If you specify "*" without specifying `Condition`, avoid creating
|
1688
|
-
# rules that
|
1748
|
+
# rules that may match undesirable events. To create more secure
|
1689
1749
|
# rules, make sure that the event pattern for each rule contains an
|
1690
|
-
# `account` field with a specific account ID to receive
|
1691
|
-
# Rules with an account field
|
1692
|
-
# accounts.
|
1750
|
+
# `account` field with a specific account ID from which to receive
|
1751
|
+
# events. Rules with an account field do not match any events sent
|
1752
|
+
# from other accounts.
|
1693
1753
|
# @return [String]
|
1694
1754
|
#
|
1695
1755
|
# @!attribute [rw] statement_id
|
1696
|
-
# An identifier string for the external account that you
|
1756
|
+
# An identifier string for the external account that you are granting
|
1697
1757
|
# permissions to. If you later want to revoke the permission for this
|
1698
1758
|
# external account, specify this `StatementId` when you run
|
1699
1759
|
# RemovePermission.
|
@@ -1703,14 +1763,14 @@ module Aws::CloudWatchEvents
|
|
1703
1763
|
# This parameter enables you to limit the permission to accounts that
|
1704
1764
|
# fulfill a certain condition, such as being a member of a certain AWS
|
1705
1765
|
# organization. For more information about AWS Organizations, see
|
1706
|
-
# [What Is AWS Organizations
|
1766
|
+
# [What Is AWS Organizations][1] in the *AWS Organizations User
|
1707
1767
|
# Guide*.
|
1708
1768
|
#
|
1709
|
-
# If you specify `Condition` with an AWS organization ID and specify
|
1769
|
+
# If you specify `Condition` with an AWS organization ID, and specify
|
1710
1770
|
# "*" as the value for `Principal`, you grant permission to all the
|
1711
1771
|
# accounts in the named organization.
|
1712
1772
|
#
|
1713
|
-
# The `Condition` is a JSON string
|
1773
|
+
# The `Condition` is a JSON string which must contain `Type`, `Key`,
|
1714
1774
|
# and `Value` fields.
|
1715
1775
|
#
|
1716
1776
|
#
|
@@ -1749,17 +1809,17 @@ module Aws::CloudWatchEvents
|
|
1749
1809
|
# }
|
1750
1810
|
#
|
1751
1811
|
# @!attribute [rw] name
|
1752
|
-
# The name of the rule that you
|
1812
|
+
# The name of the rule that you are creating or updating.
|
1753
1813
|
# @return [String]
|
1754
1814
|
#
|
1755
1815
|
# @!attribute [rw] schedule_expression
|
1756
|
-
# The scheduling expression
|
1757
|
-
#
|
1816
|
+
# The scheduling expression. For example, "cron(0 20 * * ? *)" or
|
1817
|
+
# "rate(5 minutes)".
|
1758
1818
|
# @return [String]
|
1759
1819
|
#
|
1760
1820
|
# @!attribute [rw] event_pattern
|
1761
|
-
# The event pattern. For more information, see [
|
1762
|
-
# the *Amazon EventBridge User Guide*.
|
1821
|
+
# The event pattern. For more information, see [Events and Event
|
1822
|
+
# Patterns][1] in the *Amazon EventBridge User Guide*.
|
1763
1823
|
#
|
1764
1824
|
#
|
1765
1825
|
#
|
@@ -1986,9 +2046,9 @@ module Aws::CloudWatchEvents
|
|
1986
2046
|
# @return [Array<String>]
|
1987
2047
|
#
|
1988
2048
|
# @!attribute [rw] force
|
1989
|
-
# If this is a managed rule created by an AWS service on your behalf,
|
2049
|
+
# If this is a managed rule, created by an AWS service on your behalf,
|
1990
2050
|
# you must specify `Force` as `True` to remove targets. This parameter
|
1991
|
-
# is ignored for rules that
|
2051
|
+
# is ignored for rules that are not managed rules. You can check
|
1992
2052
|
# whether a rule is a managed rule by using `DescribeRule` or
|
1993
2053
|
# `ListRules` and checking the `ManagedBy` field of the response.
|
1994
2054
|
# @return [Boolean]
|
@@ -2044,6 +2104,18 @@ module Aws::CloudWatchEvents
|
|
2044
2104
|
include Aws::Structure
|
2045
2105
|
end
|
2046
2106
|
|
2107
|
+
# The resource you are trying to create already exists.
|
2108
|
+
#
|
2109
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ResourceAlreadyExistsException AWS API Documentation
|
2110
|
+
#
|
2111
|
+
class ResourceAlreadyExistsException < Aws::EmptyStructure; end
|
2112
|
+
|
2113
|
+
# An entity that you specified does not exist.
|
2114
|
+
#
|
2115
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ResourceNotFoundException AWS API Documentation
|
2116
|
+
#
|
2117
|
+
class ResourceNotFoundException < Aws::EmptyStructure; end
|
2118
|
+
|
2047
2119
|
# Contains information about a rule in Amazon EventBridge.
|
2048
2120
|
#
|
2049
2121
|
# @!attribute [rw] name
|
@@ -2055,8 +2127,8 @@ module Aws::CloudWatchEvents
|
|
2055
2127
|
# @return [String]
|
2056
2128
|
#
|
2057
2129
|
# @!attribute [rw] event_pattern
|
2058
|
-
# The event pattern of the rule. For more information, see [
|
2059
|
-
# Patterns][1] in the *Amazon EventBridge User Guide*.
|
2130
|
+
# The event pattern of the rule. For more information, see [Events and
|
2131
|
+
# Event Patterns][1] in the *Amazon EventBridge User Guide*.
|
2060
2132
|
#
|
2061
2133
|
#
|
2062
2134
|
#
|
@@ -2072,8 +2144,8 @@ module Aws::CloudWatchEvents
|
|
2072
2144
|
# @return [String]
|
2073
2145
|
#
|
2074
2146
|
# @!attribute [rw] schedule_expression
|
2075
|
-
# The scheduling expression
|
2076
|
-
#
|
2147
|
+
# The scheduling expression. For example, "cron(0 20 * * ? *)",
|
2148
|
+
# "rate(5 minutes)".
|
2077
2149
|
# @return [String]
|
2078
2150
|
#
|
2079
2151
|
# @!attribute [rw] role_arn
|
@@ -2082,9 +2154,9 @@ module Aws::CloudWatchEvents
|
|
2082
2154
|
# @return [String]
|
2083
2155
|
#
|
2084
2156
|
# @!attribute [rw] managed_by
|
2085
|
-
# If
|
2086
|
-
# field displays the principal name of the service that created
|
2087
|
-
# rule.
|
2157
|
+
# If the rule was created on behalf of your account by an AWS service,
|
2158
|
+
# this field displays the principal name of the service that created
|
2159
|
+
# the rule.
|
2088
2160
|
# @return [String]
|
2089
2161
|
#
|
2090
2162
|
# @!attribute [rw] event_bus_name
|
@@ -2106,7 +2178,7 @@ module Aws::CloudWatchEvents
|
|
2106
2178
|
include Aws::Structure
|
2107
2179
|
end
|
2108
2180
|
|
2109
|
-
# This parameter contains the criteria (either
|
2181
|
+
# This parameter contains the criteria (either InstanceIds or a tag)
|
2110
2182
|
# used to specify which EC2 instances are to be sent the command.
|
2111
2183
|
#
|
2112
2184
|
# @note When making an API call, you may pass RunCommandParameters
|
@@ -2122,8 +2194,8 @@ module Aws::CloudWatchEvents
|
|
2122
2194
|
# }
|
2123
2195
|
#
|
2124
2196
|
# @!attribute [rw] run_command_targets
|
2125
|
-
# Currently, we support including only one
|
2126
|
-
# which specifies either an array of
|
2197
|
+
# Currently, we support including only one RunCommandTarget block,
|
2198
|
+
# which specifies either an array of InstanceIds or a tag.
|
2127
2199
|
# @return [Array<Types::RunCommandTarget>]
|
2128
2200
|
#
|
2129
2201
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RunCommandParameters AWS API Documentation
|
@@ -2135,7 +2207,7 @@ module Aws::CloudWatchEvents
|
|
2135
2207
|
|
2136
2208
|
# Information about the EC2 instances that are to be sent the command,
|
2137
2209
|
# specified as key-value pairs. Each `RunCommandTarget` block can
|
2138
|
-
# include only one key, but this key
|
2210
|
+
# include only one key, but this key may specify multiple values.
|
2139
2211
|
#
|
2140
2212
|
# @note When making an API call, you may pass RunCommandTarget
|
2141
2213
|
# data as a hash:
|
@@ -2185,7 +2257,7 @@ module Aws::CloudWatchEvents
|
|
2185
2257
|
end
|
2186
2258
|
|
2187
2259
|
# A key-value pair associated with an AWS resource. In EventBridge,
|
2188
|
-
# rules support tagging.
|
2260
|
+
# rules and event buses support tagging.
|
2189
2261
|
#
|
2190
2262
|
# @note When making an API call, you may pass Tag
|
2191
2263
|
# data as a hash:
|
@@ -2196,8 +2268,8 @@ module Aws::CloudWatchEvents
|
|
2196
2268
|
# }
|
2197
2269
|
#
|
2198
2270
|
# @!attribute [rw] key
|
2199
|
-
# A string
|
2200
|
-
#
|
2271
|
+
# A string you can use to assign a value. The combination of tag keys
|
2272
|
+
# and values can help you organize and categorize your resources.
|
2201
2273
|
# @return [String]
|
2202
2274
|
#
|
2203
2275
|
# @!attribute [rw] value
|
@@ -2226,11 +2298,11 @@ module Aws::CloudWatchEvents
|
|
2226
2298
|
# }
|
2227
2299
|
#
|
2228
2300
|
# @!attribute [rw] resource_arn
|
2229
|
-
# The ARN of the
|
2301
|
+
# The ARN of the EventBridge resource that you're adding tags to.
|
2230
2302
|
# @return [String]
|
2231
2303
|
#
|
2232
2304
|
# @!attribute [rw] tags
|
2233
|
-
# The list of key-value pairs to associate with the
|
2305
|
+
# The list of key-value pairs to associate with the resource.
|
2234
2306
|
# @return [Array<Types::Tag>]
|
2235
2307
|
#
|
2236
2308
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TagResourceRequest AWS API Documentation
|
@@ -2249,11 +2321,11 @@ module Aws::CloudWatchEvents
|
|
2249
2321
|
# a complete list of services and resources that can be set as a target,
|
2250
2322
|
# see PutTargets.
|
2251
2323
|
#
|
2252
|
-
# If you
|
2324
|
+
# If you are setting the event bus of another account as the target, and
|
2253
2325
|
# that account granted permission to your account through an
|
2254
|
-
# organization instead of directly by the account ID, you must
|
2255
|
-
# `RoleArn` with proper permissions in the `Target` structure.
|
2256
|
-
# information, see [Sending and Receiving Events Between AWS
|
2326
|
+
# organization instead of directly by the account ID, then you must
|
2327
|
+
# specify a `RoleArn` with proper permissions in the `Target` structure.
|
2328
|
+
# For more information, see [Sending and Receiving Events Between AWS
|
2257
2329
|
# Accounts][1] in the *Amazon EventBridge User Guide*.
|
2258
2330
|
#
|
2259
2331
|
#
|
@@ -2358,10 +2430,9 @@ module Aws::CloudWatchEvents
|
|
2358
2430
|
# @return [Types::InputTransformer]
|
2359
2431
|
#
|
2360
2432
|
# @!attribute [rw] kinesis_parameters
|
2361
|
-
# The custom parameter
|
2362
|
-
#
|
2363
|
-
#
|
2364
|
-
# partition key.
|
2433
|
+
# The custom parameter you can use to control the shard assignment,
|
2434
|
+
# when the target is a Kinesis data stream. If you do not include this
|
2435
|
+
# parameter, the default is to use the `eventId` as the partition key.
|
2365
2436
|
# @return [Types::KinesisParameters]
|
2366
2437
|
#
|
2367
2438
|
# @!attribute [rw] run_command_parameters
|
@@ -2370,10 +2441,10 @@ module Aws::CloudWatchEvents
|
|
2370
2441
|
# @return [Types::RunCommandParameters]
|
2371
2442
|
#
|
2372
2443
|
# @!attribute [rw] ecs_parameters
|
2373
|
-
# Contains the Amazon ECS task definition and task count to be used
|
2374
|
-
# the event target is an Amazon ECS task. For more information
|
2375
|
-
# Amazon ECS tasks, see [Task Definitions ][1] in the *Amazon
|
2376
|
-
# Container Service Developer Guide*.
|
2444
|
+
# Contains the Amazon ECS task definition and task count to be used,
|
2445
|
+
# if the event target is an Amazon ECS task. For more information
|
2446
|
+
# about Amazon ECS tasks, see [Task Definitions ][1] in the *Amazon
|
2447
|
+
# EC2 Container Service Developer Guide*.
|
2377
2448
|
#
|
2378
2449
|
#
|
2379
2450
|
#
|
@@ -2424,8 +2495,8 @@ module Aws::CloudWatchEvents
|
|
2424
2495
|
# }
|
2425
2496
|
#
|
2426
2497
|
# @!attribute [rw] event_pattern
|
2427
|
-
# The event pattern. For more information, see [
|
2428
|
-
# the *Amazon EventBridge User Guide*.
|
2498
|
+
# The event pattern. For more information, see [Events and Event
|
2499
|
+
# Patterns][1] in the *Amazon EventBridge User Guide*.
|
2429
2500
|
#
|
2430
2501
|
#
|
2431
2502
|
#
|
@@ -2464,7 +2535,8 @@ module Aws::CloudWatchEvents
|
|
2464
2535
|
# }
|
2465
2536
|
#
|
2466
2537
|
# @!attribute [rw] resource_arn
|
2467
|
-
# The ARN of the
|
2538
|
+
# The ARN of the EventBridge resource from which you are removing
|
2539
|
+
# tags.
|
2468
2540
|
# @return [String]
|
2469
2541
|
#
|
2470
2542
|
# @!attribute [rw] tag_keys
|