@aws-sdk/client-lambda 3.310.0 → 3.314.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.
@@ -3949,6 +3949,15 @@ const de_InvokeWithResponseStreamCommandError = async (output, context) => {
3949
3949
  case "ServiceException":
3950
3950
  case "com.amazonaws.lambda#ServiceException":
3951
3951
  throw await de_ServiceExceptionRes(parsedOutput, context);
3952
+ case "SnapStartException":
3953
+ case "com.amazonaws.lambda#SnapStartException":
3954
+ throw await de_SnapStartExceptionRes(parsedOutput, context);
3955
+ case "SnapStartNotReadyException":
3956
+ case "com.amazonaws.lambda#SnapStartNotReadyException":
3957
+ throw await de_SnapStartNotReadyExceptionRes(parsedOutput, context);
3958
+ case "SnapStartTimeoutException":
3959
+ case "com.amazonaws.lambda#SnapStartTimeoutException":
3960
+ throw await de_SnapStartTimeoutExceptionRes(parsedOutput, context);
3952
3961
  case "SubnetIPAddressLimitReachedException":
3953
3962
  case "com.amazonaws.lambda#SubnetIPAddressLimitReachedException":
3954
3963
  throw await de_SubnetIPAddressLimitReachedExceptionRes(parsedOutput, context);
@@ -3842,6 +3842,15 @@ const de_InvokeWithResponseStreamCommandError = async (output, context) => {
3842
3842
  case "ServiceException":
3843
3843
  case "com.amazonaws.lambda#ServiceException":
3844
3844
  throw await de_ServiceExceptionRes(parsedOutput, context);
3845
+ case "SnapStartException":
3846
+ case "com.amazonaws.lambda#SnapStartException":
3847
+ throw await de_SnapStartExceptionRes(parsedOutput, context);
3848
+ case "SnapStartNotReadyException":
3849
+ case "com.amazonaws.lambda#SnapStartNotReadyException":
3850
+ throw await de_SnapStartNotReadyExceptionRes(parsedOutput, context);
3851
+ case "SnapStartTimeoutException":
3852
+ case "com.amazonaws.lambda#SnapStartTimeoutException":
3853
+ throw await de_SnapStartTimeoutExceptionRes(parsedOutput, context);
3845
3854
  case "SubnetIPAddressLimitReachedException":
3846
3855
  case "com.amazonaws.lambda#SubnetIPAddressLimitReachedException":
3847
3856
  throw await de_SubnetIPAddressLimitReachedExceptionRes(parsedOutput, context);
@@ -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;
@@ -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>
@@ -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
  /**
@@ -1739,7 +1742,8 @@ export interface FunctionConfiguration {
1739
1742
  */
1740
1743
  FunctionArn?: string;
1741
1744
  /**
1742
- * <p>The runtime environment for the Lambda function.</p>
1745
+ * <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>
1746
+ * <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
1747
  */
1744
1748
  Runtime?: Runtime | string;
1745
1749
  /**
@@ -4130,14 +4134,14 @@ export interface FunctionUrlConfig {
4130
4134
  * <li>
4131
4135
  * <p>
4132
4136
  * <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>
4137
+ * using the <code>Invoke</code> API operation. Invocation results are available when the
4138
+ * payload is complete. The maximum payload size is 6 MB.</p>
4135
4139
  * </li>
4136
4140
  * <li>
4137
4141
  * <p>
4138
4142
  * <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>
4143
+ * Lambda invokes your function using the <code>InvokeWithResponseStream</code>
4144
+ * 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
4145
  * </li>
4142
4146
  * </ul>
4143
4147
  */
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.310.0",
4
+ "version": "3.314.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,7 +21,7 @@
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.310.0",
24
+ "@aws-sdk/client-sts": "3.312.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
26
  "@aws-sdk/credential-provider-node": "3.310.0",
27
27
  "@aws-sdk/eventstream-serde-browser": "3.310.0",