@aws-sdk/client-kms 3.100.0 → 3.110.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.110.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.109.0...v3.110.0) (2022-06-14)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-kms
9
+
10
+
11
+
12
+
13
+
14
+ # [3.109.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.108.1...v3.109.0) (2022-06-13)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-kms
17
+
18
+
19
+
20
+
21
+
22
+ # [3.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-kms
@@ -5,6 +5,7 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
7
  const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
8
9
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
10
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
11
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
@@ -25,6 +26,7 @@ class KMSClient extends smithy_client_1.Client {
25
26
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
27
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
28
  this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
28
30
  this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
29
31
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
30
32
  }
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
3
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
6
7
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
@@ -25,6 +26,7 @@ var KMSClient = (function (_super) {
25
26
  _this.middlewareStack.use(getContentLengthPlugin(_this.config));
26
27
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
27
28
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
28
30
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
29
31
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
30
32
  return _this;
@@ -500,17 +500,13 @@ export interface GrantConstraints {
500
500
  * context in the request includes the key-value pairs specified in this constraint, although it
501
501
  * can include additional key-value pairs.</p>
502
502
  */
503
- EncryptionContextSubset?: {
504
- [key: string]: string;
505
- };
503
+ EncryptionContextSubset?: Record<string, string>;
506
504
  /**
507
505
  * <p>A list of key-value pairs that must match the encryption context in the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic operation</a>
508
506
  * request. The grant allows the operation only when the encryption context in the request is the
509
507
  * same as the encryption context specified in this constraint.</p>
510
508
  */
511
- EncryptionContextEquals?: {
512
- [key: string]: string;
513
- };
509
+ EncryptionContextEquals?: Record<string, string>;
514
510
  }
515
511
  export declare namespace GrantConstraints {
516
512
  /**
@@ -1493,9 +1489,7 @@ export interface DecryptRequest {
1493
1489
  * <p>For more information, see
1494
1490
  * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a> in the <i>Key Management Service Developer Guide</i>.</p>
1495
1491
  */
1496
- EncryptionContext?: {
1497
- [key: string]: string;
1498
- };
1492
+ EncryptionContext?: Record<string, string>;
1499
1493
  /**
1500
1494
  * <p>A list of grant tokens. </p>
1501
1495
  * <p>Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved <i>eventual consistency</i>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant token</a> in the
@@ -1995,9 +1989,7 @@ export interface EncryptRequest {
1995
1989
  * <p>For more information, see
1996
1990
  * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a> in the <i>Key Management Service Developer Guide</i>.</p>
1997
1991
  */
1998
- EncryptionContext?: {
1999
- [key: string]: string;
2000
- };
1992
+ EncryptionContext?: Record<string, string>;
2001
1993
  /**
2002
1994
  * <p>A list of grant tokens.</p>
2003
1995
  * <p>Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved <i>eventual consistency</i>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token">Using a grant token</a> in the
@@ -2088,9 +2080,7 @@ export interface GenerateDataKeyRequest {
2088
2080
  * <p>For more information, see
2089
2081
  * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a> in the <i>Key Management Service Developer Guide</i>.</p>
2090
2082
  */
2091
- EncryptionContext?: {
2092
- [key: string]: string;
2093
- };
2083
+ EncryptionContext?: Record<string, string>;
2094
2084
  /**
2095
2085
  * <p>Specifies the length of the data key in bytes. For example, use the value 64 to generate a
2096
2086
  * 512-bit data key (64 bytes is 512 bits). For 128-bit (16-byte) and 256-bit (32-byte) data
@@ -2150,9 +2140,7 @@ export interface GenerateDataKeyPairRequest {
2150
2140
  * <p>For more information, see
2151
2141
  * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a> in the <i>Key Management Service Developer Guide</i>.</p>
2152
2142
  */
2153
- EncryptionContext?: {
2154
- [key: string]: string;
2155
- };
2143
+ EncryptionContext?: Record<string, string>;
2156
2144
  /**
2157
2145
  * <p>Specifies the symmetric encryption KMS key that encrypts the private key in the data key
2158
2146
  * pair. You cannot specify an asymmetric KMS key or a KMS key in a custom key store. To get the
@@ -2237,9 +2225,7 @@ export interface GenerateDataKeyPairWithoutPlaintextRequest {
2237
2225
  * <p>For more information, see
2238
2226
  * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a> in the <i>Key Management Service Developer Guide</i>.</p>
2239
2227
  */
2240
- EncryptionContext?: {
2241
- [key: string]: string;
2242
- };
2228
+ EncryptionContext?: Record<string, string>;
2243
2229
  /**
2244
2230
  * <p>Specifies the symmetric encryption KMS key that encrypts the private key in the data key
2245
2231
  * pair. You cannot specify an asymmetric KMS key or a KMS key in a custom key store. To get the
@@ -2347,9 +2333,7 @@ export interface GenerateDataKeyWithoutPlaintextRequest {
2347
2333
  * <p>For more information, see
2348
2334
  * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a> in the <i>Key Management Service Developer Guide</i>.</p>
2349
2335
  */
2350
- EncryptionContext?: {
2351
- [key: string]: string;
2352
- };
2336
+ EncryptionContext?: Record<string, string>;
2353
2337
  /**
2354
2338
  * <p>The length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key,
2355
2339
  * or <code>AES_256</code> to generate a 256-bit symmetric key.</p>
@@ -3363,9 +3347,7 @@ export interface ReEncryptRequest {
3363
3347
  * <p>For more information, see
3364
3348
  * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a> in the <i>Key Management Service Developer Guide</i>.</p>
3365
3349
  */
3366
- SourceEncryptionContext?: {
3367
- [key: string]: string;
3368
- };
3350
+ SourceEncryptionContext?: Record<string, string>;
3369
3351
  /**
3370
3352
  * <p>Specifies the KMS key that KMS will use to decrypt the ciphertext before it is
3371
3353
  * re-encrypted.</p>
@@ -3436,9 +3418,7 @@ export interface ReEncryptRequest {
3436
3418
  * <p>For more information, see
3437
3419
  * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption context</a> in the <i>Key Management Service Developer Guide</i>.</p>
3438
3420
  */
3439
- DestinationEncryptionContext?: {
3440
- [key: string]: string;
3441
- };
3421
+ DestinationEncryptionContext?: Record<string, string>;
3442
3422
  /**
3443
3423
  * <p>Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it
3444
3424
  * is reencrypted. The default value, <code>SYMMETRIC_DEFAULT</code>, represents the algorithm
@@ -224,13 +224,9 @@ export declare class IncorrectTrustAnchorException extends __BaseException {
224
224
 
225
225
  export interface GrantConstraints {
226
226
 
227
- EncryptionContextSubset?: {
228
- [key: string]: string;
229
- };
227
+ EncryptionContextSubset?: Record<string, string>;
230
228
 
231
- EncryptionContextEquals?: {
232
- [key: string]: string;
233
- };
229
+ EncryptionContextEquals?: Record<string, string>;
234
230
  }
235
231
  export declare namespace GrantConstraints {
236
232
 
@@ -568,9 +564,7 @@ export interface DecryptRequest {
568
564
 
569
565
  CiphertextBlob: Uint8Array | undefined;
570
566
 
571
- EncryptionContext?: {
572
- [key: string]: string;
573
- };
567
+ EncryptionContext?: Record<string, string>;
574
568
 
575
569
  GrantTokens?: string[];
576
570
 
@@ -755,9 +749,7 @@ export interface EncryptRequest {
755
749
 
756
750
  Plaintext: Uint8Array | undefined;
757
751
 
758
- EncryptionContext?: {
759
- [key: string]: string;
760
- };
752
+ EncryptionContext?: Record<string, string>;
761
753
 
762
754
  GrantTokens?: string[];
763
755
 
@@ -790,9 +782,7 @@ export interface GenerateDataKeyRequest {
790
782
 
791
783
  KeyId: string | undefined;
792
784
 
793
- EncryptionContext?: {
794
- [key: string]: string;
795
- };
785
+ EncryptionContext?: Record<string, string>;
796
786
 
797
787
  NumberOfBytes?: number;
798
788
 
@@ -818,9 +808,7 @@ export declare namespace GenerateDataKeyResponse {
818
808
  }
819
809
  export interface GenerateDataKeyPairRequest {
820
810
 
821
- EncryptionContext?: {
822
- [key: string]: string;
823
- };
811
+ EncryptionContext?: Record<string, string>;
824
812
 
825
813
  KeyId: string | undefined;
826
814
 
@@ -850,9 +838,7 @@ export declare namespace GenerateDataKeyPairResponse {
850
838
  }
851
839
  export interface GenerateDataKeyPairWithoutPlaintextRequest {
852
840
 
853
- EncryptionContext?: {
854
- [key: string]: string;
855
- };
841
+ EncryptionContext?: Record<string, string>;
856
842
 
857
843
  KeyId: string | undefined;
858
844
 
@@ -882,9 +868,7 @@ export interface GenerateDataKeyWithoutPlaintextRequest {
882
868
 
883
869
  KeyId: string | undefined;
884
870
 
885
- EncryptionContext?: {
886
- [key: string]: string;
887
- };
871
+ EncryptionContext?: Record<string, string>;
888
872
 
889
873
  KeySpec?: DataKeySpec | string;
890
874
 
@@ -1292,17 +1276,13 @@ export interface ReEncryptRequest {
1292
1276
 
1293
1277
  CiphertextBlob: Uint8Array | undefined;
1294
1278
 
1295
- SourceEncryptionContext?: {
1296
- [key: string]: string;
1297
- };
1279
+ SourceEncryptionContext?: Record<string, string>;
1298
1280
 
1299
1281
  SourceKeyId?: string;
1300
1282
 
1301
1283
  DestinationKeyId: string | undefined;
1302
1284
 
1303
- DestinationEncryptionContext?: {
1304
- [key: string]: string;
1305
- };
1285
+ DestinationEncryptionContext?: Record<string, string>;
1306
1286
 
1307
1287
  SourceEncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
1308
1288
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kms",
3
3
  "description": "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",
4
- "version": "3.100.0",
4
+ "version": "3.110.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",
@@ -18,36 +18,37 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.100.0",
22
- "@aws-sdk/config-resolver": "3.80.0",
23
- "@aws-sdk/credential-provider-node": "3.100.0",
24
- "@aws-sdk/fetch-http-handler": "3.78.0",
25
- "@aws-sdk/hash-node": "3.78.0",
26
- "@aws-sdk/invalid-dependency": "3.78.0",
27
- "@aws-sdk/middleware-content-length": "3.78.0",
28
- "@aws-sdk/middleware-host-header": "3.78.0",
29
- "@aws-sdk/middleware-logger": "3.78.0",
30
- "@aws-sdk/middleware-retry": "3.80.0",
31
- "@aws-sdk/middleware-serde": "3.78.0",
32
- "@aws-sdk/middleware-signing": "3.78.0",
33
- "@aws-sdk/middleware-stack": "3.78.0",
34
- "@aws-sdk/middleware-user-agent": "3.78.0",
35
- "@aws-sdk/node-config-provider": "3.80.0",
36
- "@aws-sdk/node-http-handler": "3.94.0",
37
- "@aws-sdk/protocol-http": "3.78.0",
38
- "@aws-sdk/smithy-client": "3.99.0",
39
- "@aws-sdk/types": "3.78.0",
40
- "@aws-sdk/url-parser": "3.78.0",
41
- "@aws-sdk/util-base64-browser": "3.58.0",
21
+ "@aws-sdk/client-sts": "3.110.0",
22
+ "@aws-sdk/config-resolver": "3.110.0",
23
+ "@aws-sdk/credential-provider-node": "3.110.0",
24
+ "@aws-sdk/fetch-http-handler": "3.110.0",
25
+ "@aws-sdk/hash-node": "3.110.0",
26
+ "@aws-sdk/invalid-dependency": "3.110.0",
27
+ "@aws-sdk/middleware-content-length": "3.110.0",
28
+ "@aws-sdk/middleware-host-header": "3.110.0",
29
+ "@aws-sdk/middleware-logger": "3.110.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
+ "@aws-sdk/middleware-retry": "3.110.0",
32
+ "@aws-sdk/middleware-serde": "3.110.0",
33
+ "@aws-sdk/middleware-signing": "3.110.0",
34
+ "@aws-sdk/middleware-stack": "3.110.0",
35
+ "@aws-sdk/middleware-user-agent": "3.110.0",
36
+ "@aws-sdk/node-config-provider": "3.110.0",
37
+ "@aws-sdk/node-http-handler": "3.110.0",
38
+ "@aws-sdk/protocol-http": "3.110.0",
39
+ "@aws-sdk/smithy-client": "3.110.0",
40
+ "@aws-sdk/types": "3.110.0",
41
+ "@aws-sdk/url-parser": "3.110.0",
42
+ "@aws-sdk/util-base64-browser": "3.109.0",
42
43
  "@aws-sdk/util-base64-node": "3.55.0",
43
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
45
  "@aws-sdk/util-body-length-node": "3.55.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.99.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.99.0",
47
- "@aws-sdk/util-user-agent-browser": "3.78.0",
48
- "@aws-sdk/util-user-agent-node": "3.80.0",
49
- "@aws-sdk/util-utf8-browser": "3.55.0",
50
- "@aws-sdk/util-utf8-node": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.110.0",
49
+ "@aws-sdk/util-user-agent-node": "3.110.0",
50
+ "@aws-sdk/util-utf8-browser": "3.109.0",
51
+ "@aws-sdk/util-utf8-node": "3.109.0",
51
52
  "tslib": "^2.3.1"
52
53
  },
53
54
  "devDependencies": {