aws-sdk-cloudwatchevents 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-cloudwatchevents.rb +47 -0
- data/lib/aws-sdk-cloudwatchevents/client.rb +615 -0
- data/lib/aws-sdk-cloudwatchevents/client_api.rb +432 -0
- data/lib/aws-sdk-cloudwatchevents/customizations.rb +7 -0
- data/lib/aws-sdk-cloudwatchevents/errors.rb +23 -0
- data/lib/aws-sdk-cloudwatchevents/resource.rb +25 -0
- data/lib/aws-sdk-cloudwatchevents/types.rb +663 -0
- metadata +80 -0
@@ -0,0 +1,432 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing for info on making contributions:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
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
|
429
|
+
|
430
|
+
end
|
431
|
+
end
|
432
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing for info on making contributions:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module CloudWatchEvents
|
10
|
+
module Errors
|
11
|
+
|
12
|
+
extend Aws::Errors::DynamicErrors
|
13
|
+
|
14
|
+
# Raised when calling #load or #data on a resource class that can not be
|
15
|
+
# loaded. This can happen when:
|
16
|
+
#
|
17
|
+
# * A resource class has identifiers, but no data attributes.
|
18
|
+
# * Resource data is only available when making an API call that
|
19
|
+
# enumerates all resources of that type.
|
20
|
+
class ResourceNotLoadable < RuntimeError; end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|