aws-sdk-lambda 1.90.0 → 1.91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +187 -8
- data/lib/aws-sdk-lambda/client_api.rb +61 -0
- data/lib/aws-sdk-lambda/endpoints.rb +28 -0
- data/lib/aws-sdk-lambda/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-lambda/types.rb +200 -6
- data/lib/aws-sdk-lambda.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a970f96d365ea49ea108efd537f980f1158a46c31361a70128ef7a9f22eafbde
|
4
|
+
data.tar.gz: b138e1a5e2a81d5367fef83628e407765b36d4216a0a1f876e214b6015194453
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 273a0f68bb3fe8784681f354f436ded79e0a031adb806002ddc3596ae742613183ad92418c495f4c44e48fade74d3bcbba283b351afd0f2a5a8ba279277799b0
|
7
|
+
data.tar.gz: c7b8f26ac9c33f357ca31c81673ff0f561728056c5a7aa85a915e07beba1bae4dc1eda71ad7bfeb53326b76730f3cd00615fce4f24dc8732e26e51f22907b610
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.91.0 (2023-01-23)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Release Lambda RuntimeManagementConfig, enabling customers to better manage runtime updates to their Lambda functions. This release adds two new APIs, GetRuntimeManagementConfig and PutRuntimeManagementConfig, as well as support on existing Create/Get/Update function APIs.
|
8
|
+
|
4
9
|
1.90.0 (2023-01-18)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.91.0
|
@@ -583,7 +583,7 @@ module Aws::Lambda
|
|
583
583
|
#
|
584
584
|
#
|
585
585
|
#
|
586
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
586
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
|
587
587
|
#
|
588
588
|
# @option params [required, String] :function_name
|
589
589
|
# The name of the Lambda function.
|
@@ -1328,6 +1328,7 @@ module Aws::Lambda
|
|
1328
1328
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
1329
1329
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
1330
1330
|
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
1331
|
+
# * {Types::FunctionConfiguration#runtime_version_config #runtime_version_config} => Types::RuntimeVersionConfig
|
1331
1332
|
#
|
1332
1333
|
# @example Request syntax with placeholder values
|
1333
1334
|
#
|
@@ -1446,6 +1447,9 @@ module Aws::Lambda
|
|
1446
1447
|
# resp.ephemeral_storage.size #=> Integer
|
1447
1448
|
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
1448
1449
|
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
1450
|
+
# resp.runtime_version_config.runtime_version_arn #=> String
|
1451
|
+
# resp.runtime_version_config.error.error_code #=> String
|
1452
|
+
# resp.runtime_version_config.error.message #=> String
|
1449
1453
|
#
|
1450
1454
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
|
1451
1455
|
#
|
@@ -1551,7 +1555,7 @@ module Aws::Lambda
|
|
1551
1555
|
#
|
1552
1556
|
#
|
1553
1557
|
#
|
1554
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
1558
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
|
1555
1559
|
#
|
1556
1560
|
# @option params [required, String] :function_name
|
1557
1561
|
# The name of the Lambda function.
|
@@ -2012,7 +2016,7 @@ module Aws::Lambda
|
|
2012
2016
|
#
|
2013
2017
|
#
|
2014
2018
|
#
|
2015
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
2019
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
|
2016
2020
|
#
|
2017
2021
|
# @option params [required, String] :function_name
|
2018
2022
|
# The name of the Lambda function.
|
@@ -2286,6 +2290,9 @@ module Aws::Lambda
|
|
2286
2290
|
# resp.configuration.ephemeral_storage.size #=> Integer
|
2287
2291
|
# resp.configuration.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
2288
2292
|
# resp.configuration.snap_start.optimization_status #=> String, one of "On", "Off"
|
2293
|
+
# resp.configuration.runtime_version_config.runtime_version_arn #=> String
|
2294
|
+
# resp.configuration.runtime_version_config.error.error_code #=> String
|
2295
|
+
# resp.configuration.runtime_version_config.error.message #=> String
|
2289
2296
|
# resp.code.repository_type #=> String
|
2290
2297
|
# resp.code.location #=> String
|
2291
2298
|
# resp.code.image_uri #=> String
|
@@ -2458,6 +2465,7 @@ module Aws::Lambda
|
|
2458
2465
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
2459
2466
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
2460
2467
|
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
2468
|
+
# * {Types::FunctionConfiguration#runtime_version_config #runtime_version_config} => Types::RuntimeVersionConfig
|
2461
2469
|
#
|
2462
2470
|
# @example Request syntax with placeholder values
|
2463
2471
|
#
|
@@ -2523,6 +2531,9 @@ module Aws::Lambda
|
|
2523
2531
|
# resp.ephemeral_storage.size #=> Integer
|
2524
2532
|
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
2525
2533
|
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
2534
|
+
# resp.runtime_version_config.runtime_version_arn #=> String
|
2535
|
+
# resp.runtime_version_config.error.error_code #=> String
|
2536
|
+
# resp.runtime_version_config.error.message #=> String
|
2526
2537
|
#
|
2527
2538
|
#
|
2528
2539
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -2923,6 +2934,63 @@ module Aws::Lambda
|
|
2923
2934
|
req.send_request(options)
|
2924
2935
|
end
|
2925
2936
|
|
2937
|
+
# Retrieves the runtime management configuration for a function's
|
2938
|
+
# version. If the runtime update mode is **Manual**, this includes the
|
2939
|
+
# ARN of the runtime version and the runtime update mode. If the runtime
|
2940
|
+
# update mode is **Auto** or **Function update**, this includes the
|
2941
|
+
# runtime update mode and `null` is returned for the ARN. For more
|
2942
|
+
# information, see [Runtime updates][1].
|
2943
|
+
#
|
2944
|
+
#
|
2945
|
+
#
|
2946
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html
|
2947
|
+
#
|
2948
|
+
# @option params [required, String] :function_name
|
2949
|
+
# The name of the Lambda function.
|
2950
|
+
#
|
2951
|
+
# **Name formats**
|
2952
|
+
#
|
2953
|
+
# * **Function name** – `my-function`.
|
2954
|
+
#
|
2955
|
+
# * **Function ARN** –
|
2956
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2957
|
+
#
|
2958
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
2959
|
+
#
|
2960
|
+
# The length constraint applies only to the full ARN. If you specify
|
2961
|
+
# only the function name, it is limited to 64 characters in length.
|
2962
|
+
#
|
2963
|
+
# @option params [String] :qualifier
|
2964
|
+
# Specify a version of the function. This can be `$LATEST` or a
|
2965
|
+
# published version number. If no value is specified, the configuration
|
2966
|
+
# for the `$LATEST` version is returned.
|
2967
|
+
#
|
2968
|
+
# @return [Types::GetRuntimeManagementConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2969
|
+
#
|
2970
|
+
# * {Types::GetRuntimeManagementConfigResponse#update_runtime_on #update_runtime_on} => String
|
2971
|
+
# * {Types::GetRuntimeManagementConfigResponse#runtime_version_arn #runtime_version_arn} => String
|
2972
|
+
#
|
2973
|
+
# @example Request syntax with placeholder values
|
2974
|
+
#
|
2975
|
+
# resp = client.get_runtime_management_config({
|
2976
|
+
# function_name: "FunctionName", # required
|
2977
|
+
# qualifier: "Qualifier",
|
2978
|
+
# })
|
2979
|
+
#
|
2980
|
+
# @example Response structure
|
2981
|
+
#
|
2982
|
+
# resp.update_runtime_on #=> String, one of "Auto", "Manual", "FunctionUpdate"
|
2983
|
+
# resp.runtime_version_arn #=> String
|
2984
|
+
#
|
2985
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetRuntimeManagementConfig AWS API Documentation
|
2986
|
+
#
|
2987
|
+
# @overload get_runtime_management_config(params = {})
|
2988
|
+
# @param [Hash] params ({})
|
2989
|
+
def get_runtime_management_config(params = {}, options = {})
|
2990
|
+
req = build_request(:get_runtime_management_config, params)
|
2991
|
+
req.send_request(options)
|
2992
|
+
end
|
2993
|
+
|
2926
2994
|
# Invokes a Lambda function. You can invoke a function synchronously
|
2927
2995
|
# (and wait for the response), or asynchronously. To invoke a function
|
2928
2996
|
# asynchronously, set `InvocationType` to `Event`.
|
@@ -3113,7 +3181,7 @@ module Aws::Lambda
|
|
3113
3181
|
#
|
3114
3182
|
#
|
3115
3183
|
#
|
3116
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
3184
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
|
3117
3185
|
#
|
3118
3186
|
# @option params [required, String] :function_name
|
3119
3187
|
# The name of the Lambda function.
|
@@ -3479,8 +3547,8 @@ module Aws::Lambda
|
|
3479
3547
|
# <note markdown="1"> The `ListFunctions` operation returns a subset of the
|
3480
3548
|
# FunctionConfiguration fields. To get the additional fields (State,
|
3481
3549
|
# StateReasonCode, StateReason, LastUpdateStatus,
|
3482
|
-
# LastUpdateStatusReason, LastUpdateStatusReasonCode
|
3483
|
-
# version, use GetFunction.
|
3550
|
+
# LastUpdateStatusReason, LastUpdateStatusReasonCode,
|
3551
|
+
# RuntimeVersionConfig) for a function or version, use GetFunction.
|
3484
3552
|
#
|
3485
3553
|
# </note>
|
3486
3554
|
#
|
@@ -3579,6 +3647,9 @@ module Aws::Lambda
|
|
3579
3647
|
# resp.functions[0].ephemeral_storage.size #=> Integer
|
3580
3648
|
# resp.functions[0].snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
3581
3649
|
# resp.functions[0].snap_start.optimization_status #=> String, one of "On", "Off"
|
3650
|
+
# resp.functions[0].runtime_version_config.runtime_version_arn #=> String
|
3651
|
+
# resp.functions[0].runtime_version_config.error.error_code #=> String
|
3652
|
+
# resp.functions[0].runtime_version_config.error.message #=> String
|
3582
3653
|
#
|
3583
3654
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
|
3584
3655
|
#
|
@@ -3973,6 +4044,9 @@ module Aws::Lambda
|
|
3973
4044
|
# resp.versions[0].ephemeral_storage.size #=> Integer
|
3974
4045
|
# resp.versions[0].snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
3975
4046
|
# resp.versions[0].snap_start.optimization_status #=> String, one of "On", "Off"
|
4047
|
+
# resp.versions[0].runtime_version_config.runtime_version_arn #=> String
|
4048
|
+
# resp.versions[0].runtime_version_config.error.error_code #=> String
|
4049
|
+
# resp.versions[0].runtime_version_config.error.message #=> String
|
3976
4050
|
#
|
3977
4051
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
|
3978
4052
|
#
|
@@ -4170,6 +4244,7 @@ module Aws::Lambda
|
|
4170
4244
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
4171
4245
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
4172
4246
|
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
4247
|
+
# * {Types::FunctionConfiguration#runtime_version_config #runtime_version_config} => Types::RuntimeVersionConfig
|
4173
4248
|
#
|
4174
4249
|
# @example Request syntax with placeholder values
|
4175
4250
|
#
|
@@ -4237,6 +4312,9 @@ module Aws::Lambda
|
|
4237
4312
|
# resp.ephemeral_storage.size #=> Integer
|
4238
4313
|
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
4239
4314
|
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
4315
|
+
# resp.runtime_version_config.runtime_version_arn #=> String
|
4316
|
+
# resp.runtime_version_config.error.error_code #=> String
|
4317
|
+
# resp.runtime_version_config.error.message #=> String
|
4240
4318
|
#
|
4241
4319
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
|
4242
4320
|
#
|
@@ -4526,6 +4604,99 @@ module Aws::Lambda
|
|
4526
4604
|
req.send_request(options)
|
4527
4605
|
end
|
4528
4606
|
|
4607
|
+
# Sets the runtime management configuration for a function's version.
|
4608
|
+
# For more information, see [Runtime updates][1].
|
4609
|
+
#
|
4610
|
+
#
|
4611
|
+
#
|
4612
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html
|
4613
|
+
#
|
4614
|
+
# @option params [required, String] :function_name
|
4615
|
+
# The name of the Lambda function.
|
4616
|
+
#
|
4617
|
+
# **Name formats**
|
4618
|
+
#
|
4619
|
+
# * **Function name** – `my-function`.
|
4620
|
+
#
|
4621
|
+
# * **Function ARN** –
|
4622
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
4623
|
+
#
|
4624
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
4625
|
+
#
|
4626
|
+
# The length constraint applies only to the full ARN. If you specify
|
4627
|
+
# only the function name, it is limited to 64 characters in length.
|
4628
|
+
#
|
4629
|
+
# @option params [String] :qualifier
|
4630
|
+
# Specify a version of the function. This can be `$LATEST` or a
|
4631
|
+
# published version number. If no value is specified, the configuration
|
4632
|
+
# for the `$LATEST` version is returned.
|
4633
|
+
#
|
4634
|
+
# @option params [required, String] :update_runtime_on
|
4635
|
+
# Specify the runtime update mode.
|
4636
|
+
#
|
4637
|
+
# * **Auto (default)** - Automatically update to the most recent and
|
4638
|
+
# secure runtime version using a [Two-phase runtime version
|
4639
|
+
# rollout][1]. This is the best choice for most customers to ensure
|
4640
|
+
# they always benefit from runtime updates.
|
4641
|
+
#
|
4642
|
+
# * **Function update** - Lambda updates the runtime of your function to
|
4643
|
+
# the most recent and secure runtime version when you update your
|
4644
|
+
# function. This approach synchronizes runtime updates with function
|
4645
|
+
# deployments, giving you control over when runtime updates are
|
4646
|
+
# applied and allowing you to detect and mitigate rare runtime update
|
4647
|
+
# incompatibilities early. When using this setting, you need to
|
4648
|
+
# regularly update your functions to keep their runtime up-to-date.
|
4649
|
+
#
|
4650
|
+
# * **Manual** - You specify a runtime version in your function
|
4651
|
+
# configuration. The function will use this runtime version
|
4652
|
+
# indefinitely. In the rare case where a new runtime version is
|
4653
|
+
# incompatible with an existing function, this allows you to roll back
|
4654
|
+
# your function to an earlier runtime version. For more information,
|
4655
|
+
# see [Roll back a runtime version][2].
|
4656
|
+
#
|
4657
|
+
#
|
4658
|
+
#
|
4659
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase
|
4660
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback
|
4661
|
+
#
|
4662
|
+
# @option params [String] :runtime_version_arn
|
4663
|
+
# The ARN of the runtime version you want the function to use.
|
4664
|
+
#
|
4665
|
+
# <note markdown="1"> This is only required if you're using the **Manual** runtime update
|
4666
|
+
# mode.
|
4667
|
+
#
|
4668
|
+
# </note>
|
4669
|
+
#
|
4670
|
+
# @return [Types::PutRuntimeManagementConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4671
|
+
#
|
4672
|
+
# * {Types::PutRuntimeManagementConfigResponse#update_runtime_on #update_runtime_on} => String
|
4673
|
+
# * {Types::PutRuntimeManagementConfigResponse#function_arn #function_arn} => String
|
4674
|
+
# * {Types::PutRuntimeManagementConfigResponse#runtime_version_arn #runtime_version_arn} => String
|
4675
|
+
#
|
4676
|
+
# @example Request syntax with placeholder values
|
4677
|
+
#
|
4678
|
+
# resp = client.put_runtime_management_config({
|
4679
|
+
# function_name: "FunctionName", # required
|
4680
|
+
# qualifier: "Qualifier",
|
4681
|
+
# update_runtime_on: "Auto", # required, accepts Auto, Manual, FunctionUpdate
|
4682
|
+
# runtime_version_arn: "RuntimeVersionArn",
|
4683
|
+
# })
|
4684
|
+
#
|
4685
|
+
# @example Response structure
|
4686
|
+
#
|
4687
|
+
# resp.update_runtime_on #=> String, one of "Auto", "Manual", "FunctionUpdate"
|
4688
|
+
# resp.function_arn #=> String
|
4689
|
+
# resp.runtime_version_arn #=> String
|
4690
|
+
#
|
4691
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutRuntimeManagementConfig AWS API Documentation
|
4692
|
+
#
|
4693
|
+
# @overload put_runtime_management_config(params = {})
|
4694
|
+
# @param [Hash] params ({})
|
4695
|
+
def put_runtime_management_config(params = {}, options = {})
|
4696
|
+
req = build_request(:put_runtime_management_config, params)
|
4697
|
+
req.send_request(options)
|
4698
|
+
end
|
4699
|
+
|
4529
4700
|
# Removes a statement from the permissions policy for a version of an
|
4530
4701
|
# [Lambda layer][1]. For more information, see
|
4531
4702
|
# AddLayerVersionPermission.
|
@@ -4687,7 +4858,7 @@ module Aws::Lambda
|
|
4687
4858
|
#
|
4688
4859
|
#
|
4689
4860
|
#
|
4690
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
4861
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
|
4691
4862
|
#
|
4692
4863
|
# @option params [required, String] :function_name
|
4693
4864
|
# The name of the Lambda function.
|
@@ -5245,6 +5416,7 @@ module Aws::Lambda
|
|
5245
5416
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
5246
5417
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
5247
5418
|
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
5419
|
+
# * {Types::FunctionConfiguration#runtime_version_config #runtime_version_config} => Types::RuntimeVersionConfig
|
5248
5420
|
#
|
5249
5421
|
# @example Request syntax with placeholder values
|
5250
5422
|
#
|
@@ -5318,6 +5490,9 @@ module Aws::Lambda
|
|
5318
5490
|
# resp.ephemeral_storage.size #=> Integer
|
5319
5491
|
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
5320
5492
|
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
5493
|
+
# resp.runtime_version_config.runtime_version_arn #=> String
|
5494
|
+
# resp.runtime_version_config.error.error_code #=> String
|
5495
|
+
# resp.runtime_version_config.error.message #=> String
|
5321
5496
|
#
|
5322
5497
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
|
5323
5498
|
#
|
@@ -5519,6 +5694,7 @@ module Aws::Lambda
|
|
5519
5694
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
5520
5695
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
5521
5696
|
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
5697
|
+
# * {Types::FunctionConfiguration#runtime_version_config #runtime_version_config} => Types::RuntimeVersionConfig
|
5522
5698
|
#
|
5523
5699
|
# @example Request syntax with placeholder values
|
5524
5700
|
#
|
@@ -5624,6 +5800,9 @@ module Aws::Lambda
|
|
5624
5800
|
# resp.ephemeral_storage.size #=> Integer
|
5625
5801
|
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
5626
5802
|
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
5803
|
+
# resp.runtime_version_config.runtime_version_arn #=> String
|
5804
|
+
# resp.runtime_version_config.error.error_code #=> String
|
5805
|
+
# resp.runtime_version_config.error.message #=> String
|
5627
5806
|
#
|
5628
5807
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
|
5629
5808
|
#
|
@@ -5829,7 +6008,7 @@ module Aws::Lambda
|
|
5829
6008
|
params: params,
|
5830
6009
|
config: config)
|
5831
6010
|
context[:gem_name] = 'aws-sdk-lambda'
|
5832
|
-
context[:gem_version] = '1.
|
6011
|
+
context[:gem_version] = '1.91.0'
|
5833
6012
|
Seahorse::Client::Request.new(handlers, context)
|
5834
6013
|
end
|
5835
6014
|
|
@@ -148,6 +148,8 @@ module Aws::Lambda
|
|
148
148
|
GetPolicyResponse = Shapes::StructureShape.new(name: 'GetPolicyResponse')
|
149
149
|
GetProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'GetProvisionedConcurrencyConfigRequest')
|
150
150
|
GetProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'GetProvisionedConcurrencyConfigResponse')
|
151
|
+
GetRuntimeManagementConfigRequest = Shapes::StructureShape.new(name: 'GetRuntimeManagementConfigRequest')
|
152
|
+
GetRuntimeManagementConfigResponse = Shapes::StructureShape.new(name: 'GetRuntimeManagementConfigResponse')
|
151
153
|
Handler = Shapes::StringShape.new(name: 'Handler')
|
152
154
|
Header = Shapes::StringShape.new(name: 'Header')
|
153
155
|
HeadersList = Shapes::ListShape.new(name: 'HeadersList')
|
@@ -263,6 +265,8 @@ module Aws::Lambda
|
|
263
265
|
PutFunctionEventInvokeConfigRequest = Shapes::StructureShape.new(name: 'PutFunctionEventInvokeConfigRequest')
|
264
266
|
PutProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigRequest')
|
265
267
|
PutProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigResponse')
|
268
|
+
PutRuntimeManagementConfigRequest = Shapes::StructureShape.new(name: 'PutRuntimeManagementConfigRequest')
|
269
|
+
PutRuntimeManagementConfigResponse = Shapes::StructureShape.new(name: 'PutRuntimeManagementConfigResponse')
|
266
270
|
Qualifier = Shapes::StringShape.new(name: 'Qualifier')
|
267
271
|
Queue = Shapes::StringShape.new(name: 'Queue')
|
268
272
|
Queues = Shapes::ListShape.new(name: 'Queues')
|
@@ -277,6 +281,9 @@ module Aws::Lambda
|
|
277
281
|
ResourceNotReadyException = Shapes::StructureShape.new(name: 'ResourceNotReadyException')
|
278
282
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
279
283
|
Runtime = Shapes::StringShape.new(name: 'Runtime')
|
284
|
+
RuntimeVersionArn = Shapes::StringShape.new(name: 'RuntimeVersionArn')
|
285
|
+
RuntimeVersionConfig = Shapes::StructureShape.new(name: 'RuntimeVersionConfig')
|
286
|
+
RuntimeVersionError = Shapes::StructureShape.new(name: 'RuntimeVersionError')
|
280
287
|
S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
|
281
288
|
S3Key = Shapes::StringShape.new(name: 'S3Key')
|
282
289
|
S3ObjectVersion = Shapes::StringShape.new(name: 'S3ObjectVersion')
|
@@ -336,6 +343,7 @@ module Aws::Lambda
|
|
336
343
|
UpdateFunctionEventInvokeConfigRequest = Shapes::StructureShape.new(name: 'UpdateFunctionEventInvokeConfigRequest')
|
337
344
|
UpdateFunctionUrlConfigRequest = Shapes::StructureShape.new(name: 'UpdateFunctionUrlConfigRequest')
|
338
345
|
UpdateFunctionUrlConfigResponse = Shapes::StructureShape.new(name: 'UpdateFunctionUrlConfigResponse')
|
346
|
+
UpdateRuntimeOn = Shapes::StringShape.new(name: 'UpdateRuntimeOn')
|
339
347
|
Version = Shapes::StringShape.new(name: 'Version')
|
340
348
|
VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
|
341
349
|
VpcConfigResponse = Shapes::StructureShape.new(name: 'VpcConfigResponse')
|
@@ -721,6 +729,7 @@ module Aws::Lambda
|
|
721
729
|
FunctionConfiguration.add_member(:architectures, Shapes::ShapeRef.new(shape: ArchitecturesList, location_name: "Architectures"))
|
722
730
|
FunctionConfiguration.add_member(:ephemeral_storage, Shapes::ShapeRef.new(shape: EphemeralStorage, location_name: "EphemeralStorage"))
|
723
731
|
FunctionConfiguration.add_member(:snap_start, Shapes::ShapeRef.new(shape: SnapStartResponse, location_name: "SnapStart"))
|
732
|
+
FunctionConfiguration.add_member(:runtime_version_config, Shapes::ShapeRef.new(shape: RuntimeVersionConfig, location_name: "RuntimeVersionConfig"))
|
724
733
|
FunctionConfiguration.struct_class = Types::FunctionConfiguration
|
725
734
|
|
726
735
|
FunctionEventInvokeConfig.add_member(:last_modified, Shapes::ShapeRef.new(shape: Date, location_name: "LastModified"))
|
@@ -854,6 +863,14 @@ module Aws::Lambda
|
|
854
863
|
GetProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
|
855
864
|
GetProvisionedConcurrencyConfigResponse.struct_class = Types::GetProvisionedConcurrencyConfigResponse
|
856
865
|
|
866
|
+
GetRuntimeManagementConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
867
|
+
GetRuntimeManagementConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
868
|
+
GetRuntimeManagementConfigRequest.struct_class = Types::GetRuntimeManagementConfigRequest
|
869
|
+
|
870
|
+
GetRuntimeManagementConfigResponse.add_member(:update_runtime_on, Shapes::ShapeRef.new(shape: UpdateRuntimeOn, location_name: "UpdateRuntimeOn"))
|
871
|
+
GetRuntimeManagementConfigResponse.add_member(:runtime_version_arn, Shapes::ShapeRef.new(shape: RuntimeVersionArn, location_name: "RuntimeVersionArn"))
|
872
|
+
GetRuntimeManagementConfigResponse.struct_class = Types::GetRuntimeManagementConfigResponse
|
873
|
+
|
857
874
|
HeadersList.member = Shapes::ShapeRef.new(shape: Header)
|
858
875
|
|
859
876
|
ImageConfig.add_member(:entry_point, Shapes::ShapeRef.new(shape: StringList, location_name: "EntryPoint"))
|
@@ -1178,6 +1195,17 @@ module Aws::Lambda
|
|
1178
1195
|
PutProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
|
1179
1196
|
PutProvisionedConcurrencyConfigResponse.struct_class = Types::PutProvisionedConcurrencyConfigResponse
|
1180
1197
|
|
1198
|
+
PutRuntimeManagementConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
1199
|
+
PutRuntimeManagementConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
1200
|
+
PutRuntimeManagementConfigRequest.add_member(:update_runtime_on, Shapes::ShapeRef.new(shape: UpdateRuntimeOn, required: true, location_name: "UpdateRuntimeOn"))
|
1201
|
+
PutRuntimeManagementConfigRequest.add_member(:runtime_version_arn, Shapes::ShapeRef.new(shape: RuntimeVersionArn, location_name: "RuntimeVersionArn"))
|
1202
|
+
PutRuntimeManagementConfigRequest.struct_class = Types::PutRuntimeManagementConfigRequest
|
1203
|
+
|
1204
|
+
PutRuntimeManagementConfigResponse.add_member(:update_runtime_on, Shapes::ShapeRef.new(shape: UpdateRuntimeOn, required: true, location_name: "UpdateRuntimeOn"))
|
1205
|
+
PutRuntimeManagementConfigResponse.add_member(:function_arn, Shapes::ShapeRef.new(shape: FunctionArn, required: true, location_name: "FunctionArn"))
|
1206
|
+
PutRuntimeManagementConfigResponse.add_member(:runtime_version_arn, Shapes::ShapeRef.new(shape: RuntimeVersionArn, location_name: "RuntimeVersionArn"))
|
1207
|
+
PutRuntimeManagementConfigResponse.struct_class = Types::PutRuntimeManagementConfigResponse
|
1208
|
+
|
1181
1209
|
Queues.member = Shapes::ShapeRef.new(shape: Queue)
|
1182
1210
|
|
1183
1211
|
RemoveLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
@@ -1212,6 +1240,14 @@ module Aws::Lambda
|
|
1212
1240
|
ResourceNotReadyException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
1213
1241
|
ResourceNotReadyException.struct_class = Types::ResourceNotReadyException
|
1214
1242
|
|
1243
|
+
RuntimeVersionConfig.add_member(:runtime_version_arn, Shapes::ShapeRef.new(shape: RuntimeVersionArn, location_name: "RuntimeVersionArn"))
|
1244
|
+
RuntimeVersionConfig.add_member(:error, Shapes::ShapeRef.new(shape: RuntimeVersionError, location_name: "Error"))
|
1245
|
+
RuntimeVersionConfig.struct_class = Types::RuntimeVersionConfig
|
1246
|
+
|
1247
|
+
RuntimeVersionError.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "ErrorCode"))
|
1248
|
+
RuntimeVersionError.add_member(:message, Shapes::ShapeRef.new(shape: SensitiveString, location_name: "Message"))
|
1249
|
+
RuntimeVersionError.struct_class = Types::RuntimeVersionError
|
1250
|
+
|
1215
1251
|
ScalingConfig.add_member(:maximum_concurrency, Shapes::ShapeRef.new(shape: MaximumConcurrency, location_name: "MaximumConcurrency"))
|
1216
1252
|
ScalingConfig.struct_class = Types::ScalingConfig
|
1217
1253
|
|
@@ -1804,6 +1840,18 @@ module Aws::Lambda
|
|
1804
1840
|
o.errors << Shapes::ShapeRef.new(shape: ProvisionedConcurrencyConfigNotFoundException)
|
1805
1841
|
end)
|
1806
1842
|
|
1843
|
+
api.add_operation(:get_runtime_management_config, Seahorse::Model::Operation.new.tap do |o|
|
1844
|
+
o.name = "GetRuntimeManagementConfig"
|
1845
|
+
o.http_method = "GET"
|
1846
|
+
o.http_request_uri = "/2021-07-20/functions/{FunctionName}/runtime-management-config"
|
1847
|
+
o.input = Shapes::ShapeRef.new(shape: GetRuntimeManagementConfigRequest)
|
1848
|
+
o.output = Shapes::ShapeRef.new(shape: GetRuntimeManagementConfigResponse)
|
1849
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1850
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1851
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1852
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1853
|
+
end)
|
1854
|
+
|
1807
1855
|
api.add_operation(:invoke, Seahorse::Model::Operation.new.tap do |o|
|
1808
1856
|
o.name = "Invoke"
|
1809
1857
|
o.http_method = "POST"
|
@@ -2141,6 +2189,19 @@ module Aws::Lambda
|
|
2141
2189
|
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
2142
2190
|
end)
|
2143
2191
|
|
2192
|
+
api.add_operation(:put_runtime_management_config, Seahorse::Model::Operation.new.tap do |o|
|
2193
|
+
o.name = "PutRuntimeManagementConfig"
|
2194
|
+
o.http_method = "PUT"
|
2195
|
+
o.http_request_uri = "/2021-07-20/functions/{FunctionName}/runtime-management-config"
|
2196
|
+
o.input = Shapes::ShapeRef.new(shape: PutRuntimeManagementConfigRequest)
|
2197
|
+
o.output = Shapes::ShapeRef.new(shape: PutRuntimeManagementConfigResponse)
|
2198
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
2199
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2200
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
2201
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
2202
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
2203
|
+
end)
|
2204
|
+
|
2144
2205
|
api.add_operation(:remove_layer_version_permission, Seahorse::Model::Operation.new.tap do |o|
|
2145
2206
|
o.name = "RemoveLayerVersionPermission"
|
2146
2207
|
o.http_method = "DELETE"
|
@@ -459,6 +459,20 @@ module Aws::Lambda
|
|
459
459
|
end
|
460
460
|
end
|
461
461
|
|
462
|
+
class GetRuntimeManagementConfig
|
463
|
+
def self.build(context)
|
464
|
+
unless context.config.regional_endpoint
|
465
|
+
endpoint = context.config.endpoint.to_s
|
466
|
+
end
|
467
|
+
Aws::Lambda::EndpointParameters.new(
|
468
|
+
region: context.config.region,
|
469
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
470
|
+
use_fips: context.config.use_fips_endpoint,
|
471
|
+
endpoint: endpoint,
|
472
|
+
)
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
462
476
|
class Invoke
|
463
477
|
def self.build(context)
|
464
478
|
unless context.config.regional_endpoint
|
@@ -739,6 +753,20 @@ module Aws::Lambda
|
|
739
753
|
end
|
740
754
|
end
|
741
755
|
|
756
|
+
class PutRuntimeManagementConfig
|
757
|
+
def self.build(context)
|
758
|
+
unless context.config.regional_endpoint
|
759
|
+
endpoint = context.config.endpoint.to_s
|
760
|
+
end
|
761
|
+
Aws::Lambda::EndpointParameters.new(
|
762
|
+
region: context.config.region,
|
763
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
764
|
+
use_fips: context.config.use_fips_endpoint,
|
765
|
+
endpoint: endpoint,
|
766
|
+
)
|
767
|
+
end
|
768
|
+
end
|
769
|
+
|
742
770
|
class RemoveLayerVersionPermission
|
743
771
|
def self.build(context)
|
744
772
|
unless context.config.regional_endpoint
|
@@ -120,6 +120,8 @@ module Aws::Lambda
|
|
120
120
|
Aws::Lambda::Endpoints::GetPolicy.build(context)
|
121
121
|
when :get_provisioned_concurrency_config
|
122
122
|
Aws::Lambda::Endpoints::GetProvisionedConcurrencyConfig.build(context)
|
123
|
+
when :get_runtime_management_config
|
124
|
+
Aws::Lambda::Endpoints::GetRuntimeManagementConfig.build(context)
|
123
125
|
when :invoke
|
124
126
|
Aws::Lambda::Endpoints::Invoke.build(context)
|
125
127
|
when :invoke_async
|
@@ -160,6 +162,8 @@ module Aws::Lambda
|
|
160
162
|
Aws::Lambda::Endpoints::PutFunctionEventInvokeConfig.build(context)
|
161
163
|
when :put_provisioned_concurrency_config
|
162
164
|
Aws::Lambda::Endpoints::PutProvisionedConcurrencyConfig.build(context)
|
165
|
+
when :put_runtime_management_config
|
166
|
+
Aws::Lambda::Endpoints::PutRuntimeManagementConfig.build(context)
|
163
167
|
when :remove_layer_version_permission
|
164
168
|
Aws::Lambda::Endpoints::RemoveLayerVersionPermission.build(context)
|
165
169
|
when :remove_permission
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -258,7 +258,7 @@ module Aws::Lambda
|
|
258
258
|
#
|
259
259
|
#
|
260
260
|
#
|
261
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
261
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
|
262
262
|
#
|
263
263
|
# @!attribute [rw] alias_arn
|
264
264
|
# The Amazon Resource Name (ARN) of the alias.
|
@@ -2179,6 +2179,10 @@ module Aws::Lambda
|
|
2179
2179
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html
|
2180
2180
|
# @return [Types::SnapStartResponse]
|
2181
2181
|
#
|
2182
|
+
# @!attribute [rw] runtime_version_config
|
2183
|
+
# The ARN of the runtime and any errors that occured.
|
2184
|
+
# @return [Types::RuntimeVersionConfig]
|
2185
|
+
#
|
2182
2186
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
|
2183
2187
|
#
|
2184
2188
|
class FunctionConfiguration < Struct.new(
|
@@ -2215,7 +2219,8 @@ module Aws::Lambda
|
|
2215
2219
|
:signing_job_arn,
|
2216
2220
|
:architectures,
|
2217
2221
|
:ephemeral_storage,
|
2218
|
-
:snap_start
|
2222
|
+
:snap_start,
|
2223
|
+
:runtime_version_config)
|
2219
2224
|
SENSITIVE = []
|
2220
2225
|
include Aws::Structure
|
2221
2226
|
end
|
@@ -2974,6 +2979,56 @@ module Aws::Lambda
|
|
2974
2979
|
include Aws::Structure
|
2975
2980
|
end
|
2976
2981
|
|
2982
|
+
# @!attribute [rw] function_name
|
2983
|
+
# The name of the Lambda function.
|
2984
|
+
#
|
2985
|
+
# **Name formats**
|
2986
|
+
#
|
2987
|
+
# * **Function name** – `my-function`.
|
2988
|
+
#
|
2989
|
+
# * **Function ARN** –
|
2990
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2991
|
+
#
|
2992
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
2993
|
+
#
|
2994
|
+
# The length constraint applies only to the full ARN. If you specify
|
2995
|
+
# only the function name, it is limited to 64 characters in length.
|
2996
|
+
# @return [String]
|
2997
|
+
#
|
2998
|
+
# @!attribute [rw] qualifier
|
2999
|
+
# Specify a version of the function. This can be `$LATEST` or a
|
3000
|
+
# published version number. If no value is specified, the
|
3001
|
+
# configuration for the `$LATEST` version is returned.
|
3002
|
+
# @return [String]
|
3003
|
+
#
|
3004
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetRuntimeManagementConfigRequest AWS API Documentation
|
3005
|
+
#
|
3006
|
+
class GetRuntimeManagementConfigRequest < Struct.new(
|
3007
|
+
:function_name,
|
3008
|
+
:qualifier)
|
3009
|
+
SENSITIVE = []
|
3010
|
+
include Aws::Structure
|
3011
|
+
end
|
3012
|
+
|
3013
|
+
# @!attribute [rw] update_runtime_on
|
3014
|
+
# The current runtime update mode of the function.
|
3015
|
+
# @return [String]
|
3016
|
+
#
|
3017
|
+
# @!attribute [rw] runtime_version_arn
|
3018
|
+
# The ARN of the runtime the function is configured to use. If the
|
3019
|
+
# runtime update mode is **Manual**, the ARN is returned, otherwise
|
3020
|
+
# `null` is returned.
|
3021
|
+
# @return [String]
|
3022
|
+
#
|
3023
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetRuntimeManagementConfigResponse AWS API Documentation
|
3024
|
+
#
|
3025
|
+
class GetRuntimeManagementConfigResponse < Struct.new(
|
3026
|
+
:update_runtime_on,
|
3027
|
+
:runtime_version_arn)
|
3028
|
+
SENSITIVE = []
|
3029
|
+
include Aws::Structure
|
3030
|
+
end
|
3031
|
+
|
2977
3032
|
# Configuration values that override the container image Dockerfile
|
2978
3033
|
# settings. For more information, see [Container image settings][1].
|
2979
3034
|
#
|
@@ -4724,6 +4779,102 @@ module Aws::Lambda
|
|
4724
4779
|
include Aws::Structure
|
4725
4780
|
end
|
4726
4781
|
|
4782
|
+
# @!attribute [rw] function_name
|
4783
|
+
# The name of the Lambda function.
|
4784
|
+
#
|
4785
|
+
# **Name formats**
|
4786
|
+
#
|
4787
|
+
# * **Function name** – `my-function`.
|
4788
|
+
#
|
4789
|
+
# * **Function ARN** –
|
4790
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
4791
|
+
#
|
4792
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
4793
|
+
#
|
4794
|
+
# The length constraint applies only to the full ARN. If you specify
|
4795
|
+
# only the function name, it is limited to 64 characters in length.
|
4796
|
+
# @return [String]
|
4797
|
+
#
|
4798
|
+
# @!attribute [rw] qualifier
|
4799
|
+
# Specify a version of the function. This can be `$LATEST` or a
|
4800
|
+
# published version number. If no value is specified, the
|
4801
|
+
# configuration for the `$LATEST` version is returned.
|
4802
|
+
# @return [String]
|
4803
|
+
#
|
4804
|
+
# @!attribute [rw] update_runtime_on
|
4805
|
+
# Specify the runtime update mode.
|
4806
|
+
#
|
4807
|
+
# * **Auto (default)** - Automatically update to the most recent and
|
4808
|
+
# secure runtime version using a [Two-phase runtime version
|
4809
|
+
# rollout][1]. This is the best choice for most customers to ensure
|
4810
|
+
# they always benefit from runtime updates.
|
4811
|
+
#
|
4812
|
+
# * **Function update** - Lambda updates the runtime of your function
|
4813
|
+
# to the most recent and secure runtime version when you update your
|
4814
|
+
# function. This approach synchronizes runtime updates with function
|
4815
|
+
# deployments, giving you control over when runtime updates are
|
4816
|
+
# applied and allowing you to detect and mitigate rare runtime
|
4817
|
+
# update incompatibilities early. When using this setting, you need
|
4818
|
+
# to regularly update your functions to keep their runtime
|
4819
|
+
# up-to-date.
|
4820
|
+
#
|
4821
|
+
# * **Manual** - You specify a runtime version in your function
|
4822
|
+
# configuration. The function will use this runtime version
|
4823
|
+
# indefinitely. In the rare case where a new runtime version is
|
4824
|
+
# incompatible with an existing function, this allows you to roll
|
4825
|
+
# back your function to an earlier runtime version. For more
|
4826
|
+
# information, see [Roll back a runtime version][2].
|
4827
|
+
#
|
4828
|
+
#
|
4829
|
+
#
|
4830
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase
|
4831
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback
|
4832
|
+
# @return [String]
|
4833
|
+
#
|
4834
|
+
# @!attribute [rw] runtime_version_arn
|
4835
|
+
# The ARN of the runtime version you want the function to use.
|
4836
|
+
#
|
4837
|
+
# <note markdown="1"> This is only required if you're using the **Manual** runtime update
|
4838
|
+
# mode.
|
4839
|
+
#
|
4840
|
+
# </note>
|
4841
|
+
# @return [String]
|
4842
|
+
#
|
4843
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutRuntimeManagementConfigRequest AWS API Documentation
|
4844
|
+
#
|
4845
|
+
class PutRuntimeManagementConfigRequest < Struct.new(
|
4846
|
+
:function_name,
|
4847
|
+
:qualifier,
|
4848
|
+
:update_runtime_on,
|
4849
|
+
:runtime_version_arn)
|
4850
|
+
SENSITIVE = []
|
4851
|
+
include Aws::Structure
|
4852
|
+
end
|
4853
|
+
|
4854
|
+
# @!attribute [rw] update_runtime_on
|
4855
|
+
# The runtime update mode.
|
4856
|
+
# @return [String]
|
4857
|
+
#
|
4858
|
+
# @!attribute [rw] function_arn
|
4859
|
+
# The ARN of the function
|
4860
|
+
# @return [String]
|
4861
|
+
#
|
4862
|
+
# @!attribute [rw] runtime_version_arn
|
4863
|
+
# The ARN of the runtime the function is configured to use. If the
|
4864
|
+
# runtime update mode is **manual**, the ARN is returned, otherwise
|
4865
|
+
# `null` is returned.
|
4866
|
+
# @return [String]
|
4867
|
+
#
|
4868
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutRuntimeManagementConfigResponse AWS API Documentation
|
4869
|
+
#
|
4870
|
+
class PutRuntimeManagementConfigResponse < Struct.new(
|
4871
|
+
:update_runtime_on,
|
4872
|
+
:function_arn,
|
4873
|
+
:runtime_version_arn)
|
4874
|
+
SENSITIVE = []
|
4875
|
+
include Aws::Structure
|
4876
|
+
end
|
4877
|
+
|
4727
4878
|
# @!attribute [rw] layer_name
|
4728
4879
|
# The name or Amazon Resource Name (ARN) of the layer.
|
4729
4880
|
# @return [String]
|
@@ -4895,6 +5046,46 @@ module Aws::Lambda
|
|
4895
5046
|
include Aws::Structure
|
4896
5047
|
end
|
4897
5048
|
|
5049
|
+
# The ARN of the runtime and any errors that occured.
|
5050
|
+
#
|
5051
|
+
# @!attribute [rw] runtime_version_arn
|
5052
|
+
# The ARN of the runtime version you want the function to use.
|
5053
|
+
# @return [String]
|
5054
|
+
#
|
5055
|
+
# @!attribute [rw] error
|
5056
|
+
# Error response when Lambda is unable to retrieve the runtime version
|
5057
|
+
# for a function.
|
5058
|
+
# @return [Types::RuntimeVersionError]
|
5059
|
+
#
|
5060
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RuntimeVersionConfig AWS API Documentation
|
5061
|
+
#
|
5062
|
+
class RuntimeVersionConfig < Struct.new(
|
5063
|
+
:runtime_version_arn,
|
5064
|
+
:error)
|
5065
|
+
SENSITIVE = []
|
5066
|
+
include Aws::Structure
|
5067
|
+
end
|
5068
|
+
|
5069
|
+
# Any error returned when the runtime version information for the
|
5070
|
+
# function could not be retrieved.
|
5071
|
+
#
|
5072
|
+
# @!attribute [rw] error_code
|
5073
|
+
# The error code.
|
5074
|
+
# @return [String]
|
5075
|
+
#
|
5076
|
+
# @!attribute [rw] message
|
5077
|
+
# The error message.
|
5078
|
+
# @return [String]
|
5079
|
+
#
|
5080
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RuntimeVersionError AWS API Documentation
|
5081
|
+
#
|
5082
|
+
class RuntimeVersionError < Struct.new(
|
5083
|
+
:error_code,
|
5084
|
+
:message)
|
5085
|
+
SENSITIVE = [:message]
|
5086
|
+
include Aws::Structure
|
5087
|
+
end
|
5088
|
+
|
4898
5089
|
# (Amazon SQS only) The scaling configuration for the event source. To
|
4899
5090
|
# remove the configuration, pass an empty value.
|
4900
5091
|
#
|
@@ -4992,8 +5183,12 @@ module Aws::Lambda
|
|
4992
5183
|
include Aws::Structure
|
4993
5184
|
end
|
4994
5185
|
|
4995
|
-
# The runtime
|
4996
|
-
# check the Amazon CloudWatch logs.
|
5186
|
+
# The `afterRestore()` [runtime hook][1] encountered an error. For more
|
5187
|
+
# information, check the Amazon CloudWatch logs.
|
5188
|
+
#
|
5189
|
+
#
|
5190
|
+
#
|
5191
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/snapstart-runtime-hooks.html
|
4997
5192
|
#
|
4998
5193
|
# @!attribute [rw] type
|
4999
5194
|
# @return [String]
|
@@ -5062,8 +5257,7 @@ module Aws::Lambda
|
|
5062
5257
|
include Aws::Structure
|
5063
5258
|
end
|
5064
5259
|
|
5065
|
-
#
|
5066
|
-
# (2 seconds).
|
5260
|
+
# Lambda couldn't restore the snapshot within the timeout limit.
|
5067
5261
|
#
|
5068
5262
|
# @!attribute [rw] type
|
5069
5263
|
# @return [String]
|
data/lib/aws-sdk-lambda.rb
CHANGED
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.91.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: 2023-01-
|
11
|
+
date: 2023-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|