@aws-sdk/client-kms 3.224.0 → 3.229.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.
@@ -56,15 +56,6 @@ exports.ruleSet = {
56
56
  },
57
57
  ],
58
58
  },
59
- {
60
- fn: "parseURL",
61
- argv: [
62
- {
63
- ref: "Endpoint",
64
- },
65
- ],
66
- assign: "url",
67
- },
68
59
  ],
69
60
  type: "tree",
70
61
  rules: [
@@ -7,8 +7,8 @@ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
8
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
10
- const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
10
  const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
11
+ const util_retry_1 = require("@aws-sdk/util-retry");
12
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
@@ -27,10 +27,10 @@ const getRuntimeConfig = (config) => {
27
27
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
28
28
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
29
29
  (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
- maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
30
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
31
31
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
32
32
  requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
33
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
33
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
34
34
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
35
35
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
36
36
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -11,6 +11,7 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
11
  const node_config_provider_1 = require("@aws-sdk/node-config-provider");
12
12
  const node_http_handler_1 = require("@aws-sdk/node-http-handler");
13
13
  const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
14
+ const util_retry_1 = require("@aws-sdk/util-retry");
14
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
15
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
16
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
@@ -37,7 +38,7 @@ const getRuntimeConfig = (config) => {
37
38
  retryMode: config?.retryMode ??
38
39
  (0, node_config_provider_1.loadConfig)({
39
40
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
41
42
  }),
42
43
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
43
44
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
@@ -53,15 +53,6 @@ export const ruleSet = {
53
53
  },
54
54
  ],
55
55
  },
56
- {
57
- fn: "parseURL",
58
- argv: [
59
- {
60
- ref: "Endpoint",
61
- },
62
- ],
63
- assign: "url",
64
- },
65
56
  ],
66
57
  type: "tree",
67
58
  rules: [
@@ -3,8 +3,8 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
3
3
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
4
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
- import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
7
6
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
7
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
8
8
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
9
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
@@ -3,10 +3,11 @@ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
3
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
4
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
5
  import { Hash } from "@aws-sdk/hash-node";
6
- import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
6
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
7
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
8
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
9
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
10
+ import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
10
11
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
11
12
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
12
13
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
@@ -976,11 +976,13 @@ export declare class KMS extends KMSClient {
976
976
  * applicable), the key state, and the origin and expiration date (if any) of the key material.
977
977
  * It includes fields, like <code>KeySpec</code>, that help you distinguish different types of
978
978
  * KMS keys. It also displays the key usage (encryption, signing, or generating and verifying
979
- * MACs) and the algorithms that the KMS key supports. For <a href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region keys</a>, it displays
980
- * the primary key and all related replica keys. For KMS keys in <a href="kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key stores</a>, it includes information
981
- * about the custom key store, such as the key store ID and the CloudHSM cluster ID. For KMS key in
982
- * <a href="kms/latest/developerguide/keystore-external.html">external key stores</a>, it includes
983
- * the custom key store ID and the ID and status of the associated external key.</p>
979
+ * MACs) and the algorithms that the KMS key supports. </p>
980
+ * <p>For <a href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region keys</a>,
981
+ * <code>DescribeKey</code> displays the primary key and all related replica keys. For KMS keys
982
+ * in <a href="kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key stores</a>, it includes
983
+ * information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS
984
+ * keys in <a href="kms/latest/developerguide/keystore-external.html">external key stores</a>, it
985
+ * includes the custom key store ID and the ID of the external key.</p>
984
986
  * <p>
985
987
  * <code>DescribeKey</code> does not return the following information:</p>
986
988
  * <ul>
@@ -15,11 +15,13 @@ export interface DescribeKeyCommandOutput extends DescribeKeyResponse, __Metadat
15
15
  * applicable), the key state, and the origin and expiration date (if any) of the key material.
16
16
  * It includes fields, like <code>KeySpec</code>, that help you distinguish different types of
17
17
  * KMS keys. It also displays the key usage (encryption, signing, or generating and verifying
18
- * MACs) and the algorithms that the KMS key supports. For <a href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region keys</a>, it displays
19
- * the primary key and all related replica keys. For KMS keys in <a href="kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key stores</a>, it includes information
20
- * about the custom key store, such as the key store ID and the CloudHSM cluster ID. For KMS key in
21
- * <a href="kms/latest/developerguide/keystore-external.html">external key stores</a>, it includes
22
- * the custom key store ID and the ID and status of the associated external key.</p>
18
+ * MACs) and the algorithms that the KMS key supports. </p>
19
+ * <p>For <a href="kms/latest/developerguide/multi-region-keys-overview.html">multi-Region keys</a>,
20
+ * <code>DescribeKey</code> displays the primary key and all related replica keys. For KMS keys
21
+ * in <a href="kms/latest/developerguide/keystore-cloudhsm.html">CloudHSM key stores</a>, it includes
22
+ * information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS
23
+ * keys in <a href="kms/latest/developerguide/keystore-external.html">external key stores</a>, it
24
+ * includes the custom key store ID and the ID of the external key.</p>
23
25
  * <p>
24
26
  * <code>DescribeKey</code> does not return the following information:</p>
25
27
  * <ul>
@@ -438,8 +438,7 @@ export interface CreateCustomKeyStoreRequest {
438
438
  */
439
439
  CloudHsmClusterId?: string;
440
440
  /**
441
- * <p>* CreateCustom</p>
442
- * <p>Specifies the certificate for an CloudHSM key store. This parameter is required for custom
441
+ * <p>Specifies the certificate for an CloudHSM key store. This parameter is required for custom
443
442
  * key stores with a <code>CustomKeyStoreType</code> of <code>AWS_CLOUDHSM</code>.</p>
444
443
  * <p>Enter the content of the trust anchor certificate for the CloudHSM cluster. This is the
445
444
  * content of the <code>customerCA.crt</code> file that you created when you <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html">initialized the
@@ -1367,7 +1366,7 @@ export declare enum SigningAlgorithmSpec {
1367
1366
  /**
1368
1367
  * <p>Information about the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key">external key </a>that is associated with a KMS key in an
1369
1368
  * external key store. </p>
1370
- * <p>These fields appear in a <a>CreateKey</a> or <a>DescribeKey</a>
1369
+ * <p>This element appears in a <a>CreateKey</a> or <a>DescribeKey</a>
1371
1370
  * response only for a KMS key in an external key store.</p>
1372
1371
  * <p>The <i>external key</i> is a symmetric encryption key that is hosted by
1373
1372
  * an external key manager outside of Amazon Web Services. When you use the KMS key in an external key store
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
33
33
  tls?: boolean | undefined;
34
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
34
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
35
35
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
36
36
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
37
37
  signingEscapePath?: boolean | undefined;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
33
33
  tls?: boolean | undefined;
34
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
34
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
35
35
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
36
36
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
37
37
  signingEscapePath?: boolean | undefined;
@@ -30,7 +30,7 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
30
30
  logger?: import("@aws-sdk/types").Logger | undefined;
31
31
  }) => import("@aws-sdk/types").EndpointV2;
32
32
  tls?: boolean | undefined;
33
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
33
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
34
34
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
35
35
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
36
36
  signingEscapePath?: boolean | undefined;
@@ -62,7 +62,10 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
62
62
  }
63
63
  ) => import("@aws-sdk/types").EndpointV2;
64
64
  tls?: boolean | undefined;
65
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
65
+ retryStrategy?:
66
+ | import("@aws-sdk/types").RetryStrategy
67
+ | import("@aws-sdk/types").RetryStrategyV2
68
+ | undefined;
66
69
  credentials?:
67
70
  | import("@aws-sdk/types").AwsCredentialIdentity
68
71
  | import("@aws-sdk/types").Provider<
@@ -62,7 +62,10 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
62
62
  }
63
63
  ) => import("@aws-sdk/types").EndpointV2;
64
64
  tls?: boolean | undefined;
65
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
65
+ retryStrategy?:
66
+ | import("@aws-sdk/types").RetryStrategy
67
+ | import("@aws-sdk/types").RetryStrategyV2
68
+ | undefined;
66
69
  credentials?:
67
70
  | import("@aws-sdk/types").AwsCredentialIdentity
68
71
  | import("@aws-sdk/types").Provider<
@@ -51,7 +51,10 @@ export declare const getRuntimeConfig: (config: KMSClientConfig) => {
51
51
  }
52
52
  ) => import("@aws-sdk/types").EndpointV2;
53
53
  tls?: boolean | undefined;
54
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
54
+ retryStrategy?:
55
+ | import("@aws-sdk/types").RetryStrategy
56
+ | import("@aws-sdk/types").RetryStrategyV2
57
+ | undefined;
55
58
  credentials?:
56
59
  | import("@aws-sdk/types").AwsCredentialIdentity
57
60
  | import("@aws-sdk/types").Provider<
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.224.0",
4
+ "version": "3.229.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",
@@ -19,36 +19,37 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.224.0",
23
- "@aws-sdk/config-resolver": "3.224.0",
24
- "@aws-sdk/credential-provider-node": "3.224.0",
25
- "@aws-sdk/fetch-http-handler": "3.224.0",
26
- "@aws-sdk/hash-node": "3.224.0",
27
- "@aws-sdk/invalid-dependency": "3.224.0",
28
- "@aws-sdk/middleware-content-length": "3.224.0",
29
- "@aws-sdk/middleware-endpoint": "3.224.0",
30
- "@aws-sdk/middleware-host-header": "3.224.0",
31
- "@aws-sdk/middleware-logger": "3.224.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.224.0",
33
- "@aws-sdk/middleware-retry": "3.224.0",
34
- "@aws-sdk/middleware-serde": "3.224.0",
35
- "@aws-sdk/middleware-signing": "3.224.0",
36
- "@aws-sdk/middleware-stack": "3.224.0",
37
- "@aws-sdk/middleware-user-agent": "3.224.0",
38
- "@aws-sdk/node-config-provider": "3.224.0",
39
- "@aws-sdk/node-http-handler": "3.224.0",
40
- "@aws-sdk/protocol-http": "3.224.0",
41
- "@aws-sdk/smithy-client": "3.224.0",
42
- "@aws-sdk/types": "3.224.0",
43
- "@aws-sdk/url-parser": "3.224.0",
22
+ "@aws-sdk/client-sts": "3.229.0",
23
+ "@aws-sdk/config-resolver": "3.226.0",
24
+ "@aws-sdk/credential-provider-node": "3.229.0",
25
+ "@aws-sdk/fetch-http-handler": "3.226.0",
26
+ "@aws-sdk/hash-node": "3.226.0",
27
+ "@aws-sdk/invalid-dependency": "3.226.0",
28
+ "@aws-sdk/middleware-content-length": "3.226.0",
29
+ "@aws-sdk/middleware-endpoint": "3.226.0",
30
+ "@aws-sdk/middleware-host-header": "3.226.0",
31
+ "@aws-sdk/middleware-logger": "3.226.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.226.0",
33
+ "@aws-sdk/middleware-retry": "3.229.0",
34
+ "@aws-sdk/middleware-serde": "3.226.0",
35
+ "@aws-sdk/middleware-signing": "3.226.0",
36
+ "@aws-sdk/middleware-stack": "3.226.0",
37
+ "@aws-sdk/middleware-user-agent": "3.226.0",
38
+ "@aws-sdk/node-config-provider": "3.226.0",
39
+ "@aws-sdk/node-http-handler": "3.226.0",
40
+ "@aws-sdk/protocol-http": "3.226.0",
41
+ "@aws-sdk/smithy-client": "3.226.0",
42
+ "@aws-sdk/types": "3.226.0",
43
+ "@aws-sdk/url-parser": "3.226.0",
44
44
  "@aws-sdk/util-base64": "3.208.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.224.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.224.0",
49
- "@aws-sdk/util-endpoints": "3.224.0",
50
- "@aws-sdk/util-user-agent-browser": "3.224.0",
51
- "@aws-sdk/util-user-agent-node": "3.224.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.226.0",
49
+ "@aws-sdk/util-endpoints": "3.226.0",
50
+ "@aws-sdk/util-retry": "3.229.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.226.0",
52
+ "@aws-sdk/util-user-agent-node": "3.226.0",
52
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
53
54
  "@aws-sdk/util-utf8-node": "3.208.0",
54
55
  "tslib": "^2.3.1"