aws-sdk-lambda 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lambda.rb +1 -1
- data/lib/aws-sdk-lambda/client.rb +51 -15
- data/lib/aws-sdk-lambda/client_api.rb +14 -0
- data/lib/aws-sdk-lambda/types.rb +80 -13
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d47f2475b7792a26aa3bc7869a7a7eebfda60baa
|
4
|
+
data.tar.gz: 316c42af378fbcd0f46b43a7614c826c3dc1c300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62fc88c2f069c5c08e6cabc2a0f317d73ed20d70b1c15815661fe105b3d0f9e18a9db54da0bb9cefa5fc3f1ddb7af3005a5a353e3f844ed6bb94f483de42d8d8
|
7
|
+
data.tar.gz: e0e2844ee9fb42052a4c1a319c02fbd341a5d4fe6521edbbbfe08c35716d711ac34e46971e7f43a1c30ebf4c4765ddee25762181cf9ed3f95d5301ddfea5656a
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -316,12 +316,18 @@ module Aws::Lambda
|
|
316
316
|
# @option params [String] :description
|
317
317
|
# Description of the alias.
|
318
318
|
#
|
319
|
+
# @option params [Types::AliasRoutingConfiguration] :routing_config
|
320
|
+
# Specifies an additional version your alias can point to, allowing you
|
321
|
+
# to dictate what percentage of traffic will invoke each version. For
|
322
|
+
# more information, see lambda-traffic-shifting-using-aliases.
|
323
|
+
#
|
319
324
|
# @return [Types::AliasConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
320
325
|
#
|
321
326
|
# * {Types::AliasConfiguration#alias_arn #alias_arn} => String
|
322
327
|
# * {Types::AliasConfiguration#name #name} => String
|
323
328
|
# * {Types::AliasConfiguration#function_version #function_version} => String
|
324
329
|
# * {Types::AliasConfiguration#description #description} => String
|
330
|
+
# * {Types::AliasConfiguration#routing_config #routing_config} => Types::AliasRoutingConfiguration
|
325
331
|
#
|
326
332
|
# @example Request syntax with placeholder values
|
327
333
|
#
|
@@ -330,6 +336,11 @@ module Aws::Lambda
|
|
330
336
|
# name: "Alias", # required
|
331
337
|
# function_version: "Version", # required
|
332
338
|
# description: "Description",
|
339
|
+
# routing_config: {
|
340
|
+
# additional_version_weights: {
|
341
|
+
# "AdditionalVersion" => 1.0,
|
342
|
+
# },
|
343
|
+
# },
|
333
344
|
# })
|
334
345
|
#
|
335
346
|
# @example Response structure
|
@@ -338,6 +349,8 @@ module Aws::Lambda
|
|
338
349
|
# resp.name #=> String
|
339
350
|
# resp.function_version #=> String
|
340
351
|
# resp.description #=> String
|
352
|
+
# resp.routing_config.additional_version_weights #=> Hash
|
353
|
+
# resp.routing_config.additional_version_weights["AdditionalVersion"] #=> Float
|
341
354
|
#
|
342
355
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias AWS API Documentation
|
343
356
|
#
|
@@ -1001,6 +1014,7 @@ module Aws::Lambda
|
|
1001
1014
|
# * {Types::AliasConfiguration#name #name} => String
|
1002
1015
|
# * {Types::AliasConfiguration#function_version #function_version} => String
|
1003
1016
|
# * {Types::AliasConfiguration#description #description} => String
|
1017
|
+
# * {Types::AliasConfiguration#routing_config #routing_config} => Types::AliasRoutingConfiguration
|
1004
1018
|
#
|
1005
1019
|
#
|
1006
1020
|
# @example Example: To retrieve a Lambda function alias
|
@@ -1033,6 +1047,8 @@ module Aws::Lambda
|
|
1033
1047
|
# resp.name #=> String
|
1034
1048
|
# resp.function_version #=> String
|
1035
1049
|
# resp.description #=> String
|
1050
|
+
# resp.routing_config.additional_version_weights #=> Hash
|
1051
|
+
# resp.routing_config.additional_version_weights["AdditionalVersion"] #=> Float
|
1036
1052
|
#
|
1037
1053
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias AWS API Documentation
|
1038
1054
|
#
|
@@ -1142,14 +1158,14 @@ module Aws::Lambda
|
|
1142
1158
|
# characters in length.
|
1143
1159
|
#
|
1144
1160
|
# @option params [String] :qualifier
|
1145
|
-
#
|
1146
|
-
#
|
1147
|
-
#
|
1148
|
-
#
|
1149
|
-
#
|
1150
|
-
#
|
1151
|
-
#
|
1152
|
-
#
|
1161
|
+
# Use this optional parameter to specify a function version or an alias
|
1162
|
+
# name. If you specify function version, the API uses qualified function
|
1163
|
+
# ARN for the request and returns information about the specific Lambda
|
1164
|
+
# function version. If you specify an alias name, the API uses the alias
|
1165
|
+
# ARN and returns information about the function version to which the
|
1166
|
+
# alias points. If you don't provide this parameter, the API uses
|
1167
|
+
# unqualified function ARN and returns information about the `$LATEST`
|
1168
|
+
# version of the Lambda function.
|
1153
1169
|
#
|
1154
1170
|
# @return [Types::GetFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1155
1171
|
#
|
@@ -1519,7 +1535,8 @@ module Aws::Lambda
|
|
1519
1535
|
# variable. For an example of a `ClientContext` JSON, see [PutEvents][1]
|
1520
1536
|
# in the *Amazon Mobile Analytics API Reference and User Guide*.
|
1521
1537
|
#
|
1522
|
-
# The ClientContext JSON must be base64-encoded
|
1538
|
+
# The ClientContext JSON must be base64-encoded and has a maximum size
|
1539
|
+
# of 3583 bytes.
|
1523
1540
|
#
|
1524
1541
|
#
|
1525
1542
|
#
|
@@ -1544,6 +1561,7 @@ module Aws::Lambda
|
|
1544
1561
|
# * {Types::InvocationResponse#function_error #function_error} => String
|
1545
1562
|
# * {Types::InvocationResponse#log_result #log_result} => String
|
1546
1563
|
# * {Types::InvocationResponse#payload #payload} => String
|
1564
|
+
# * {Types::InvocationResponse#executed_version #executed_version} => String
|
1547
1565
|
#
|
1548
1566
|
#
|
1549
1567
|
# @example Example: To invoke a Lambda function
|
@@ -1584,6 +1602,7 @@ module Aws::Lambda
|
|
1584
1602
|
# resp.function_error #=> String
|
1585
1603
|
# resp.log_result #=> String
|
1586
1604
|
# resp.payload #=> String
|
1605
|
+
# resp.executed_version #=> String
|
1587
1606
|
#
|
1588
1607
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Invoke AWS API Documentation
|
1589
1608
|
#
|
@@ -1724,6 +1743,8 @@ module Aws::Lambda
|
|
1724
1743
|
# resp.aliases[0].name #=> String
|
1725
1744
|
# resp.aliases[0].function_version #=> String
|
1726
1745
|
# resp.aliases[0].description #=> String
|
1746
|
+
# resp.aliases[0].routing_config.additional_version_weights #=> Hash
|
1747
|
+
# resp.aliases[0].routing_config.additional_version_weights["AdditionalVersion"] #=> Float
|
1727
1748
|
#
|
1728
1749
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases AWS API Documentation
|
1729
1750
|
#
|
@@ -1841,7 +1862,7 @@ module Aws::Lambda
|
|
1841
1862
|
# you specify `us-east-1`, only functions replicated from that region
|
1842
1863
|
# will be returned.
|
1843
1864
|
#
|
1844
|
-
# `ALL
|
1865
|
+
# `ALL`\: Will return all functions from any region. If specified, you
|
1845
1866
|
# also must specify a valid FunctionVersion parameter.
|
1846
1867
|
#
|
1847
1868
|
# @option params [String] :function_version
|
@@ -1850,7 +1871,7 @@ module Aws::Lambda
|
|
1850
1871
|
#
|
1851
1872
|
# Valid value:
|
1852
1873
|
#
|
1853
|
-
# `ALL
|
1874
|
+
# `ALL`\: Will return all versions, including `$LATEST` which will have
|
1854
1875
|
# fully qualified ARNs (Amazon Resource Names).
|
1855
1876
|
#
|
1856
1877
|
# @option params [String] :marker
|
@@ -2083,8 +2104,10 @@ module Aws::Lambda
|
|
2083
2104
|
# @option params [String] :code_sha_256
|
2084
2105
|
# The SHA256 hash of the deployment package you want to publish. This
|
2085
2106
|
# provides validation on the code you are publishing. If you provide
|
2086
|
-
# this parameter value must match the SHA256 of the $LATEST version
|
2087
|
-
# the publication to succeed.
|
2107
|
+
# this parameter, the value must match the SHA256 of the $LATEST version
|
2108
|
+
# for the publication to succeed. You can use the **DryRun** parameter
|
2109
|
+
# of UpdateFunctionCode to verify the hash value that will be returned
|
2110
|
+
# before publishing your new version.
|
2088
2111
|
#
|
2089
2112
|
# @option params [String] :description
|
2090
2113
|
# The description for the version you are publishing. If not provided,
|
@@ -2339,12 +2362,18 @@ module Aws::Lambda
|
|
2339
2362
|
# @option params [String] :description
|
2340
2363
|
# You can change the description of the alias using this parameter.
|
2341
2364
|
#
|
2365
|
+
# @option params [Types::AliasRoutingConfiguration] :routing_config
|
2366
|
+
# Specifies an additional version your alias can point to, allowing you
|
2367
|
+
# to dictate what percentage of traffic will invoke each version. For
|
2368
|
+
# more information, see lambda-traffic-shifting-using-aliases.
|
2369
|
+
#
|
2342
2370
|
# @return [Types::AliasConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2343
2371
|
#
|
2344
2372
|
# * {Types::AliasConfiguration#alias_arn #alias_arn} => String
|
2345
2373
|
# * {Types::AliasConfiguration#name #name} => String
|
2346
2374
|
# * {Types::AliasConfiguration#function_version #function_version} => String
|
2347
2375
|
# * {Types::AliasConfiguration#description #description} => String
|
2376
|
+
# * {Types::AliasConfiguration#routing_config #routing_config} => Types::AliasRoutingConfiguration
|
2348
2377
|
#
|
2349
2378
|
#
|
2350
2379
|
# @example Example: To update a Lambda function alias
|
@@ -2373,6 +2402,11 @@ module Aws::Lambda
|
|
2373
2402
|
# name: "Alias", # required
|
2374
2403
|
# function_version: "Version",
|
2375
2404
|
# description: "Description",
|
2405
|
+
# routing_config: {
|
2406
|
+
# additional_version_weights: {
|
2407
|
+
# "AdditionalVersion" => 1.0,
|
2408
|
+
# },
|
2409
|
+
# },
|
2376
2410
|
# })
|
2377
2411
|
#
|
2378
2412
|
# @example Response structure
|
@@ -2381,6 +2415,8 @@ module Aws::Lambda
|
|
2381
2415
|
# resp.name #=> String
|
2382
2416
|
# resp.function_version #=> String
|
2383
2417
|
# resp.description #=> String
|
2418
|
+
# resp.routing_config.additional_version_weights #=> Hash
|
2419
|
+
# resp.routing_config.additional_version_weights["AdditionalVersion"] #=> Float
|
2384
2420
|
#
|
2385
2421
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias AWS API Documentation
|
2386
2422
|
#
|
@@ -2575,7 +2611,7 @@ module Aws::Lambda
|
|
2575
2611
|
# to update the Lambda function and publish a version as an atomic
|
2576
2612
|
# operation. It will do all necessary computation and validation of your
|
2577
2613
|
# code but will not upload it or a publish a version. Each time this
|
2578
|
-
# operation is invoked, the `CodeSha256` hash value the provided code
|
2614
|
+
# operation is invoked, the `CodeSha256` hash value of the provided code
|
2579
2615
|
# will also be computed and returned in the response.
|
2580
2616
|
#
|
2581
2617
|
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -2912,7 +2948,7 @@ module Aws::Lambda
|
|
2912
2948
|
params: params,
|
2913
2949
|
config: config)
|
2914
2950
|
context[:gem_name] = 'aws-sdk-lambda'
|
2915
|
-
context[:gem_version] = '1.
|
2951
|
+
context[:gem_version] = '1.1.0'
|
2916
2952
|
Seahorse::Client::Request.new(handlers, context)
|
2917
2953
|
end
|
2918
2954
|
|
@@ -16,9 +16,12 @@ module Aws::Lambda
|
|
16
16
|
Action = Shapes::StringShape.new(name: 'Action')
|
17
17
|
AddPermissionRequest = Shapes::StructureShape.new(name: 'AddPermissionRequest')
|
18
18
|
AddPermissionResponse = Shapes::StructureShape.new(name: 'AddPermissionResponse')
|
19
|
+
AdditionalVersion = Shapes::StringShape.new(name: 'AdditionalVersion')
|
20
|
+
AdditionalVersionWeights = Shapes::MapShape.new(name: 'AdditionalVersionWeights')
|
19
21
|
Alias = Shapes::StringShape.new(name: 'Alias')
|
20
22
|
AliasConfiguration = Shapes::StructureShape.new(name: 'AliasConfiguration')
|
21
23
|
AliasList = Shapes::ListShape.new(name: 'AliasList')
|
24
|
+
AliasRoutingConfiguration = Shapes::StructureShape.new(name: 'AliasRoutingConfiguration')
|
22
25
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
23
26
|
BatchSize = Shapes::IntegerShape.new(name: 'BatchSize')
|
24
27
|
Blob = Shapes::BlobShape.new(name: 'Blob')
|
@@ -148,6 +151,7 @@ module Aws::Lambda
|
|
148
151
|
VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
|
149
152
|
VpcConfigResponse = Shapes::StructureShape.new(name: 'VpcConfigResponse')
|
150
153
|
VpcId = Shapes::StringShape.new(name: 'VpcId')
|
154
|
+
Weight = Shapes::FloatShape.new(name: 'Weight')
|
151
155
|
|
152
156
|
AccountLimit.add_member(:total_code_size, Shapes::ShapeRef.new(shape: Long, location_name: "TotalCodeSize"))
|
153
157
|
AccountLimit.add_member(:code_size_unzipped, Shapes::ShapeRef.new(shape: Long, location_name: "CodeSizeUnzipped"))
|
@@ -172,18 +176,26 @@ module Aws::Lambda
|
|
172
176
|
AddPermissionResponse.add_member(:statement, Shapes::ShapeRef.new(shape: String, location_name: "Statement"))
|
173
177
|
AddPermissionResponse.struct_class = Types::AddPermissionResponse
|
174
178
|
|
179
|
+
AdditionalVersionWeights.key = Shapes::ShapeRef.new(shape: AdditionalVersion)
|
180
|
+
AdditionalVersionWeights.value = Shapes::ShapeRef.new(shape: Weight)
|
181
|
+
|
175
182
|
AliasConfiguration.add_member(:alias_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "AliasArn"))
|
176
183
|
AliasConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: Alias, location_name: "Name"))
|
177
184
|
AliasConfiguration.add_member(:function_version, Shapes::ShapeRef.new(shape: Version, location_name: "FunctionVersion"))
|
178
185
|
AliasConfiguration.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
186
|
+
AliasConfiguration.add_member(:routing_config, Shapes::ShapeRef.new(shape: AliasRoutingConfiguration, location_name: "RoutingConfig"))
|
179
187
|
AliasConfiguration.struct_class = Types::AliasConfiguration
|
180
188
|
|
181
189
|
AliasList.member = Shapes::ShapeRef.new(shape: AliasConfiguration)
|
182
190
|
|
191
|
+
AliasRoutingConfiguration.add_member(:additional_version_weights, Shapes::ShapeRef.new(shape: AdditionalVersionWeights, location_name: "AdditionalVersionWeights"))
|
192
|
+
AliasRoutingConfiguration.struct_class = Types::AliasRoutingConfiguration
|
193
|
+
|
183
194
|
CreateAliasRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
184
195
|
CreateAliasRequest.add_member(:name, Shapes::ShapeRef.new(shape: Alias, required: true, location_name: "Name"))
|
185
196
|
CreateAliasRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: Version, required: true, location_name: "FunctionVersion"))
|
186
197
|
CreateAliasRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
198
|
+
CreateAliasRequest.add_member(:routing_config, Shapes::ShapeRef.new(shape: AliasRoutingConfiguration, location_name: "RoutingConfig"))
|
187
199
|
CreateAliasRequest.struct_class = Types::CreateAliasRequest
|
188
200
|
|
189
201
|
CreateEventSourceMappingRequest.add_member(:event_source_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "EventSourceArn"))
|
@@ -330,6 +342,7 @@ module Aws::Lambda
|
|
330
342
|
InvocationResponse.add_member(:function_error, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "X-Amz-Function-Error"))
|
331
343
|
InvocationResponse.add_member(:log_result, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "X-Amz-Log-Result"))
|
332
344
|
InvocationResponse.add_member(:payload, Shapes::ShapeRef.new(shape: Blob, location_name: "Payload"))
|
345
|
+
InvocationResponse.add_member(:executed_version, Shapes::ShapeRef.new(shape: Version, location: "header", location_name: "X-Amz-Executed-Version"))
|
333
346
|
InvocationResponse.struct_class = Types::InvocationResponse
|
334
347
|
InvocationResponse[:payload] = :payload
|
335
348
|
InvocationResponse[:payload_member] = InvocationResponse.member(:payload)
|
@@ -425,6 +438,7 @@ module Aws::Lambda
|
|
425
438
|
UpdateAliasRequest.add_member(:name, Shapes::ShapeRef.new(shape: Alias, required: true, location: "uri", location_name: "Name"))
|
426
439
|
UpdateAliasRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: Version, location_name: "FunctionVersion"))
|
427
440
|
UpdateAliasRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
441
|
+
UpdateAliasRequest.add_member(:routing_config, Shapes::ShapeRef.new(shape: AliasRoutingConfiguration, location_name: "RoutingConfig"))
|
428
442
|
UpdateAliasRequest.struct_class = Types::UpdateAliasRequest
|
429
443
|
|
430
444
|
UpdateEventSourceMappingRequest.add_member(:uuid, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "UUID"))
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -32,7 +32,7 @@ module Aws::Lambda
|
|
32
32
|
# Number of simultaneous executions of your function per region. For
|
33
33
|
# more information or to request a limit increase for concurrent
|
34
34
|
# executions, see [Lambda Function Concurrent Executions][1]. The
|
35
|
-
# default limit is
|
35
|
+
# default limit is 1000.
|
36
36
|
#
|
37
37
|
#
|
38
38
|
#
|
@@ -216,13 +216,47 @@ module Aws::Lambda
|
|
216
216
|
# Alias description.
|
217
217
|
# @return [String]
|
218
218
|
#
|
219
|
+
# @!attribute [rw] routing_config
|
220
|
+
# Specifies an additional function versions the alias points to,
|
221
|
+
# allowing you to dictate what percentage of traffic will invoke each
|
222
|
+
# version. For more information, see
|
223
|
+
# lambda-traffic-shifting-using-aliases.
|
224
|
+
# @return [Types::AliasRoutingConfiguration]
|
225
|
+
#
|
219
226
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasConfiguration AWS API Documentation
|
220
227
|
#
|
221
228
|
class AliasConfiguration < Struct.new(
|
222
229
|
:alias_arn,
|
223
230
|
:name,
|
224
231
|
:function_version,
|
225
|
-
:description
|
232
|
+
:description,
|
233
|
+
:routing_config)
|
234
|
+
include Aws::Structure
|
235
|
+
end
|
236
|
+
|
237
|
+
# The parent object that implements what percentage of traffic will
|
238
|
+
# invoke each function version. For more information, see
|
239
|
+
# lambda-traffic-shifting-using-aliases.
|
240
|
+
#
|
241
|
+
# @note When making an API call, you may pass AliasRoutingConfiguration
|
242
|
+
# data as a hash:
|
243
|
+
#
|
244
|
+
# {
|
245
|
+
# additional_version_weights: {
|
246
|
+
# "AdditionalVersion" => 1.0,
|
247
|
+
# },
|
248
|
+
# }
|
249
|
+
#
|
250
|
+
# @!attribute [rw] additional_version_weights
|
251
|
+
# Set this property value to dictate what percentage of traffic will
|
252
|
+
# invoke the updated function version. If set to an empty string, 100
|
253
|
+
# percent of traffic will invoke `function-version`.
|
254
|
+
# @return [Hash<String,Float>]
|
255
|
+
#
|
256
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasRoutingConfiguration AWS API Documentation
|
257
|
+
#
|
258
|
+
class AliasRoutingConfiguration < Struct.new(
|
259
|
+
:additional_version_weights)
|
226
260
|
include Aws::Structure
|
227
261
|
end
|
228
262
|
|
@@ -234,6 +268,11 @@ module Aws::Lambda
|
|
234
268
|
# name: "Alias", # required
|
235
269
|
# function_version: "Version", # required
|
236
270
|
# description: "Description",
|
271
|
+
# routing_config: {
|
272
|
+
# additional_version_weights: {
|
273
|
+
# "AdditionalVersion" => 1.0,
|
274
|
+
# },
|
275
|
+
# },
|
237
276
|
# }
|
238
277
|
#
|
239
278
|
# @!attribute [rw] function_name
|
@@ -255,13 +294,20 @@ module Aws::Lambda
|
|
255
294
|
# Description of the alias.
|
256
295
|
# @return [String]
|
257
296
|
#
|
297
|
+
# @!attribute [rw] routing_config
|
298
|
+
# Specifies an additional version your alias can point to, allowing
|
299
|
+
# you to dictate what percentage of traffic will invoke each version.
|
300
|
+
# For more information, see lambda-traffic-shifting-using-aliases.
|
301
|
+
# @return [Types::AliasRoutingConfiguration]
|
302
|
+
#
|
258
303
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAliasRequest AWS API Documentation
|
259
304
|
#
|
260
305
|
class CreateAliasRequest < Struct.new(
|
261
306
|
:function_name,
|
262
307
|
:name,
|
263
308
|
:function_version,
|
264
|
-
:description
|
309
|
+
:description,
|
310
|
+
:routing_config)
|
265
311
|
include Aws::Structure
|
266
312
|
end
|
267
313
|
|
@@ -1090,7 +1136,7 @@ module Aws::Lambda
|
|
1090
1136
|
# @return [String]
|
1091
1137
|
#
|
1092
1138
|
# @!attribute [rw] qualifier
|
1093
|
-
#
|
1139
|
+
# Use this optional parameter to specify a function version or an
|
1094
1140
|
# alias name. If you specify function version, the API uses qualified
|
1095
1141
|
# function ARN for the request and returns information about the
|
1096
1142
|
# specific Lambda function version. If you specify an alias name, the
|
@@ -1236,7 +1282,8 @@ module Aws::Lambda
|
|
1236
1282
|
# [PutEvents][1] in the *Amazon Mobile Analytics API Reference and
|
1237
1283
|
# User Guide*.
|
1238
1284
|
#
|
1239
|
-
# The ClientContext JSON must be base64-encoded
|
1285
|
+
# The ClientContext JSON must be base64-encoded and has a maximum size
|
1286
|
+
# of 3583 bytes.
|
1240
1287
|
#
|
1241
1288
|
#
|
1242
1289
|
#
|
@@ -1312,13 +1359,19 @@ module Aws::Lambda
|
|
1312
1359
|
# the message.
|
1313
1360
|
# @return [String]
|
1314
1361
|
#
|
1362
|
+
# @!attribute [rw] executed_version
|
1363
|
+
# The function version that has been executed. This value is returned
|
1364
|
+
# only if the invocation type is `RequestResponse`.
|
1365
|
+
# @return [String]
|
1366
|
+
#
|
1315
1367
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvocationResponse AWS API Documentation
|
1316
1368
|
#
|
1317
1369
|
class InvocationResponse < Struct.new(
|
1318
1370
|
:status_code,
|
1319
1371
|
:function_error,
|
1320
1372
|
:log_result,
|
1321
|
-
:payload
|
1373
|
+
:payload,
|
1374
|
+
:executed_version)
|
1322
1375
|
include Aws::Structure
|
1323
1376
|
end
|
1324
1377
|
|
@@ -1511,8 +1564,8 @@ module Aws::Lambda
|
|
1511
1564
|
# you specify `us-east-1`, only functions replicated from that region
|
1512
1565
|
# will be returned.
|
1513
1566
|
#
|
1514
|
-
# `ALL
|
1515
|
-
#
|
1567
|
+
# `ALL`\: Will return all functions from any region. If specified, you
|
1568
|
+
# also must specify a valid FunctionVersion parameter.
|
1516
1569
|
# @return [String]
|
1517
1570
|
#
|
1518
1571
|
# @!attribute [rw] function_version
|
@@ -1521,7 +1574,7 @@ module Aws::Lambda
|
|
1521
1574
|
#
|
1522
1575
|
# Valid value:
|
1523
1576
|
#
|
1524
|
-
# `ALL
|
1577
|
+
# `ALL`\: Will return all versions, including `$LATEST` which will
|
1525
1578
|
# have fully qualified ARNs (Amazon Resource Names).
|
1526
1579
|
# @return [String]
|
1527
1580
|
#
|
@@ -1675,8 +1728,10 @@ module Aws::Lambda
|
|
1675
1728
|
# @!attribute [rw] code_sha_256
|
1676
1729
|
# The SHA256 hash of the deployment package you want to publish. This
|
1677
1730
|
# provides validation on the code you are publishing. If you provide
|
1678
|
-
# this parameter value must match the SHA256 of the $LATEST
|
1679
|
-
# for the publication to succeed.
|
1731
|
+
# this parameter, the value must match the SHA256 of the $LATEST
|
1732
|
+
# version for the publication to succeed. You can use the **DryRun**
|
1733
|
+
# parameter of UpdateFunctionCode to verify the hash value that will
|
1734
|
+
# be returned before publishing your new version.
|
1680
1735
|
# @return [String]
|
1681
1736
|
#
|
1682
1737
|
# @!attribute [rw] description
|
@@ -1833,6 +1888,11 @@ module Aws::Lambda
|
|
1833
1888
|
# name: "Alias", # required
|
1834
1889
|
# function_version: "Version",
|
1835
1890
|
# description: "Description",
|
1891
|
+
# routing_config: {
|
1892
|
+
# additional_version_weights: {
|
1893
|
+
# "AdditionalVersion" => 1.0,
|
1894
|
+
# },
|
1895
|
+
# },
|
1836
1896
|
# }
|
1837
1897
|
#
|
1838
1898
|
# @!attribute [rw] function_name
|
@@ -1854,13 +1914,20 @@ module Aws::Lambda
|
|
1854
1914
|
# You can change the description of the alias using this parameter.
|
1855
1915
|
# @return [String]
|
1856
1916
|
#
|
1917
|
+
# @!attribute [rw] routing_config
|
1918
|
+
# Specifies an additional version your alias can point to, allowing
|
1919
|
+
# you to dictate what percentage of traffic will invoke each version.
|
1920
|
+
# For more information, see lambda-traffic-shifting-using-aliases.
|
1921
|
+
# @return [Types::AliasRoutingConfiguration]
|
1922
|
+
#
|
1857
1923
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAliasRequest AWS API Documentation
|
1858
1924
|
#
|
1859
1925
|
class UpdateAliasRequest < Struct.new(
|
1860
1926
|
:function_name,
|
1861
1927
|
:name,
|
1862
1928
|
:function_version,
|
1863
|
-
:description
|
1929
|
+
:description,
|
1930
|
+
:routing_config)
|
1864
1931
|
include Aws::Structure
|
1865
1932
|
end
|
1866
1933
|
|
@@ -1988,7 +2055,7 @@ module Aws::Lambda
|
|
1988
2055
|
# atomic operation. It will do all necessary computation and
|
1989
2056
|
# validation of your code but will not upload it or a publish a
|
1990
2057
|
# version. Each time this operation is invoked, the `CodeSha256` hash
|
1991
|
-
# value the provided code will also be computed and returned in the
|
2058
|
+
# value of the provided code will also be computed and returned in the
|
1992
2059
|
# response.
|
1993
2060
|
# @return [Boolean]
|
1994
2061
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lambda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -56,7 +56,9 @@ files:
|
|
56
56
|
homepage: http://github.com/aws/aws-sdk-ruby
|
57
57
|
licenses:
|
58
58
|
- Apache-2.0
|
59
|
-
metadata:
|
59
|
+
metadata:
|
60
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-lambda
|
61
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-lambda/CHANGELOG.md
|
60
62
|
post_install_message:
|
61
63
|
rdoc_options: []
|
62
64
|
require_paths:
|