aws-sdk-lambda 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,726 @@
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 Lambda
10
+ # @api private
11
+ module ClientApi
12
+
13
+ include Seahorse::Model
14
+
15
+ Action = Shapes::StringShape.new(name: 'Action')
16
+ AddPermissionRequest = Shapes::StructureShape.new(name: 'AddPermissionRequest')
17
+ AddPermissionResponse = Shapes::StructureShape.new(name: 'AddPermissionResponse')
18
+ Alias = Shapes::StringShape.new(name: 'Alias')
19
+ AliasConfiguration = Shapes::StructureShape.new(name: 'AliasConfiguration')
20
+ AliasList = Shapes::ListShape.new(name: 'AliasList')
21
+ Arn = Shapes::StringShape.new(name: 'Arn')
22
+ BatchSize = Shapes::IntegerShape.new(name: 'BatchSize')
23
+ Blob = Shapes::BlobShape.new(name: 'Blob')
24
+ BlobStream = Shapes::BlobShape.new(name: 'BlobStream')
25
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
26
+ CodeStorageExceededException = Shapes::StructureShape.new(name: 'CodeStorageExceededException')
27
+ CreateAliasRequest = Shapes::StructureShape.new(name: 'CreateAliasRequest')
28
+ CreateEventSourceMappingRequest = Shapes::StructureShape.new(name: 'CreateEventSourceMappingRequest')
29
+ CreateFunctionRequest = Shapes::StructureShape.new(name: 'CreateFunctionRequest')
30
+ Date = Shapes::TimestampShape.new(name: 'Date')
31
+ DeleteAliasRequest = Shapes::StructureShape.new(name: 'DeleteAliasRequest')
32
+ DeleteEventSourceMappingRequest = Shapes::StructureShape.new(name: 'DeleteEventSourceMappingRequest')
33
+ DeleteFunctionRequest = Shapes::StructureShape.new(name: 'DeleteFunctionRequest')
34
+ Description = Shapes::StringShape.new(name: 'Description')
35
+ EC2AccessDeniedException = Shapes::StructureShape.new(name: 'EC2AccessDeniedException')
36
+ EC2ThrottledException = Shapes::StructureShape.new(name: 'EC2ThrottledException')
37
+ EC2UnexpectedException = Shapes::StructureShape.new(name: 'EC2UnexpectedException')
38
+ ENILimitReachedException = Shapes::StructureShape.new(name: 'ENILimitReachedException')
39
+ Enabled = Shapes::BooleanShape.new(name: 'Enabled')
40
+ Environment = Shapes::StructureShape.new(name: 'Environment')
41
+ EnvironmentError = Shapes::StructureShape.new(name: 'EnvironmentError')
42
+ EnvironmentResponse = Shapes::StructureShape.new(name: 'EnvironmentResponse')
43
+ EnvironmentVariableName = Shapes::StringShape.new(name: 'EnvironmentVariableName')
44
+ EnvironmentVariableValue = Shapes::StringShape.new(name: 'EnvironmentVariableValue')
45
+ EnvironmentVariables = Shapes::MapShape.new(name: 'EnvironmentVariables')
46
+ EventSourceMappingConfiguration = Shapes::StructureShape.new(name: 'EventSourceMappingConfiguration')
47
+ EventSourceMappingsList = Shapes::ListShape.new(name: 'EventSourceMappingsList')
48
+ EventSourcePosition = Shapes::StringShape.new(name: 'EventSourcePosition')
49
+ EventSourceToken = Shapes::StringShape.new(name: 'EventSourceToken')
50
+ FunctionArn = Shapes::StringShape.new(name: 'FunctionArn')
51
+ FunctionCode = Shapes::StructureShape.new(name: 'FunctionCode')
52
+ FunctionCodeLocation = Shapes::StructureShape.new(name: 'FunctionCodeLocation')
53
+ FunctionConfiguration = Shapes::StructureShape.new(name: 'FunctionConfiguration')
54
+ FunctionList = Shapes::ListShape.new(name: 'FunctionList')
55
+ FunctionName = Shapes::StringShape.new(name: 'FunctionName')
56
+ GetAliasRequest = Shapes::StructureShape.new(name: 'GetAliasRequest')
57
+ GetEventSourceMappingRequest = Shapes::StructureShape.new(name: 'GetEventSourceMappingRequest')
58
+ GetFunctionConfigurationRequest = Shapes::StructureShape.new(name: 'GetFunctionConfigurationRequest')
59
+ GetFunctionRequest = Shapes::StructureShape.new(name: 'GetFunctionRequest')
60
+ GetFunctionResponse = Shapes::StructureShape.new(name: 'GetFunctionResponse')
61
+ GetPolicyRequest = Shapes::StructureShape.new(name: 'GetPolicyRequest')
62
+ GetPolicyResponse = Shapes::StructureShape.new(name: 'GetPolicyResponse')
63
+ Handler = Shapes::StringShape.new(name: 'Handler')
64
+ HttpStatus = Shapes::IntegerShape.new(name: 'HttpStatus')
65
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
66
+ InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
67
+ InvalidRequestContentException = Shapes::StructureShape.new(name: 'InvalidRequestContentException')
68
+ InvalidSecurityGroupIDException = Shapes::StructureShape.new(name: 'InvalidSecurityGroupIDException')
69
+ InvalidSubnetIDException = Shapes::StructureShape.new(name: 'InvalidSubnetIDException')
70
+ InvalidZipFileException = Shapes::StructureShape.new(name: 'InvalidZipFileException')
71
+ InvocationRequest = Shapes::StructureShape.new(name: 'InvocationRequest')
72
+ InvocationResponse = Shapes::StructureShape.new(name: 'InvocationResponse')
73
+ InvocationType = Shapes::StringShape.new(name: 'InvocationType')
74
+ InvokeAsyncRequest = Shapes::StructureShape.new(name: 'InvokeAsyncRequest')
75
+ InvokeAsyncResponse = Shapes::StructureShape.new(name: 'InvokeAsyncResponse')
76
+ KMSAccessDeniedException = Shapes::StructureShape.new(name: 'KMSAccessDeniedException')
77
+ KMSDisabledException = Shapes::StructureShape.new(name: 'KMSDisabledException')
78
+ KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
79
+ KMSKeyArn = Shapes::StringShape.new(name: 'KMSKeyArn')
80
+ KMSNotFoundException = Shapes::StructureShape.new(name: 'KMSNotFoundException')
81
+ ListAliasesRequest = Shapes::StructureShape.new(name: 'ListAliasesRequest')
82
+ ListAliasesResponse = Shapes::StructureShape.new(name: 'ListAliasesResponse')
83
+ ListEventSourceMappingsRequest = Shapes::StructureShape.new(name: 'ListEventSourceMappingsRequest')
84
+ ListEventSourceMappingsResponse = Shapes::StructureShape.new(name: 'ListEventSourceMappingsResponse')
85
+ ListFunctionsRequest = Shapes::StructureShape.new(name: 'ListFunctionsRequest')
86
+ ListFunctionsResponse = Shapes::StructureShape.new(name: 'ListFunctionsResponse')
87
+ ListVersionsByFunctionRequest = Shapes::StructureShape.new(name: 'ListVersionsByFunctionRequest')
88
+ ListVersionsByFunctionResponse = Shapes::StructureShape.new(name: 'ListVersionsByFunctionResponse')
89
+ LogType = Shapes::StringShape.new(name: 'LogType')
90
+ Long = Shapes::IntegerShape.new(name: 'Long')
91
+ MaxListItems = Shapes::IntegerShape.new(name: 'MaxListItems')
92
+ MemorySize = Shapes::IntegerShape.new(name: 'MemorySize')
93
+ PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
94
+ Principal = Shapes::StringShape.new(name: 'Principal')
95
+ PublishVersionRequest = Shapes::StructureShape.new(name: 'PublishVersionRequest')
96
+ Qualifier = Shapes::StringShape.new(name: 'Qualifier')
97
+ RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
98
+ RequestTooLargeException = Shapes::StructureShape.new(name: 'RequestTooLargeException')
99
+ ResourceConflictException = Shapes::StructureShape.new(name: 'ResourceConflictException')
100
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
101
+ RoleArn = Shapes::StringShape.new(name: 'RoleArn')
102
+ Runtime = Shapes::StringShape.new(name: 'Runtime')
103
+ S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
104
+ S3Key = Shapes::StringShape.new(name: 'S3Key')
105
+ S3ObjectVersion = Shapes::StringShape.new(name: 'S3ObjectVersion')
106
+ SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
107
+ SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
108
+ ServiceException = Shapes::StructureShape.new(name: 'ServiceException')
109
+ SourceOwner = Shapes::StringShape.new(name: 'SourceOwner')
110
+ StatementId = Shapes::StringShape.new(name: 'StatementId')
111
+ String = Shapes::StringShape.new(name: 'String')
112
+ SubnetIPAddressLimitReachedException = Shapes::StructureShape.new(name: 'SubnetIPAddressLimitReachedException')
113
+ SubnetId = Shapes::StringShape.new(name: 'SubnetId')
114
+ SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
115
+ ThrottleReason = Shapes::StringShape.new(name: 'ThrottleReason')
116
+ Timeout = Shapes::IntegerShape.new(name: 'Timeout')
117
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
118
+ TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
119
+ UnsupportedMediaTypeException = Shapes::StructureShape.new(name: 'UnsupportedMediaTypeException')
120
+ UpdateAliasRequest = Shapes::StructureShape.new(name: 'UpdateAliasRequest')
121
+ UpdateEventSourceMappingRequest = Shapes::StructureShape.new(name: 'UpdateEventSourceMappingRequest')
122
+ UpdateFunctionCodeRequest = Shapes::StructureShape.new(name: 'UpdateFunctionCodeRequest')
123
+ UpdateFunctionConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateFunctionConfigurationRequest')
124
+ Version = Shapes::StringShape.new(name: 'Version')
125
+ VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
126
+ VpcConfigResponse = Shapes::StructureShape.new(name: 'VpcConfigResponse')
127
+ VpcId = Shapes::StringShape.new(name: 'VpcId')
128
+
129
+ AddPermissionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
130
+ AddPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "StatementId"))
131
+ AddPermissionRequest.add_member(:action, Shapes::ShapeRef.new(shape: Action, required: true, location_name: "Action"))
132
+ AddPermissionRequest.add_member(:principal, Shapes::ShapeRef.new(shape: Principal, required: true, location_name: "Principal"))
133
+ AddPermissionRequest.add_member(:source_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SourceArn"))
134
+ AddPermissionRequest.add_member(:source_account, Shapes::ShapeRef.new(shape: SourceOwner, location_name: "SourceAccount"))
135
+ AddPermissionRequest.add_member(:event_source_token, Shapes::ShapeRef.new(shape: EventSourceToken, location_name: "EventSourceToken"))
136
+ AddPermissionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
137
+ AddPermissionRequest.struct_class = Types::AddPermissionRequest
138
+
139
+ AddPermissionResponse.add_member(:statement, Shapes::ShapeRef.new(shape: String, location_name: "Statement"))
140
+ AddPermissionResponse.struct_class = Types::AddPermissionResponse
141
+
142
+ AliasConfiguration.add_member(:alias_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "AliasArn"))
143
+ AliasConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: Alias, location_name: "Name"))
144
+ AliasConfiguration.add_member(:function_version, Shapes::ShapeRef.new(shape: Version, location_name: "FunctionVersion"))
145
+ AliasConfiguration.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
146
+ AliasConfiguration.struct_class = Types::AliasConfiguration
147
+
148
+ AliasList.member = Shapes::ShapeRef.new(shape: AliasConfiguration)
149
+
150
+ CreateAliasRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
151
+ CreateAliasRequest.add_member(:name, Shapes::ShapeRef.new(shape: Alias, required: true, location_name: "Name"))
152
+ CreateAliasRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: Version, required: true, location_name: "FunctionVersion"))
153
+ CreateAliasRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
154
+ CreateAliasRequest.struct_class = Types::CreateAliasRequest
155
+
156
+ CreateEventSourceMappingRequest.add_member(:event_source_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "EventSourceArn"))
157
+ CreateEventSourceMappingRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
158
+ CreateEventSourceMappingRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "Enabled"))
159
+ CreateEventSourceMappingRequest.add_member(:batch_size, Shapes::ShapeRef.new(shape: BatchSize, location_name: "BatchSize"))
160
+ CreateEventSourceMappingRequest.add_member(:starting_position, Shapes::ShapeRef.new(shape: EventSourcePosition, required: true, location_name: "StartingPosition"))
161
+ CreateEventSourceMappingRequest.struct_class = Types::CreateEventSourceMappingRequest
162
+
163
+ CreateFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
164
+ CreateFunctionRequest.add_member(:runtime, Shapes::ShapeRef.new(shape: Runtime, required: true, location_name: "Runtime"))
165
+ CreateFunctionRequest.add_member(:role, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "Role"))
166
+ CreateFunctionRequest.add_member(:handler, Shapes::ShapeRef.new(shape: Handler, required: true, location_name: "Handler"))
167
+ CreateFunctionRequest.add_member(:code, Shapes::ShapeRef.new(shape: FunctionCode, required: true, location_name: "Code"))
168
+ CreateFunctionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
169
+ CreateFunctionRequest.add_member(:timeout, Shapes::ShapeRef.new(shape: Timeout, location_name: "Timeout"))
170
+ CreateFunctionRequest.add_member(:memory_size, Shapes::ShapeRef.new(shape: MemorySize, location_name: "MemorySize"))
171
+ CreateFunctionRequest.add_member(:publish, Shapes::ShapeRef.new(shape: Boolean, location_name: "Publish"))
172
+ CreateFunctionRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "VpcConfig"))
173
+ CreateFunctionRequest.add_member(:environment, Shapes::ShapeRef.new(shape: Environment, location_name: "Environment"))
174
+ CreateFunctionRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
175
+ CreateFunctionRequest.struct_class = Types::CreateFunctionRequest
176
+
177
+ DeleteAliasRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
178
+ DeleteAliasRequest.add_member(:name, Shapes::ShapeRef.new(shape: Alias, required: true, location: "uri", location_name: "Name"))
179
+ DeleteAliasRequest.struct_class = Types::DeleteAliasRequest
180
+
181
+ DeleteEventSourceMappingRequest.add_member(:uuid, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "UUID"))
182
+ DeleteEventSourceMappingRequest.struct_class = Types::DeleteEventSourceMappingRequest
183
+
184
+ DeleteFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
185
+ DeleteFunctionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
186
+ DeleteFunctionRequest.struct_class = Types::DeleteFunctionRequest
187
+
188
+ Environment.add_member(:variables, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "Variables"))
189
+ Environment.struct_class = Types::Environment
190
+
191
+ EnvironmentError.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "ErrorCode"))
192
+ EnvironmentError.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
193
+ EnvironmentError.struct_class = Types::EnvironmentError
194
+
195
+ EnvironmentResponse.add_member(:variables, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "Variables"))
196
+ EnvironmentResponse.add_member(:error, Shapes::ShapeRef.new(shape: EnvironmentError, location_name: "Error"))
197
+ EnvironmentResponse.struct_class = Types::EnvironmentResponse
198
+
199
+ EnvironmentVariables.key = Shapes::ShapeRef.new(shape: EnvironmentVariableName)
200
+ EnvironmentVariables.value = Shapes::ShapeRef.new(shape: EnvironmentVariableValue)
201
+
202
+ EventSourceMappingConfiguration.add_member(:uuid, Shapes::ShapeRef.new(shape: String, location_name: "UUID"))
203
+ EventSourceMappingConfiguration.add_member(:batch_size, Shapes::ShapeRef.new(shape: BatchSize, location_name: "BatchSize"))
204
+ EventSourceMappingConfiguration.add_member(:event_source_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "EventSourceArn"))
205
+ EventSourceMappingConfiguration.add_member(:function_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "FunctionArn"))
206
+ EventSourceMappingConfiguration.add_member(:last_modified, Shapes::ShapeRef.new(shape: Date, location_name: "LastModified"))
207
+ EventSourceMappingConfiguration.add_member(:last_processing_result, Shapes::ShapeRef.new(shape: String, location_name: "LastProcessingResult"))
208
+ EventSourceMappingConfiguration.add_member(:state, Shapes::ShapeRef.new(shape: String, location_name: "State"))
209
+ EventSourceMappingConfiguration.add_member(:state_transition_reason, Shapes::ShapeRef.new(shape: String, location_name: "StateTransitionReason"))
210
+ EventSourceMappingConfiguration.struct_class = Types::EventSourceMappingConfiguration
211
+
212
+ EventSourceMappingsList.member = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
213
+
214
+ FunctionCode.add_member(:zip_file, Shapes::ShapeRef.new(shape: Blob, location_name: "ZipFile"))
215
+ FunctionCode.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "S3Bucket"))
216
+ FunctionCode.add_member(:s3_key, Shapes::ShapeRef.new(shape: S3Key, location_name: "S3Key"))
217
+ FunctionCode.add_member(:s3_object_version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "S3ObjectVersion"))
218
+ FunctionCode.struct_class = Types::FunctionCode
219
+
220
+ FunctionCodeLocation.add_member(:repository_type, Shapes::ShapeRef.new(shape: String, location_name: "RepositoryType"))
221
+ FunctionCodeLocation.add_member(:location, Shapes::ShapeRef.new(shape: String, location_name: "Location"))
222
+ FunctionCodeLocation.struct_class = Types::FunctionCodeLocation
223
+
224
+ FunctionConfiguration.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, location_name: "FunctionName"))
225
+ FunctionConfiguration.add_member(:function_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "FunctionArn"))
226
+ FunctionConfiguration.add_member(:runtime, Shapes::ShapeRef.new(shape: Runtime, location_name: "Runtime"))
227
+ FunctionConfiguration.add_member(:role, Shapes::ShapeRef.new(shape: RoleArn, location_name: "Role"))
228
+ FunctionConfiguration.add_member(:handler, Shapes::ShapeRef.new(shape: Handler, location_name: "Handler"))
229
+ FunctionConfiguration.add_member(:code_size, Shapes::ShapeRef.new(shape: Long, location_name: "CodeSize"))
230
+ FunctionConfiguration.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
231
+ FunctionConfiguration.add_member(:timeout, Shapes::ShapeRef.new(shape: Timeout, location_name: "Timeout"))
232
+ FunctionConfiguration.add_member(:memory_size, Shapes::ShapeRef.new(shape: MemorySize, location_name: "MemorySize"))
233
+ FunctionConfiguration.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
234
+ FunctionConfiguration.add_member(:code_sha_256, Shapes::ShapeRef.new(shape: String, location_name: "CodeSha256"))
235
+ FunctionConfiguration.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "Version"))
236
+ FunctionConfiguration.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfigResponse, location_name: "VpcConfig"))
237
+ FunctionConfiguration.add_member(:environment, Shapes::ShapeRef.new(shape: EnvironmentResponse, location_name: "Environment"))
238
+ FunctionConfiguration.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
239
+ FunctionConfiguration.struct_class = Types::FunctionConfiguration
240
+
241
+ FunctionList.member = Shapes::ShapeRef.new(shape: FunctionConfiguration)
242
+
243
+ GetAliasRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
244
+ GetAliasRequest.add_member(:name, Shapes::ShapeRef.new(shape: Alias, required: true, location: "uri", location_name: "Name"))
245
+ GetAliasRequest.struct_class = Types::GetAliasRequest
246
+
247
+ GetEventSourceMappingRequest.add_member(:uuid, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "UUID"))
248
+ GetEventSourceMappingRequest.struct_class = Types::GetEventSourceMappingRequest
249
+
250
+ GetFunctionConfigurationRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
251
+ GetFunctionConfigurationRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
252
+ GetFunctionConfigurationRequest.struct_class = Types::GetFunctionConfigurationRequest
253
+
254
+ GetFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
255
+ GetFunctionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
256
+ GetFunctionRequest.struct_class = Types::GetFunctionRequest
257
+
258
+ GetFunctionResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: FunctionConfiguration, location_name: "Configuration"))
259
+ GetFunctionResponse.add_member(:code, Shapes::ShapeRef.new(shape: FunctionCodeLocation, location_name: "Code"))
260
+ GetFunctionResponse.struct_class = Types::GetFunctionResponse
261
+
262
+ GetPolicyRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
263
+ GetPolicyRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
264
+ GetPolicyRequest.struct_class = Types::GetPolicyRequest
265
+
266
+ GetPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
267
+ GetPolicyResponse.struct_class = Types::GetPolicyResponse
268
+
269
+ InvocationRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
270
+ InvocationRequest.add_member(:invocation_type, Shapes::ShapeRef.new(shape: InvocationType, location: "header", location_name: "X-Amz-Invocation-Type"))
271
+ InvocationRequest.add_member(:log_type, Shapes::ShapeRef.new(shape: LogType, location: "header", location_name: "X-Amz-Log-Type"))
272
+ InvocationRequest.add_member(:client_context, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "X-Amz-Client-Context"))
273
+ InvocationRequest.add_member(:payload, Shapes::ShapeRef.new(shape: Blob, location_name: "Payload"))
274
+ InvocationRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
275
+ InvocationRequest.struct_class = Types::InvocationRequest
276
+ InvocationRequest[:payload] = :payload
277
+ InvocationRequest[:payload_member] = InvocationRequest.member(:payload)
278
+
279
+ InvocationResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: Integer, location: "statusCode", location_name: "StatusCode"))
280
+ InvocationResponse.add_member(:function_error, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "X-Amz-Function-Error"))
281
+ InvocationResponse.add_member(:log_result, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "X-Amz-Log-Result"))
282
+ InvocationResponse.add_member(:payload, Shapes::ShapeRef.new(shape: Blob, location_name: "Payload"))
283
+ InvocationResponse.struct_class = Types::InvocationResponse
284
+ InvocationResponse[:payload] = :payload
285
+ InvocationResponse[:payload_member] = InvocationResponse.member(:payload)
286
+
287
+ InvokeAsyncRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
288
+ InvokeAsyncRequest.add_member(:invoke_args, Shapes::ShapeRef.new(shape: BlobStream, required: true, location_name: "InvokeArgs"))
289
+ InvokeAsyncRequest.struct_class = Types::InvokeAsyncRequest
290
+ InvokeAsyncRequest[:payload] = :invoke_args
291
+ InvokeAsyncRequest[:payload_member] = InvokeAsyncRequest.member(:invoke_args)
292
+
293
+ InvokeAsyncResponse.add_member(:status, Shapes::ShapeRef.new(shape: HttpStatus, location: "statusCode", location_name: "Status"))
294
+ InvokeAsyncResponse.struct_class = Types::InvokeAsyncResponse
295
+
296
+ ListAliasesRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
297
+ ListAliasesRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: Version, location: "querystring", location_name: "FunctionVersion"))
298
+ ListAliasesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
299
+ ListAliasesRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxListItems, location: "querystring", location_name: "MaxItems"))
300
+ ListAliasesRequest.struct_class = Types::ListAliasesRequest
301
+
302
+ ListAliasesResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: String, location_name: "NextMarker"))
303
+ ListAliasesResponse.add_member(:aliases, Shapes::ShapeRef.new(shape: AliasList, location_name: "Aliases"))
304
+ ListAliasesResponse.struct_class = Types::ListAliasesResponse
305
+
306
+ ListEventSourceMappingsRequest.add_member(:event_source_arn, Shapes::ShapeRef.new(shape: Arn, location: "querystring", location_name: "EventSourceArn"))
307
+ ListEventSourceMappingsRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, location: "querystring", location_name: "FunctionName"))
308
+ ListEventSourceMappingsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
309
+ ListEventSourceMappingsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxListItems, location: "querystring", location_name: "MaxItems"))
310
+ ListEventSourceMappingsRequest.struct_class = Types::ListEventSourceMappingsRequest
311
+
312
+ ListEventSourceMappingsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: String, location_name: "NextMarker"))
313
+ ListEventSourceMappingsResponse.add_member(:event_source_mappings, Shapes::ShapeRef.new(shape: EventSourceMappingsList, location_name: "EventSourceMappings"))
314
+ ListEventSourceMappingsResponse.struct_class = Types::ListEventSourceMappingsResponse
315
+
316
+ ListFunctionsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
317
+ ListFunctionsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxListItems, location: "querystring", location_name: "MaxItems"))
318
+ ListFunctionsRequest.struct_class = Types::ListFunctionsRequest
319
+
320
+ ListFunctionsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: String, location_name: "NextMarker"))
321
+ ListFunctionsResponse.add_member(:functions, Shapes::ShapeRef.new(shape: FunctionList, location_name: "Functions"))
322
+ ListFunctionsResponse.struct_class = Types::ListFunctionsResponse
323
+
324
+ ListVersionsByFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
325
+ ListVersionsByFunctionRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
326
+ ListVersionsByFunctionRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxListItems, location: "querystring", location_name: "MaxItems"))
327
+ ListVersionsByFunctionRequest.struct_class = Types::ListVersionsByFunctionRequest
328
+
329
+ ListVersionsByFunctionResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: String, location_name: "NextMarker"))
330
+ ListVersionsByFunctionResponse.add_member(:versions, Shapes::ShapeRef.new(shape: FunctionList, location_name: "Versions"))
331
+ ListVersionsByFunctionResponse.struct_class = Types::ListVersionsByFunctionResponse
332
+
333
+ PublishVersionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
334
+ PublishVersionRequest.add_member(:code_sha_256, Shapes::ShapeRef.new(shape: String, location_name: "CodeSha256"))
335
+ PublishVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
336
+ PublishVersionRequest.struct_class = Types::PublishVersionRequest
337
+
338
+ RemovePermissionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
339
+ RemovePermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location: "uri", location_name: "StatementId"))
340
+ RemovePermissionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
341
+ RemovePermissionRequest.struct_class = Types::RemovePermissionRequest
342
+
343
+ SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
344
+
345
+ SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
346
+
347
+ UpdateAliasRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
348
+ UpdateAliasRequest.add_member(:name, Shapes::ShapeRef.new(shape: Alias, required: true, location: "uri", location_name: "Name"))
349
+ UpdateAliasRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: Version, location_name: "FunctionVersion"))
350
+ UpdateAliasRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
351
+ UpdateAliasRequest.struct_class = Types::UpdateAliasRequest
352
+
353
+ UpdateEventSourceMappingRequest.add_member(:uuid, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "UUID"))
354
+ UpdateEventSourceMappingRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, location_name: "FunctionName"))
355
+ UpdateEventSourceMappingRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "Enabled"))
356
+ UpdateEventSourceMappingRequest.add_member(:batch_size, Shapes::ShapeRef.new(shape: BatchSize, location_name: "BatchSize"))
357
+ UpdateEventSourceMappingRequest.struct_class = Types::UpdateEventSourceMappingRequest
358
+
359
+ UpdateFunctionCodeRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
360
+ UpdateFunctionCodeRequest.add_member(:zip_file, Shapes::ShapeRef.new(shape: Blob, location_name: "ZipFile"))
361
+ UpdateFunctionCodeRequest.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "S3Bucket"))
362
+ UpdateFunctionCodeRequest.add_member(:s3_key, Shapes::ShapeRef.new(shape: S3Key, location_name: "S3Key"))
363
+ UpdateFunctionCodeRequest.add_member(:s3_object_version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "S3ObjectVersion"))
364
+ UpdateFunctionCodeRequest.add_member(:publish, Shapes::ShapeRef.new(shape: Boolean, location_name: "Publish"))
365
+ UpdateFunctionCodeRequest.struct_class = Types::UpdateFunctionCodeRequest
366
+
367
+ UpdateFunctionConfigurationRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
368
+ UpdateFunctionConfigurationRequest.add_member(:role, Shapes::ShapeRef.new(shape: RoleArn, location_name: "Role"))
369
+ UpdateFunctionConfigurationRequest.add_member(:handler, Shapes::ShapeRef.new(shape: Handler, location_name: "Handler"))
370
+ UpdateFunctionConfigurationRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
371
+ UpdateFunctionConfigurationRequest.add_member(:timeout, Shapes::ShapeRef.new(shape: Timeout, location_name: "Timeout"))
372
+ UpdateFunctionConfigurationRequest.add_member(:memory_size, Shapes::ShapeRef.new(shape: MemorySize, location_name: "MemorySize"))
373
+ UpdateFunctionConfigurationRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "VpcConfig"))
374
+ UpdateFunctionConfigurationRequest.add_member(:environment, Shapes::ShapeRef.new(shape: Environment, location_name: "Environment"))
375
+ UpdateFunctionConfigurationRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
376
+ UpdateFunctionConfigurationRequest.add_member(:runtime, Shapes::ShapeRef.new(shape: Runtime, location_name: "Runtime"))
377
+ UpdateFunctionConfigurationRequest.struct_class = Types::UpdateFunctionConfigurationRequest
378
+
379
+ VpcConfig.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, location_name: "SubnetIds"))
380
+ VpcConfig.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, location_name: "SecurityGroupIds"))
381
+ VpcConfig.struct_class = Types::VpcConfig
382
+
383
+ VpcConfigResponse.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, location_name: "SubnetIds"))
384
+ VpcConfigResponse.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, location_name: "SecurityGroupIds"))
385
+ VpcConfigResponse.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "VpcId"))
386
+ VpcConfigResponse.struct_class = Types::VpcConfigResponse
387
+
388
+
389
+ # @api private
390
+ API = Seahorse::Model::Api.new.tap do |api|
391
+
392
+ api.version = "2015-03-31"
393
+
394
+ api.metadata = {
395
+ "endpointPrefix" => "lambda",
396
+ "protocol" => "rest-json",
397
+ "serviceFullName" => "AWS Lambda",
398
+ "signatureVersion" => "v4",
399
+ }
400
+
401
+ api.add_operation(:add_permission, Seahorse::Model::Operation.new.tap do |o|
402
+ o.name = "AddPermission"
403
+ o.http_method = "POST"
404
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/policy"
405
+ o.input = Shapes::ShapeRef.new(shape: AddPermissionRequest)
406
+ o.output = Shapes::ShapeRef.new(shape: AddPermissionResponse)
407
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
408
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
409
+ o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
410
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
411
+ o.errors << Shapes::ShapeRef.new(shape: PolicyLengthExceededException)
412
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
413
+ end)
414
+
415
+ api.add_operation(:create_alias, Seahorse::Model::Operation.new.tap do |o|
416
+ o.name = "CreateAlias"
417
+ o.http_method = "POST"
418
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/aliases"
419
+ o.input = Shapes::ShapeRef.new(shape: CreateAliasRequest)
420
+ o.output = Shapes::ShapeRef.new(shape: AliasConfiguration)
421
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
422
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
423
+ o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
424
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
425
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
426
+ end)
427
+
428
+ api.add_operation(:create_event_source_mapping, Seahorse::Model::Operation.new.tap do |o|
429
+ o.name = "CreateEventSourceMapping"
430
+ o.http_method = "POST"
431
+ o.http_request_uri = "/2015-03-31/event-source-mappings/"
432
+ o.input = Shapes::ShapeRef.new(shape: CreateEventSourceMappingRequest)
433
+ o.output = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
434
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
435
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
436
+ o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
437
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
438
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
439
+ end)
440
+
441
+ api.add_operation(:create_function, Seahorse::Model::Operation.new.tap do |o|
442
+ o.name = "CreateFunction"
443
+ o.http_method = "POST"
444
+ o.http_request_uri = "/2015-03-31/functions"
445
+ o.input = Shapes::ShapeRef.new(shape: CreateFunctionRequest)
446
+ o.output = Shapes::ShapeRef.new(shape: FunctionConfiguration)
447
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
448
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
449
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
450
+ o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
451
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
452
+ o.errors << Shapes::ShapeRef.new(shape: CodeStorageExceededException)
453
+ end)
454
+
455
+ api.add_operation(:delete_alias, Seahorse::Model::Operation.new.tap do |o|
456
+ o.name = "DeleteAlias"
457
+ o.http_method = "DELETE"
458
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/aliases/{Name}"
459
+ o.input = Shapes::ShapeRef.new(shape: DeleteAliasRequest)
460
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
461
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
462
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
463
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
464
+ end)
465
+
466
+ api.add_operation(:delete_event_source_mapping, Seahorse::Model::Operation.new.tap do |o|
467
+ o.name = "DeleteEventSourceMapping"
468
+ o.http_method = "DELETE"
469
+ o.http_request_uri = "/2015-03-31/event-source-mappings/{UUID}"
470
+ o.input = Shapes::ShapeRef.new(shape: DeleteEventSourceMappingRequest)
471
+ o.output = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
472
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
473
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
474
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
475
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
476
+ end)
477
+
478
+ api.add_operation(:delete_function, Seahorse::Model::Operation.new.tap do |o|
479
+ o.name = "DeleteFunction"
480
+ o.http_method = "DELETE"
481
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}"
482
+ o.input = Shapes::ShapeRef.new(shape: DeleteFunctionRequest)
483
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
484
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
485
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
486
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
487
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
488
+ o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
489
+ end)
490
+
491
+ api.add_operation(:get_alias, Seahorse::Model::Operation.new.tap do |o|
492
+ o.name = "GetAlias"
493
+ o.http_method = "GET"
494
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/aliases/{Name}"
495
+ o.input = Shapes::ShapeRef.new(shape: GetAliasRequest)
496
+ o.output = Shapes::ShapeRef.new(shape: AliasConfiguration)
497
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
498
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
499
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
500
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
501
+ end)
502
+
503
+ api.add_operation(:get_event_source_mapping, Seahorse::Model::Operation.new.tap do |o|
504
+ o.name = "GetEventSourceMapping"
505
+ o.http_method = "GET"
506
+ o.http_request_uri = "/2015-03-31/event-source-mappings/{UUID}"
507
+ o.input = Shapes::ShapeRef.new(shape: GetEventSourceMappingRequest)
508
+ o.output = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
509
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
510
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
511
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
512
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
513
+ end)
514
+
515
+ api.add_operation(:get_function, Seahorse::Model::Operation.new.tap do |o|
516
+ o.name = "GetFunction"
517
+ o.http_method = "GET"
518
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}"
519
+ o.input = Shapes::ShapeRef.new(shape: GetFunctionRequest)
520
+ o.output = Shapes::ShapeRef.new(shape: GetFunctionResponse)
521
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
522
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
523
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
524
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
525
+ end)
526
+
527
+ api.add_operation(:get_function_configuration, Seahorse::Model::Operation.new.tap do |o|
528
+ o.name = "GetFunctionConfiguration"
529
+ o.http_method = "GET"
530
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/configuration"
531
+ o.input = Shapes::ShapeRef.new(shape: GetFunctionConfigurationRequest)
532
+ o.output = Shapes::ShapeRef.new(shape: FunctionConfiguration)
533
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
534
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
535
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
536
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
537
+ end)
538
+
539
+ api.add_operation(:get_policy, Seahorse::Model::Operation.new.tap do |o|
540
+ o.name = "GetPolicy"
541
+ o.http_method = "GET"
542
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/policy"
543
+ o.input = Shapes::ShapeRef.new(shape: GetPolicyRequest)
544
+ o.output = Shapes::ShapeRef.new(shape: GetPolicyResponse)
545
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
546
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
547
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
548
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
549
+ end)
550
+
551
+ api.add_operation(:invoke, Seahorse::Model::Operation.new.tap do |o|
552
+ o.name = "Invoke"
553
+ o.http_method = "POST"
554
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/invocations"
555
+ o.input = Shapes::ShapeRef.new(shape: InvocationRequest)
556
+ o.output = Shapes::ShapeRef.new(shape: InvocationResponse)
557
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
558
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
559
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestContentException)
560
+ o.errors << Shapes::ShapeRef.new(shape: RequestTooLargeException)
561
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedMediaTypeException)
562
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
563
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
564
+ o.errors << Shapes::ShapeRef.new(shape: EC2UnexpectedException)
565
+ o.errors << Shapes::ShapeRef.new(shape: SubnetIPAddressLimitReachedException)
566
+ o.errors << Shapes::ShapeRef.new(shape: ENILimitReachedException)
567
+ o.errors << Shapes::ShapeRef.new(shape: EC2ThrottledException)
568
+ o.errors << Shapes::ShapeRef.new(shape: EC2AccessDeniedException)
569
+ o.errors << Shapes::ShapeRef.new(shape: InvalidSubnetIDException)
570
+ o.errors << Shapes::ShapeRef.new(shape: InvalidSecurityGroupIDException)
571
+ o.errors << Shapes::ShapeRef.new(shape: InvalidZipFileException)
572
+ o.errors << Shapes::ShapeRef.new(shape: KMSDisabledException)
573
+ o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
574
+ o.errors << Shapes::ShapeRef.new(shape: KMSAccessDeniedException)
575
+ o.errors << Shapes::ShapeRef.new(shape: KMSNotFoundException)
576
+ end)
577
+
578
+ api.add_operation(:invoke_async, Seahorse::Model::Operation.new.tap do |o|
579
+ o.name = "InvokeAsync"
580
+ o.http_method = "POST"
581
+ o.http_request_uri = "/2014-11-13/functions/{FunctionName}/invoke-async/"
582
+ o.deprecated = true
583
+ o.input = Shapes::ShapeRef.new(shape: InvokeAsyncRequest)
584
+ o.output = Shapes::ShapeRef.new(shape: InvokeAsyncResponse)
585
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
586
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
587
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestContentException)
588
+ end)
589
+
590
+ api.add_operation(:list_aliases, Seahorse::Model::Operation.new.tap do |o|
591
+ o.name = "ListAliases"
592
+ o.http_method = "GET"
593
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/aliases"
594
+ o.input = Shapes::ShapeRef.new(shape: ListAliasesRequest)
595
+ o.output = Shapes::ShapeRef.new(shape: ListAliasesResponse)
596
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
597
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
598
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
599
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
600
+ end)
601
+
602
+ api.add_operation(:list_event_source_mappings, Seahorse::Model::Operation.new.tap do |o|
603
+ o.name = "ListEventSourceMappings"
604
+ o.http_method = "GET"
605
+ o.http_request_uri = "/2015-03-31/event-source-mappings/"
606
+ o.input = Shapes::ShapeRef.new(shape: ListEventSourceMappingsRequest)
607
+ o.output = Shapes::ShapeRef.new(shape: ListEventSourceMappingsResponse)
608
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
609
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
610
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
611
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
612
+ o[:pager] = Aws::Pager.new(
613
+ limit_key: "max_items",
614
+ tokens: {
615
+ "next_marker" => "marker"
616
+ }
617
+ )
618
+ end)
619
+
620
+ api.add_operation(:list_functions, Seahorse::Model::Operation.new.tap do |o|
621
+ o.name = "ListFunctions"
622
+ o.http_method = "GET"
623
+ o.http_request_uri = "/2015-03-31/functions/"
624
+ o.input = Shapes::ShapeRef.new(shape: ListFunctionsRequest)
625
+ o.output = Shapes::ShapeRef.new(shape: ListFunctionsResponse)
626
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
627
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
628
+ o[:pager] = Aws::Pager.new(
629
+ limit_key: "max_items",
630
+ tokens: {
631
+ "next_marker" => "marker"
632
+ }
633
+ )
634
+ end)
635
+
636
+ api.add_operation(:list_versions_by_function, Seahorse::Model::Operation.new.tap do |o|
637
+ o.name = "ListVersionsByFunction"
638
+ o.http_method = "GET"
639
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/versions"
640
+ o.input = Shapes::ShapeRef.new(shape: ListVersionsByFunctionRequest)
641
+ o.output = Shapes::ShapeRef.new(shape: ListVersionsByFunctionResponse)
642
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
643
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
644
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
645
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
646
+ end)
647
+
648
+ api.add_operation(:publish_version, Seahorse::Model::Operation.new.tap do |o|
649
+ o.name = "PublishVersion"
650
+ o.http_method = "POST"
651
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/versions"
652
+ o.input = Shapes::ShapeRef.new(shape: PublishVersionRequest)
653
+ o.output = Shapes::ShapeRef.new(shape: FunctionConfiguration)
654
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
655
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
656
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
657
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
658
+ o.errors << Shapes::ShapeRef.new(shape: CodeStorageExceededException)
659
+ end)
660
+
661
+ api.add_operation(:remove_permission, Seahorse::Model::Operation.new.tap do |o|
662
+ o.name = "RemovePermission"
663
+ o.http_method = "DELETE"
664
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/policy/{StatementId}"
665
+ o.input = Shapes::ShapeRef.new(shape: RemovePermissionRequest)
666
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
667
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
668
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
669
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
670
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
671
+ end)
672
+
673
+ api.add_operation(:update_alias, Seahorse::Model::Operation.new.tap do |o|
674
+ o.name = "UpdateAlias"
675
+ o.http_method = "PUT"
676
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/aliases/{Name}"
677
+ o.input = Shapes::ShapeRef.new(shape: UpdateAliasRequest)
678
+ o.output = Shapes::ShapeRef.new(shape: AliasConfiguration)
679
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
680
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
681
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
682
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
683
+ end)
684
+
685
+ api.add_operation(:update_event_source_mapping, Seahorse::Model::Operation.new.tap do |o|
686
+ o.name = "UpdateEventSourceMapping"
687
+ o.http_method = "PUT"
688
+ o.http_request_uri = "/2015-03-31/event-source-mappings/{UUID}"
689
+ o.input = Shapes::ShapeRef.new(shape: UpdateEventSourceMappingRequest)
690
+ o.output = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
691
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
692
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
693
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
694
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
695
+ o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
696
+ end)
697
+
698
+ api.add_operation(:update_function_code, Seahorse::Model::Operation.new.tap do |o|
699
+ o.name = "UpdateFunctionCode"
700
+ o.http_method = "PUT"
701
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/code"
702
+ o.input = Shapes::ShapeRef.new(shape: UpdateFunctionCodeRequest)
703
+ o.output = Shapes::ShapeRef.new(shape: FunctionConfiguration)
704
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
705
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
706
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
707
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
708
+ o.errors << Shapes::ShapeRef.new(shape: CodeStorageExceededException)
709
+ end)
710
+
711
+ api.add_operation(:update_function_configuration, Seahorse::Model::Operation.new.tap do |o|
712
+ o.name = "UpdateFunctionConfiguration"
713
+ o.http_method = "PUT"
714
+ o.http_request_uri = "/2015-03-31/functions/{FunctionName}/configuration"
715
+ o.input = Shapes::ShapeRef.new(shape: UpdateFunctionConfigurationRequest)
716
+ o.output = Shapes::ShapeRef.new(shape: FunctionConfiguration)
717
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
718
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
719
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
720
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
721
+ end)
722
+ end
723
+
724
+ end
725
+ end
726
+ end