aws-sdk-lambdapreview 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,392 @@
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 LambdaPreview
10
+ # @api private
11
+ module ClientApi
12
+
13
+ include Seahorse::Model
14
+
15
+ AddEventSourceRequest = Shapes::StructureShape.new(name: 'AddEventSourceRequest')
16
+ Blob = Shapes::BlobShape.new(name: 'Blob')
17
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
18
+ DeleteFunctionRequest = Shapes::StructureShape.new(name: 'DeleteFunctionRequest')
19
+ Description = Shapes::StringShape.new(name: 'Description')
20
+ EventSourceConfiguration = Shapes::StructureShape.new(name: 'EventSourceConfiguration')
21
+ EventSourceList = Shapes::ListShape.new(name: 'EventSourceList')
22
+ FunctionArn = Shapes::StringShape.new(name: 'FunctionArn')
23
+ FunctionCodeLocation = Shapes::StructureShape.new(name: 'FunctionCodeLocation')
24
+ FunctionConfiguration = Shapes::StructureShape.new(name: 'FunctionConfiguration')
25
+ FunctionList = Shapes::ListShape.new(name: 'FunctionList')
26
+ FunctionName = Shapes::StringShape.new(name: 'FunctionName')
27
+ GetEventSourceRequest = Shapes::StructureShape.new(name: 'GetEventSourceRequest')
28
+ GetFunctionConfigurationRequest = Shapes::StructureShape.new(name: 'GetFunctionConfigurationRequest')
29
+ GetFunctionRequest = Shapes::StructureShape.new(name: 'GetFunctionRequest')
30
+ GetFunctionResponse = Shapes::StructureShape.new(name: 'GetFunctionResponse')
31
+ Handler = Shapes::StringShape.new(name: 'Handler')
32
+ HttpStatus = Shapes::IntegerShape.new(name: 'HttpStatus')
33
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
34
+ InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
35
+ InvalidRequestContentException = Shapes::StructureShape.new(name: 'InvalidRequestContentException')
36
+ InvokeAsyncRequest = Shapes::StructureShape.new(name: 'InvokeAsyncRequest')
37
+ InvokeAsyncResponse = Shapes::StructureShape.new(name: 'InvokeAsyncResponse')
38
+ ListEventSourcesRequest = Shapes::StructureShape.new(name: 'ListEventSourcesRequest')
39
+ ListEventSourcesResponse = Shapes::StructureShape.new(name: 'ListEventSourcesResponse')
40
+ ListFunctionsRequest = Shapes::StructureShape.new(name: 'ListFunctionsRequest')
41
+ ListFunctionsResponse = Shapes::StructureShape.new(name: 'ListFunctionsResponse')
42
+ Long = Shapes::IntegerShape.new(name: 'Long')
43
+ Map = Shapes::MapShape.new(name: 'Map')
44
+ MaxListItems = Shapes::IntegerShape.new(name: 'MaxListItems')
45
+ MemorySize = Shapes::IntegerShape.new(name: 'MemorySize')
46
+ Mode = Shapes::StringShape.new(name: 'Mode')
47
+ RemoveEventSourceRequest = Shapes::StructureShape.new(name: 'RemoveEventSourceRequest')
48
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
49
+ RoleArn = Shapes::StringShape.new(name: 'RoleArn')
50
+ Runtime = Shapes::StringShape.new(name: 'Runtime')
51
+ ServiceException = Shapes::StructureShape.new(name: 'ServiceException')
52
+ String = Shapes::StringShape.new(name: 'String')
53
+ Timeout = Shapes::IntegerShape.new(name: 'Timeout')
54
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
55
+ UpdateFunctionConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateFunctionConfigurationRequest')
56
+ UploadFunctionRequest = Shapes::StructureShape.new(name: 'UploadFunctionRequest')
57
+
58
+ AddEventSourceRequest.add_member(:event_source, Shapes::ShapeRef.new(shape: String, required: true, location_name: "EventSource"))
59
+ AddEventSourceRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
60
+ AddEventSourceRequest.add_member(:role, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "Role"))
61
+ AddEventSourceRequest.add_member(:batch_size, Shapes::ShapeRef.new(shape: Integer, location_name: "BatchSize"))
62
+ AddEventSourceRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: Map, location_name: "Parameters"))
63
+ AddEventSourceRequest.struct_class = Types::AddEventSourceRequest
64
+
65
+ DeleteFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
66
+ DeleteFunctionRequest.struct_class = Types::DeleteFunctionRequest
67
+
68
+ EventSourceConfiguration.add_member(:uuid, Shapes::ShapeRef.new(shape: String, location_name: "UUID"))
69
+ EventSourceConfiguration.add_member(:batch_size, Shapes::ShapeRef.new(shape: Integer, location_name: "BatchSize"))
70
+ EventSourceConfiguration.add_member(:event_source, Shapes::ShapeRef.new(shape: String, location_name: "EventSource"))
71
+ EventSourceConfiguration.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, location_name: "FunctionName"))
72
+ EventSourceConfiguration.add_member(:parameters, Shapes::ShapeRef.new(shape: Map, location_name: "Parameters"))
73
+ EventSourceConfiguration.add_member(:role, Shapes::ShapeRef.new(shape: RoleArn, location_name: "Role"))
74
+ EventSourceConfiguration.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
75
+ EventSourceConfiguration.add_member(:is_active, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsActive"))
76
+ EventSourceConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "Status"))
77
+ EventSourceConfiguration.struct_class = Types::EventSourceConfiguration
78
+
79
+ EventSourceList.member = Shapes::ShapeRef.new(shape: EventSourceConfiguration)
80
+
81
+ FunctionCodeLocation.add_member(:repository_type, Shapes::ShapeRef.new(shape: String, location_name: "RepositoryType"))
82
+ FunctionCodeLocation.add_member(:location, Shapes::ShapeRef.new(shape: String, location_name: "Location"))
83
+ FunctionCodeLocation.struct_class = Types::FunctionCodeLocation
84
+
85
+ FunctionConfiguration.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, location_name: "FunctionName"))
86
+ FunctionConfiguration.add_member(:function_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "FunctionARN"))
87
+ FunctionConfiguration.add_member(:configuration_id, Shapes::ShapeRef.new(shape: String, location_name: "ConfigurationId"))
88
+ FunctionConfiguration.add_member(:runtime, Shapes::ShapeRef.new(shape: Runtime, location_name: "Runtime"))
89
+ FunctionConfiguration.add_member(:role, Shapes::ShapeRef.new(shape: RoleArn, location_name: "Role"))
90
+ FunctionConfiguration.add_member(:handler, Shapes::ShapeRef.new(shape: Handler, location_name: "Handler"))
91
+ FunctionConfiguration.add_member(:mode, Shapes::ShapeRef.new(shape: Mode, location_name: "Mode"))
92
+ FunctionConfiguration.add_member(:code_size, Shapes::ShapeRef.new(shape: Long, location_name: "CodeSize"))
93
+ FunctionConfiguration.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
94
+ FunctionConfiguration.add_member(:timeout, Shapes::ShapeRef.new(shape: Timeout, location_name: "Timeout"))
95
+ FunctionConfiguration.add_member(:memory_size, Shapes::ShapeRef.new(shape: MemorySize, location_name: "MemorySize"))
96
+ FunctionConfiguration.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
97
+ FunctionConfiguration.struct_class = Types::FunctionConfiguration
98
+
99
+ FunctionList.member = Shapes::ShapeRef.new(shape: FunctionConfiguration)
100
+
101
+ GetEventSourceRequest.add_member(:uuid, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "UUID"))
102
+ GetEventSourceRequest.struct_class = Types::GetEventSourceRequest
103
+
104
+ GetFunctionConfigurationRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
105
+ GetFunctionConfigurationRequest.struct_class = Types::GetFunctionConfigurationRequest
106
+
107
+ GetFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
108
+ GetFunctionRequest.struct_class = Types::GetFunctionRequest
109
+
110
+ GetFunctionResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: FunctionConfiguration, location_name: "Configuration"))
111
+ GetFunctionResponse.add_member(:code, Shapes::ShapeRef.new(shape: FunctionCodeLocation, location_name: "Code"))
112
+ GetFunctionResponse.struct_class = Types::GetFunctionResponse
113
+
114
+ InvokeAsyncRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
115
+ InvokeAsyncRequest.add_member(:invoke_args, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "InvokeArgs"))
116
+ InvokeAsyncRequest.struct_class = Types::InvokeAsyncRequest
117
+ InvokeAsyncRequest[:payload] = :invoke_args
118
+ InvokeAsyncRequest[:payload_member] = InvokeAsyncRequest.member(:invoke_args)
119
+
120
+ InvokeAsyncResponse.add_member(:status, Shapes::ShapeRef.new(shape: HttpStatus, location: "statusCode", location_name: "Status"))
121
+ InvokeAsyncResponse.struct_class = Types::InvokeAsyncResponse
122
+
123
+ ListEventSourcesRequest.add_member(:event_source_arn, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "EventSource"))
124
+ ListEventSourcesRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, location: "querystring", location_name: "FunctionName"))
125
+ ListEventSourcesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
126
+ ListEventSourcesRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxListItems, location: "querystring", location_name: "MaxItems"))
127
+ ListEventSourcesRequest.struct_class = Types::ListEventSourcesRequest
128
+
129
+ ListEventSourcesResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: String, location_name: "NextMarker"))
130
+ ListEventSourcesResponse.add_member(:event_sources, Shapes::ShapeRef.new(shape: EventSourceList, location_name: "EventSources"))
131
+ ListEventSourcesResponse.struct_class = Types::ListEventSourcesResponse
132
+
133
+ ListFunctionsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
134
+ ListFunctionsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxListItems, location: "querystring", location_name: "MaxItems"))
135
+ ListFunctionsRequest.struct_class = Types::ListFunctionsRequest
136
+
137
+ ListFunctionsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: String, location_name: "NextMarker"))
138
+ ListFunctionsResponse.add_member(:functions, Shapes::ShapeRef.new(shape: FunctionList, location_name: "Functions"))
139
+ ListFunctionsResponse.struct_class = Types::ListFunctionsResponse
140
+
141
+ Map.key = Shapes::ShapeRef.new(shape: String)
142
+ Map.value = Shapes::ShapeRef.new(shape: String)
143
+
144
+ RemoveEventSourceRequest.add_member(:uuid, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "UUID"))
145
+ RemoveEventSourceRequest.struct_class = Types::RemoveEventSourceRequest
146
+
147
+ UpdateFunctionConfigurationRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
148
+ UpdateFunctionConfigurationRequest.add_member(:role, Shapes::ShapeRef.new(shape: RoleArn, location: "querystring", location_name: "Role"))
149
+ UpdateFunctionConfigurationRequest.add_member(:handler, Shapes::ShapeRef.new(shape: Handler, location: "querystring", location_name: "Handler"))
150
+ UpdateFunctionConfigurationRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location: "querystring", location_name: "Description"))
151
+ UpdateFunctionConfigurationRequest.add_member(:timeout, Shapes::ShapeRef.new(shape: Timeout, location: "querystring", location_name: "Timeout"))
152
+ UpdateFunctionConfigurationRequest.add_member(:memory_size, Shapes::ShapeRef.new(shape: MemorySize, location: "querystring", location_name: "MemorySize"))
153
+ UpdateFunctionConfigurationRequest.struct_class = Types::UpdateFunctionConfigurationRequest
154
+
155
+ UploadFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
156
+ UploadFunctionRequest.add_member(:function_zip, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "FunctionZip"))
157
+ UploadFunctionRequest.add_member(:runtime, Shapes::ShapeRef.new(shape: Runtime, required: true, location: "querystring", location_name: "Runtime"))
158
+ UploadFunctionRequest.add_member(:role, Shapes::ShapeRef.new(shape: RoleArn, required: true, location: "querystring", location_name: "Role"))
159
+ UploadFunctionRequest.add_member(:handler, Shapes::ShapeRef.new(shape: Handler, required: true, location: "querystring", location_name: "Handler"))
160
+ UploadFunctionRequest.add_member(:mode, Shapes::ShapeRef.new(shape: Mode, required: true, location: "querystring", location_name: "Mode"))
161
+ UploadFunctionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location: "querystring", location_name: "Description"))
162
+ UploadFunctionRequest.add_member(:timeout, Shapes::ShapeRef.new(shape: Timeout, location: "querystring", location_name: "Timeout"))
163
+ UploadFunctionRequest.add_member(:memory_size, Shapes::ShapeRef.new(shape: MemorySize, location: "querystring", location_name: "MemorySize"))
164
+ UploadFunctionRequest.struct_class = Types::UploadFunctionRequest
165
+ UploadFunctionRequest[:payload] = :function_zip
166
+ UploadFunctionRequest[:payload_member] = UploadFunctionRequest.member(:function_zip)
167
+
168
+
169
+ # @api private
170
+ API = Seahorse::Model::Api.new.tap do |api|
171
+
172
+ api.version = "2014-11-11"
173
+
174
+ api.metadata = {
175
+ "endpointPrefix" => "lambda",
176
+ "protocol" => "rest-json",
177
+ "serviceFullName" => "AWS Lambda",
178
+ "signatureVersion" => "v4",
179
+ }
180
+
181
+ api.add_operation(:add_event_source, Seahorse::Model::Operation.new.tap do |o|
182
+ o.name = "AddEventSource"
183
+ o.http_method = "POST"
184
+ o.http_request_uri = "/2014-11-13/event-source-mappings/"
185
+ o.input = Shapes::ShapeRef.new(shape: AddEventSourceRequest)
186
+ o.output = Shapes::ShapeRef.new(shape: EventSourceConfiguration)
187
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException, metadata: {
188
+ "error" => {"httpStatusCode"=>500},
189
+ "exception" => true
190
+ })
191
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException, metadata: {
192
+ "error" => {"httpStatusCode"=>400},
193
+ "exception" => true
194
+ })
195
+ end)
196
+
197
+ api.add_operation(:delete_function, Seahorse::Model::Operation.new.tap do |o|
198
+ o.name = "DeleteFunction"
199
+ o.http_method = "DELETE"
200
+ o.http_request_uri = "/2014-11-13/functions/{FunctionName}"
201
+ o.input = Shapes::ShapeRef.new(shape: DeleteFunctionRequest)
202
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
203
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException, metadata: {
204
+ "error" => {"httpStatusCode"=>500},
205
+ "exception" => true
206
+ })
207
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
208
+ "error" => {"httpStatusCode"=>404},
209
+ "exception" => true
210
+ })
211
+ end)
212
+
213
+ api.add_operation(:get_event_source, Seahorse::Model::Operation.new.tap do |o|
214
+ o.name = "GetEventSource"
215
+ o.http_method = "GET"
216
+ o.http_request_uri = "/2014-11-13/event-source-mappings/{UUID}"
217
+ o.input = Shapes::ShapeRef.new(shape: GetEventSourceRequest)
218
+ o.output = Shapes::ShapeRef.new(shape: EventSourceConfiguration)
219
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException, metadata: {
220
+ "error" => {"httpStatusCode"=>500},
221
+ "exception" => true
222
+ })
223
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
224
+ "error" => {"httpStatusCode"=>404},
225
+ "exception" => true
226
+ })
227
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException, metadata: {
228
+ "error" => {"httpStatusCode"=>400},
229
+ "exception" => true
230
+ })
231
+ end)
232
+
233
+ api.add_operation(:get_function, Seahorse::Model::Operation.new.tap do |o|
234
+ o.name = "GetFunction"
235
+ o.http_method = "GET"
236
+ o.http_request_uri = "/2014-11-13/functions/{FunctionName}"
237
+ o.input = Shapes::ShapeRef.new(shape: GetFunctionRequest)
238
+ o.output = Shapes::ShapeRef.new(shape: GetFunctionResponse)
239
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException, metadata: {
240
+ "error" => {"httpStatusCode"=>500},
241
+ "exception" => true
242
+ })
243
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
244
+ "error" => {"httpStatusCode"=>404},
245
+ "exception" => true
246
+ })
247
+ end)
248
+
249
+ api.add_operation(:get_function_configuration, Seahorse::Model::Operation.new.tap do |o|
250
+ o.name = "GetFunctionConfiguration"
251
+ o.http_method = "GET"
252
+ o.http_request_uri = "/2014-11-13/functions/{FunctionName}/configuration"
253
+ o.input = Shapes::ShapeRef.new(shape: GetFunctionConfigurationRequest)
254
+ o.output = Shapes::ShapeRef.new(shape: FunctionConfiguration)
255
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException, metadata: {
256
+ "error" => {"httpStatusCode"=>500},
257
+ "exception" => true
258
+ })
259
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
260
+ "error" => {"httpStatusCode"=>404},
261
+ "exception" => true
262
+ })
263
+ end)
264
+
265
+ api.add_operation(:invoke_async, Seahorse::Model::Operation.new.tap do |o|
266
+ o.name = "InvokeAsync"
267
+ o.http_method = "POST"
268
+ o.http_request_uri = "/2014-11-13/functions/{FunctionName}/invoke-async/"
269
+ o.input = Shapes::ShapeRef.new(shape: InvokeAsyncRequest)
270
+ o.output = Shapes::ShapeRef.new(shape: InvokeAsyncResponse)
271
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException, metadata: {
272
+ "error" => {"httpStatusCode"=>500},
273
+ "exception" => true
274
+ })
275
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
276
+ "error" => {"httpStatusCode"=>404},
277
+ "exception" => true
278
+ })
279
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestContentException, metadata: {
280
+ "error" => {"httpStatusCode"=>400},
281
+ "exception" => true
282
+ })
283
+ end)
284
+
285
+ api.add_operation(:list_event_sources, Seahorse::Model::Operation.new.tap do |o|
286
+ o.name = "ListEventSources"
287
+ o.http_method = "GET"
288
+ o.http_request_uri = "/2014-11-13/event-source-mappings/"
289
+ o.input = Shapes::ShapeRef.new(shape: ListEventSourcesRequest)
290
+ o.output = Shapes::ShapeRef.new(shape: ListEventSourcesResponse)
291
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException, metadata: {
292
+ "error" => {"httpStatusCode"=>500},
293
+ "exception" => true
294
+ })
295
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
296
+ "error" => {"httpStatusCode"=>404},
297
+ "exception" => true
298
+ })
299
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException, metadata: {
300
+ "error" => {"httpStatusCode"=>400},
301
+ "exception" => true
302
+ })
303
+ o[:pager] = Aws::Pager.new(
304
+ limit_key: "max_items",
305
+ tokens: {
306
+ "next_marker" => "marker"
307
+ }
308
+ )
309
+ end)
310
+
311
+ api.add_operation(:list_functions, Seahorse::Model::Operation.new.tap do |o|
312
+ o.name = "ListFunctions"
313
+ o.http_method = "GET"
314
+ o.http_request_uri = "/2014-11-13/functions/"
315
+ o.input = Shapes::ShapeRef.new(shape: ListFunctionsRequest)
316
+ o.output = Shapes::ShapeRef.new(shape: ListFunctionsResponse)
317
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException, metadata: {
318
+ "error" => {"httpStatusCode"=>500},
319
+ "exception" => true
320
+ })
321
+ o[:pager] = Aws::Pager.new(
322
+ limit_key: "max_items",
323
+ tokens: {
324
+ "next_marker" => "marker"
325
+ }
326
+ )
327
+ end)
328
+
329
+ api.add_operation(:remove_event_source, Seahorse::Model::Operation.new.tap do |o|
330
+ o.name = "RemoveEventSource"
331
+ o.http_method = "DELETE"
332
+ o.http_request_uri = "/2014-11-13/event-source-mappings/{UUID}"
333
+ o.input = Shapes::ShapeRef.new(shape: RemoveEventSourceRequest)
334
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
335
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException, metadata: {
336
+ "error" => {"httpStatusCode"=>500},
337
+ "exception" => true
338
+ })
339
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
340
+ "error" => {"httpStatusCode"=>404},
341
+ "exception" => true
342
+ })
343
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException, metadata: {
344
+ "error" => {"httpStatusCode"=>400},
345
+ "exception" => true
346
+ })
347
+ end)
348
+
349
+ api.add_operation(:update_function_configuration, Seahorse::Model::Operation.new.tap do |o|
350
+ o.name = "UpdateFunctionConfiguration"
351
+ o.http_method = "PUT"
352
+ o.http_request_uri = "/2014-11-13/functions/{FunctionName}/configuration"
353
+ o.input = Shapes::ShapeRef.new(shape: UpdateFunctionConfigurationRequest)
354
+ o.output = Shapes::ShapeRef.new(shape: FunctionConfiguration)
355
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException, metadata: {
356
+ "error" => {"httpStatusCode"=>500},
357
+ "exception" => true
358
+ })
359
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
360
+ "error" => {"httpStatusCode"=>404},
361
+ "exception" => true
362
+ })
363
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException, metadata: {
364
+ "error" => {"httpStatusCode"=>400},
365
+ "exception" => true
366
+ })
367
+ end)
368
+
369
+ api.add_operation(:upload_function, Seahorse::Model::Operation.new.tap do |o|
370
+ o.name = "UploadFunction"
371
+ o.http_method = "PUT"
372
+ o.http_request_uri = "/2014-11-13/functions/{FunctionName}"
373
+ o.input = Shapes::ShapeRef.new(shape: UploadFunctionRequest)
374
+ o.output = Shapes::ShapeRef.new(shape: FunctionConfiguration)
375
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException, metadata: {
376
+ "error" => {"httpStatusCode"=>500},
377
+ "exception" => true
378
+ })
379
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException, metadata: {
380
+ "error" => {"httpStatusCode"=>400},
381
+ "exception" => true
382
+ })
383
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException, metadata: {
384
+ "error" => {"httpStatusCode"=>404},
385
+ "exception" => true
386
+ })
387
+ end)
388
+ end
389
+
390
+ end
391
+ end
392
+ end
@@ -0,0 +1,7 @@
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
+
@@ -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 LambdaPreview
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
@@ -0,0 +1,25 @@
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 LambdaPreview
10
+ class Resource
11
+
12
+ # @param options ({})
13
+ # @option options [Client] :client
14
+ def initialize(options = {})
15
+ @client = options[:client] || Client.new(options)
16
+ end
17
+
18
+ # @return [Client]
19
+ def client
20
+ @client
21
+ end
22
+
23
+ end
24
+ end
25
+ end