aws-sdk-eventbridge 1.2.0 → 1.7.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-eventbridge.rb +7 -4
- data/lib/aws-sdk-eventbridge/client.rb +231 -209
- data/lib/aws-sdk-eventbridge/client_api.rb +24 -1
- data/lib/aws-sdk-eventbridge/errors.rb +121 -0
- data/lib/aws-sdk-eventbridge/resource.rb +1 -0
- data/lib/aws-sdk-eventbridge/types.rb +208 -145
- metadata +5 -5
@@ -185,6 +185,8 @@ module Aws::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
9
|
+
|
10
|
+
# When EventBridge returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::EventBridge::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all EventBridge errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::EventBridge::Errors::ServiceError
|
18
|
+
# # rescues all EventBridge 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::EventBridge::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::EventBridge::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::EventBridge::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::EventBridge::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::EventBridge::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::EventBridge::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::EventBridge::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::EventBridge::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::EventBridge::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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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/eventbridge-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::EventBridge
|
|
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/eventbridge-2015-10-07/Condition AWS API Documentation
|
@@ -213,30 +219,40 @@ module Aws::EventBridge
|
|
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/eventbridge-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::EventBridge
|
|
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/eventbridge-2015-10-07/CreatePartnerEventSourceRequest AWS API Documentation
|
@@ -460,7 +476,7 @@ module Aws::EventBridge
|
|
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::EventBridge
|
|
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/eventbridge-2015-10-07/DescribeEventSourceResponse AWS API Documentation
|
@@ -557,8 +573,8 @@ module Aws::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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/eventbridge-2015-10-07/EventSource AWS API Documentation
|
@@ -837,27 +853,27 @@ module Aws::EventBridge
|
|
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::EventBridge
|
|
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/eventbridge-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/eventbridge-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/eventbridge-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::EventBridge
|
|
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/eventbridge-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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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::EventBridge
|
|
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/eventbridge-2015-10-07/ListTagsForResourceRequest AWS API Documentation
|
@@ -1260,8 +1301,8 @@ module Aws::EventBridge
|
|
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/eventbridge-2015-10-07/ListTagsForResourceResponse AWS API Documentation
|
@@ -1326,6 +1367,18 @@ module Aws::EventBridge
|
|
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/eventbridge-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::EventBridge
|
|
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::EventBridge
|
|
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/eventbridge-2015-10-07/PartnerEventSourceAccount AWS API Documentation
|
@@ -1408,6 +1461,13 @@ module Aws::EventBridge
|
|
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/eventbridge-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::EventBridge
|
|
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,30 +1521,28 @@ module Aws::EventBridge
|
|
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
|
1475
|
-
# detail.
|
1534
|
+
# Free-form string used to decide what fields to expect in the event
|
1535
|
+
# detail.
|
1476
1536
|
# @return [String]
|
1477
1537
|
#
|
1478
1538
|
# @!attribute [rw] detail
|
1479
|
-
# A valid JSON
|
1480
|
-
#
|
1481
|
-
#
|
1482
|
-
# This field is required.
|
1539
|
+
# A valid JSON string. There is no other schema imposed. The JSON
|
1540
|
+
# string may contain fields and nested subobjects.
|
1483
1541
|
# @return [String]
|
1484
1542
|
#
|
1485
1543
|
# @!attribute [rw] event_bus_name
|
1486
1544
|
# The event bus that will receive the event. Only the rules that are
|
1487
|
-
# associated with this event bus
|
1545
|
+
# associated with this event bus will be able to match the event.
|
1488
1546
|
# @return [String]
|
1489
1547
|
#
|
1490
1548
|
# @see http://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutEventsRequestEntry AWS API Documentation
|
@@ -1548,7 +1606,7 @@ module Aws::EventBridge
|
|
1548
1606
|
# entries: [ # required
|
1549
1607
|
# {
|
1550
1608
|
# time: Time.now,
|
1551
|
-
# source: "
|
1609
|
+
# source: "EventSourceName",
|
1552
1610
|
# resources: ["EventResource"],
|
1553
1611
|
# detail_type: "String",
|
1554
1612
|
# detail: "String",
|
@@ -1574,7 +1632,7 @@ module Aws::EventBridge
|
|
1574
1632
|
#
|
1575
1633
|
# {
|
1576
1634
|
# time: Time.now,
|
1577
|
-
# source: "
|
1635
|
+
# source: "EventSourceName",
|
1578
1636
|
# resources: ["EventResource"],
|
1579
1637
|
# detail_type: "String",
|
1580
1638
|
# detail: "String",
|
@@ -1585,25 +1643,23 @@ module Aws::EventBridge
|
|
1585
1643
|
# @return [Time]
|
1586
1644
|
#
|
1587
1645
|
# @!attribute [rw] source
|
1588
|
-
# The event source that is generating the evntry.
|
1589
|
-
# required.
|
1646
|
+
# The event source that is generating the evntry.
|
1590
1647
|
# @return [String]
|
1591
1648
|
#
|
1592
1649
|
# @!attribute [rw] resources
|
1593
|
-
# AWS resources, identified by Amazon Resource Name (ARN),
|
1594
|
-
# 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
|
1595
1652
|
# present.
|
1596
1653
|
# @return [Array<String>]
|
1597
1654
|
#
|
1598
1655
|
# @!attribute [rw] detail_type
|
1599
|
-
# A free-form string used to decide
|
1600
|
-
#
|
1656
|
+
# A free-form string used to decide what fields to expect in the event
|
1657
|
+
# detail.
|
1601
1658
|
# @return [String]
|
1602
1659
|
#
|
1603
1660
|
# @!attribute [rw] detail
|
1604
|
-
# A valid JSON
|
1605
|
-
#
|
1606
|
-
# required.
|
1661
|
+
# A valid JSON string. There is no other schema imposed. The JSON
|
1662
|
+
# string may contain fields and nested subobjects.
|
1607
1663
|
# @return [String]
|
1608
1664
|
#
|
1609
1665
|
# @see http://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutPartnerEventsRequestEntry AWS API Documentation
|
@@ -1618,7 +1674,7 @@ module Aws::EventBridge
|
|
1618
1674
|
end
|
1619
1675
|
|
1620
1676
|
# @!attribute [rw] failed_entry_count
|
1621
|
-
# The number of events from this operation that
|
1677
|
+
# The number of events from this operation that could not be written
|
1622
1678
|
# to the partner event bus.
|
1623
1679
|
# @return [Integer]
|
1624
1680
|
#
|
@@ -1635,7 +1691,7 @@ module Aws::EventBridge
|
|
1635
1691
|
include Aws::Structure
|
1636
1692
|
end
|
1637
1693
|
|
1638
|
-
# Represents an event that a partner tried to generate but failed.
|
1694
|
+
# Represents an event that a partner tried to generate, but failed.
|
1639
1695
|
#
|
1640
1696
|
# @!attribute [rw] event_id
|
1641
1697
|
# The ID of the event.
|
@@ -1679,7 +1735,7 @@ module Aws::EventBridge
|
|
1679
1735
|
# @return [String]
|
1680
1736
|
#
|
1681
1737
|
# @!attribute [rw] action
|
1682
|
-
# The action that you
|
1738
|
+
# The action that you are enabling the other account to perform.
|
1683
1739
|
# Currently, this must be `events:PutEvents`.
|
1684
1740
|
# @return [String]
|
1685
1741
|
#
|
@@ -1689,15 +1745,15 @@ module Aws::EventBridge
|
|
1689
1745
|
# events to your default event bus.
|
1690
1746
|
#
|
1691
1747
|
# If you specify "*" without specifying `Condition`, avoid creating
|
1692
|
-
# rules that
|
1748
|
+
# rules that may match undesirable events. To create more secure
|
1693
1749
|
# rules, make sure that the event pattern for each rule contains an
|
1694
|
-
# `account` field with a specific account ID to receive
|
1695
|
-
# Rules
|
1696
|
-
#
|
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.
|
1697
1753
|
# @return [String]
|
1698
1754
|
#
|
1699
1755
|
# @!attribute [rw] statement_id
|
1700
|
-
# An identifier string for the external account that you
|
1756
|
+
# An identifier string for the external account that you are granting
|
1701
1757
|
# permissions to. If you later want to revoke the permission for this
|
1702
1758
|
# external account, specify this `StatementId` when you run
|
1703
1759
|
# RemovePermission.
|
@@ -1707,14 +1763,14 @@ module Aws::EventBridge
|
|
1707
1763
|
# This parameter enables you to limit the permission to accounts that
|
1708
1764
|
# fulfill a certain condition, such as being a member of a certain AWS
|
1709
1765
|
# organization. For more information about AWS Organizations, see
|
1710
|
-
# [What Is AWS Organizations
|
1766
|
+
# [What Is AWS Organizations][1] in the *AWS Organizations User
|
1711
1767
|
# Guide*.
|
1712
1768
|
#
|
1713
|
-
# If you specify `Condition` with an AWS organization ID and specify
|
1769
|
+
# If you specify `Condition` with an AWS organization ID, and specify
|
1714
1770
|
# "*" as the value for `Principal`, you grant permission to all the
|
1715
1771
|
# accounts in the named organization.
|
1716
1772
|
#
|
1717
|
-
# The `Condition` is a JSON string
|
1773
|
+
# The `Condition` is a JSON string which must contain `Type`, `Key`,
|
1718
1774
|
# and `Value` fields.
|
1719
1775
|
#
|
1720
1776
|
#
|
@@ -1753,20 +1809,17 @@ module Aws::EventBridge
|
|
1753
1809
|
# }
|
1754
1810
|
#
|
1755
1811
|
# @!attribute [rw] name
|
1756
|
-
# The name of the rule that you
|
1757
|
-
#
|
1758
|
-
# A rule can't have the same name as another rule in the same Region
|
1759
|
-
# or on the same event bus.
|
1812
|
+
# The name of the rule that you are creating or updating.
|
1760
1813
|
# @return [String]
|
1761
1814
|
#
|
1762
1815
|
# @!attribute [rw] schedule_expression
|
1763
|
-
# The scheduling expression
|
1764
|
-
#
|
1816
|
+
# The scheduling expression. For example, "cron(0 20 * * ? *)" or
|
1817
|
+
# "rate(5 minutes)".
|
1765
1818
|
# @return [String]
|
1766
1819
|
#
|
1767
1820
|
# @!attribute [rw] event_pattern
|
1768
|
-
# The event pattern. For more information, see [
|
1769
|
-
# 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*.
|
1770
1823
|
#
|
1771
1824
|
#
|
1772
1825
|
#
|
@@ -1993,9 +2046,9 @@ module Aws::EventBridge
|
|
1993
2046
|
# @return [Array<String>]
|
1994
2047
|
#
|
1995
2048
|
# @!attribute [rw] force
|
1996
|
-
# 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,
|
1997
2050
|
# you must specify `Force` as `True` to remove targets. This parameter
|
1998
|
-
# is ignored for rules that
|
2051
|
+
# is ignored for rules that are not managed rules. You can check
|
1999
2052
|
# whether a rule is a managed rule by using `DescribeRule` or
|
2000
2053
|
# `ListRules` and checking the `ManagedBy` field of the response.
|
2001
2054
|
# @return [Boolean]
|
@@ -2051,6 +2104,18 @@ module Aws::EventBridge
|
|
2051
2104
|
include Aws::Structure
|
2052
2105
|
end
|
2053
2106
|
|
2107
|
+
# The resource you are trying to create already exists.
|
2108
|
+
#
|
2109
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/eventbridge-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/eventbridge-2015-10-07/ResourceNotFoundException AWS API Documentation
|
2116
|
+
#
|
2117
|
+
class ResourceNotFoundException < Aws::EmptyStructure; end
|
2118
|
+
|
2054
2119
|
# Contains information about a rule in Amazon EventBridge.
|
2055
2120
|
#
|
2056
2121
|
# @!attribute [rw] name
|
@@ -2062,8 +2127,8 @@ module Aws::EventBridge
|
|
2062
2127
|
# @return [String]
|
2063
2128
|
#
|
2064
2129
|
# @!attribute [rw] event_pattern
|
2065
|
-
# The event pattern of the rule. For more information, see [
|
2066
|
-
# 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*.
|
2067
2132
|
#
|
2068
2133
|
#
|
2069
2134
|
#
|
@@ -2079,8 +2144,8 @@ module Aws::EventBridge
|
|
2079
2144
|
# @return [String]
|
2080
2145
|
#
|
2081
2146
|
# @!attribute [rw] schedule_expression
|
2082
|
-
# The scheduling expression
|
2083
|
-
#
|
2147
|
+
# The scheduling expression. For example, "cron(0 20 * * ? *)",
|
2148
|
+
# "rate(5 minutes)".
|
2084
2149
|
# @return [String]
|
2085
2150
|
#
|
2086
2151
|
# @!attribute [rw] role_arn
|
@@ -2089,9 +2154,9 @@ module Aws::EventBridge
|
|
2089
2154
|
# @return [String]
|
2090
2155
|
#
|
2091
2156
|
# @!attribute [rw] managed_by
|
2092
|
-
# If
|
2093
|
-
# field displays the principal name of the service that created
|
2094
|
-
# 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.
|
2095
2160
|
# @return [String]
|
2096
2161
|
#
|
2097
2162
|
# @!attribute [rw] event_bus_name
|
@@ -2113,7 +2178,7 @@ module Aws::EventBridge
|
|
2113
2178
|
include Aws::Structure
|
2114
2179
|
end
|
2115
2180
|
|
2116
|
-
# This parameter contains the criteria (either
|
2181
|
+
# This parameter contains the criteria (either InstanceIds or a tag)
|
2117
2182
|
# used to specify which EC2 instances are to be sent the command.
|
2118
2183
|
#
|
2119
2184
|
# @note When making an API call, you may pass RunCommandParameters
|
@@ -2129,8 +2194,8 @@ module Aws::EventBridge
|
|
2129
2194
|
# }
|
2130
2195
|
#
|
2131
2196
|
# @!attribute [rw] run_command_targets
|
2132
|
-
# Currently, we support including only one
|
2133
|
-
# 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.
|
2134
2199
|
# @return [Array<Types::RunCommandTarget>]
|
2135
2200
|
#
|
2136
2201
|
# @see http://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/RunCommandParameters AWS API Documentation
|
@@ -2142,7 +2207,7 @@ module Aws::EventBridge
|
|
2142
2207
|
|
2143
2208
|
# Information about the EC2 instances that are to be sent the command,
|
2144
2209
|
# specified as key-value pairs. Each `RunCommandTarget` block can
|
2145
|
-
# include only one key, but this key
|
2210
|
+
# include only one key, but this key may specify multiple values.
|
2146
2211
|
#
|
2147
2212
|
# @note When making an API call, you may pass RunCommandTarget
|
2148
2213
|
# data as a hash:
|
@@ -2192,7 +2257,7 @@ module Aws::EventBridge
|
|
2192
2257
|
end
|
2193
2258
|
|
2194
2259
|
# A key-value pair associated with an AWS resource. In EventBridge,
|
2195
|
-
# rules support tagging.
|
2260
|
+
# rules and event buses support tagging.
|
2196
2261
|
#
|
2197
2262
|
# @note When making an API call, you may pass Tag
|
2198
2263
|
# data as a hash:
|
@@ -2203,8 +2268,8 @@ module Aws::EventBridge
|
|
2203
2268
|
# }
|
2204
2269
|
#
|
2205
2270
|
# @!attribute [rw] key
|
2206
|
-
# A string
|
2207
|
-
#
|
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.
|
2208
2273
|
# @return [String]
|
2209
2274
|
#
|
2210
2275
|
# @!attribute [rw] value
|
@@ -2233,11 +2298,11 @@ module Aws::EventBridge
|
|
2233
2298
|
# }
|
2234
2299
|
#
|
2235
2300
|
# @!attribute [rw] resource_arn
|
2236
|
-
# The ARN of the
|
2301
|
+
# The ARN of the EventBridge resource that you're adding tags to.
|
2237
2302
|
# @return [String]
|
2238
2303
|
#
|
2239
2304
|
# @!attribute [rw] tags
|
2240
|
-
# The list of key-value pairs to associate with the
|
2305
|
+
# The list of key-value pairs to associate with the resource.
|
2241
2306
|
# @return [Array<Types::Tag>]
|
2242
2307
|
#
|
2243
2308
|
# @see http://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/TagResourceRequest AWS API Documentation
|
@@ -2256,11 +2321,11 @@ module Aws::EventBridge
|
|
2256
2321
|
# a complete list of services and resources that can be set as a target,
|
2257
2322
|
# see PutTargets.
|
2258
2323
|
#
|
2259
|
-
# If you
|
2324
|
+
# If you are setting the event bus of another account as the target, and
|
2260
2325
|
# that account granted permission to your account through an
|
2261
|
-
# organization instead of directly by the account ID, you must
|
2262
|
-
# `RoleArn` with proper permissions in the `Target` structure.
|
2263
|
-
# 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
|
2264
2329
|
# Accounts][1] in the *Amazon EventBridge User Guide*.
|
2265
2330
|
#
|
2266
2331
|
#
|
@@ -2323,9 +2388,7 @@ module Aws::EventBridge
|
|
2323
2388
|
# }
|
2324
2389
|
#
|
2325
2390
|
# @!attribute [rw] id
|
2326
|
-
#
|
2327
|
-
# target. Each target associated with a rule must have an `Id` unique
|
2328
|
-
# for that rule.
|
2391
|
+
# The ID of the target.
|
2329
2392
|
# @return [String]
|
2330
2393
|
#
|
2331
2394
|
# @!attribute [rw] arn
|
@@ -2367,10 +2430,9 @@ module Aws::EventBridge
|
|
2367
2430
|
# @return [Types::InputTransformer]
|
2368
2431
|
#
|
2369
2432
|
# @!attribute [rw] kinesis_parameters
|
2370
|
-
# The custom parameter
|
2371
|
-
#
|
2372
|
-
#
|
2373
|
-
# 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.
|
2374
2436
|
# @return [Types::KinesisParameters]
|
2375
2437
|
#
|
2376
2438
|
# @!attribute [rw] run_command_parameters
|
@@ -2379,10 +2441,10 @@ module Aws::EventBridge
|
|
2379
2441
|
# @return [Types::RunCommandParameters]
|
2380
2442
|
#
|
2381
2443
|
# @!attribute [rw] ecs_parameters
|
2382
|
-
# Contains the Amazon ECS task definition and task count to be used
|
2383
|
-
# the event target is an Amazon ECS task. For more information
|
2384
|
-
# Amazon ECS tasks, see [Task Definitions ][1] in the *Amazon
|
2385
|
-
# 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*.
|
2386
2448
|
#
|
2387
2449
|
#
|
2388
2450
|
#
|
@@ -2433,8 +2495,8 @@ module Aws::EventBridge
|
|
2433
2495
|
# }
|
2434
2496
|
#
|
2435
2497
|
# @!attribute [rw] event_pattern
|
2436
|
-
# The event pattern. For more information, see [
|
2437
|
-
# 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*.
|
2438
2500
|
#
|
2439
2501
|
#
|
2440
2502
|
#
|
@@ -2473,7 +2535,8 @@ module Aws::EventBridge
|
|
2473
2535
|
# }
|
2474
2536
|
#
|
2475
2537
|
# @!attribute [rw] resource_arn
|
2476
|
-
# The ARN of the
|
2538
|
+
# The ARN of the EventBridge resource from which you are removing
|
2539
|
+
# tags.
|
2477
2540
|
# @return [String]
|
2478
2541
|
#
|
2479
2542
|
# @!attribute [rw] tag_keys
|