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