@aws-sdk/client-lambda 3.686.0 → 3.688.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.
package/dist-cjs/index.js CHANGED
@@ -2393,6 +2393,7 @@ var se_UpdateFunctionCodeCommand = /* @__PURE__ */ __name(async (input, context)
2393
2393
  S3Bucket: [],
2394
2394
  S3Key: [],
2395
2395
  S3ObjectVersion: [],
2396
+ SourceKMSKeyArn: [],
2396
2397
  ZipFile: (_) => context.base64Encoder(_)
2397
2398
  })
2398
2399
  );
@@ -4485,6 +4486,7 @@ var se_FunctionCode = /* @__PURE__ */ __name((input, context) => {
4485
4486
  S3Bucket: [],
4486
4487
  S3Key: [],
4487
4488
  S3ObjectVersion: [],
4489
+ SourceKMSKeyArn: [],
4488
4490
  ZipFile: context.base64Encoder
4489
4491
  });
4490
4492
  }, "se_FunctionCode");
@@ -933,6 +933,7 @@ export const se_UpdateFunctionCodeCommand = async (input, context) => {
933
933
  S3Bucket: [],
934
934
  S3Key: [],
935
935
  S3ObjectVersion: [],
936
+ SourceKMSKeyArn: [],
936
937
  ZipFile: (_) => context.base64Encoder(_),
937
938
  }));
938
939
  b.m("PUT").h(headers).b(body);
@@ -3018,6 +3019,7 @@ const se_FunctionCode = (input, context) => {
3018
3019
  S3Bucket: [],
3019
3020
  S3Key: [],
3020
3021
  S3ObjectVersion: [],
3022
+ SourceKMSKeyArn: [],
3021
3023
  ZipFile: context.base64Encoder,
3022
3024
  });
3023
3025
  };
@@ -82,6 +82,7 @@ declare const CreateFunctionCommand_base: {
82
82
  * S3Key: "STRING_VALUE",
83
83
  * S3ObjectVersion: "STRING_VALUE",
84
84
  * ImageUri: "STRING_VALUE",
85
+ * SourceKMSKeyArn: "STRING_VALUE",
85
86
  * },
86
87
  * Description: "STRING_VALUE",
87
88
  * Timeout: Number("int"),
@@ -151,6 +151,7 @@ declare const GetFunctionCommand_base: {
151
151
  * // Location: "STRING_VALUE",
152
152
  * // ImageUri: "STRING_VALUE",
153
153
  * // ResolvedImageUri: "STRING_VALUE",
154
+ * // SourceKMSKeyArn: "STRING_VALUE",
154
155
  * // },
155
156
  * // Tags: { // Tags
156
157
  * // "<keys>": "STRING_VALUE",
@@ -62,6 +62,7 @@ declare const UpdateFunctionCodeCommand_base: {
62
62
  * Architectures: [ // ArchitecturesList
63
63
  * "x86_64" || "arm64",
64
64
  * ],
65
+ * SourceKMSKeyArn: "STRING_VALUE",
65
66
  * };
66
67
  * const command = new UpdateFunctionCodeCommand(input);
67
68
  * const response = await client.send(command);
@@ -1375,6 +1375,12 @@ export interface FunctionCode {
1375
1375
  * @public
1376
1376
  */
1377
1377
  ImageUri?: string;
1378
+ /**
1379
+ * <p>The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's
1380
+ * .zip deployment package. If you don't provide a customer managed key, Lambda uses an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services owned key</a>.</p>
1381
+ * @public
1382
+ */
1383
+ SourceKMSKeyArn?: string;
1378
1384
  }
1379
1385
  /**
1380
1386
  * <p>The <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq">dead-letter queue</a> for
@@ -1743,12 +1749,23 @@ export interface CreateFunctionRequest {
1743
1749
  */
1744
1750
  Environment?: Environment;
1745
1751
  /**
1746
- * <p>The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's
1747
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment variables</a>. When
1748
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda SnapStart</a> is activated, Lambda also uses
1749
- * this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to
1750
- * encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR).
1751
- * If you don't provide a customer managed key, Lambda uses a default service key.</p>
1752
+ * <p>The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources:</p>
1753
+ * <ul>
1754
+ * <li>
1755
+ * <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment variables</a>.</p>
1756
+ * </li>
1757
+ * <li>
1758
+ * <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda SnapStart</a> snapshots.</p>
1759
+ * </li>
1760
+ * <li>
1761
+ * <p>When used with <code>SourceKMSKeyArn</code>, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption">
1762
+ * Specifying a customer managed key for Lambda</a>.</p>
1763
+ * </li>
1764
+ * <li>
1765
+ * <p>The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle">Function lifecycle</a>.</p>
1766
+ * </li>
1767
+ * </ul>
1768
+ * <p>If you don't provide a customer managed key, Lambda uses an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services owned key</a> or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a>.</p>
1752
1769
  * @public
1753
1770
  */
1754
1771
  KMSKeyArn?: string;
@@ -2179,8 +2196,23 @@ export interface FunctionConfiguration {
2179
2196
  */
2180
2197
  Environment?: EnvironmentResponse;
2181
2198
  /**
2182
- * <p>The KMS key that's used to encrypt the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment variables</a>. When <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda SnapStart</a> is activated, this key is also used to encrypt the function's snapshot. This key is
2183
- * returned only if you've configured a customer managed key.</p>
2199
+ * <p>The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources:</p>
2200
+ * <ul>
2201
+ * <li>
2202
+ * <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment variables</a>.</p>
2203
+ * </li>
2204
+ * <li>
2205
+ * <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda SnapStart</a> snapshots.</p>
2206
+ * </li>
2207
+ * <li>
2208
+ * <p>When used with <code>SourceKMSKeyArn</code>, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption">
2209
+ * Specifying a customer managed key for Lambda</a>.</p>
2210
+ * </li>
2211
+ * <li>
2212
+ * <p>The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle">Function lifecycle</a>.</p>
2213
+ * </li>
2214
+ * </ul>
2215
+ * <p>If you don't provide a customer managed key, Lambda uses an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services owned key</a> or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a>.</p>
2184
2216
  * @public
2185
2217
  */
2186
2218
  KMSKeyArn?: string;
@@ -2904,6 +2936,12 @@ export interface FunctionCodeLocation {
2904
2936
  * @public
2905
2937
  */
2906
2938
  ResolvedImageUri?: string;
2939
+ /**
2940
+ * <p>The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's
2941
+ * .zip deployment package. If you don't provide a customer managed key, Lambda uses an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services owned key</a>.</p>
2942
+ * @public
2943
+ */
2944
+ SourceKMSKeyArn?: string;
2907
2945
  }
2908
2946
  /**
2909
2947
  * @public
@@ -2948,7 +2986,7 @@ export interface GetFunctionResponse {
2948
2986
  Code?: FunctionCodeLocation;
2949
2987
  /**
2950
2988
  * <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>. Lambda
2951
- * returns tag data only if you have explicit allow permissions for <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/lambda/latest/api/API_ListTags.html">lambda:ListTags</a>.</p>
2989
+ * returns tag data only if you have explicit allow permissions for <a href="https://docs.aws.amazon.com/lambda/latest/api/API_ListTags.html">lambda:ListTags</a>.</p>
2952
2990
  * @public
2953
2991
  */
2954
2992
  Tags?: Record<string, string>;
@@ -6185,6 +6223,12 @@ export interface UpdateFunctionCodeRequest {
6185
6223
  * @public
6186
6224
  */
6187
6225
  Architectures?: Architecture[];
6226
+ /**
6227
+ * <p>The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's
6228
+ * .zip deployment package. If you don't provide a customer managed key, Lambda uses an Amazon Web Services managed key.</p>
6229
+ * @public
6230
+ */
6231
+ SourceKMSKeyArn?: string;
6188
6232
  }
6189
6233
  /**
6190
6234
  * @public
@@ -6275,12 +6319,23 @@ export interface UpdateFunctionConfigurationRequest {
6275
6319
  */
6276
6320
  DeadLetterConfig?: DeadLetterConfig;
6277
6321
  /**
6278
- * <p>The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's
6279
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment variables</a>. When
6280
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda SnapStart</a> is activated, Lambda also uses
6281
- * this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to
6282
- * encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR).
6283
- * If you don't provide a customer managed key, Lambda uses a default service key.</p>
6322
+ * <p>The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources:</p>
6323
+ * <ul>
6324
+ * <li>
6325
+ * <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment variables</a>.</p>
6326
+ * </li>
6327
+ * <li>
6328
+ * <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda SnapStart</a> snapshots.</p>
6329
+ * </li>
6330
+ * <li>
6331
+ * <p>When used with <code>SourceKMSKeyArn</code>, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption">
6332
+ * Specifying a customer managed key for Lambda</a>.</p>
6333
+ * </li>
6334
+ * <li>
6335
+ * <p>The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle">Function lifecycle</a>.</p>
6336
+ * </li>
6337
+ * </ul>
6338
+ * <p>If you don't provide a customer managed key, Lambda uses an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services owned key</a> or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a>.</p>
6284
6339
  * @public
6285
6340
  */
6286
6341
  KMSKeyArn?: string;
@@ -348,6 +348,7 @@ export interface FunctionCode {
348
348
  S3Key?: string;
349
349
  S3ObjectVersion?: string;
350
350
  ImageUri?: string;
351
+ SourceKMSKeyArn?: string;
351
352
  }
352
353
  export interface DeadLetterConfig {
353
354
  TargetArn?: string;
@@ -743,6 +744,7 @@ export interface FunctionCodeLocation {
743
744
  Location?: string;
744
745
  ImageUri?: string;
745
746
  ResolvedImageUri?: string;
747
+ SourceKMSKeyArn?: string;
746
748
  }
747
749
  export interface Concurrency {
748
750
  ReservedConcurrentExecutions?: number;
@@ -1508,6 +1510,7 @@ export interface UpdateFunctionCodeRequest {
1508
1510
  DryRun?: boolean;
1509
1511
  RevisionId?: string;
1510
1512
  Architectures?: Architecture[];
1513
+ SourceKMSKeyArn?: string;
1511
1514
  }
1512
1515
  export interface UpdateFunctionConfigurationRequest {
1513
1516
  FunctionName: string | undefined;
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.686.0",
4
+ "version": "3.688.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lambda",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.686.0",
24
- "@aws-sdk/client-sts": "3.686.0",
23
+ "@aws-sdk/client-sso-oidc": "3.687.0",
24
+ "@aws-sdk/client-sts": "3.687.0",
25
25
  "@aws-sdk/core": "3.686.0",
26
- "@aws-sdk/credential-provider-node": "3.686.0",
26
+ "@aws-sdk/credential-provider-node": "3.687.0",
27
27
  "@aws-sdk/middleware-host-header": "3.686.0",
28
28
  "@aws-sdk/middleware-logger": "3.686.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.686.0",
30
- "@aws-sdk/middleware-user-agent": "3.686.0",
30
+ "@aws-sdk/middleware-user-agent": "3.687.0",
31
31
  "@aws-sdk/region-config-resolver": "3.686.0",
32
32
  "@aws-sdk/types": "3.686.0",
33
33
  "@aws-sdk/util-endpoints": "3.686.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.686.0",
35
- "@aws-sdk/util-user-agent-node": "3.686.0",
35
+ "@aws-sdk/util-user-agent-node": "3.687.0",
36
36
  "@smithy/config-resolver": "^3.0.10",
37
37
  "@smithy/core": "^2.5.1",
38
38
  "@smithy/eventstream-serde-browser": "^3.0.11",