@aws-sdk/client-lambda 3.312.0 → 3.315.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.
@@ -612,6 +612,9 @@ export declare class Lambda extends LambdaClient {
612
612
  /**
613
613
  * @public
614
614
  * <p>Configure your Lambda functions to stream response payloads back to clients. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-response-streaming.html">Configuring a Lambda function to stream responses</a>.</p>
615
+ * <p>This operation requires permission for the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html">lambda:InvokeFunction</a> action. For details on how to set up
616
+ * permissions for cross-account invocations, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke">Granting function
617
+ * access to other accounts</a>.</p>
615
618
  */
616
619
  invokeWithResponseStream(args: InvokeWithResponseStreamCommandInput, options?: __HttpHandlerOptions): Promise<InvokeWithResponseStreamCommandOutput>;
617
620
  invokeWithResponseStream(args: InvokeWithResponseStreamCommandInput, cb: (err: any, data?: InvokeWithResponseStreamCommandOutput) => void): void;
@@ -65,7 +65,7 @@ export interface CreateFunctionCommandOutput extends FunctionConfiguration, __Me
65
65
  * const client = new LambdaClient(config);
66
66
  * const input = { // CreateFunctionRequest
67
67
  * FunctionName: "STRING_VALUE", // required
68
- * Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x",
68
+ * Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10",
69
69
  * Role: "STRING_VALUE", // required
70
70
  * Handler: "STRING_VALUE",
71
71
  * Code: { // FunctionCode
@@ -20,6 +20,9 @@ export interface InvokeWithResponseStreamCommandOutput extends InvokeWithRespons
20
20
  /**
21
21
  * @public
22
22
  * <p>Configure your Lambda functions to stream response payloads back to clients. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-response-streaming.html">Configuring a Lambda function to stream responses</a>.</p>
23
+ * <p>This operation requires permission for the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html">lambda:InvokeFunction</a> action. For details on how to set up
24
+ * permissions for cross-account invocations, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke">Granting function
25
+ * access to other accounts</a>.</p>
23
26
  * @example
24
27
  * Use a bare-bones client and the command you need to make an API call.
25
28
  * ```javascript
@@ -124,6 +127,16 @@ export interface InvokeWithResponseStreamCommandOutput extends InvokeWithRespons
124
127
  * @throws {@link ServiceException} (server fault)
125
128
  * <p>The Lambda service encountered an internal error.</p>
126
129
  *
130
+ * @throws {@link SnapStartException} (client fault)
131
+ * <p>The <code>afterRestore()</code>
132
+ * <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>
133
+ *
134
+ * @throws {@link SnapStartNotReadyException} (client fault)
135
+ * <p>Lambda is initializing your function. You can invoke the function when the <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">function state</a> becomes <code>Active</code>.</p>
136
+ *
137
+ * @throws {@link SnapStartTimeoutException} (client fault)
138
+ * <p>Lambda couldn't restore the snapshot within the timeout limit.</p>
139
+ *
127
140
  * @throws {@link SubnetIPAddressLimitReachedException} (server fault)
128
141
  * <p>Lambda couldn't set up VPC access for the Lambda function because one or more
129
142
  * configured subnets has no available IP addresses.</p>
@@ -30,7 +30,7 @@ export interface ListLayerVersionsCommandOutput extends ListLayerVersionsRespons
30
30
  * // const { LambdaClient, ListLayerVersionsCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
31
31
  * const client = new LambdaClient(config);
32
32
  * const input = { // ListLayerVersionsRequest
33
- * CompatibleRuntime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x",
33
+ * CompatibleRuntime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10",
34
34
  * LayerName: "STRING_VALUE", // required
35
35
  * Marker: "STRING_VALUE",
36
36
  * MaxItems: Number("int"),
@@ -32,7 +32,7 @@ export interface ListLayersCommandOutput extends ListLayersResponse, __MetadataB
32
32
  * // const { LambdaClient, ListLayersCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
33
33
  * const client = new LambdaClient(config);
34
34
  * const input = { // ListLayersRequest
35
- * CompatibleRuntime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x",
35
+ * CompatibleRuntime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10",
36
36
  * Marker: "STRING_VALUE",
37
37
  * MaxItems: Number("int"),
38
38
  * CompatibleArchitecture: "x86_64" || "arm64",
@@ -39,7 +39,7 @@ export interface PublishLayerVersionCommandOutput extends PublishLayerVersionRes
39
39
  * ZipFile: "BLOB_VALUE",
40
40
  * },
41
41
  * CompatibleRuntimes: [ // CompatibleRuntimes
42
- * "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x",
42
+ * "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10",
43
43
  * ],
44
44
  * LicenseInfo: "STRING_VALUE",
45
45
  * CompatibleArchitectures: [ // CompatibleArchitectures
@@ -57,7 +57,7 @@ export interface UpdateFunctionConfigurationCommandOutput extends FunctionConfig
57
57
  * "<keys>": "STRING_VALUE",
58
58
  * },
59
59
  * },
60
- * Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x",
60
+ * Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "java8" || "java8.al2" || "java11" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "provided" || "provided.al2" || "nodejs18.x" || "python3.10",
61
61
  * DeadLetterConfig: { // DeadLetterConfig
62
62
  * TargetArn: "STRING_VALUE",
63
63
  * },
@@ -1044,7 +1044,10 @@ export interface EventSourceMappingConfiguration {
1044
1044
  SelfManagedEventSource?: SelfManagedEventSource;
1045
1045
  /**
1046
1046
  * <p>(Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is -1,
1047
- * which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records. </p>
1047
+ * which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.</p>
1048
+ * <note>
1049
+ * <p>The minimum value that can be set is 60 seconds.</p>
1050
+ * </note>
1048
1051
  */
1049
1052
  MaximumRecordAgeInSeconds?: number;
1050
1053
  /**
@@ -1263,6 +1266,7 @@ export declare const Runtime: {
1263
1266
  readonly provided: "provided";
1264
1267
  readonly providedal2: "provided.al2";
1265
1268
  readonly python27: "python2.7";
1269
+ readonly python310: "python3.10";
1266
1270
  readonly python36: "python3.6";
1267
1271
  readonly python37: "python3.7";
1268
1272
  readonly python38: "python3.8";
@@ -1739,7 +1743,8 @@ export interface FunctionConfiguration {
1739
1743
  */
1740
1744
  FunctionArn?: string;
1741
1745
  /**
1742
- * <p>The runtime environment for the Lambda function.</p>
1746
+ * <p>The identifier of the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime</a>. Runtime is required if the deployment package is a .zip file archive.</p>
1747
+ * <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy">Runtime deprecation policy</a>.</p>
1743
1748
  */
1744
1749
  Runtime?: Runtime | string;
1745
1750
  /**
@@ -4130,14 +4135,14 @@ export interface FunctionUrlConfig {
4130
4135
  * <li>
4131
4136
  * <p>
4132
4137
  * <code>BUFFERED</code> – This is the default option. Lambda invokes your function
4133
- * using the <code>Invoke</code> API operation. Invocation results are available when the
4134
- * payload is complete. The maximum payload size is 6 MB.</p>
4138
+ * using the <code>Invoke</code> API operation. Invocation results are available when the
4139
+ * payload is complete. The maximum payload size is 6 MB.</p>
4135
4140
  * </li>
4136
4141
  * <li>
4137
4142
  * <p>
4138
4143
  * <code>RESPONSE_STREAM</code> – Your function streams payload results as they become available.
4139
- * Lambda invokes your function using the <code>InvokeWithResponseStream</code>
4140
- * API operation. The maximum response payload size is 20 MB, however, you can <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request a quota increase</a>.</p>
4144
+ * Lambda invokes your function using the <code>InvokeWithResponseStream</code>
4145
+ * API operation. The maximum response payload size is 20 MB, however, you can <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request a quota increase</a>.</p>
4141
4146
  * </li>
4142
4147
  * </ul>
4143
4148
  */
@@ -375,6 +375,7 @@ export declare const Runtime: {
375
375
  readonly provided: "provided";
376
376
  readonly providedal2: "provided.al2";
377
377
  readonly python27: "python2.7";
378
+ readonly python310: "python3.10";
378
379
  readonly python36: "python3.6";
379
380
  readonly python37: "python3.7";
380
381
  readonly python38: "python3.8";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lambda",
3
3
  "description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
4
- "version": "3.312.0",
4
+ "version": "3.315.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.312.0",
24
+ "@aws-sdk/client-sts": "3.315.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.310.0",
26
+ "@aws-sdk/credential-provider-node": "3.315.0",
27
27
  "@aws-sdk/eventstream-serde-browser": "3.310.0",
28
28
  "@aws-sdk/eventstream-serde-config-resolver": "3.310.0",
29
29
  "@aws-sdk/eventstream-serde-node": "3.310.0",
@@ -43,14 +43,14 @@
43
43
  "@aws-sdk/node-config-provider": "3.310.0",
44
44
  "@aws-sdk/node-http-handler": "3.310.0",
45
45
  "@aws-sdk/protocol-http": "3.310.0",
46
- "@aws-sdk/smithy-client": "3.310.0",
46
+ "@aws-sdk/smithy-client": "3.315.0",
47
47
  "@aws-sdk/types": "3.310.0",
48
48
  "@aws-sdk/url-parser": "3.310.0",
49
49
  "@aws-sdk/util-base64": "3.310.0",
50
50
  "@aws-sdk/util-body-length-browser": "3.310.0",
51
51
  "@aws-sdk/util-body-length-node": "3.310.0",
52
- "@aws-sdk/util-defaults-mode-browser": "3.310.0",
53
- "@aws-sdk/util-defaults-mode-node": "3.310.0",
52
+ "@aws-sdk/util-defaults-mode-browser": "3.315.0",
53
+ "@aws-sdk/util-defaults-mode-node": "3.315.0",
54
54
  "@aws-sdk/util-endpoints": "3.310.0",
55
55
  "@aws-sdk/util-retry": "3.310.0",
56
56
  "@aws-sdk/util-user-agent-browser": "3.310.0",