@aws-sdk/client-lambda 3.254.0 → 3.257.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.
Files changed (33) hide show
  1. package/dist-cjs/Lambda.js +30 -0
  2. package/dist-cjs/commands/GetRuntimeManagementConfigCommand.js +46 -0
  3. package/dist-cjs/commands/PutRuntimeManagementConfigCommand.js +46 -0
  4. package/dist-cjs/commands/index.js +2 -0
  5. package/dist-cjs/models/models_0.js +40 -5
  6. package/dist-cjs/protocols/Aws_restJson1.js +181 -3
  7. package/dist-es/Lambda.js +30 -0
  8. package/dist-es/commands/GetRuntimeManagementConfigCommand.js +42 -0
  9. package/dist-es/commands/PutRuntimeManagementConfigCommand.js +42 -0
  10. package/dist-es/commands/index.js +2 -0
  11. package/dist-es/models/models_0.js +29 -0
  12. package/dist-es/protocols/Aws_restJson1.js +174 -0
  13. package/dist-types/Lambda.d.ts +23 -6
  14. package/dist-types/LambdaClient.d.ts +7 -5
  15. package/dist-types/commands/CreateAliasCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
  17. package/dist-types/commands/GetAliasCommand.d.ts +1 -1
  18. package/dist-types/commands/GetRuntimeManagementConfigCommand.d.ts +39 -0
  19. package/dist-types/commands/ListAliasesCommand.d.ts +1 -1
  20. package/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
  21. package/dist-types/commands/PutRuntimeManagementConfigCommand.d.ts +38 -0
  22. package/dist-types/commands/UpdateAliasCommand.d.ts +1 -1
  23. package/dist-types/commands/index.d.ts +2 -0
  24. package/dist-types/models/models_0.d.ts +179 -3
  25. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  26. package/dist-types/ts3.4/Lambda.d.ts +34 -0
  27. package/dist-types/ts3.4/LambdaClient.d.ts +14 -2
  28. package/dist-types/ts3.4/commands/GetRuntimeManagementConfigCommand.d.ts +41 -0
  29. package/dist-types/ts3.4/commands/PutRuntimeManagementConfigCommand.d.ts +41 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +51 -0
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  33. package/package.json +30 -30
@@ -0,0 +1,39 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
5
+ import { GetRuntimeManagementConfigRequest, GetRuntimeManagementConfigResponse } from "../models/models_0";
6
+ export interface GetRuntimeManagementConfigCommandInput extends GetRuntimeManagementConfigRequest {
7
+ }
8
+ export interface GetRuntimeManagementConfigCommandOutput extends GetRuntimeManagementConfigResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Retrieves the runtime management configuration for a function's version. If the runtime update mode is <b>Manual</b>, this includes the ARN of the
12
+ * runtime version and the runtime update mode. If the runtime update mode is <b>Auto</b> or <b>Function update</b>,
13
+ * this includes the runtime update mode and <code>null</code> is returned for the ARN. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html">Runtime updates</a>.</p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { LambdaClient, GetRuntimeManagementConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
18
+ * // const { LambdaClient, GetRuntimeManagementConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
19
+ * const client = new LambdaClient(config);
20
+ * const command = new GetRuntimeManagementConfigCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link GetRuntimeManagementConfigCommandInput} for command's `input` shape.
25
+ * @see {@link GetRuntimeManagementConfigCommandOutput} for command's `response` shape.
26
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
27
+ *
28
+ */
29
+ export declare class GetRuntimeManagementConfigCommand extends $Command<GetRuntimeManagementConfigCommandInput, GetRuntimeManagementConfigCommandOutput, LambdaClientResolvedConfig> {
30
+ readonly input: GetRuntimeManagementConfigCommandInput;
31
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
32
+ constructor(input: GetRuntimeManagementConfigCommandInput);
33
+ /**
34
+ * @internal
35
+ */
36
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRuntimeManagementConfigCommandInput, GetRuntimeManagementConfigCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -8,7 +8,7 @@ export interface ListAliasesCommandInput extends ListAliasesRequest {
8
8
  export interface ListAliasesCommandOutput extends ListAliasesResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">aliases</a>
11
+ * <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html">aliases</a>
12
12
  * for a Lambda function.</p>
13
13
  * @example
14
14
  * Use a bare-bones client and the command you need to make an API call.
@@ -15,7 +15,7 @@ export interface ListFunctionsCommandOutput extends ListFunctionsResponse, __Met
15
15
  * <note>
16
16
  * <p>The <code>ListFunctions</code> operation returns a subset of the <a>FunctionConfiguration</a> fields.
17
17
  * To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason,
18
- * LastUpdateStatusReasonCode) for a function or version, use <a>GetFunction</a>.</p>
18
+ * LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use <a>GetFunction</a>.</p>
19
19
  * </note>
20
20
  * @example
21
21
  * Use a bare-bones client and the command you need to make an API call.
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
5
+ import { PutRuntimeManagementConfigRequest, PutRuntimeManagementConfigResponse } from "../models/models_0";
6
+ export interface PutRuntimeManagementConfigCommandInput extends PutRuntimeManagementConfigRequest {
7
+ }
8
+ export interface PutRuntimeManagementConfigCommandOutput extends PutRuntimeManagementConfigResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Sets the runtime management configuration for a function's version. For more information,
12
+ * see <a href="https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html">Runtime updates</a>.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { LambdaClient, PutRuntimeManagementConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
17
+ * // const { LambdaClient, PutRuntimeManagementConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
18
+ * const client = new LambdaClient(config);
19
+ * const command = new PutRuntimeManagementConfigCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link PutRuntimeManagementConfigCommandInput} for command's `input` shape.
24
+ * @see {@link PutRuntimeManagementConfigCommandOutput} for command's `response` shape.
25
+ * @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class PutRuntimeManagementConfigCommand extends $Command<PutRuntimeManagementConfigCommandInput, PutRuntimeManagementConfigCommandOutput, LambdaClientResolvedConfig> {
29
+ readonly input: PutRuntimeManagementConfigCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: PutRuntimeManagementConfigCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutRuntimeManagementConfigCommandInput, PutRuntimeManagementConfigCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -8,7 +8,7 @@ export interface UpdateAliasCommandInput extends UpdateAliasRequest {
8
8
  export interface UpdateAliasCommandOutput extends AliasConfiguration, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Updates the configuration of a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a>.</p>
11
+ * <p>Updates the configuration of a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html">alias</a>.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
14
14
  * ```javascript
@@ -30,6 +30,7 @@ export * from "./GetLayerVersionCommand";
30
30
  export * from "./GetLayerVersionPolicyCommand";
31
31
  export * from "./GetPolicyCommand";
32
32
  export * from "./GetProvisionedConcurrencyConfigCommand";
33
+ export * from "./GetRuntimeManagementConfigCommand";
33
34
  export * from "./InvokeAsyncCommand";
34
35
  export * from "./InvokeCommand";
35
36
  export * from "./ListAliasesCommand";
@@ -50,6 +51,7 @@ export * from "./PutFunctionCodeSigningConfigCommand";
50
51
  export * from "./PutFunctionConcurrencyCommand";
51
52
  export * from "./PutFunctionEventInvokeConfigCommand";
52
53
  export * from "./PutProvisionedConcurrencyConfigCommand";
54
+ export * from "./PutRuntimeManagementConfigCommand";
53
55
  export * from "./RemoveLayerVersionPermissionCommand";
54
56
  export * from "./RemovePermissionCommand";
55
57
  export * from "./TagResourceCommand";
@@ -292,7 +292,7 @@ export interface AliasRoutingConfiguration {
292
292
  AdditionalVersionWeights?: Record<string, number>;
293
293
  }
294
294
  /**
295
- * <p>Provides configuration information about a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a>.</p>
295
+ * <p>Provides configuration information about a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html">alias</a>.</p>
296
296
  */
297
297
  export interface AliasConfiguration {
298
298
  /**
@@ -1361,6 +1361,32 @@ export interface Layer {
1361
1361
  */
1362
1362
  SigningJobArn?: string;
1363
1363
  }
1364
+ /**
1365
+ * <p>Any error returned when the runtime version information for the function could not be retrieved.</p>
1366
+ */
1367
+ export interface RuntimeVersionError {
1368
+ /**
1369
+ * <p>The error code.</p>
1370
+ */
1371
+ ErrorCode?: string;
1372
+ /**
1373
+ * <p>The error message.</p>
1374
+ */
1375
+ Message?: string;
1376
+ }
1377
+ /**
1378
+ * <p>The ARN of the runtime and any errors that occured.</p>
1379
+ */
1380
+ export interface RuntimeVersionConfig {
1381
+ /**
1382
+ * <p>The ARN of the runtime version you want the function to use.</p>
1383
+ */
1384
+ RuntimeVersionArn?: string;
1385
+ /**
1386
+ * <p>Error response when Lambda is unable to retrieve the runtime version for a function.</p>
1387
+ */
1388
+ Error?: RuntimeVersionError;
1389
+ }
1364
1390
  export declare enum SnapStartOptimizationStatus {
1365
1391
  Off = "Off",
1366
1392
  On = "On"
@@ -1583,6 +1609,10 @@ export interface FunctionConfiguration {
1583
1609
  * environment when you publish a function version. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html">Improving startup performance with Lambda SnapStart</a>.</p>
1584
1610
  */
1585
1611
  SnapStart?: SnapStartResponse;
1612
+ /**
1613
+ * <p>The ARN of the runtime and any errors that occured.</p>
1614
+ */
1615
+ RuntimeVersionConfig?: RuntimeVersionConfig;
1586
1616
  }
1587
1617
  /**
1588
1618
  * <p>The code signature failed the integrity check. If the integrity check fails, then Lambda blocks
@@ -2526,6 +2556,52 @@ export declare class ProvisionedConcurrencyConfigNotFoundException extends __Bas
2526
2556
  */
2527
2557
  constructor(opts: __ExceptionOptionType<ProvisionedConcurrencyConfigNotFoundException, __BaseException>);
2528
2558
  }
2559
+ export interface GetRuntimeManagementConfigRequest {
2560
+ /**
2561
+ * <p>The name of the Lambda function.</p>
2562
+ * <p class="title">
2563
+ * <b>Name formats</b>
2564
+ * </p>
2565
+ * <ul>
2566
+ * <li>
2567
+ * <p>
2568
+ * <b>Function name</b> – <code>my-function</code>.</p>
2569
+ * </li>
2570
+ * <li>
2571
+ * <p>
2572
+ * <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
2573
+ * </li>
2574
+ * <li>
2575
+ * <p>
2576
+ * <b>Partial ARN</b> – <code>123456789012:function:my-function</code>.</p>
2577
+ * </li>
2578
+ * </ul>
2579
+ * <p>The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64
2580
+ * characters in length.</p>
2581
+ */
2582
+ FunctionName: string | undefined;
2583
+ /**
2584
+ * <p>Specify a version of the function. This can be <code>$LATEST</code> or a published version number. If no value is specified, the configuration for the
2585
+ * <code>$LATEST</code> version is returned.</p>
2586
+ */
2587
+ Qualifier?: string;
2588
+ }
2589
+ export declare enum UpdateRuntimeOn {
2590
+ Auto = "Auto",
2591
+ FunctionUpdate = "FunctionUpdate",
2592
+ Manual = "Manual"
2593
+ }
2594
+ export interface GetRuntimeManagementConfigResponse {
2595
+ /**
2596
+ * <p>The current runtime update mode of the function.</p>
2597
+ */
2598
+ UpdateRuntimeOn?: UpdateRuntimeOn | string;
2599
+ /**
2600
+ * <p>The ARN of the runtime the function is configured to use. If the runtime update mode is <b>Manual</b>, the ARN is returned, otherwise <code>null</code>
2601
+ * is returned.</p>
2602
+ */
2603
+ RuntimeVersionArn?: string;
2604
+ }
2529
2605
  /**
2530
2606
  * <p>Need additional permissions to configure VPC settings.</p>
2531
2607
  */
@@ -2890,7 +2966,8 @@ export declare class ResourceNotReadyException extends __BaseException {
2890
2966
  constructor(opts: __ExceptionOptionType<ResourceNotReadyException, __BaseException>);
2891
2967
  }
2892
2968
  /**
2893
- * <p>The runtime restore hook encountered an error. For more information, check the Amazon CloudWatch logs.</p>
2969
+ * <p>The <code>afterRestore()</code>
2970
+ * <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-runtime-hooks.html">runtime hook</a> encountered an error. For more information, check the Amazon CloudWatch logs.</p>
2894
2971
  */
2895
2972
  export declare class SnapStartException extends __BaseException {
2896
2973
  readonly name: "SnapStartException";
@@ -2916,7 +2993,7 @@ export declare class SnapStartNotReadyException extends __BaseException {
2916
2993
  constructor(opts: __ExceptionOptionType<SnapStartNotReadyException, __BaseException>);
2917
2994
  }
2918
2995
  /**
2919
- * <p>The runtime restore hook failed to complete within the timeout limit (2 seconds).</p>
2996
+ * <p>Lambda couldn't restore the snapshot within the timeout limit.</p>
2920
2997
  */
2921
2998
  export declare class SnapStartTimeoutException extends __BaseException {
2922
2999
  readonly name: "SnapStartTimeoutException";
@@ -3916,6 +3993,81 @@ export interface PutProvisionedConcurrencyConfigResponse {
3916
3993
  */
3917
3994
  LastModified?: string;
3918
3995
  }
3996
+ export interface PutRuntimeManagementConfigRequest {
3997
+ /**
3998
+ * <p>The name of the Lambda function.</p>
3999
+ * <p class="title">
4000
+ * <b>Name formats</b>
4001
+ * </p>
4002
+ * <ul>
4003
+ * <li>
4004
+ * <p>
4005
+ * <b>Function name</b> – <code>my-function</code>.</p>
4006
+ * </li>
4007
+ * <li>
4008
+ * <p>
4009
+ * <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
4010
+ * </li>
4011
+ * <li>
4012
+ * <p>
4013
+ * <b>Partial ARN</b> – <code>123456789012:function:my-function</code>.</p>
4014
+ * </li>
4015
+ * </ul>
4016
+ * <p>The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64
4017
+ * characters in length.</p>
4018
+ */
4019
+ FunctionName: string | undefined;
4020
+ /**
4021
+ * <p>Specify a version of the function. This can be <code>$LATEST</code> or a published version number. If no value is specified, the configuration for the
4022
+ * <code>$LATEST</code> version is returned.</p>
4023
+ */
4024
+ Qualifier?: string;
4025
+ /**
4026
+ * <p>Specify the runtime update mode.</p>
4027
+ * <ul>
4028
+ * <li>
4029
+ * <p>
4030
+ * <b>Auto (default)</b> - Automatically update to the most recent and secure runtime version using a <a href="https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase">Two-phase runtime version rollout</a>. This is the best
4031
+ * choice for most customers to ensure they always benefit from runtime updates.</p>
4032
+ * </li>
4033
+ * <li>
4034
+ * <p>
4035
+ * <b>Function update</b> - Lambda updates the runtime of your function to the most recent and secure runtime version when you update your
4036
+ * function. This approach synchronizes runtime updates with function deployments, giving you control over when runtime updates are applied and allowing you to detect and
4037
+ * mitigate rare runtime update incompatibilities early. When using this setting, you need to regularly update your functions to keep their runtime up-to-date.</p>
4038
+ * </li>
4039
+ * <li>
4040
+ * <p>
4041
+ * <b>Manual</b> - You specify a runtime version in your function configuration. The function will use this runtime version indefinitely.
4042
+ * In the rare case where a new runtime version is incompatible with an existing function, this allows you to roll back your function to an earlier runtime version. For more information,
4043
+ * see <a href="https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback">Roll back a runtime version</a>.</p>
4044
+ * </li>
4045
+ * </ul>
4046
+ */
4047
+ UpdateRuntimeOn: UpdateRuntimeOn | string | undefined;
4048
+ /**
4049
+ * <p>The ARN of the runtime version you want the function to use.</p>
4050
+ * <note>
4051
+ * <p>This is only required if you're using the <b>Manual</b> runtime update mode.</p>
4052
+ * </note>
4053
+ */
4054
+ RuntimeVersionArn?: string;
4055
+ }
4056
+ export interface PutRuntimeManagementConfigResponse {
4057
+ /**
4058
+ * <p>The runtime update mode.</p>
4059
+ */
4060
+ UpdateRuntimeOn: UpdateRuntimeOn | string | undefined;
4061
+ /**
4062
+ * <p>The ARN of the function</p>
4063
+ */
4064
+ FunctionArn: string | undefined;
4065
+ /**
4066
+ * <p>The ARN of the runtime the function is configured to use. If the runtime update mode is <b>manual</b>, the ARN is returned, otherwise <code>null</code>
4067
+ * is returned.</p>
4068
+ */
4069
+ RuntimeVersionArn?: string;
4070
+ }
3919
4071
  export interface RemoveLayerVersionPermissionRequest {
3920
4072
  /**
3921
4073
  * <p>The name or Amazon Resource Name (ARN) of the layer.</p>
@@ -4655,6 +4807,14 @@ export declare const ImageConfigResponseFilterSensitiveLog: (obj: ImageConfigRes
4655
4807
  * @internal
4656
4808
  */
4657
4809
  export declare const LayerFilterSensitiveLog: (obj: Layer) => any;
4810
+ /**
4811
+ * @internal
4812
+ */
4813
+ export declare const RuntimeVersionErrorFilterSensitiveLog: (obj: RuntimeVersionError) => any;
4814
+ /**
4815
+ * @internal
4816
+ */
4817
+ export declare const RuntimeVersionConfigFilterSensitiveLog: (obj: RuntimeVersionConfig) => any;
4658
4818
  /**
4659
4819
  * @internal
4660
4820
  */
@@ -4843,6 +5003,14 @@ export declare const GetProvisionedConcurrencyConfigRequestFilterSensitiveLog: (
4843
5003
  * @internal
4844
5004
  */
4845
5005
  export declare const GetProvisionedConcurrencyConfigResponseFilterSensitiveLog: (obj: GetProvisionedConcurrencyConfigResponse) => any;
5006
+ /**
5007
+ * @internal
5008
+ */
5009
+ export declare const GetRuntimeManagementConfigRequestFilterSensitiveLog: (obj: GetRuntimeManagementConfigRequest) => any;
5010
+ /**
5011
+ * @internal
5012
+ */
5013
+ export declare const GetRuntimeManagementConfigResponseFilterSensitiveLog: (obj: GetRuntimeManagementConfigResponse) => any;
4846
5014
  /**
4847
5015
  * @internal
4848
5016
  */
@@ -5011,6 +5179,14 @@ export declare const PutProvisionedConcurrencyConfigRequestFilterSensitiveLog: (
5011
5179
  * @internal
5012
5180
  */
5013
5181
  export declare const PutProvisionedConcurrencyConfigResponseFilterSensitiveLog: (obj: PutProvisionedConcurrencyConfigResponse) => any;
5182
+ /**
5183
+ * @internal
5184
+ */
5185
+ export declare const PutRuntimeManagementConfigRequestFilterSensitiveLog: (obj: PutRuntimeManagementConfigRequest) => any;
5186
+ /**
5187
+ * @internal
5188
+ */
5189
+ export declare const PutRuntimeManagementConfigResponseFilterSensitiveLog: (obj: PutRuntimeManagementConfigResponse) => any;
5014
5190
  /**
5015
5191
  * @internal
5016
5192
  */
@@ -32,6 +32,7 @@ import { GetLayerVersionCommandInput, GetLayerVersionCommandOutput } from "../co
32
32
  import { GetLayerVersionPolicyCommandInput, GetLayerVersionPolicyCommandOutput } from "../commands/GetLayerVersionPolicyCommand";
33
33
  import { GetPolicyCommandInput, GetPolicyCommandOutput } from "../commands/GetPolicyCommand";
34
34
  import { GetProvisionedConcurrencyConfigCommandInput, GetProvisionedConcurrencyConfigCommandOutput } from "../commands/GetProvisionedConcurrencyConfigCommand";
35
+ import { GetRuntimeManagementConfigCommandInput, GetRuntimeManagementConfigCommandOutput } from "../commands/GetRuntimeManagementConfigCommand";
35
36
  import { InvokeAsyncCommandInput, InvokeAsyncCommandOutput } from "../commands/InvokeAsyncCommand";
36
37
  import { InvokeCommandInput, InvokeCommandOutput } from "../commands/InvokeCommand";
37
38
  import { ListAliasesCommandInput, ListAliasesCommandOutput } from "../commands/ListAliasesCommand";
@@ -52,6 +53,7 @@ import { PutFunctionCodeSigningConfigCommandInput, PutFunctionCodeSigningConfigC
52
53
  import { PutFunctionConcurrencyCommandInput, PutFunctionConcurrencyCommandOutput } from "../commands/PutFunctionConcurrencyCommand";
53
54
  import { PutFunctionEventInvokeConfigCommandInput, PutFunctionEventInvokeConfigCommandOutput } from "../commands/PutFunctionEventInvokeConfigCommand";
54
55
  import { PutProvisionedConcurrencyConfigCommandInput, PutProvisionedConcurrencyConfigCommandOutput } from "../commands/PutProvisionedConcurrencyConfigCommand";
56
+ import { PutRuntimeManagementConfigCommandInput, PutRuntimeManagementConfigCommandOutput } from "../commands/PutRuntimeManagementConfigCommand";
55
57
  import { RemoveLayerVersionPermissionCommandInput, RemoveLayerVersionPermissionCommandOutput } from "../commands/RemoveLayerVersionPermissionCommand";
56
58
  import { RemovePermissionCommandInput, RemovePermissionCommandOutput } from "../commands/RemovePermissionCommand";
57
59
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
@@ -95,6 +97,7 @@ export declare const serializeAws_restJson1GetLayerVersionByArnCommand: (input:
95
97
  export declare const serializeAws_restJson1GetLayerVersionPolicyCommand: (input: GetLayerVersionPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
96
98
  export declare const serializeAws_restJson1GetPolicyCommand: (input: GetPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
97
99
  export declare const serializeAws_restJson1GetProvisionedConcurrencyConfigCommand: (input: GetProvisionedConcurrencyConfigCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
100
+ export declare const serializeAws_restJson1GetRuntimeManagementConfigCommand: (input: GetRuntimeManagementConfigCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
98
101
  export declare const serializeAws_restJson1InvokeCommand: (input: InvokeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
99
102
  export declare const serializeAws_restJson1InvokeAsyncCommand: (input: InvokeAsyncCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
100
103
  export declare const serializeAws_restJson1ListAliasesCommand: (input: ListAliasesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -115,6 +118,7 @@ export declare const serializeAws_restJson1PutFunctionCodeSigningConfigCommand:
115
118
  export declare const serializeAws_restJson1PutFunctionConcurrencyCommand: (input: PutFunctionConcurrencyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
116
119
  export declare const serializeAws_restJson1PutFunctionEventInvokeConfigCommand: (input: PutFunctionEventInvokeConfigCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
117
120
  export declare const serializeAws_restJson1PutProvisionedConcurrencyConfigCommand: (input: PutProvisionedConcurrencyConfigCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
121
+ export declare const serializeAws_restJson1PutRuntimeManagementConfigCommand: (input: PutRuntimeManagementConfigCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
118
122
  export declare const serializeAws_restJson1RemoveLayerVersionPermissionCommand: (input: RemoveLayerVersionPermissionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
119
123
  export declare const serializeAws_restJson1RemovePermissionCommand: (input: RemovePermissionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
120
124
  export declare const serializeAws_restJson1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -158,6 +162,7 @@ export declare const deserializeAws_restJson1GetLayerVersionByArnCommand: (outpu
158
162
  export declare const deserializeAws_restJson1GetLayerVersionPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLayerVersionPolicyCommandOutput>;
159
163
  export declare const deserializeAws_restJson1GetPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPolicyCommandOutput>;
160
164
  export declare const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetProvisionedConcurrencyConfigCommandOutput>;
165
+ export declare const deserializeAws_restJson1GetRuntimeManagementConfigCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRuntimeManagementConfigCommandOutput>;
161
166
  export declare const deserializeAws_restJson1InvokeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<InvokeCommandOutput>;
162
167
  export declare const deserializeAws_restJson1InvokeAsyncCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<InvokeAsyncCommandOutput>;
163
168
  export declare const deserializeAws_restJson1ListAliasesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAliasesCommandOutput>;
@@ -178,6 +183,7 @@ export declare const deserializeAws_restJson1PutFunctionCodeSigningConfigCommand
178
183
  export declare const deserializeAws_restJson1PutFunctionConcurrencyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutFunctionConcurrencyCommandOutput>;
179
184
  export declare const deserializeAws_restJson1PutFunctionEventInvokeConfigCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutFunctionEventInvokeConfigCommandOutput>;
180
185
  export declare const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutProvisionedConcurrencyConfigCommandOutput>;
186
+ export declare const deserializeAws_restJson1PutRuntimeManagementConfigCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutRuntimeManagementConfigCommandOutput>;
181
187
  export declare const deserializeAws_restJson1RemoveLayerVersionPermissionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemoveLayerVersionPermissionCommandOutput>;
182
188
  export declare const deserializeAws_restJson1RemovePermissionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemovePermissionCommandOutput>;
183
189
  export declare const deserializeAws_restJson1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
@@ -127,6 +127,10 @@ import {
127
127
  GetProvisionedConcurrencyConfigCommandInput,
128
128
  GetProvisionedConcurrencyConfigCommandOutput,
129
129
  } from "./commands/GetProvisionedConcurrencyConfigCommand";
130
+ import {
131
+ GetRuntimeManagementConfigCommandInput,
132
+ GetRuntimeManagementConfigCommandOutput,
133
+ } from "./commands/GetRuntimeManagementConfigCommand";
130
134
  import {
131
135
  InvokeAsyncCommandInput,
132
136
  InvokeAsyncCommandOutput,
@@ -207,6 +211,10 @@ import {
207
211
  PutProvisionedConcurrencyConfigCommandInput,
208
212
  PutProvisionedConcurrencyConfigCommandOutput,
209
213
  } from "./commands/PutProvisionedConcurrencyConfigCommand";
214
+ import {
215
+ PutRuntimeManagementConfigCommandInput,
216
+ PutRuntimeManagementConfigCommandOutput,
217
+ } from "./commands/PutRuntimeManagementConfigCommand";
210
218
  import {
211
219
  RemoveLayerVersionPermissionCommandInput,
212
220
  RemoveLayerVersionPermissionCommandOutput,
@@ -675,6 +683,19 @@ export declare class Lambda extends LambdaClient {
675
683
  options: __HttpHandlerOptions,
676
684
  cb: (err: any, data?: GetProvisionedConcurrencyConfigCommandOutput) => void
677
685
  ): void;
686
+ getRuntimeManagementConfig(
687
+ args: GetRuntimeManagementConfigCommandInput,
688
+ options?: __HttpHandlerOptions
689
+ ): Promise<GetRuntimeManagementConfigCommandOutput>;
690
+ getRuntimeManagementConfig(
691
+ args: GetRuntimeManagementConfigCommandInput,
692
+ cb: (err: any, data?: GetRuntimeManagementConfigCommandOutput) => void
693
+ ): void;
694
+ getRuntimeManagementConfig(
695
+ args: GetRuntimeManagementConfigCommandInput,
696
+ options: __HttpHandlerOptions,
697
+ cb: (err: any, data?: GetRuntimeManagementConfigCommandOutput) => void
698
+ ): void;
678
699
  invoke(
679
700
  args: InvokeCommandInput,
680
701
  options?: __HttpHandlerOptions
@@ -941,6 +962,19 @@ export declare class Lambda extends LambdaClient {
941
962
  options: __HttpHandlerOptions,
942
963
  cb: (err: any, data?: PutProvisionedConcurrencyConfigCommandOutput) => void
943
964
  ): void;
965
+ putRuntimeManagementConfig(
966
+ args: PutRuntimeManagementConfigCommandInput,
967
+ options?: __HttpHandlerOptions
968
+ ): Promise<PutRuntimeManagementConfigCommandOutput>;
969
+ putRuntimeManagementConfig(
970
+ args: PutRuntimeManagementConfigCommandInput,
971
+ cb: (err: any, data?: PutRuntimeManagementConfigCommandOutput) => void
972
+ ): void;
973
+ putRuntimeManagementConfig(
974
+ args: PutRuntimeManagementConfigCommandInput,
975
+ options: __HttpHandlerOptions,
976
+ cb: (err: any, data?: PutRuntimeManagementConfigCommandOutput) => void
977
+ ): void;
944
978
  removeLayerVersionPermission(
945
979
  args: RemoveLayerVersionPermissionCommandInput,
946
980
  options?: __HttpHandlerOptions
@@ -25,7 +25,7 @@ import {
25
25
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
26
26
  import {
27
27
  Client as __Client,
28
- DefaultsMode,
28
+ DefaultsMode as __DefaultsMode,
29
29
  SmithyConfiguration as __SmithyConfiguration,
30
30
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
31
31
  } from "@aws-sdk/smithy-client";
@@ -172,6 +172,10 @@ import {
172
172
  GetProvisionedConcurrencyConfigCommandInput,
173
173
  GetProvisionedConcurrencyConfigCommandOutput,
174
174
  } from "./commands/GetProvisionedConcurrencyConfigCommand";
175
+ import {
176
+ GetRuntimeManagementConfigCommandInput,
177
+ GetRuntimeManagementConfigCommandOutput,
178
+ } from "./commands/GetRuntimeManagementConfigCommand";
175
179
  import {
176
180
  InvokeAsyncCommandInput,
177
181
  InvokeAsyncCommandOutput,
@@ -252,6 +256,10 @@ import {
252
256
  PutProvisionedConcurrencyConfigCommandInput,
253
257
  PutProvisionedConcurrencyConfigCommandOutput,
254
258
  } from "./commands/PutProvisionedConcurrencyConfigCommand";
259
+ import {
260
+ PutRuntimeManagementConfigCommandInput,
261
+ PutRuntimeManagementConfigCommandOutput,
262
+ } from "./commands/PutRuntimeManagementConfigCommand";
255
263
  import {
256
264
  RemoveLayerVersionPermissionCommandInput,
257
265
  RemoveLayerVersionPermissionCommandOutput,
@@ -334,6 +342,7 @@ export declare type ServiceInputTypes =
334
342
  | GetLayerVersionPolicyCommandInput
335
343
  | GetPolicyCommandInput
336
344
  | GetProvisionedConcurrencyConfigCommandInput
345
+ | GetRuntimeManagementConfigCommandInput
337
346
  | InvokeAsyncCommandInput
338
347
  | InvokeCommandInput
339
348
  | ListAliasesCommandInput
@@ -354,6 +363,7 @@ export declare type ServiceInputTypes =
354
363
  | PutFunctionConcurrencyCommandInput
355
364
  | PutFunctionEventInvokeConfigCommandInput
356
365
  | PutProvisionedConcurrencyConfigCommandInput
366
+ | PutRuntimeManagementConfigCommandInput
357
367
  | RemoveLayerVersionPermissionCommandInput
358
368
  | RemovePermissionCommandInput
359
369
  | TagResourceCommandInput
@@ -398,6 +408,7 @@ export declare type ServiceOutputTypes =
398
408
  | GetLayerVersionPolicyCommandOutput
399
409
  | GetPolicyCommandOutput
400
410
  | GetProvisionedConcurrencyConfigCommandOutput
411
+ | GetRuntimeManagementConfigCommandOutput
401
412
  | InvokeAsyncCommandOutput
402
413
  | InvokeCommandOutput
403
414
  | ListAliasesCommandOutput
@@ -418,6 +429,7 @@ export declare type ServiceOutputTypes =
418
429
  | PutFunctionConcurrencyCommandOutput
419
430
  | PutFunctionEventInvokeConfigCommandOutput
420
431
  | PutProvisionedConcurrencyConfigCommandOutput
432
+ | PutRuntimeManagementConfigCommandOutput
421
433
  | RemoveLayerVersionPermissionCommandOutput
422
434
  | RemovePermissionCommandOutput
423
435
  | TagResourceCommandOutput
@@ -451,7 +463,7 @@ export interface ClientDefaults
451
463
  region?: string | __Provider<string>;
452
464
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
453
465
  defaultUserAgentProvider?: Provider<__UserAgent>;
454
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
466
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
455
467
  }
456
468
  declare type LambdaClientConfigType = Partial<
457
469
  __SmithyConfiguration<__HttpHandlerOptions>
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ LambdaClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../LambdaClient";
14
+ import {
15
+ GetRuntimeManagementConfigRequest,
16
+ GetRuntimeManagementConfigResponse,
17
+ } from "../models/models_0";
18
+ export interface GetRuntimeManagementConfigCommandInput
19
+ extends GetRuntimeManagementConfigRequest {}
20
+ export interface GetRuntimeManagementConfigCommandOutput
21
+ extends GetRuntimeManagementConfigResponse,
22
+ __MetadataBearer {}
23
+ export declare class GetRuntimeManagementConfigCommand extends $Command<
24
+ GetRuntimeManagementConfigCommandInput,
25
+ GetRuntimeManagementConfigCommandOutput,
26
+ LambdaClientResolvedConfig
27
+ > {
28
+ readonly input: GetRuntimeManagementConfigCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetRuntimeManagementConfigCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: LambdaClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ GetRuntimeManagementConfigCommandInput,
37
+ GetRuntimeManagementConfigCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ LambdaClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../LambdaClient";
14
+ import {
15
+ PutRuntimeManagementConfigRequest,
16
+ PutRuntimeManagementConfigResponse,
17
+ } from "../models/models_0";
18
+ export interface PutRuntimeManagementConfigCommandInput
19
+ extends PutRuntimeManagementConfigRequest {}
20
+ export interface PutRuntimeManagementConfigCommandOutput
21
+ extends PutRuntimeManagementConfigResponse,
22
+ __MetadataBearer {}
23
+ export declare class PutRuntimeManagementConfigCommand extends $Command<
24
+ PutRuntimeManagementConfigCommandInput,
25
+ PutRuntimeManagementConfigCommandOutput,
26
+ LambdaClientResolvedConfig
27
+ > {
28
+ readonly input: PutRuntimeManagementConfigCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: PutRuntimeManagementConfigCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: LambdaClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ PutRuntimeManagementConfigCommandInput,
37
+ PutRuntimeManagementConfigCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }