aws-sdk-cloudwatchevents 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,432 +1,407 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module CloudWatchEvents
10
- # @api private
11
- module ClientApi
12
-
13
- include Seahorse::Model
14
-
15
- Boolean = Shapes::BooleanShape.new(name: 'Boolean')
16
- ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
17
- DeleteRuleRequest = Shapes::StructureShape.new(name: 'DeleteRuleRequest')
18
- DescribeRuleRequest = Shapes::StructureShape.new(name: 'DescribeRuleRequest')
19
- DescribeRuleResponse = Shapes::StructureShape.new(name: 'DescribeRuleResponse')
20
- DisableRuleRequest = Shapes::StructureShape.new(name: 'DisableRuleRequest')
21
- EnableRuleRequest = Shapes::StructureShape.new(name: 'EnableRuleRequest')
22
- ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
23
- ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
24
- EventId = Shapes::StringShape.new(name: 'EventId')
25
- EventPattern = Shapes::StringShape.new(name: 'EventPattern')
26
- EventResource = Shapes::StringShape.new(name: 'EventResource')
27
- EventResourceList = Shapes::ListShape.new(name: 'EventResourceList')
28
- EventTime = Shapes::TimestampShape.new(name: 'EventTime')
29
- Integer = Shapes::IntegerShape.new(name: 'Integer')
30
- InternalException = Shapes::StructureShape.new(name: 'InternalException')
31
- InvalidEventPatternException = Shapes::StructureShape.new(name: 'InvalidEventPatternException')
32
- LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
33
- LimitMax100 = Shapes::IntegerShape.new(name: 'LimitMax100')
34
- ListRuleNamesByTargetRequest = Shapes::StructureShape.new(name: 'ListRuleNamesByTargetRequest')
35
- ListRuleNamesByTargetResponse = Shapes::StructureShape.new(name: 'ListRuleNamesByTargetResponse')
36
- ListRulesRequest = Shapes::StructureShape.new(name: 'ListRulesRequest')
37
- ListRulesResponse = Shapes::StructureShape.new(name: 'ListRulesResponse')
38
- ListTargetsByRuleRequest = Shapes::StructureShape.new(name: 'ListTargetsByRuleRequest')
39
- ListTargetsByRuleResponse = Shapes::StructureShape.new(name: 'ListTargetsByRuleResponse')
40
- NextToken = Shapes::StringShape.new(name: 'NextToken')
41
- PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
42
- PutEventsRequestEntry = Shapes::StructureShape.new(name: 'PutEventsRequestEntry')
43
- PutEventsRequestEntryList = Shapes::ListShape.new(name: 'PutEventsRequestEntryList')
44
- PutEventsResponse = Shapes::StructureShape.new(name: 'PutEventsResponse')
45
- PutEventsResultEntry = Shapes::StructureShape.new(name: 'PutEventsResultEntry')
46
- PutEventsResultEntryList = Shapes::ListShape.new(name: 'PutEventsResultEntryList')
47
- PutRuleRequest = Shapes::StructureShape.new(name: 'PutRuleRequest')
48
- PutRuleResponse = Shapes::StructureShape.new(name: 'PutRuleResponse')
49
- PutTargetsRequest = Shapes::StructureShape.new(name: 'PutTargetsRequest')
50
- PutTargetsResponse = Shapes::StructureShape.new(name: 'PutTargetsResponse')
51
- PutTargetsResultEntry = Shapes::StructureShape.new(name: 'PutTargetsResultEntry')
52
- PutTargetsResultEntryList = Shapes::ListShape.new(name: 'PutTargetsResultEntryList')
53
- RemoveTargetsRequest = Shapes::StructureShape.new(name: 'RemoveTargetsRequest')
54
- RemoveTargetsResponse = Shapes::StructureShape.new(name: 'RemoveTargetsResponse')
55
- RemoveTargetsResultEntry = Shapes::StructureShape.new(name: 'RemoveTargetsResultEntry')
56
- RemoveTargetsResultEntryList = Shapes::ListShape.new(name: 'RemoveTargetsResultEntryList')
57
- ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
58
- RoleArn = Shapes::StringShape.new(name: 'RoleArn')
59
- Rule = Shapes::StructureShape.new(name: 'Rule')
60
- RuleArn = Shapes::StringShape.new(name: 'RuleArn')
61
- RuleDescription = Shapes::StringShape.new(name: 'RuleDescription')
62
- RuleName = Shapes::StringShape.new(name: 'RuleName')
63
- RuleNameList = Shapes::ListShape.new(name: 'RuleNameList')
64
- RuleResponseList = Shapes::ListShape.new(name: 'RuleResponseList')
65
- RuleState = Shapes::StringShape.new(name: 'RuleState')
66
- ScheduleExpression = Shapes::StringShape.new(name: 'ScheduleExpression')
67
- String = Shapes::StringShape.new(name: 'String')
68
- Target = Shapes::StructureShape.new(name: 'Target')
69
- TargetArn = Shapes::StringShape.new(name: 'TargetArn')
70
- TargetId = Shapes::StringShape.new(name: 'TargetId')
71
- TargetIdList = Shapes::ListShape.new(name: 'TargetIdList')
72
- TargetInput = Shapes::StringShape.new(name: 'TargetInput')
73
- TargetInputPath = Shapes::StringShape.new(name: 'TargetInputPath')
74
- TargetList = Shapes::ListShape.new(name: 'TargetList')
75
- TestEventPatternRequest = Shapes::StructureShape.new(name: 'TestEventPatternRequest')
76
- TestEventPatternResponse = Shapes::StructureShape.new(name: 'TestEventPatternResponse')
77
-
78
- DeleteRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
79
- DeleteRuleRequest.struct_class = Types::DeleteRuleRequest
80
-
81
- DescribeRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
82
- DescribeRuleRequest.struct_class = Types::DescribeRuleRequest
83
-
84
- DescribeRuleResponse.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, location_name: "Name"))
85
- DescribeRuleResponse.add_member(:arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "Arn"))
86
- DescribeRuleResponse.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, location_name: "EventPattern"))
87
- DescribeRuleResponse.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpression, location_name: "ScheduleExpression"))
88
- DescribeRuleResponse.add_member(:state, Shapes::ShapeRef.new(shape: RuleState, location_name: "State"))
89
- DescribeRuleResponse.add_member(:description, Shapes::ShapeRef.new(shape: RuleDescription, location_name: "Description"))
90
- DescribeRuleResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
91
- DescribeRuleResponse.struct_class = Types::DescribeRuleResponse
92
-
93
- DisableRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
94
- DisableRuleRequest.struct_class = Types::DisableRuleRequest
95
-
96
- EnableRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
97
- EnableRuleRequest.struct_class = Types::EnableRuleRequest
98
-
99
- EventResourceList.member = Shapes::ShapeRef.new(shape: EventResource)
100
-
101
- ListRuleNamesByTargetRequest.add_member(:target_arn, Shapes::ShapeRef.new(shape: TargetArn, required: true, location_name: "TargetArn"))
102
- ListRuleNamesByTargetRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
103
- ListRuleNamesByTargetRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
104
- ListRuleNamesByTargetRequest.struct_class = Types::ListRuleNamesByTargetRequest
105
-
106
- ListRuleNamesByTargetResponse.add_member(:rule_names, Shapes::ShapeRef.new(shape: RuleNameList, location_name: "RuleNames"))
107
- ListRuleNamesByTargetResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
108
- ListRuleNamesByTargetResponse.struct_class = Types::ListRuleNamesByTargetResponse
109
-
110
- ListRulesRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: RuleName, location_name: "NamePrefix"))
111
- ListRulesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
112
- ListRulesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
113
- ListRulesRequest.struct_class = Types::ListRulesRequest
114
-
115
- ListRulesResponse.add_member(:rules, Shapes::ShapeRef.new(shape: RuleResponseList, location_name: "Rules"))
116
- ListRulesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
117
- ListRulesResponse.struct_class = Types::ListRulesResponse
118
-
119
- ListTargetsByRuleRequest.add_member(:rule, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Rule"))
120
- ListTargetsByRuleRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
121
- ListTargetsByRuleRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
122
- ListTargetsByRuleRequest.struct_class = Types::ListTargetsByRuleRequest
123
-
124
- ListTargetsByRuleResponse.add_member(:targets, Shapes::ShapeRef.new(shape: TargetList, location_name: "Targets"))
125
- ListTargetsByRuleResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
126
- ListTargetsByRuleResponse.struct_class = Types::ListTargetsByRuleResponse
127
-
128
- PutEventsRequest.add_member(:entries, Shapes::ShapeRef.new(shape: PutEventsRequestEntryList, required: true, location_name: "Entries"))
129
- PutEventsRequest.struct_class = Types::PutEventsRequest
130
-
131
- PutEventsRequestEntry.add_member(:time, Shapes::ShapeRef.new(shape: EventTime, location_name: "Time"))
132
- PutEventsRequestEntry.add_member(:source, Shapes::ShapeRef.new(shape: String, location_name: "Source"))
133
- PutEventsRequestEntry.add_member(:resources, Shapes::ShapeRef.new(shape: EventResourceList, location_name: "Resources"))
134
- PutEventsRequestEntry.add_member(:detail_type, Shapes::ShapeRef.new(shape: String, location_name: "DetailType"))
135
- PutEventsRequestEntry.add_member(:detail, Shapes::ShapeRef.new(shape: String, location_name: "Detail"))
136
- PutEventsRequestEntry.struct_class = Types::PutEventsRequestEntry
137
-
138
- PutEventsRequestEntryList.member = Shapes::ShapeRef.new(shape: PutEventsRequestEntry)
139
-
140
- PutEventsResponse.add_member(:failed_entry_count, Shapes::ShapeRef.new(shape: Integer, location_name: "FailedEntryCount"))
141
- PutEventsResponse.add_member(:entries, Shapes::ShapeRef.new(shape: PutEventsResultEntryList, location_name: "Entries"))
142
- PutEventsResponse.struct_class = Types::PutEventsResponse
143
-
144
- PutEventsResultEntry.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "EventId"))
145
- PutEventsResultEntry.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
146
- PutEventsResultEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
147
- PutEventsResultEntry.struct_class = Types::PutEventsResultEntry
148
-
149
- PutEventsResultEntryList.member = Shapes::ShapeRef.new(shape: PutEventsResultEntry)
150
-
151
- PutRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
152
- PutRuleRequest.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpression, location_name: "ScheduleExpression"))
153
- PutRuleRequest.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, location_name: "EventPattern"))
154
- PutRuleRequest.add_member(:state, Shapes::ShapeRef.new(shape: RuleState, location_name: "State"))
155
- PutRuleRequest.add_member(:description, Shapes::ShapeRef.new(shape: RuleDescription, location_name: "Description"))
156
- PutRuleRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
157
- PutRuleRequest.struct_class = Types::PutRuleRequest
158
-
159
- PutRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
160
- PutRuleResponse.struct_class = Types::PutRuleResponse
161
-
162
- PutTargetsRequest.add_member(:rule, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Rule"))
163
- PutTargetsRequest.add_member(:targets, Shapes::ShapeRef.new(shape: TargetList, required: true, location_name: "Targets"))
164
- PutTargetsRequest.struct_class = Types::PutTargetsRequest
165
-
166
- PutTargetsResponse.add_member(:failed_entry_count, Shapes::ShapeRef.new(shape: Integer, location_name: "FailedEntryCount"))
167
- PutTargetsResponse.add_member(:failed_entries, Shapes::ShapeRef.new(shape: PutTargetsResultEntryList, location_name: "FailedEntries"))
168
- PutTargetsResponse.struct_class = Types::PutTargetsResponse
169
-
170
- PutTargetsResultEntry.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "TargetId"))
171
- PutTargetsResultEntry.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
172
- PutTargetsResultEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
173
- PutTargetsResultEntry.struct_class = Types::PutTargetsResultEntry
174
-
175
- PutTargetsResultEntryList.member = Shapes::ShapeRef.new(shape: PutTargetsResultEntry)
176
-
177
- RemoveTargetsRequest.add_member(:rule, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Rule"))
178
- RemoveTargetsRequest.add_member(:ids, Shapes::ShapeRef.new(shape: TargetIdList, required: true, location_name: "Ids"))
179
- RemoveTargetsRequest.struct_class = Types::RemoveTargetsRequest
180
-
181
- RemoveTargetsResponse.add_member(:failed_entry_count, Shapes::ShapeRef.new(shape: Integer, location_name: "FailedEntryCount"))
182
- RemoveTargetsResponse.add_member(:failed_entries, Shapes::ShapeRef.new(shape: RemoveTargetsResultEntryList, location_name: "FailedEntries"))
183
- RemoveTargetsResponse.struct_class = Types::RemoveTargetsResponse
184
-
185
- RemoveTargetsResultEntry.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "TargetId"))
186
- RemoveTargetsResultEntry.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
187
- RemoveTargetsResultEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
188
- RemoveTargetsResultEntry.struct_class = Types::RemoveTargetsResultEntry
189
-
190
- RemoveTargetsResultEntryList.member = Shapes::ShapeRef.new(shape: RemoveTargetsResultEntry)
191
-
192
- Rule.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, location_name: "Name"))
193
- Rule.add_member(:arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "Arn"))
194
- Rule.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, location_name: "EventPattern"))
195
- Rule.add_member(:state, Shapes::ShapeRef.new(shape: RuleState, location_name: "State"))
196
- Rule.add_member(:description, Shapes::ShapeRef.new(shape: RuleDescription, location_name: "Description"))
197
- Rule.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpression, location_name: "ScheduleExpression"))
198
- Rule.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
199
- Rule.struct_class = Types::Rule
200
-
201
- RuleNameList.member = Shapes::ShapeRef.new(shape: RuleName)
202
-
203
- RuleResponseList.member = Shapes::ShapeRef.new(shape: Rule)
204
-
205
- Target.add_member(:id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "Id"))
206
- Target.add_member(:arn, Shapes::ShapeRef.new(shape: TargetArn, required: true, location_name: "Arn"))
207
- Target.add_member(:input, Shapes::ShapeRef.new(shape: TargetInput, location_name: "Input"))
208
- Target.add_member(:input_path, Shapes::ShapeRef.new(shape: TargetInputPath, location_name: "InputPath"))
209
- Target.struct_class = Types::Target
210
-
211
- TargetIdList.member = Shapes::ShapeRef.new(shape: TargetId)
212
-
213
- TargetList.member = Shapes::ShapeRef.new(shape: Target)
214
-
215
- TestEventPatternRequest.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, required: true, location_name: "EventPattern"))
216
- TestEventPatternRequest.add_member(:event, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Event"))
217
- TestEventPatternRequest.struct_class = Types::TestEventPatternRequest
218
-
219
- TestEventPatternResponse.add_member(:result, Shapes::ShapeRef.new(shape: Boolean, location_name: "Result"))
220
- TestEventPatternResponse.struct_class = Types::TestEventPatternResponse
221
-
222
-
223
- # @api private
224
- API = Seahorse::Model::Api.new.tap do |api|
225
-
226
- api.version = "2015-10-07"
227
-
228
- api.metadata = {
229
- "endpointPrefix" => "events",
230
- "jsonVersion" => "1.1",
231
- "protocol" => "json",
232
- "serviceFullName" => "Amazon CloudWatch Events",
233
- "signatureVersion" => "v4",
234
- "targetPrefix" => "AWSEvents",
235
- }
236
-
237
- api.add_operation(:delete_rule, Seahorse::Model::Operation.new.tap do |o|
238
- o.name = "DeleteRule"
239
- o.http_method = "POST"
240
- o.http_request_uri = "/"
241
- o.input = Shapes::ShapeRef.new(shape: DeleteRuleRequest)
242
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
243
- o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException, metadata: {
244
- "exception" => true
245
- })
246
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
247
- "exception" => true,
248
- "fault" => true
249
- })
250
- end)
251
-
252
- api.add_operation(:describe_rule, Seahorse::Model::Operation.new.tap do |o|
253
- o.name = "DescribeRule"
254
- o.http_method = "POST"
255
- o.http_request_uri = "/"
256
- o.input = Shapes::ShapeRef.new(shape: DescribeRuleRequest)
257
- o.output = Shapes::ShapeRef.new(shape: DescribeRuleResponse)
258
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
259
- "exception" => true
260
- })
261
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
262
- "exception" => true,
263
- "fault" => true
264
- })
265
- end)
266
-
267
- api.add_operation(:disable_rule, Seahorse::Model::Operation.new.tap do |o|
268
- o.name = "DisableRule"
269
- o.http_method = "POST"
270
- o.http_request_uri = "/"
271
- o.input = Shapes::ShapeRef.new(shape: DisableRuleRequest)
272
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
273
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
274
- "exception" => true
275
- })
276
- o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException, metadata: {
277
- "exception" => true
278
- })
279
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
280
- "exception" => true,
281
- "fault" => true
282
- })
283
- end)
284
-
285
- api.add_operation(:enable_rule, Seahorse::Model::Operation.new.tap do |o|
286
- o.name = "EnableRule"
287
- o.http_method = "POST"
288
- o.http_request_uri = "/"
289
- o.input = Shapes::ShapeRef.new(shape: EnableRuleRequest)
290
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
291
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
292
- "exception" => true
293
- })
294
- o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException, metadata: {
295
- "exception" => true
296
- })
297
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
298
- "exception" => true,
299
- "fault" => true
300
- })
301
- end)
302
-
303
- api.add_operation(:list_rule_names_by_target, Seahorse::Model::Operation.new.tap do |o|
304
- o.name = "ListRuleNamesByTarget"
305
- o.http_method = "POST"
306
- o.http_request_uri = "/"
307
- o.input = Shapes::ShapeRef.new(shape: ListRuleNamesByTargetRequest)
308
- o.output = Shapes::ShapeRef.new(shape: ListRuleNamesByTargetResponse)
309
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
310
- "exception" => true,
311
- "fault" => true
312
- })
313
- end)
314
-
315
- api.add_operation(:list_rules, Seahorse::Model::Operation.new.tap do |o|
316
- o.name = "ListRules"
317
- o.http_method = "POST"
318
- o.http_request_uri = "/"
319
- o.input = Shapes::ShapeRef.new(shape: ListRulesRequest)
320
- o.output = Shapes::ShapeRef.new(shape: ListRulesResponse)
321
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
322
- "exception" => true,
323
- "fault" => true
324
- })
325
- end)
326
-
327
- api.add_operation(:list_targets_by_rule, Seahorse::Model::Operation.new.tap do |o|
328
- o.name = "ListTargetsByRule"
329
- o.http_method = "POST"
330
- o.http_request_uri = "/"
331
- o.input = Shapes::ShapeRef.new(shape: ListTargetsByRuleRequest)
332
- o.output = Shapes::ShapeRef.new(shape: ListTargetsByRuleResponse)
333
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
334
- "exception" => true
335
- })
336
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
337
- "exception" => true,
338
- "fault" => true
339
- })
340
- end)
341
-
342
- api.add_operation(:put_events, Seahorse::Model::Operation.new.tap do |o|
343
- o.name = "PutEvents"
344
- o.http_method = "POST"
345
- o.http_request_uri = "/"
346
- o.input = Shapes::ShapeRef.new(shape: PutEventsRequest)
347
- o.output = Shapes::ShapeRef.new(shape: PutEventsResponse)
348
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
349
- "exception" => true,
350
- "fault" => true
351
- })
352
- end)
353
-
354
- api.add_operation(:put_rule, Seahorse::Model::Operation.new.tap do |o|
355
- o.name = "PutRule"
356
- o.http_method = "POST"
357
- o.http_request_uri = "/"
358
- o.input = Shapes::ShapeRef.new(shape: PutRuleRequest)
359
- o.output = Shapes::ShapeRef.new(shape: PutRuleResponse)
360
- o.errors << Shapes::ShapeRef.new(shape: InvalidEventPatternException, metadata: {
361
- "exception" => true
362
- })
363
- o.errors << Shapes::ShapeRef.new(shape: LimitExceededException, metadata: {
364
- "exception" => true
365
- })
366
- o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException, metadata: {
367
- "exception" => true
368
- })
369
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
370
- "exception" => true,
371
- "fault" => true
372
- })
373
- end)
374
-
375
- api.add_operation(:put_targets, Seahorse::Model::Operation.new.tap do |o|
376
- o.name = "PutTargets"
377
- o.http_method = "POST"
378
- o.http_request_uri = "/"
379
- o.input = Shapes::ShapeRef.new(shape: PutTargetsRequest)
380
- o.output = Shapes::ShapeRef.new(shape: PutTargetsResponse)
381
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
382
- "exception" => true
383
- })
384
- o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException, metadata: {
385
- "exception" => true
386
- })
387
- o.errors << Shapes::ShapeRef.new(shape: LimitExceededException, metadata: {
388
- "exception" => true
389
- })
390
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
391
- "exception" => true,
392
- "fault" => true
393
- })
394
- end)
395
-
396
- api.add_operation(:remove_targets, Seahorse::Model::Operation.new.tap do |o|
397
- o.name = "RemoveTargets"
398
- o.http_method = "POST"
399
- o.http_request_uri = "/"
400
- o.input = Shapes::ShapeRef.new(shape: RemoveTargetsRequest)
401
- o.output = Shapes::ShapeRef.new(shape: RemoveTargetsResponse)
402
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
403
- "exception" => true
404
- })
405
- o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException, metadata: {
406
- "exception" => true
407
- })
408
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
409
- "exception" => true,
410
- "fault" => true
411
- })
412
- end)
413
-
414
- api.add_operation(:test_event_pattern, Seahorse::Model::Operation.new.tap do |o|
415
- o.name = "TestEventPattern"
416
- o.http_method = "POST"
417
- o.http_request_uri = "/"
418
- o.input = Shapes::ShapeRef.new(shape: TestEventPatternRequest)
419
- o.output = Shapes::ShapeRef.new(shape: TestEventPatternResponse)
420
- o.errors << Shapes::ShapeRef.new(shape: InvalidEventPatternException, metadata: {
421
- "exception" => true
422
- })
423
- o.errors << Shapes::ShapeRef.new(shape: InternalException, metadata: {
424
- "exception" => true,
425
- "fault" => true
426
- })
427
- end)
428
- end
8
+ module Aws::CloudWatchEvents
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ Arn = Shapes::StringShape.new(name: 'Arn')
15
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
16
+ ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
17
+ DeleteRuleRequest = Shapes::StructureShape.new(name: 'DeleteRuleRequest')
18
+ DescribeRuleRequest = Shapes::StructureShape.new(name: 'DescribeRuleRequest')
19
+ DescribeRuleResponse = Shapes::StructureShape.new(name: 'DescribeRuleResponse')
20
+ DisableRuleRequest = Shapes::StructureShape.new(name: 'DisableRuleRequest')
21
+ EcsParameters = Shapes::StructureShape.new(name: 'EcsParameters')
22
+ EnableRuleRequest = Shapes::StructureShape.new(name: 'EnableRuleRequest')
23
+ ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
24
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
25
+ EventId = Shapes::StringShape.new(name: 'EventId')
26
+ EventPattern = Shapes::StringShape.new(name: 'EventPattern')
27
+ EventResource = Shapes::StringShape.new(name: 'EventResource')
28
+ EventResourceList = Shapes::ListShape.new(name: 'EventResourceList')
29
+ EventTime = Shapes::TimestampShape.new(name: 'EventTime')
30
+ InputTransformer = Shapes::StructureShape.new(name: 'InputTransformer')
31
+ InputTransformerPathKey = Shapes::StringShape.new(name: 'InputTransformerPathKey')
32
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
33
+ InternalException = Shapes::StructureShape.new(name: 'InternalException')
34
+ InvalidEventPatternException = Shapes::StructureShape.new(name: 'InvalidEventPatternException')
35
+ KinesisParameters = Shapes::StructureShape.new(name: 'KinesisParameters')
36
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
37
+ LimitMax100 = Shapes::IntegerShape.new(name: 'LimitMax100')
38
+ LimitMin1 = Shapes::IntegerShape.new(name: 'LimitMin1')
39
+ ListRuleNamesByTargetRequest = Shapes::StructureShape.new(name: 'ListRuleNamesByTargetRequest')
40
+ ListRuleNamesByTargetResponse = Shapes::StructureShape.new(name: 'ListRuleNamesByTargetResponse')
41
+ ListRulesRequest = Shapes::StructureShape.new(name: 'ListRulesRequest')
42
+ ListRulesResponse = Shapes::StructureShape.new(name: 'ListRulesResponse')
43
+ ListTargetsByRuleRequest = Shapes::StructureShape.new(name: 'ListTargetsByRuleRequest')
44
+ ListTargetsByRuleResponse = Shapes::StructureShape.new(name: 'ListTargetsByRuleResponse')
45
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
46
+ PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
47
+ PutEventsRequestEntry = Shapes::StructureShape.new(name: 'PutEventsRequestEntry')
48
+ PutEventsRequestEntryList = Shapes::ListShape.new(name: 'PutEventsRequestEntryList')
49
+ PutEventsResponse = Shapes::StructureShape.new(name: 'PutEventsResponse')
50
+ PutEventsResultEntry = Shapes::StructureShape.new(name: 'PutEventsResultEntry')
51
+ PutEventsResultEntryList = Shapes::ListShape.new(name: 'PutEventsResultEntryList')
52
+ PutRuleRequest = Shapes::StructureShape.new(name: 'PutRuleRequest')
53
+ PutRuleResponse = Shapes::StructureShape.new(name: 'PutRuleResponse')
54
+ PutTargetsRequest = Shapes::StructureShape.new(name: 'PutTargetsRequest')
55
+ PutTargetsResponse = Shapes::StructureShape.new(name: 'PutTargetsResponse')
56
+ PutTargetsResultEntry = Shapes::StructureShape.new(name: 'PutTargetsResultEntry')
57
+ PutTargetsResultEntryList = Shapes::ListShape.new(name: 'PutTargetsResultEntryList')
58
+ RemoveTargetsRequest = Shapes::StructureShape.new(name: 'RemoveTargetsRequest')
59
+ RemoveTargetsResponse = Shapes::StructureShape.new(name: 'RemoveTargetsResponse')
60
+ RemoveTargetsResultEntry = Shapes::StructureShape.new(name: 'RemoveTargetsResultEntry')
61
+ RemoveTargetsResultEntryList = Shapes::ListShape.new(name: 'RemoveTargetsResultEntryList')
62
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
63
+ RoleArn = Shapes::StringShape.new(name: 'RoleArn')
64
+ Rule = Shapes::StructureShape.new(name: 'Rule')
65
+ RuleArn = Shapes::StringShape.new(name: 'RuleArn')
66
+ RuleDescription = Shapes::StringShape.new(name: 'RuleDescription')
67
+ RuleName = Shapes::StringShape.new(name: 'RuleName')
68
+ RuleNameList = Shapes::ListShape.new(name: 'RuleNameList')
69
+ RuleResponseList = Shapes::ListShape.new(name: 'RuleResponseList')
70
+ RuleState = Shapes::StringShape.new(name: 'RuleState')
71
+ RunCommandParameters = Shapes::StructureShape.new(name: 'RunCommandParameters')
72
+ RunCommandTarget = Shapes::StructureShape.new(name: 'RunCommandTarget')
73
+ RunCommandTargetKey = Shapes::StringShape.new(name: 'RunCommandTargetKey')
74
+ RunCommandTargetValue = Shapes::StringShape.new(name: 'RunCommandTargetValue')
75
+ RunCommandTargetValues = Shapes::ListShape.new(name: 'RunCommandTargetValues')
76
+ RunCommandTargets = Shapes::ListShape.new(name: 'RunCommandTargets')
77
+ ScheduleExpression = Shapes::StringShape.new(name: 'ScheduleExpression')
78
+ String = Shapes::StringShape.new(name: 'String')
79
+ Target = Shapes::StructureShape.new(name: 'Target')
80
+ TargetArn = Shapes::StringShape.new(name: 'TargetArn')
81
+ TargetId = Shapes::StringShape.new(name: 'TargetId')
82
+ TargetIdList = Shapes::ListShape.new(name: 'TargetIdList')
83
+ TargetInput = Shapes::StringShape.new(name: 'TargetInput')
84
+ TargetInputPath = Shapes::StringShape.new(name: 'TargetInputPath')
85
+ TargetList = Shapes::ListShape.new(name: 'TargetList')
86
+ TargetPartitionKeyPath = Shapes::StringShape.new(name: 'TargetPartitionKeyPath')
87
+ TestEventPatternRequest = Shapes::StructureShape.new(name: 'TestEventPatternRequest')
88
+ TestEventPatternResponse = Shapes::StructureShape.new(name: 'TestEventPatternResponse')
89
+ TransformerInput = Shapes::StringShape.new(name: 'TransformerInput')
90
+ TransformerPaths = Shapes::MapShape.new(name: 'TransformerPaths')
91
+
92
+ DeleteRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
93
+ DeleteRuleRequest.struct_class = Types::DeleteRuleRequest
94
+
95
+ DescribeRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
96
+ DescribeRuleRequest.struct_class = Types::DescribeRuleRequest
97
+
98
+ DescribeRuleResponse.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, location_name: "Name"))
99
+ DescribeRuleResponse.add_member(:arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "Arn"))
100
+ DescribeRuleResponse.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, location_name: "EventPattern"))
101
+ DescribeRuleResponse.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpression, location_name: "ScheduleExpression"))
102
+ DescribeRuleResponse.add_member(:state, Shapes::ShapeRef.new(shape: RuleState, location_name: "State"))
103
+ DescribeRuleResponse.add_member(:description, Shapes::ShapeRef.new(shape: RuleDescription, location_name: "Description"))
104
+ DescribeRuleResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
105
+ DescribeRuleResponse.struct_class = Types::DescribeRuleResponse
106
+
107
+ DisableRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
108
+ DisableRuleRequest.struct_class = Types::DisableRuleRequest
109
+
110
+ EcsParameters.add_member(:task_definition_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "TaskDefinitionArn"))
111
+ EcsParameters.add_member(:task_count, Shapes::ShapeRef.new(shape: LimitMin1, location_name: "TaskCount"))
112
+ EcsParameters.struct_class = Types::EcsParameters
113
+
114
+ EnableRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
115
+ EnableRuleRequest.struct_class = Types::EnableRuleRequest
116
+
117
+ EventResourceList.member = Shapes::ShapeRef.new(shape: EventResource)
118
+
119
+ InputTransformer.add_member(:input_paths_map, Shapes::ShapeRef.new(shape: TransformerPaths, location_name: "InputPathsMap"))
120
+ InputTransformer.add_member(:input_template, Shapes::ShapeRef.new(shape: TransformerInput, required: true, location_name: "InputTemplate"))
121
+ InputTransformer.struct_class = Types::InputTransformer
122
+
123
+ KinesisParameters.add_member(:partition_key_path, Shapes::ShapeRef.new(shape: TargetPartitionKeyPath, required: true, location_name: "PartitionKeyPath"))
124
+ KinesisParameters.struct_class = Types::KinesisParameters
125
+
126
+ ListRuleNamesByTargetRequest.add_member(:target_arn, Shapes::ShapeRef.new(shape: TargetArn, required: true, location_name: "TargetArn"))
127
+ ListRuleNamesByTargetRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
128
+ ListRuleNamesByTargetRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
129
+ ListRuleNamesByTargetRequest.struct_class = Types::ListRuleNamesByTargetRequest
130
+
131
+ ListRuleNamesByTargetResponse.add_member(:rule_names, Shapes::ShapeRef.new(shape: RuleNameList, location_name: "RuleNames"))
132
+ ListRuleNamesByTargetResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
133
+ ListRuleNamesByTargetResponse.struct_class = Types::ListRuleNamesByTargetResponse
134
+
135
+ ListRulesRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: RuleName, location_name: "NamePrefix"))
136
+ ListRulesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
137
+ ListRulesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
138
+ ListRulesRequest.struct_class = Types::ListRulesRequest
139
+
140
+ ListRulesResponse.add_member(:rules, Shapes::ShapeRef.new(shape: RuleResponseList, location_name: "Rules"))
141
+ ListRulesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
142
+ ListRulesResponse.struct_class = Types::ListRulesResponse
143
+
144
+ ListTargetsByRuleRequest.add_member(:rule, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Rule"))
145
+ ListTargetsByRuleRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
146
+ ListTargetsByRuleRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
147
+ ListTargetsByRuleRequest.struct_class = Types::ListTargetsByRuleRequest
148
+
149
+ ListTargetsByRuleResponse.add_member(:targets, Shapes::ShapeRef.new(shape: TargetList, location_name: "Targets"))
150
+ ListTargetsByRuleResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
151
+ ListTargetsByRuleResponse.struct_class = Types::ListTargetsByRuleResponse
152
+
153
+ PutEventsRequest.add_member(:entries, Shapes::ShapeRef.new(shape: PutEventsRequestEntryList, required: true, location_name: "Entries"))
154
+ PutEventsRequest.struct_class = Types::PutEventsRequest
155
+
156
+ PutEventsRequestEntry.add_member(:time, Shapes::ShapeRef.new(shape: EventTime, location_name: "Time"))
157
+ PutEventsRequestEntry.add_member(:source, Shapes::ShapeRef.new(shape: String, location_name: "Source"))
158
+ PutEventsRequestEntry.add_member(:resources, Shapes::ShapeRef.new(shape: EventResourceList, location_name: "Resources"))
159
+ PutEventsRequestEntry.add_member(:detail_type, Shapes::ShapeRef.new(shape: String, location_name: "DetailType"))
160
+ PutEventsRequestEntry.add_member(:detail, Shapes::ShapeRef.new(shape: String, location_name: "Detail"))
161
+ PutEventsRequestEntry.struct_class = Types::PutEventsRequestEntry
162
+
163
+ PutEventsRequestEntryList.member = Shapes::ShapeRef.new(shape: PutEventsRequestEntry)
164
+
165
+ PutEventsResponse.add_member(:failed_entry_count, Shapes::ShapeRef.new(shape: Integer, location_name: "FailedEntryCount"))
166
+ PutEventsResponse.add_member(:entries, Shapes::ShapeRef.new(shape: PutEventsResultEntryList, location_name: "Entries"))
167
+ PutEventsResponse.struct_class = Types::PutEventsResponse
168
+
169
+ PutEventsResultEntry.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "EventId"))
170
+ PutEventsResultEntry.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
171
+ PutEventsResultEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
172
+ PutEventsResultEntry.struct_class = Types::PutEventsResultEntry
173
+
174
+ PutEventsResultEntryList.member = Shapes::ShapeRef.new(shape: PutEventsResultEntry)
175
+
176
+ PutRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
177
+ PutRuleRequest.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpression, location_name: "ScheduleExpression"))
178
+ PutRuleRequest.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, location_name: "EventPattern"))
179
+ PutRuleRequest.add_member(:state, Shapes::ShapeRef.new(shape: RuleState, location_name: "State"))
180
+ PutRuleRequest.add_member(:description, Shapes::ShapeRef.new(shape: RuleDescription, location_name: "Description"))
181
+ PutRuleRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
182
+ PutRuleRequest.struct_class = Types::PutRuleRequest
183
+
184
+ PutRuleResponse.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
185
+ PutRuleResponse.struct_class = Types::PutRuleResponse
186
+
187
+ PutTargetsRequest.add_member(:rule, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Rule"))
188
+ PutTargetsRequest.add_member(:targets, Shapes::ShapeRef.new(shape: TargetList, required: true, location_name: "Targets"))
189
+ PutTargetsRequest.struct_class = Types::PutTargetsRequest
190
+
191
+ PutTargetsResponse.add_member(:failed_entry_count, Shapes::ShapeRef.new(shape: Integer, location_name: "FailedEntryCount"))
192
+ PutTargetsResponse.add_member(:failed_entries, Shapes::ShapeRef.new(shape: PutTargetsResultEntryList, location_name: "FailedEntries"))
193
+ PutTargetsResponse.struct_class = Types::PutTargetsResponse
194
+
195
+ PutTargetsResultEntry.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "TargetId"))
196
+ PutTargetsResultEntry.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
197
+ PutTargetsResultEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
198
+ PutTargetsResultEntry.struct_class = Types::PutTargetsResultEntry
199
+
200
+ PutTargetsResultEntryList.member = Shapes::ShapeRef.new(shape: PutTargetsResultEntry)
201
+
202
+ RemoveTargetsRequest.add_member(:rule, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Rule"))
203
+ RemoveTargetsRequest.add_member(:ids, Shapes::ShapeRef.new(shape: TargetIdList, required: true, location_name: "Ids"))
204
+ RemoveTargetsRequest.struct_class = Types::RemoveTargetsRequest
205
+
206
+ RemoveTargetsResponse.add_member(:failed_entry_count, Shapes::ShapeRef.new(shape: Integer, location_name: "FailedEntryCount"))
207
+ RemoveTargetsResponse.add_member(:failed_entries, Shapes::ShapeRef.new(shape: RemoveTargetsResultEntryList, location_name: "FailedEntries"))
208
+ RemoveTargetsResponse.struct_class = Types::RemoveTargetsResponse
209
+
210
+ RemoveTargetsResultEntry.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "TargetId"))
211
+ RemoveTargetsResultEntry.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
212
+ RemoveTargetsResultEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
213
+ RemoveTargetsResultEntry.struct_class = Types::RemoveTargetsResultEntry
214
+
215
+ RemoveTargetsResultEntryList.member = Shapes::ShapeRef.new(shape: RemoveTargetsResultEntry)
216
+
217
+ Rule.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, location_name: "Name"))
218
+ Rule.add_member(:arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "Arn"))
219
+ Rule.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, location_name: "EventPattern"))
220
+ Rule.add_member(:state, Shapes::ShapeRef.new(shape: RuleState, location_name: "State"))
221
+ Rule.add_member(:description, Shapes::ShapeRef.new(shape: RuleDescription, location_name: "Description"))
222
+ Rule.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpression, location_name: "ScheduleExpression"))
223
+ Rule.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
224
+ Rule.struct_class = Types::Rule
225
+
226
+ RuleNameList.member = Shapes::ShapeRef.new(shape: RuleName)
227
+
228
+ RuleResponseList.member = Shapes::ShapeRef.new(shape: Rule)
429
229
 
230
+ RunCommandParameters.add_member(:run_command_targets, Shapes::ShapeRef.new(shape: RunCommandTargets, required: true, location_name: "RunCommandTargets"))
231
+ RunCommandParameters.struct_class = Types::RunCommandParameters
232
+
233
+ RunCommandTarget.add_member(:key, Shapes::ShapeRef.new(shape: RunCommandTargetKey, required: true, location_name: "Key"))
234
+ RunCommandTarget.add_member(:values, Shapes::ShapeRef.new(shape: RunCommandTargetValues, required: true, location_name: "Values"))
235
+ RunCommandTarget.struct_class = Types::RunCommandTarget
236
+
237
+ RunCommandTargetValues.member = Shapes::ShapeRef.new(shape: RunCommandTargetValue)
238
+
239
+ RunCommandTargets.member = Shapes::ShapeRef.new(shape: RunCommandTarget)
240
+
241
+ Target.add_member(:id, Shapes::ShapeRef.new(shape: TargetId, required: true, location_name: "Id"))
242
+ Target.add_member(:arn, Shapes::ShapeRef.new(shape: TargetArn, required: true, location_name: "Arn"))
243
+ Target.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
244
+ Target.add_member(:input, Shapes::ShapeRef.new(shape: TargetInput, location_name: "Input"))
245
+ Target.add_member(:input_path, Shapes::ShapeRef.new(shape: TargetInputPath, location_name: "InputPath"))
246
+ Target.add_member(:input_transformer, Shapes::ShapeRef.new(shape: InputTransformer, location_name: "InputTransformer"))
247
+ Target.add_member(:kinesis_parameters, Shapes::ShapeRef.new(shape: KinesisParameters, location_name: "KinesisParameters"))
248
+ Target.add_member(:run_command_parameters, Shapes::ShapeRef.new(shape: RunCommandParameters, location_name: "RunCommandParameters"))
249
+ Target.add_member(:ecs_parameters, Shapes::ShapeRef.new(shape: EcsParameters, location_name: "EcsParameters"))
250
+ Target.struct_class = Types::Target
251
+
252
+ TargetIdList.member = Shapes::ShapeRef.new(shape: TargetId)
253
+
254
+ TargetList.member = Shapes::ShapeRef.new(shape: Target)
255
+
256
+ TestEventPatternRequest.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, required: true, location_name: "EventPattern"))
257
+ TestEventPatternRequest.add_member(:event, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Event"))
258
+ TestEventPatternRequest.struct_class = Types::TestEventPatternRequest
259
+
260
+ TestEventPatternResponse.add_member(:result, Shapes::ShapeRef.new(shape: Boolean, location_name: "Result"))
261
+ TestEventPatternResponse.struct_class = Types::TestEventPatternResponse
262
+
263
+ TransformerPaths.key = Shapes::ShapeRef.new(shape: InputTransformerPathKey)
264
+ TransformerPaths.value = Shapes::ShapeRef.new(shape: TargetInputPath)
265
+
266
+
267
+ # @api private
268
+ API = Seahorse::Model::Api.new.tap do |api|
269
+
270
+ api.version = "2015-10-07"
271
+
272
+ api.metadata = {
273
+ "endpointPrefix" => "events",
274
+ "jsonVersion" => "1.1",
275
+ "protocol" => "json",
276
+ "serviceFullName" => "Amazon CloudWatch Events",
277
+ "signatureVersion" => "v4",
278
+ "targetPrefix" => "AWSEvents",
279
+ }
280
+
281
+ api.add_operation(:delete_rule, Seahorse::Model::Operation.new.tap do |o|
282
+ o.name = "DeleteRule"
283
+ o.http_method = "POST"
284
+ o.http_request_uri = "/"
285
+ o.input = Shapes::ShapeRef.new(shape: DeleteRuleRequest)
286
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
287
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
288
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
289
+ end)
290
+
291
+ api.add_operation(:describe_rule, Seahorse::Model::Operation.new.tap do |o|
292
+ o.name = "DescribeRule"
293
+ o.http_method = "POST"
294
+ o.http_request_uri = "/"
295
+ o.input = Shapes::ShapeRef.new(shape: DescribeRuleRequest)
296
+ o.output = Shapes::ShapeRef.new(shape: DescribeRuleResponse)
297
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
298
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
299
+ end)
300
+
301
+ api.add_operation(:disable_rule, Seahorse::Model::Operation.new.tap do |o|
302
+ o.name = "DisableRule"
303
+ o.http_method = "POST"
304
+ o.http_request_uri = "/"
305
+ o.input = Shapes::ShapeRef.new(shape: DisableRuleRequest)
306
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
307
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
308
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
309
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
310
+ end)
311
+
312
+ api.add_operation(:enable_rule, Seahorse::Model::Operation.new.tap do |o|
313
+ o.name = "EnableRule"
314
+ o.http_method = "POST"
315
+ o.http_request_uri = "/"
316
+ o.input = Shapes::ShapeRef.new(shape: EnableRuleRequest)
317
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
318
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
319
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
320
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
321
+ end)
322
+
323
+ api.add_operation(:list_rule_names_by_target, Seahorse::Model::Operation.new.tap do |o|
324
+ o.name = "ListRuleNamesByTarget"
325
+ o.http_method = "POST"
326
+ o.http_request_uri = "/"
327
+ o.input = Shapes::ShapeRef.new(shape: ListRuleNamesByTargetRequest)
328
+ o.output = Shapes::ShapeRef.new(shape: ListRuleNamesByTargetResponse)
329
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
330
+ end)
331
+
332
+ api.add_operation(:list_rules, Seahorse::Model::Operation.new.tap do |o|
333
+ o.name = "ListRules"
334
+ o.http_method = "POST"
335
+ o.http_request_uri = "/"
336
+ o.input = Shapes::ShapeRef.new(shape: ListRulesRequest)
337
+ o.output = Shapes::ShapeRef.new(shape: ListRulesResponse)
338
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
339
+ end)
340
+
341
+ api.add_operation(:list_targets_by_rule, Seahorse::Model::Operation.new.tap do |o|
342
+ o.name = "ListTargetsByRule"
343
+ o.http_method = "POST"
344
+ o.http_request_uri = "/"
345
+ o.input = Shapes::ShapeRef.new(shape: ListTargetsByRuleRequest)
346
+ o.output = Shapes::ShapeRef.new(shape: ListTargetsByRuleResponse)
347
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
348
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
349
+ end)
350
+
351
+ api.add_operation(:put_events, Seahorse::Model::Operation.new.tap do |o|
352
+ o.name = "PutEvents"
353
+ o.http_method = "POST"
354
+ o.http_request_uri = "/"
355
+ o.input = Shapes::ShapeRef.new(shape: PutEventsRequest)
356
+ o.output = Shapes::ShapeRef.new(shape: PutEventsResponse)
357
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
358
+ end)
359
+
360
+ api.add_operation(:put_rule, Seahorse::Model::Operation.new.tap do |o|
361
+ o.name = "PutRule"
362
+ o.http_method = "POST"
363
+ o.http_request_uri = "/"
364
+ o.input = Shapes::ShapeRef.new(shape: PutRuleRequest)
365
+ o.output = Shapes::ShapeRef.new(shape: PutRuleResponse)
366
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEventPatternException)
367
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
368
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
369
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
370
+ end)
371
+
372
+ api.add_operation(:put_targets, Seahorse::Model::Operation.new.tap do |o|
373
+ o.name = "PutTargets"
374
+ o.http_method = "POST"
375
+ o.http_request_uri = "/"
376
+ o.input = Shapes::ShapeRef.new(shape: PutTargetsRequest)
377
+ o.output = Shapes::ShapeRef.new(shape: PutTargetsResponse)
378
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
379
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
380
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
381
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
382
+ end)
383
+
384
+ api.add_operation(:remove_targets, Seahorse::Model::Operation.new.tap do |o|
385
+ o.name = "RemoveTargets"
386
+ o.http_method = "POST"
387
+ o.http_request_uri = "/"
388
+ o.input = Shapes::ShapeRef.new(shape: RemoveTargetsRequest)
389
+ o.output = Shapes::ShapeRef.new(shape: RemoveTargetsResponse)
390
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
391
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
392
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
393
+ end)
394
+
395
+ api.add_operation(:test_event_pattern, Seahorse::Model::Operation.new.tap do |o|
396
+ o.name = "TestEventPattern"
397
+ o.http_method = "POST"
398
+ o.http_request_uri = "/"
399
+ o.input = Shapes::ShapeRef.new(shape: TestEventPatternRequest)
400
+ o.output = Shapes::ShapeRef.new(shape: TestEventPatternResponse)
401
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEventPatternException)
402
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
403
+ end)
430
404
  end
405
+
431
406
  end
432
407
  end