aws-sdk-lambda 1.89.0 → 1.91.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
  SHA256:
3
- metadata.gz: 6498fec058374f72523532c424e64faa231b016ddcdbec989642fa3c7d45d3e6
4
- data.tar.gz: cd4c979dd3954744a512fc423ed06ff4a7aad7a026f2c038a9fa7b788552b294
3
+ metadata.gz: a970f96d365ea49ea108efd537f980f1158a46c31361a70128ef7a9f22eafbde
4
+ data.tar.gz: b138e1a5e2a81d5367fef83628e407765b36d4216a0a1f876e214b6015194453
5
5
  SHA512:
6
- metadata.gz: fd87c568a48e848e89d82c86d5f249ef0a6fe9aab69e6b7f0e67737da0261ec0ef16dc8554b3ef995bf5f4165e4b0ecac54b5957df07a231fd7c447e7fc83c2a
7
- data.tar.gz: 23fd880aa46f69953368e25095e53be6f103072ceb518a7a886dc80fcb0111840b4ab53fa4c05004fa34817cd0677a0ad69500a78214d28b679cace8ee1a766c
6
+ metadata.gz: 273a0f68bb3fe8784681f354f436ded79e0a031adb806002ddc3596ae742613183ad92418c495f4c44e48fade74d3bcbba283b351afd0f2a5a8ba279277799b0
7
+ data.tar.gz: c7b8f26ac9c33f357ca31c81673ff0f561728056c5a7aa85a915e07beba1bae4dc1eda71ad7bfeb53326b76730f3cd00615fce4f24dc8732e26e51f22907b610
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
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
+
9
+ 1.90.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.89.0 (2023-01-12)
5
17
  ------------------
6
18
 
@@ -535,4 +547,4 @@ Unreleased Changes
535
547
  1.0.0.rc1 (2016-12-05)
536
548
  ------------------
537
549
 
538
- * Feature - Initial preview release of the `aws-sdk-lambda` gem.
550
+ * Feature - Initial preview release of the `aws-sdk-lambda` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.89.0
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/versioning-aliases.html
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/versioning-aliases.html
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/versioning-aliases.html
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/versioning-aliases.html
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) for a function or
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&lt;String&gt;
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/versioning-aliases.html
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&lt;String&gt;
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&lt;String&gt;
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.89.0'
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"
@@ -9,102 +9,43 @@
9
9
 
10
10
  module Aws::Lambda
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://lambda-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://lambda-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://lambda.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://lambda.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
- bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
- aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
40
- IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
41
- IiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZhbHNlLCJkb2N1bWVudGF0
42
- aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVxdWVzdCB0byB0aGUgRklQ
43
- Uy1jb21wbGlhbnQgcmVnaW9uYWwgZW5kcG9pbnQuIElmIHRoZSBjb25maWd1
44
- cmVkIGVuZHBvaW50IGRvZXMgbm90IGhhdmUgYSBGSVBTIGNvbXBsaWFudCBl
45
- bmRwb2ludCwgZGlzcGF0Y2hpbmcgdGhlIHJlcXVlc3Qgd2lsbCByZXR1cm4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XRpb25SZXN1bHQifSwic3VwcG9ydHNEdWFsU3RhY2siXX1dfV0sInR5
97
- cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2lu
98
- dCI6eyJ1cmwiOiJodHRwczovL2xhbWJkYS57UmVnaW9ufS57UGFydGl0aW9u
99
- UmVzdWx0I2R1YWxTdGFja0Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwi
100
- aGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19LHsiY29uZGl0aW9u
101
- cyI6W10sImVycm9yIjoiRHVhbFN0YWNrIGlzIGVuYWJsZWQgYnV0IHRoaXMg
102
- cGFydGl0aW9uIGRvZXMgbm90IHN1cHBvcnQgRHVhbFN0YWNrIiwidHlwZSI6
103
- ImVycm9yIn1dfSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwi
104
- OiJodHRwczovL2xhbWJkYS57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ru
105
- c1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBl
106
- IjoiZW5kcG9pbnQifV19XX0=
107
-
108
- JSON
109
50
  end
110
51
  end
@@ -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
@@ -258,7 +258,7 @@ module Aws::Lambda
258
258
  #
259
259
  #
260
260
  #
261
- # [1]: https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
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 restore hook encountered an error. For more information,
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
- # The runtime restore hook failed to complete within the timeout limit
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]
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-lambda/customizations'
53
53
  # @!group service
54
54
  module Aws::Lambda
55
55
 
56
- GEM_VERSION = '1.89.0'
56
+ GEM_VERSION = '1.91.0'
57
57
 
58
58
  end
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.89.0
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-12 00:00:00.000000000 Z
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