aws-sdk-lambda 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34c7c9024f3273f2fbfcacc349de02dd5342c3a1
4
- data.tar.gz: be313383a0e7c92b071383f57744ba050d44daff
3
+ metadata.gz: 1beb661ebbe5bef8250f0b466655818427d5d4de
4
+ data.tar.gz: f81c5c1a1513aa3bd50c8508758ee0d0270debeb
5
5
  SHA512:
6
- metadata.gz: 4bfe0668731c6368c36477a1c52712ef7f3a8095cef20ac58a8b9593266eb5d41318f59ecf73dbf16c5f19bd1199a675e68f59c089979b8977d42d20634dd767
7
- data.tar.gz: f57c631211aff0c3762bda4acc18f4c0ea22eb6bae2e1ad43a021bc240a5fe6d54dffe091c459a22da92cacfb4a5743efdf51da996a99adf57cc4e129c583e04
6
+ metadata.gz: 3a325edf97e58864a9d071a3736ef7cea74c32dcbefcef6a74715c2b065a6c7f4099e62e2db6df60ddafa778c80291283f368e16e89c0290166da96392e317df
7
+ data.tar.gz: 54cb73ba1e7cdd26c526973671b664abae1a809b50994cb75254ef6b7bcf5a6e7e22373944ddab78fc31dbfa69e25fe6a47a8e1dd830dd05b12a20ec7c33cc66
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-lambda/customizations'
42
42
  # @service
43
43
  module Aws::Lambda
44
44
 
45
- GEM_VERSION = '1.3.0'
45
+ GEM_VERSION = '1.4.0'
46
46
 
47
47
  end
@@ -242,6 +242,13 @@ module Aws::Lambda
242
242
  #
243
243
  # `arn:aws:lambda:aws-region:acct-id:function:function-name`
244
244
  #
245
+ # @option params [String] :revision_id
246
+ # An optional value you can use to ensure you are updating the latest
247
+ # update of the function version or alias. If the `RevisionID` you pass
248
+ # doesn't match the latest `RevisionId` of the function or alias, it
249
+ # will fail with an error message, advising you to retrieve the latest
250
+ # function version or alias `RevisionID` using either or .
251
+ #
245
252
  # @return [Types::AddPermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
246
253
  #
247
254
  # * {Types::AddPermissionResponse#statement #statement} => String
@@ -276,6 +283,7 @@ module Aws::Lambda
276
283
  # source_account: "SourceOwner",
277
284
  # event_source_token: "EventSourceToken",
278
285
  # qualifier: "Qualifier",
286
+ # revision_id: "String",
279
287
  # })
280
288
  #
281
289
  # @example Response structure
@@ -328,6 +336,7 @@ module Aws::Lambda
328
336
  # * {Types::AliasConfiguration#function_version #function_version} => String
329
337
  # * {Types::AliasConfiguration#description #description} => String
330
338
  # * {Types::AliasConfiguration#routing_config #routing_config} => Types::AliasRoutingConfiguration
339
+ # * {Types::AliasConfiguration#revision_id #revision_id} => String
331
340
  #
332
341
  # @example Request syntax with placeholder values
333
342
  #
@@ -351,6 +360,7 @@ module Aws::Lambda
351
360
  # resp.description #=> String
352
361
  # resp.routing_config.additional_version_weights #=> Hash
353
362
  # resp.routing_config.additional_version_weights["AdditionalVersion"] #=> Float
363
+ # resp.revision_id #=> String
354
364
  #
355
365
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias AWS API Documentation
356
366
  #
@@ -534,7 +544,7 @@ module Aws::Lambda
534
544
  # <note markdown="1"> Node v0.10.42 is currently marked as deprecated. You must migrate
535
545
  # existing functions to the newer Node.js runtime versions available on
536
546
  # AWS Lambda (nodejs4.3 or nodejs6.10) as soon as possible. Failure to
537
- # do so will result in an invalid parmaeter error being returned. Note
547
+ # do so will result in an invalid parameter error being returned. Note
538
548
  # that you will have to follow this procedure for each region that
539
549
  # contains functions written in the Node v0.10.42 runtime.
540
550
  #
@@ -631,6 +641,7 @@ module Aws::Lambda
631
641
  # * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
632
642
  # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
633
643
  # * {Types::FunctionConfiguration#master_arn #master_arn} => String
644
+ # * {Types::FunctionConfiguration#revision_id #revision_id} => String
634
645
  #
635
646
  #
636
647
  # @example Example: create-function
@@ -735,6 +746,7 @@ module Aws::Lambda
735
746
  # resp.kms_key_arn #=> String
736
747
  # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
737
748
  # resp.master_arn #=> String
749
+ # resp.revision_id #=> String
738
750
  #
739
751
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
740
752
  #
@@ -1038,6 +1050,7 @@ module Aws::Lambda
1038
1050
  # * {Types::AliasConfiguration#function_version #function_version} => String
1039
1051
  # * {Types::AliasConfiguration#description #description} => String
1040
1052
  # * {Types::AliasConfiguration#routing_config #routing_config} => Types::AliasRoutingConfiguration
1053
+ # * {Types::AliasConfiguration#revision_id #revision_id} => String
1041
1054
  #
1042
1055
  #
1043
1056
  # @example Example: To retrieve a Lambda function alias
@@ -1072,6 +1085,7 @@ module Aws::Lambda
1072
1085
  # resp.description #=> String
1073
1086
  # resp.routing_config.additional_version_weights #=> Hash
1074
1087
  # resp.routing_config.additional_version_weights["AdditionalVersion"] #=> Float
1088
+ # resp.revision_id #=> String
1075
1089
  #
1076
1090
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias AWS API Documentation
1077
1091
  #
@@ -1274,6 +1288,7 @@ module Aws::Lambda
1274
1288
  # resp.configuration.kms_key_arn #=> String
1275
1289
  # resp.configuration.tracing_config.mode #=> String, one of "Active", "PassThrough"
1276
1290
  # resp.configuration.master_arn #=> String
1291
+ # resp.configuration.revision_id #=> String
1277
1292
  # resp.code.repository_type #=> String
1278
1293
  # resp.code.location #=> String
1279
1294
  # resp.tags #=> Hash
@@ -1352,6 +1367,7 @@ module Aws::Lambda
1352
1367
  # * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
1353
1368
  # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
1354
1369
  # * {Types::FunctionConfiguration#master_arn #master_arn} => String
1370
+ # * {Types::FunctionConfiguration#revision_id #revision_id} => String
1355
1371
  #
1356
1372
  #
1357
1373
  # @example Example: To retrieve a Lambda function's event source mapping
@@ -1420,6 +1436,7 @@ module Aws::Lambda
1420
1436
  # resp.kms_key_arn #=> String
1421
1437
  # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
1422
1438
  # resp.master_arn #=> String
1439
+ # resp.revision_id #=> String
1423
1440
  #
1424
1441
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration AWS API Documentation
1425
1442
  #
@@ -1468,6 +1485,7 @@ module Aws::Lambda
1468
1485
  # @return [Types::GetPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1469
1486
  #
1470
1487
  # * {Types::GetPolicyResponse#policy #policy} => String
1488
+ # * {Types::GetPolicyResponse#revision_id #revision_id} => String
1471
1489
  #
1472
1490
  #
1473
1491
  # @example Example: To retrieve a Lambda function policy
@@ -1494,6 +1512,7 @@ module Aws::Lambda
1494
1512
  # @example Response structure
1495
1513
  #
1496
1514
  # resp.policy #=> String
1515
+ # resp.revision_id #=> String
1497
1516
  #
1498
1517
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy AWS API Documentation
1499
1518
  #
@@ -1781,6 +1800,7 @@ module Aws::Lambda
1781
1800
  # resp.aliases[0].description #=> String
1782
1801
  # resp.aliases[0].routing_config.additional_version_weights #=> Hash
1783
1802
  # resp.aliases[0].routing_config.additional_version_weights["AdditionalVersion"] #=> Float
1803
+ # resp.aliases[0].revision_id #=> String
1784
1804
  #
1785
1805
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases AWS API Documentation
1786
1806
  #
@@ -1979,6 +1999,7 @@ module Aws::Lambda
1979
1999
  # resp.functions[0].kms_key_arn #=> String
1980
2000
  # resp.functions[0].tracing_config.mode #=> String, one of "Active", "PassThrough"
1981
2001
  # resp.functions[0].master_arn #=> String
2002
+ # resp.functions[0].revision_id #=> String
1982
2003
  #
1983
2004
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
1984
2005
  #
@@ -2106,6 +2127,7 @@ module Aws::Lambda
2106
2127
  # resp.versions[0].kms_key_arn #=> String
2107
2128
  # resp.versions[0].tracing_config.mode #=> String, one of "Active", "PassThrough"
2108
2129
  # resp.versions[0].master_arn #=> String
2130
+ # resp.versions[0].revision_id #=> String
2109
2131
  #
2110
2132
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
2111
2133
  #
@@ -2149,6 +2171,13 @@ module Aws::Lambda
2149
2171
  # The description for the version you are publishing. If not provided,
2150
2172
  # AWS Lambda copies the description from the $LATEST version.
2151
2173
  #
2174
+ # @option params [String] :revision_id
2175
+ # An optional value you can use to ensure you are updating the latest
2176
+ # update of the function version or alias. If the `RevisionID` you pass
2177
+ # doesn't match the latest `RevisionId` of the function or alias, it
2178
+ # will fail with an error message, advising you to retrieve the latest
2179
+ # function version or alias `RevisionID` using either or .
2180
+ #
2152
2181
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2153
2182
  #
2154
2183
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -2169,6 +2198,7 @@ module Aws::Lambda
2169
2198
  # * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
2170
2199
  # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
2171
2200
  # * {Types::FunctionConfiguration#master_arn #master_arn} => String
2201
+ # * {Types::FunctionConfiguration#revision_id #revision_id} => String
2172
2202
  #
2173
2203
  #
2174
2204
  # @example Example: To publish a version of a Lambda function
@@ -2205,6 +2235,7 @@ module Aws::Lambda
2205
2235
  # function_name: "FunctionName", # required
2206
2236
  # code_sha_256: "String",
2207
2237
  # description: "Description",
2238
+ # revision_id: "String",
2208
2239
  # })
2209
2240
  #
2210
2241
  # @example Response structure
@@ -2234,6 +2265,7 @@ module Aws::Lambda
2234
2265
  # resp.kms_key_arn #=> String
2235
2266
  # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
2236
2267
  # resp.master_arn #=> String
2268
+ # resp.revision_id #=> String
2237
2269
  #
2238
2270
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
2239
2271
  #
@@ -2324,6 +2356,13 @@ module Aws::Lambda
2324
2356
  # don't specify this parameter, the API removes permission associated
2325
2357
  # with the unqualified function ARN.
2326
2358
  #
2359
+ # @option params [String] :revision_id
2360
+ # An optional value you can use to ensure you are updating the latest
2361
+ # update of the function version or alias. If the `RevisionID` you pass
2362
+ # doesn't match the latest `RevisionId` of the function or alias, it
2363
+ # will fail with an error message, advising you to retrieve the latest
2364
+ # function version or alias `RevisionID` using either or .
2365
+ #
2327
2366
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2328
2367
  #
2329
2368
  #
@@ -2343,6 +2382,7 @@ module Aws::Lambda
2343
2382
  # function_name: "FunctionName", # required
2344
2383
  # statement_id: "NamespacedStatementId", # required
2345
2384
  # qualifier: "Qualifier",
2385
+ # revision_id: "String",
2346
2386
  # })
2347
2387
  #
2348
2388
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermission AWS API Documentation
@@ -2443,6 +2483,13 @@ module Aws::Lambda
2443
2483
  # to dictate what percentage of traffic will invoke each version. For
2444
2484
  # more information, see lambda-traffic-shifting-using-aliases.
2445
2485
  #
2486
+ # @option params [String] :revision_id
2487
+ # An optional value you can use to ensure you are updating the latest
2488
+ # update of the function version or alias. If the `RevisionID` you pass
2489
+ # doesn't match the latest `RevisionId` of the function or alias, it
2490
+ # will fail with an error message, advising you to retrieve the latest
2491
+ # function version or alias `RevisionID` using either or .
2492
+ #
2446
2493
  # @return [Types::AliasConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2447
2494
  #
2448
2495
  # * {Types::AliasConfiguration#alias_arn #alias_arn} => String
@@ -2450,6 +2497,7 @@ module Aws::Lambda
2450
2497
  # * {Types::AliasConfiguration#function_version #function_version} => String
2451
2498
  # * {Types::AliasConfiguration#description #description} => String
2452
2499
  # * {Types::AliasConfiguration#routing_config #routing_config} => Types::AliasRoutingConfiguration
2500
+ # * {Types::AliasConfiguration#revision_id #revision_id} => String
2453
2501
  #
2454
2502
  #
2455
2503
  # @example Example: To update a Lambda function alias
@@ -2483,6 +2531,7 @@ module Aws::Lambda
2483
2531
  # "AdditionalVersion" => 1.0,
2484
2532
  # },
2485
2533
  # },
2534
+ # revision_id: "String",
2486
2535
  # })
2487
2536
  #
2488
2537
  # @example Response structure
@@ -2493,6 +2542,7 @@ module Aws::Lambda
2493
2542
  # resp.description #=> String
2494
2543
  # resp.routing_config.additional_version_weights #=> Hash
2495
2544
  # resp.routing_config.additional_version_weights["AdditionalVersion"] #=> Float
2545
+ # resp.revision_id #=> String
2496
2546
  #
2497
2547
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias AWS API Documentation
2498
2548
  #
@@ -2690,6 +2740,13 @@ module Aws::Lambda
2690
2740
  # operation is invoked, the `CodeSha256` hash value of the provided code
2691
2741
  # will also be computed and returned in the response.
2692
2742
  #
2743
+ # @option params [String] :revision_id
2744
+ # An optional value you can use to ensure you are updating the latest
2745
+ # update of the function version or alias. If the `RevisionID` you pass
2746
+ # doesn't match the latest `RevisionId` of the function or alias, it
2747
+ # will fail with an error message, advising you to retrieve the latest
2748
+ # function version or alias `RevisionID` using either or .
2749
+ #
2693
2750
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2694
2751
  #
2695
2752
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -2710,6 +2767,7 @@ module Aws::Lambda
2710
2767
  # * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
2711
2768
  # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
2712
2769
  # * {Types::FunctionConfiguration#master_arn #master_arn} => String
2770
+ # * {Types::FunctionConfiguration#revision_id #revision_id} => String
2713
2771
  #
2714
2772
  #
2715
2773
  # @example Example: To update a Lambda function's code
@@ -2753,6 +2811,7 @@ module Aws::Lambda
2753
2811
  # s3_object_version: "S3ObjectVersion",
2754
2812
  # publish: false,
2755
2813
  # dry_run: false,
2814
+ # revision_id: "String",
2756
2815
  # })
2757
2816
  #
2758
2817
  # @example Response structure
@@ -2782,6 +2841,7 @@ module Aws::Lambda
2782
2841
  # resp.kms_key_arn #=> String
2783
2842
  # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
2784
2843
  # resp.master_arn #=> String
2844
+ # resp.revision_id #=> String
2785
2845
  #
2786
2846
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
2787
2847
  #
@@ -2888,6 +2948,13 @@ module Aws::Lambda
2888
2948
  # @option params [Types::TracingConfig] :tracing_config
2889
2949
  # The parent object that contains your function's tracing settings.
2890
2950
  #
2951
+ # @option params [String] :revision_id
2952
+ # An optional value you can use to ensure you are updating the latest
2953
+ # update of the function version or alias. If the `RevisionID` you pass
2954
+ # doesn't match the latest `RevisionId` of the function or alias, it
2955
+ # will fail with an error message, advising you to retrieve the latest
2956
+ # function version or alias `RevisionID` using either or .
2957
+ #
2891
2958
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2892
2959
  #
2893
2960
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -2908,6 +2975,7 @@ module Aws::Lambda
2908
2975
  # * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
2909
2976
  # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
2910
2977
  # * {Types::FunctionConfiguration#master_arn #master_arn} => String
2978
+ # * {Types::FunctionConfiguration#revision_id #revision_id} => String
2911
2979
  #
2912
2980
  #
2913
2981
  # @example Example: To update a Lambda function's configuration
@@ -2970,6 +3038,7 @@ module Aws::Lambda
2970
3038
  # tracing_config: {
2971
3039
  # mode: "Active", # accepts Active, PassThrough
2972
3040
  # },
3041
+ # revision_id: "String",
2973
3042
  # })
2974
3043
  #
2975
3044
  # @example Response structure
@@ -2999,6 +3068,7 @@ module Aws::Lambda
2999
3068
  # resp.kms_key_arn #=> String
3000
3069
  # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
3001
3070
  # resp.master_arn #=> String
3071
+ # resp.revision_id #=> String
3002
3072
  #
3003
3073
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
3004
3074
  #
@@ -3022,7 +3092,7 @@ module Aws::Lambda
3022
3092
  params: params,
3023
3093
  config: config)
3024
3094
  context[:gem_name] = 'aws-sdk-lambda'
3025
- context[:gem_version] = '1.3.0'
3095
+ context[:gem_version] = '1.4.0'
3026
3096
  Seahorse::Client::Request.new(handlers, context)
3027
3097
  end
3028
3098
 
@@ -108,6 +108,7 @@ module Aws::Lambda
108
108
  NamespacedFunctionName = Shapes::StringShape.new(name: 'NamespacedFunctionName')
109
109
  NamespacedStatementId = Shapes::StringShape.new(name: 'NamespacedStatementId')
110
110
  PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
111
+ PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
111
112
  Principal = Shapes::StringShape.new(name: 'Principal')
112
113
  PublishVersionRequest = Shapes::StructureShape.new(name: 'PublishVersionRequest')
113
114
  PutFunctionConcurrencyRequest = Shapes::StructureShape.new(name: 'PutFunctionConcurrencyRequest')
@@ -177,6 +178,7 @@ module Aws::Lambda
177
178
  AddPermissionRequest.add_member(:source_account, Shapes::ShapeRef.new(shape: SourceOwner, location_name: "SourceAccount"))
178
179
  AddPermissionRequest.add_member(:event_source_token, Shapes::ShapeRef.new(shape: EventSourceToken, location_name: "EventSourceToken"))
179
180
  AddPermissionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
181
+ AddPermissionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
180
182
  AddPermissionRequest.struct_class = Types::AddPermissionRequest
181
183
 
182
184
  AddPermissionResponse.add_member(:statement, Shapes::ShapeRef.new(shape: String, location_name: "Statement"))
@@ -190,6 +192,7 @@ module Aws::Lambda
190
192
  AliasConfiguration.add_member(:function_version, Shapes::ShapeRef.new(shape: Version, location_name: "FunctionVersion"))
191
193
  AliasConfiguration.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
192
194
  AliasConfiguration.add_member(:routing_config, Shapes::ShapeRef.new(shape: AliasRoutingConfiguration, location_name: "RoutingConfig"))
195
+ AliasConfiguration.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
193
196
  AliasConfiguration.struct_class = Types::AliasConfiguration
194
197
 
195
198
  AliasList.member = Shapes::ShapeRef.new(shape: AliasConfiguration)
@@ -303,6 +306,7 @@ module Aws::Lambda
303
306
  FunctionConfiguration.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
304
307
  FunctionConfiguration.add_member(:tracing_config, Shapes::ShapeRef.new(shape: TracingConfigResponse, location_name: "TracingConfig"))
305
308
  FunctionConfiguration.add_member(:master_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "MasterArn"))
309
+ FunctionConfiguration.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
306
310
  FunctionConfiguration.struct_class = Types::FunctionConfiguration
307
311
 
308
312
  FunctionList.member = Shapes::ShapeRef.new(shape: FunctionConfiguration)
@@ -339,6 +343,7 @@ module Aws::Lambda
339
343
  GetPolicyRequest.struct_class = Types::GetPolicyRequest
340
344
 
341
345
  GetPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
346
+ GetPolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
342
347
  GetPolicyResponse.struct_class = Types::GetPolicyResponse
343
348
 
344
349
  InvocationRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
@@ -417,6 +422,7 @@ module Aws::Lambda
417
422
  PublishVersionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
418
423
  PublishVersionRequest.add_member(:code_sha_256, Shapes::ShapeRef.new(shape: String, location_name: "CodeSha256"))
419
424
  PublishVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
425
+ PublishVersionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
420
426
  PublishVersionRequest.struct_class = Types::PublishVersionRequest
421
427
 
422
428
  PutFunctionConcurrencyRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
@@ -426,6 +432,7 @@ module Aws::Lambda
426
432
  RemovePermissionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
427
433
  RemovePermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: NamespacedStatementId, required: true, location: "uri", location_name: "StatementId"))
428
434
  RemovePermissionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
435
+ RemovePermissionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "RevisionId"))
429
436
  RemovePermissionRequest.struct_class = Types::RemovePermissionRequest
430
437
 
431
438
  SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
@@ -456,6 +463,7 @@ module Aws::Lambda
456
463
  UpdateAliasRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: Version, location_name: "FunctionVersion"))
457
464
  UpdateAliasRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
458
465
  UpdateAliasRequest.add_member(:routing_config, Shapes::ShapeRef.new(shape: AliasRoutingConfiguration, location_name: "RoutingConfig"))
466
+ UpdateAliasRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
459
467
  UpdateAliasRequest.struct_class = Types::UpdateAliasRequest
460
468
 
461
469
  UpdateEventSourceMappingRequest.add_member(:uuid, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "UUID"))
@@ -471,6 +479,7 @@ module Aws::Lambda
471
479
  UpdateFunctionCodeRequest.add_member(:s3_object_version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "S3ObjectVersion"))
472
480
  UpdateFunctionCodeRequest.add_member(:publish, Shapes::ShapeRef.new(shape: Boolean, location_name: "Publish"))
473
481
  UpdateFunctionCodeRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
482
+ UpdateFunctionCodeRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
474
483
  UpdateFunctionCodeRequest.struct_class = Types::UpdateFunctionCodeRequest
475
484
 
476
485
  UpdateFunctionConfigurationRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
@@ -485,6 +494,7 @@ module Aws::Lambda
485
494
  UpdateFunctionConfigurationRequest.add_member(:dead_letter_config, Shapes::ShapeRef.new(shape: DeadLetterConfig, location_name: "DeadLetterConfig"))
486
495
  UpdateFunctionConfigurationRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
487
496
  UpdateFunctionConfigurationRequest.add_member(:tracing_config, Shapes::ShapeRef.new(shape: TracingConfig, location_name: "TracingConfig"))
497
+ UpdateFunctionConfigurationRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
488
498
  UpdateFunctionConfigurationRequest.struct_class = Types::UpdateFunctionConfigurationRequest
489
499
 
490
500
  VpcConfig.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, location_name: "SubnetIds"))
@@ -521,6 +531,7 @@ module Aws::Lambda
521
531
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
522
532
  o.errors << Shapes::ShapeRef.new(shape: PolicyLengthExceededException)
523
533
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
534
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
524
535
  end)
525
536
 
526
537
  api.add_operation(:create_alias, Seahorse::Model::Operation.new.tap do |o|
@@ -804,6 +815,7 @@ module Aws::Lambda
804
815
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
805
816
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
806
817
  o.errors << Shapes::ShapeRef.new(shape: CodeStorageExceededException)
818
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
807
819
  end)
808
820
 
809
821
  api.add_operation(:put_function_concurrency, Seahorse::Model::Operation.new.tap do |o|
@@ -828,6 +840,7 @@ module Aws::Lambda
828
840
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
829
841
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
830
842
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
843
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
831
844
  end)
832
845
 
833
846
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -864,6 +877,7 @@ module Aws::Lambda
864
877
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
865
878
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
866
879
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
880
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
867
881
  end)
868
882
 
869
883
  api.add_operation(:update_event_source_mapping, Seahorse::Model::Operation.new.tap do |o|
@@ -890,6 +904,7 @@ module Aws::Lambda
890
904
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
891
905
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
892
906
  o.errors << Shapes::ShapeRef.new(shape: CodeStorageExceededException)
907
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
893
908
  end)
894
909
 
895
910
  api.add_operation(:update_function_configuration, Seahorse::Model::Operation.new.tap do |o|
@@ -903,6 +918,7 @@ module Aws::Lambda
903
918
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
904
919
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
905
920
  o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
921
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
906
922
  end)
907
923
  end
908
924
 
@@ -88,6 +88,7 @@ module Aws::Lambda
88
88
  # source_account: "SourceOwner",
89
89
  # event_source_token: "EventSourceToken",
90
90
  # qualifier: "Qualifier",
91
+ # revision_id: "String",
91
92
  # }
92
93
  #
93
94
  # @!attribute [rw] function_name
@@ -174,6 +175,14 @@ module Aws::Lambda
174
175
  # `arn:aws:lambda:aws-region:acct-id:function:function-name`
175
176
  # @return [String]
176
177
  #
178
+ # @!attribute [rw] revision_id
179
+ # An optional value you can use to ensure you are updating the latest
180
+ # update of the function version or alias. If the `RevisionID` you
181
+ # pass doesn't match the latest `RevisionId` of the function or
182
+ # alias, it will fail with an error message, advising you to retrieve
183
+ # the latest function version or alias `RevisionID` using either or .
184
+ # @return [String]
185
+ #
177
186
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermissionRequest AWS API Documentation
178
187
  #
179
188
  class AddPermissionRequest < Struct.new(
@@ -184,7 +193,8 @@ module Aws::Lambda
184
193
  :source_arn,
185
194
  :source_account,
186
195
  :event_source_token,
187
- :qualifier)
196
+ :qualifier,
197
+ :revision_id)
188
198
  include Aws::Structure
189
199
  end
190
200
 
@@ -230,6 +240,10 @@ module Aws::Lambda
230
240
  # lambda-traffic-shifting-using-aliases.
231
241
  # @return [Types::AliasRoutingConfiguration]
232
242
  #
243
+ # @!attribute [rw] revision_id
244
+ # Represents the latest updated revision of the function or alias.
245
+ # @return [String]
246
+ #
233
247
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasConfiguration AWS API Documentation
234
248
  #
235
249
  class AliasConfiguration < Struct.new(
@@ -237,7 +251,8 @@ module Aws::Lambda
237
251
  :name,
238
252
  :function_version,
239
253
  :description,
240
- :routing_config)
254
+ :routing_config,
255
+ :revision_id)
241
256
  include Aws::Structure
242
257
  end
243
258
 
@@ -482,7 +497,7 @@ module Aws::Lambda
482
497
  # <note markdown="1"> Node v0.10.42 is currently marked as deprecated. You must migrate
483
498
  # existing functions to the newer Node.js runtime versions available
484
499
  # on AWS Lambda (nodejs4.3 or nodejs6.10) as soon as possible. Failure
485
- # to do so will result in an invalid parmaeter error being returned.
500
+ # to do so will result in an invalid parameter error being returned.
486
501
  # Note that you will have to follow this procedure for each region
487
502
  # that contains functions written in the Node v0.10.42 runtime.
488
503
  #
@@ -1016,6 +1031,10 @@ module Aws::Lambda
1016
1031
  # Returns the ARN (Amazon Resource Name) of the master function.
1017
1032
  # @return [String]
1018
1033
  #
1034
+ # @!attribute [rw] revision_id
1035
+ # Represents the latest updated revision of the function or alias.
1036
+ # @return [String]
1037
+ #
1019
1038
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
1020
1039
  #
1021
1040
  class FunctionConfiguration < Struct.new(
@@ -1036,7 +1055,8 @@ module Aws::Lambda
1036
1055
  :environment,
1037
1056
  :kms_key_arn,
1038
1057
  :tracing_config,
1039
- :master_arn)
1058
+ :master_arn,
1059
+ :revision_id)
1040
1060
  include Aws::Structure
1041
1061
  end
1042
1062
 
@@ -1266,10 +1286,15 @@ module Aws::Lambda
1266
1286
  # an escape character in the JSON.
1267
1287
  # @return [String]
1268
1288
  #
1289
+ # @!attribute [rw] revision_id
1290
+ # Represents the latest updated revision of the function or alias.
1291
+ # @return [String]
1292
+ #
1269
1293
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicyResponse AWS API Documentation
1270
1294
  #
1271
1295
  class GetPolicyResponse < Struct.new(
1272
- :policy)
1296
+ :policy,
1297
+ :revision_id)
1273
1298
  include Aws::Structure
1274
1299
  end
1275
1300
 
@@ -1756,6 +1781,7 @@ module Aws::Lambda
1756
1781
  # function_name: "FunctionName", # required
1757
1782
  # code_sha_256: "String",
1758
1783
  # description: "Description",
1784
+ # revision_id: "String",
1759
1785
  # }
1760
1786
  #
1761
1787
  # @!attribute [rw] function_name
@@ -1783,12 +1809,21 @@ module Aws::Lambda
1783
1809
  # AWS Lambda copies the description from the $LATEST version.
1784
1810
  # @return [String]
1785
1811
  #
1812
+ # @!attribute [rw] revision_id
1813
+ # An optional value you can use to ensure you are updating the latest
1814
+ # update of the function version or alias. If the `RevisionID` you
1815
+ # pass doesn't match the latest `RevisionId` of the function or
1816
+ # alias, it will fail with an error message, advising you to retrieve
1817
+ # the latest function version or alias `RevisionID` using either or .
1818
+ # @return [String]
1819
+ #
1786
1820
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersionRequest AWS API Documentation
1787
1821
  #
1788
1822
  class PublishVersionRequest < Struct.new(
1789
1823
  :function_name,
1790
1824
  :code_sha_256,
1791
- :description)
1825
+ :description,
1826
+ :revision_id)
1792
1827
  include Aws::Structure
1793
1828
  end
1794
1829
 
@@ -1825,6 +1860,7 @@ module Aws::Lambda
1825
1860
  # function_name: "FunctionName", # required
1826
1861
  # statement_id: "NamespacedStatementId", # required
1827
1862
  # qualifier: "Qualifier",
1863
+ # revision_id: "String",
1828
1864
  # }
1829
1865
  #
1830
1866
  # @!attribute [rw] function_name
@@ -1851,12 +1887,21 @@ module Aws::Lambda
1851
1887
  # associated with the unqualified function ARN.
1852
1888
  # @return [String]
1853
1889
  #
1890
+ # @!attribute [rw] revision_id
1891
+ # An optional value you can use to ensure you are updating the latest
1892
+ # update of the function version or alias. If the `RevisionID` you
1893
+ # pass doesn't match the latest `RevisionId` of the function or
1894
+ # alias, it will fail with an error message, advising you to retrieve
1895
+ # the latest function version or alias `RevisionID` using either or .
1896
+ # @return [String]
1897
+ #
1854
1898
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermissionRequest AWS API Documentation
1855
1899
  #
1856
1900
  class RemovePermissionRequest < Struct.new(
1857
1901
  :function_name,
1858
1902
  :statement_id,
1859
- :qualifier)
1903
+ :qualifier,
1904
+ :revision_id)
1860
1905
  include Aws::Structure
1861
1906
  end
1862
1907
 
@@ -1963,6 +2008,7 @@ module Aws::Lambda
1963
2008
  # "AdditionalVersion" => 1.0,
1964
2009
  # },
1965
2010
  # },
2011
+ # revision_id: "String",
1966
2012
  # }
1967
2013
  #
1968
2014
  # @!attribute [rw] function_name
@@ -1990,6 +2036,14 @@ module Aws::Lambda
1990
2036
  # For more information, see lambda-traffic-shifting-using-aliases.
1991
2037
  # @return [Types::AliasRoutingConfiguration]
1992
2038
  #
2039
+ # @!attribute [rw] revision_id
2040
+ # An optional value you can use to ensure you are updating the latest
2041
+ # update of the function version or alias. If the `RevisionID` you
2042
+ # pass doesn't match the latest `RevisionId` of the function or
2043
+ # alias, it will fail with an error message, advising you to retrieve
2044
+ # the latest function version or alias `RevisionID` using either or .
2045
+ # @return [String]
2046
+ #
1993
2047
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAliasRequest AWS API Documentation
1994
2048
  #
1995
2049
  class UpdateAliasRequest < Struct.new(
@@ -1997,7 +2051,8 @@ module Aws::Lambda
1997
2051
  :name,
1998
2052
  :function_version,
1999
2053
  :description,
2000
- :routing_config)
2054
+ :routing_config,
2055
+ :revision_id)
2001
2056
  include Aws::Structure
2002
2057
  end
2003
2058
 
@@ -2071,6 +2126,7 @@ module Aws::Lambda
2071
2126
  # s3_object_version: "S3ObjectVersion",
2072
2127
  # publish: false,
2073
2128
  # dry_run: false,
2129
+ # revision_id: "String",
2074
2130
  # }
2075
2131
  #
2076
2132
  # @!attribute [rw] function_name
@@ -2129,6 +2185,14 @@ module Aws::Lambda
2129
2185
  # response.
2130
2186
  # @return [Boolean]
2131
2187
  #
2188
+ # @!attribute [rw] revision_id
2189
+ # An optional value you can use to ensure you are updating the latest
2190
+ # update of the function version or alias. If the `RevisionID` you
2191
+ # pass doesn't match the latest `RevisionId` of the function or
2192
+ # alias, it will fail with an error message, advising you to retrieve
2193
+ # the latest function version or alias `RevisionID` using either or .
2194
+ # @return [String]
2195
+ #
2132
2196
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCodeRequest AWS API Documentation
2133
2197
  #
2134
2198
  class UpdateFunctionCodeRequest < Struct.new(
@@ -2138,7 +2202,8 @@ module Aws::Lambda
2138
2202
  :s3_key,
2139
2203
  :s3_object_version,
2140
2204
  :publish,
2141
- :dry_run)
2205
+ :dry_run,
2206
+ :revision_id)
2142
2207
  include Aws::Structure
2143
2208
  end
2144
2209
 
@@ -2169,6 +2234,7 @@ module Aws::Lambda
2169
2234
  # tracing_config: {
2170
2235
  # mode: "Active", # accepts Active, PassThrough
2171
2236
  # },
2237
+ # revision_id: "String",
2172
2238
  # }
2173
2239
  #
2174
2240
  # @!attribute [rw] function_name
@@ -2261,6 +2327,14 @@ module Aws::Lambda
2261
2327
  # The parent object that contains your function's tracing settings.
2262
2328
  # @return [Types::TracingConfig]
2263
2329
  #
2330
+ # @!attribute [rw] revision_id
2331
+ # An optional value you can use to ensure you are updating the latest
2332
+ # update of the function version or alias. If the `RevisionID` you
2333
+ # pass doesn't match the latest `RevisionId` of the function or
2334
+ # alias, it will fail with an error message, advising you to retrieve
2335
+ # the latest function version or alias `RevisionID` using either or .
2336
+ # @return [String]
2337
+ #
2264
2338
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
2265
2339
  #
2266
2340
  class UpdateFunctionConfigurationRequest < Struct.new(
@@ -2275,7 +2349,8 @@ module Aws::Lambda
2275
2349
  :runtime,
2276
2350
  :dead_letter_config,
2277
2351
  :kms_key_arn,
2278
- :tracing_config)
2352
+ :tracing_config,
2353
+ :revision_id)
2279
2354
  include Aws::Structure
2280
2355
  end
2281
2356
 
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.3.0
4
+ version: 1.4.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: 2018-01-15 00:00:00.000000000 Z
11
+ date: 2018-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core