@aws-sdk/client-kms 3.46.0 → 3.48.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,42 @@
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.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-kms
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-kms
17
+
18
+
19
+
20
+
21
+
22
+ ## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-kms
25
+
26
+
27
+
28
+
29
+
30
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
31
+
32
+
33
+ ### Features
34
+
35
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
36
+ * Support awsQueryError trait ([#3174](https://github.com/aws/aws-sdk-js-v3/issues/3174)) ([351bd3a](https://github.com/aws/aws-sdk-js-v3/commit/351bd3a40ad37be79d823d6a0e4e48304728ea6f))
37
+
38
+
39
+
40
+
41
+
6
42
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
43
 
8
44
 
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "af-south-1": {
7
7
  variants: [
8
- {
9
- hostname: "kms.af-south-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "kms-fips.af-south-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "ap-east-1": {
19
15
  variants: [
20
- {
21
- hostname: "kms.ap-east-1.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "kms-fips.ap-east-1.amazonaws.com",
26
18
  tags: ["fips"],
@@ -29,10 +21,6 @@ const regionHash = {
29
21
  },
30
22
  "ap-northeast-1": {
31
23
  variants: [
32
- {
33
- hostname: "kms.ap-northeast-1.amazonaws.com",
34
- tags: [],
35
- },
36
24
  {
37
25
  hostname: "kms-fips.ap-northeast-1.amazonaws.com",
38
26
  tags: ["fips"],
@@ -41,10 +29,6 @@ const regionHash = {
41
29
  },
42
30
  "ap-northeast-2": {
43
31
  variants: [
44
- {
45
- hostname: "kms.ap-northeast-2.amazonaws.com",
46
- tags: [],
47
- },
48
32
  {
49
33
  hostname: "kms-fips.ap-northeast-2.amazonaws.com",
50
34
  tags: ["fips"],
@@ -53,10 +37,6 @@ const regionHash = {
53
37
  },
54
38
  "ap-northeast-3": {
55
39
  variants: [
56
- {
57
- hostname: "kms.ap-northeast-3.amazonaws.com",
58
- tags: [],
59
- },
60
40
  {
61
41
  hostname: "kms-fips.ap-northeast-3.amazonaws.com",
62
42
  tags: ["fips"],
@@ -65,10 +45,6 @@ const regionHash = {
65
45
  },
66
46
  "ap-south-1": {
67
47
  variants: [
68
- {
69
- hostname: "kms.ap-south-1.amazonaws.com",
70
- tags: [],
71
- },
72
48
  {
73
49
  hostname: "kms-fips.ap-south-1.amazonaws.com",
74
50
  tags: ["fips"],
@@ -77,10 +53,6 @@ const regionHash = {
77
53
  },
78
54
  "ap-southeast-1": {
79
55
  variants: [
80
- {
81
- hostname: "kms.ap-southeast-1.amazonaws.com",
82
- tags: [],
83
- },
84
56
  {
85
57
  hostname: "kms-fips.ap-southeast-1.amazonaws.com",
86
58
  tags: ["fips"],
@@ -89,10 +61,6 @@ const regionHash = {
89
61
  },
90
62
  "ap-southeast-2": {
91
63
  variants: [
92
- {
93
- hostname: "kms.ap-southeast-2.amazonaws.com",
94
- tags: [],
95
- },
96
64
  {
97
65
  hostname: "kms-fips.ap-southeast-2.amazonaws.com",
98
66
  tags: ["fips"],
@@ -101,10 +69,6 @@ const regionHash = {
101
69
  },
102
70
  "ap-southeast-3": {
103
71
  variants: [
104
- {
105
- hostname: "kms.ap-southeast-3.amazonaws.com",
106
- tags: [],
107
- },
108
72
  {
109
73
  hostname: "kms-fips.ap-southeast-3.amazonaws.com",
110
74
  tags: ["fips"],
@@ -113,10 +77,6 @@ const regionHash = {
113
77
  },
114
78
  "ca-central-1": {
115
79
  variants: [
116
- {
117
- hostname: "kms.ca-central-1.amazonaws.com",
118
- tags: [],
119
- },
120
80
  {
121
81
  hostname: "kms-fips.ca-central-1.amazonaws.com",
122
82
  tags: ["fips"],
@@ -125,10 +85,6 @@ const regionHash = {
125
85
  },
126
86
  "eu-central-1": {
127
87
  variants: [
128
- {
129
- hostname: "kms.eu-central-1.amazonaws.com",
130
- tags: [],
131
- },
132
88
  {
133
89
  hostname: "kms-fips.eu-central-1.amazonaws.com",
134
90
  tags: ["fips"],
@@ -137,10 +93,6 @@ const regionHash = {
137
93
  },
138
94
  "eu-north-1": {
139
95
  variants: [
140
- {
141
- hostname: "kms.eu-north-1.amazonaws.com",
142
- tags: [],
143
- },
144
96
  {
145
97
  hostname: "kms-fips.eu-north-1.amazonaws.com",
146
98
  tags: ["fips"],
@@ -149,10 +101,6 @@ const regionHash = {
149
101
  },
150
102
  "eu-south-1": {
151
103
  variants: [
152
- {
153
- hostname: "kms.eu-south-1.amazonaws.com",
154
- tags: [],
155
- },
156
104
  {
157
105
  hostname: "kms-fips.eu-south-1.amazonaws.com",
158
106
  tags: ["fips"],
@@ -161,10 +109,6 @@ const regionHash = {
161
109
  },
162
110
  "eu-west-1": {
163
111
  variants: [
164
- {
165
- hostname: "kms.eu-west-1.amazonaws.com",
166
- tags: [],
167
- },
168
112
  {
169
113
  hostname: "kms-fips.eu-west-1.amazonaws.com",
170
114
  tags: ["fips"],
@@ -173,10 +117,6 @@ const regionHash = {
173
117
  },
174
118
  "eu-west-2": {
175
119
  variants: [
176
- {
177
- hostname: "kms.eu-west-2.amazonaws.com",
178
- tags: [],
179
- },
180
120
  {
181
121
  hostname: "kms-fips.eu-west-2.amazonaws.com",
182
122
  tags: ["fips"],
@@ -185,10 +125,6 @@ const regionHash = {
185
125
  },
186
126
  "eu-west-3": {
187
127
  variants: [
188
- {
189
- hostname: "kms.eu-west-3.amazonaws.com",
190
- tags: [],
191
- },
192
128
  {
193
129
  hostname: "kms-fips.eu-west-3.amazonaws.com",
194
130
  tags: ["fips"],
@@ -197,10 +133,6 @@ const regionHash = {
197
133
  },
198
134
  "me-south-1": {
199
135
  variants: [
200
- {
201
- hostname: "kms.me-south-1.amazonaws.com",
202
- tags: [],
203
- },
204
136
  {
205
137
  hostname: "kms-fips.me-south-1.amazonaws.com",
206
138
  tags: ["fips"],
@@ -209,10 +141,6 @@ const regionHash = {
209
141
  },
210
142
  "sa-east-1": {
211
143
  variants: [
212
- {
213
- hostname: "kms.sa-east-1.amazonaws.com",
214
- tags: [],
215
- },
216
144
  {
217
145
  hostname: "kms-fips.sa-east-1.amazonaws.com",
218
146
  tags: ["fips"],
@@ -221,10 +149,6 @@ const regionHash = {
221
149
  },
222
150
  "us-east-1": {
223
151
  variants: [
224
- {
225
- hostname: "kms.us-east-1.amazonaws.com",
226
- tags: [],
227
- },
228
152
  {
229
153
  hostname: "kms-fips.us-east-1.amazonaws.com",
230
154
  tags: ["fips"],
@@ -233,10 +157,6 @@ const regionHash = {
233
157
  },
234
158
  "us-east-2": {
235
159
  variants: [
236
- {
237
- hostname: "kms.us-east-2.amazonaws.com",
238
- tags: [],
239
- },
240
160
  {
241
161
  hostname: "kms-fips.us-east-2.amazonaws.com",
242
162
  tags: ["fips"],
@@ -245,10 +165,6 @@ const regionHash = {
245
165
  },
246
166
  "us-gov-east-1": {
247
167
  variants: [
248
- {
249
- hostname: "kms.us-gov-east-1.amazonaws.com",
250
- tags: [],
251
- },
252
168
  {
253
169
  hostname: "kms-fips.us-gov-east-1.amazonaws.com",
254
170
  tags: ["fips"],
@@ -257,10 +173,6 @@ const regionHash = {
257
173
  },
258
174
  "us-gov-west-1": {
259
175
  variants: [
260
- {
261
- hostname: "kms.us-gov-west-1.amazonaws.com",
262
- tags: [],
263
- },
264
176
  {
265
177
  hostname: "kms-fips.us-gov-west-1.amazonaws.com",
266
178
  tags: ["fips"],
@@ -269,10 +181,6 @@ const regionHash = {
269
181
  },
270
182
  "us-iso-east-1": {
271
183
  variants: [
272
- {
273
- hostname: "kms.us-iso-east-1.c2s.ic.gov",
274
- tags: [],
275
- },
276
184
  {
277
185
  hostname: "kms-fips.us-iso-east-1.c2s.ic.gov",
278
186
  tags: ["fips"],
@@ -281,10 +189,6 @@ const regionHash = {
281
189
  },
282
190
  "us-iso-west-1": {
283
191
  variants: [
284
- {
285
- hostname: "kms.us-iso-west-1.c2s.ic.gov",
286
- tags: [],
287
- },
288
192
  {
289
193
  hostname: "kms-fips.us-iso-west-1.c2s.ic.gov",
290
194
  tags: ["fips"],
@@ -293,10 +197,6 @@ const regionHash = {
293
197
  },
294
198
  "us-isob-east-1": {
295
199
  variants: [
296
- {
297
- hostname: "kms.us-isob-east-1.sc2s.sgov.gov",
298
- tags: [],
299
- },
300
200
  {
301
201
  hostname: "kms-fips.us-isob-east-1.sc2s.sgov.gov",
302
202
  tags: ["fips"],
@@ -305,10 +205,6 @@ const regionHash = {
305
205
  },
306
206
  "us-west-1": {
307
207
  variants: [
308
- {
309
- hostname: "kms.us-west-1.amazonaws.com",
310
- tags: [],
311
- },
312
208
  {
313
209
  hostname: "kms-fips.us-west-1.amazonaws.com",
314
210
  tags: ["fips"],
@@ -317,10 +213,6 @@ const regionHash = {
317
213
  },
318
214
  "us-west-2": {
319
215
  variants: [
320
- {
321
- hostname: "kms.us-west-2.amazonaws.com",
322
- tags: [],
323
- },
324
216
  {
325
217
  hostname: "kms-fips.us-west-2.amazonaws.com",
326
218
  tags: ["fips"],
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateKeyResponse = exports.KeyMetadata = exports.SigningAlgorithmSpec = exports.MultiRegionConfiguration = exports.MultiRegionKey = exports.MultiRegionKeyType = exports.KeyState = exports.KeyManagerType = exports.ExpirationModelType = exports.EncryptionAlgorithmSpec = exports.CreateKeyRequest = exports.Tag = exports.OriginType = exports.KeyUsageType = exports.KeySpec = exports.CustomerMasterKeySpec = exports.InvalidGrantTokenException = exports.DisabledException = exports.CreateGrantResponse = exports.CreateGrantRequest = exports.GrantOperation = exports.GrantConstraints = exports.IncorrectTrustAnchorException = exports.CustomKeyStoreNameInUseException = exports.CreateCustomKeyStoreResponse = exports.CreateCustomKeyStoreRequest = exports.LimitExceededException = exports.InvalidAliasNameException = exports.CreateAliasRequest = exports.ConnectionStateType = exports.ConnectionErrorCodeType = exports.CustomKeyStoreNotFoundException = exports.CustomKeyStoreInvalidStateException = exports.ConnectCustomKeyStoreResponse = exports.ConnectCustomKeyStoreRequest = exports.CloudHsmClusterNotRelatedException = exports.CloudHsmClusterNotFoundException = exports.CloudHsmClusterNotActiveException = exports.CloudHsmClusterInvalidConfigurationException = exports.CloudHsmClusterInUseException = exports.NotFoundException = exports.KMSInvalidStateException = exports.KMSInternalException = exports.InvalidArnException = exports.DependencyTimeoutException = exports.CancelKeyDeletionResponse = exports.CancelKeyDeletionRequest = exports.AlreadyExistsException = exports.AliasListEntry = exports.AlgorithmSpec = void 0;
4
- exports.GetPublicKeyResponse = exports.GetPublicKeyRequest = exports.GetParametersForImportResponse = exports.GetParametersForImportRequest = exports.WrappingKeySpec = exports.GetKeyRotationStatusResponse = exports.GetKeyRotationStatusRequest = exports.GetKeyPolicyResponse = exports.GetKeyPolicyRequest = exports.GenerateRandomResponse = exports.GenerateRandomRequest = exports.GenerateDataKeyWithoutPlaintextResponse = exports.GenerateDataKeyWithoutPlaintextRequest = exports.GenerateDataKeyPairWithoutPlaintextResponse = exports.GenerateDataKeyPairWithoutPlaintextRequest = exports.GenerateDataKeyPairResponse = exports.GenerateDataKeyPairRequest = exports.GenerateDataKeyResponse = exports.GenerateDataKeyRequest = exports.ExpiredImportTokenException = exports.EncryptResponse = exports.EncryptRequest = exports.EnableKeyRotationRequest = exports.EnableKeyRequest = exports.DisconnectCustomKeyStoreResponse = exports.DisconnectCustomKeyStoreRequest = exports.DisableKeyRotationRequest = exports.DisableKeyRequest = exports.DescribeKeyResponse = exports.DescribeKeyRequest = exports.InvalidMarkerException = exports.DescribeCustomKeyStoresResponse = exports.DescribeCustomKeyStoresRequest = exports.DeleteImportedKeyMaterialRequest = exports.DeleteCustomKeyStoreResponse = exports.DeleteCustomKeyStoreRequest = exports.DeleteAliasRequest = exports.KeyUnavailableException = exports.InvalidKeyUsageException = exports.InvalidCiphertextException = exports.IncorrectKeyException = exports.DecryptResponse = exports.DecryptRequest = exports.DataKeySpec = exports.DataKeyPairSpec = exports.CustomKeyStoresListEntry = exports.CustomKeyStoreHasCMKsException = exports.UnsupportedOperationException = exports.TagException = exports.MalformedPolicyDocumentException = void 0;
5
- exports.VerifyResponse = exports.VerifyRequest = exports.UpdatePrimaryRegionRequest = exports.UpdateKeyDescriptionRequest = exports.UpdateCustomKeyStoreResponse = exports.UpdateCustomKeyStoreRequest = exports.UpdateAliasRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.SignResponse = exports.SignRequest = exports.ScheduleKeyDeletionResponse = exports.ScheduleKeyDeletionRequest = exports.RevokeGrantRequest = exports.RetireGrantRequest = exports.ReplicateKeyResponse = exports.ReplicateKeyRequest = exports.ReEncryptResponse = exports.ReEncryptRequest = exports.PutKeyPolicyRequest = exports.MessageType = exports.ListRetirableGrantsRequest = exports.ListResourceTagsResponse = exports.ListResourceTagsRequest = exports.ListKeysResponse = exports.ListKeysRequest = exports.ListKeyPoliciesResponse = exports.ListKeyPoliciesRequest = exports.ListGrantsResponse = exports.ListGrantsRequest = exports.ListAliasesResponse = exports.ListAliasesRequest = exports.KMSInvalidSignatureException = exports.KeyListEntry = exports.InvalidGrantIdException = exports.InvalidImportTokenException = exports.IncorrectKeyMaterialException = exports.ImportKeyMaterialResponse = exports.ImportKeyMaterialRequest = exports.GrantListEntry = void 0;
3
+ exports.EnableKeyRotationRequest = exports.EnableKeyRequest = exports.DisconnectCustomKeyStoreResponse = exports.DisconnectCustomKeyStoreRequest = exports.DisableKeyRotationRequest = exports.DisableKeyRequest = exports.DescribeKeyResponse = exports.DescribeKeyRequest = exports.DescribeCustomKeyStoresResponse = exports.DescribeCustomKeyStoresRequest = exports.DeleteImportedKeyMaterialRequest = exports.DeleteCustomKeyStoreResponse = exports.DeleteCustomKeyStoreRequest = exports.DeleteAliasRequest = exports.DecryptResponse = exports.DecryptRequest = exports.DataKeySpec = exports.DataKeyPairSpec = exports.CustomKeyStoresListEntry = exports.CreateKeyResponse = exports.KeyMetadata = exports.SigningAlgorithmSpec = exports.MultiRegionConfiguration = exports.MultiRegionKey = exports.MultiRegionKeyType = exports.KeyState = exports.KeyManagerType = exports.ExpirationModelType = exports.EncryptionAlgorithmSpec = exports.CreateKeyRequest = exports.Tag = exports.OriginType = exports.KeyUsageType = exports.KeySpec = exports.CustomerMasterKeySpec = exports.CreateGrantResponse = exports.CreateGrantRequest = exports.GrantOperation = exports.GrantConstraints = exports.CreateCustomKeyStoreResponse = exports.CreateCustomKeyStoreRequest = exports.CreateAliasRequest = exports.ConnectionStateType = exports.ConnectionErrorCodeType = exports.ConnectCustomKeyStoreResponse = exports.ConnectCustomKeyStoreRequest = exports.CancelKeyDeletionResponse = exports.CancelKeyDeletionRequest = exports.AliasListEntry = exports.AlgorithmSpec = void 0;
4
+ exports.UntagResourceRequest = exports.TagResourceRequest = exports.SignResponse = exports.SignRequest = exports.ScheduleKeyDeletionResponse = exports.ScheduleKeyDeletionRequest = exports.RevokeGrantRequest = exports.RetireGrantRequest = exports.ReplicateKeyResponse = exports.ReplicateKeyRequest = exports.ReEncryptResponse = exports.ReEncryptRequest = exports.PutKeyPolicyRequest = exports.MessageType = exports.ListRetirableGrantsRequest = exports.ListResourceTagsResponse = exports.ListResourceTagsRequest = exports.ListKeysResponse = exports.ListKeysRequest = exports.ListKeyPoliciesResponse = exports.ListKeyPoliciesRequest = exports.ListGrantsResponse = exports.ListGrantsRequest = exports.ListAliasesResponse = exports.ListAliasesRequest = exports.KeyListEntry = exports.ImportKeyMaterialResponse = exports.ImportKeyMaterialRequest = exports.GrantListEntry = exports.GetPublicKeyResponse = exports.GetPublicKeyRequest = exports.GetParametersForImportResponse = exports.GetParametersForImportRequest = exports.WrappingKeySpec = exports.GetKeyRotationStatusResponse = exports.GetKeyRotationStatusRequest = exports.GetKeyPolicyResponse = exports.GetKeyPolicyRequest = exports.GenerateRandomResponse = exports.GenerateRandomRequest = exports.GenerateDataKeyWithoutPlaintextResponse = exports.GenerateDataKeyWithoutPlaintextRequest = exports.GenerateDataKeyPairWithoutPlaintextResponse = exports.GenerateDataKeyPairWithoutPlaintextRequest = exports.GenerateDataKeyPairResponse = exports.GenerateDataKeyPairRequest = exports.GenerateDataKeyResponse = exports.GenerateDataKeyRequest = exports.EncryptResponse = exports.EncryptRequest = void 0;
5
+ exports.VerifyResponse = exports.VerifyRequest = exports.UpdatePrimaryRegionRequest = exports.UpdateKeyDescriptionRequest = exports.UpdateCustomKeyStoreResponse = exports.UpdateCustomKeyStoreRequest = exports.UpdateAliasRequest = void 0;
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  var AlgorithmSpec;
8
8
  (function (AlgorithmSpec) {
@@ -16,12 +16,6 @@ var AliasListEntry;
16
16
  ...obj,
17
17
  });
18
18
  })(AliasListEntry = exports.AliasListEntry || (exports.AliasListEntry = {}));
19
- var AlreadyExistsException;
20
- (function (AlreadyExistsException) {
21
- AlreadyExistsException.filterSensitiveLog = (obj) => ({
22
- ...obj,
23
- });
24
- })(AlreadyExistsException = exports.AlreadyExistsException || (exports.AlreadyExistsException = {}));
25
19
  var CancelKeyDeletionRequest;
26
20
  (function (CancelKeyDeletionRequest) {
27
21
  CancelKeyDeletionRequest.filterSensitiveLog = (obj) => ({
@@ -34,66 +28,6 @@ var CancelKeyDeletionResponse;
34
28
  ...obj,
35
29
  });
36
30
  })(CancelKeyDeletionResponse = exports.CancelKeyDeletionResponse || (exports.CancelKeyDeletionResponse = {}));
37
- var DependencyTimeoutException;
38
- (function (DependencyTimeoutException) {
39
- DependencyTimeoutException.filterSensitiveLog = (obj) => ({
40
- ...obj,
41
- });
42
- })(DependencyTimeoutException = exports.DependencyTimeoutException || (exports.DependencyTimeoutException = {}));
43
- var InvalidArnException;
44
- (function (InvalidArnException) {
45
- InvalidArnException.filterSensitiveLog = (obj) => ({
46
- ...obj,
47
- });
48
- })(InvalidArnException = exports.InvalidArnException || (exports.InvalidArnException = {}));
49
- var KMSInternalException;
50
- (function (KMSInternalException) {
51
- KMSInternalException.filterSensitiveLog = (obj) => ({
52
- ...obj,
53
- });
54
- })(KMSInternalException = exports.KMSInternalException || (exports.KMSInternalException = {}));
55
- var KMSInvalidStateException;
56
- (function (KMSInvalidStateException) {
57
- KMSInvalidStateException.filterSensitiveLog = (obj) => ({
58
- ...obj,
59
- });
60
- })(KMSInvalidStateException = exports.KMSInvalidStateException || (exports.KMSInvalidStateException = {}));
61
- var NotFoundException;
62
- (function (NotFoundException) {
63
- NotFoundException.filterSensitiveLog = (obj) => ({
64
- ...obj,
65
- });
66
- })(NotFoundException = exports.NotFoundException || (exports.NotFoundException = {}));
67
- var CloudHsmClusterInUseException;
68
- (function (CloudHsmClusterInUseException) {
69
- CloudHsmClusterInUseException.filterSensitiveLog = (obj) => ({
70
- ...obj,
71
- });
72
- })(CloudHsmClusterInUseException = exports.CloudHsmClusterInUseException || (exports.CloudHsmClusterInUseException = {}));
73
- var CloudHsmClusterInvalidConfigurationException;
74
- (function (CloudHsmClusterInvalidConfigurationException) {
75
- CloudHsmClusterInvalidConfigurationException.filterSensitiveLog = (obj) => ({
76
- ...obj,
77
- });
78
- })(CloudHsmClusterInvalidConfigurationException = exports.CloudHsmClusterInvalidConfigurationException || (exports.CloudHsmClusterInvalidConfigurationException = {}));
79
- var CloudHsmClusterNotActiveException;
80
- (function (CloudHsmClusterNotActiveException) {
81
- CloudHsmClusterNotActiveException.filterSensitiveLog = (obj) => ({
82
- ...obj,
83
- });
84
- })(CloudHsmClusterNotActiveException = exports.CloudHsmClusterNotActiveException || (exports.CloudHsmClusterNotActiveException = {}));
85
- var CloudHsmClusterNotFoundException;
86
- (function (CloudHsmClusterNotFoundException) {
87
- CloudHsmClusterNotFoundException.filterSensitiveLog = (obj) => ({
88
- ...obj,
89
- });
90
- })(CloudHsmClusterNotFoundException = exports.CloudHsmClusterNotFoundException || (exports.CloudHsmClusterNotFoundException = {}));
91
- var CloudHsmClusterNotRelatedException;
92
- (function (CloudHsmClusterNotRelatedException) {
93
- CloudHsmClusterNotRelatedException.filterSensitiveLog = (obj) => ({
94
- ...obj,
95
- });
96
- })(CloudHsmClusterNotRelatedException = exports.CloudHsmClusterNotRelatedException || (exports.CloudHsmClusterNotRelatedException = {}));
97
31
  var ConnectCustomKeyStoreRequest;
98
32
  (function (ConnectCustomKeyStoreRequest) {
99
33
  ConnectCustomKeyStoreRequest.filterSensitiveLog = (obj) => ({
@@ -106,18 +40,6 @@ var ConnectCustomKeyStoreResponse;
106
40
  ...obj,
107
41
  });
108
42
  })(ConnectCustomKeyStoreResponse = exports.ConnectCustomKeyStoreResponse || (exports.ConnectCustomKeyStoreResponse = {}));
109
- var CustomKeyStoreInvalidStateException;
110
- (function (CustomKeyStoreInvalidStateException) {
111
- CustomKeyStoreInvalidStateException.filterSensitiveLog = (obj) => ({
112
- ...obj,
113
- });
114
- })(CustomKeyStoreInvalidStateException = exports.CustomKeyStoreInvalidStateException || (exports.CustomKeyStoreInvalidStateException = {}));
115
- var CustomKeyStoreNotFoundException;
116
- (function (CustomKeyStoreNotFoundException) {
117
- CustomKeyStoreNotFoundException.filterSensitiveLog = (obj) => ({
118
- ...obj,
119
- });
120
- })(CustomKeyStoreNotFoundException = exports.CustomKeyStoreNotFoundException || (exports.CustomKeyStoreNotFoundException = {}));
121
43
  var ConnectionErrorCodeType;
122
44
  (function (ConnectionErrorCodeType) {
123
45
  ConnectionErrorCodeType["CLUSTER_NOT_FOUND"] = "CLUSTER_NOT_FOUND";
@@ -144,18 +66,6 @@ var CreateAliasRequest;
144
66
  ...obj,
145
67
  });
146
68
  })(CreateAliasRequest = exports.CreateAliasRequest || (exports.CreateAliasRequest = {}));
147
- var InvalidAliasNameException;
148
- (function (InvalidAliasNameException) {
149
- InvalidAliasNameException.filterSensitiveLog = (obj) => ({
150
- ...obj,
151
- });
152
- })(InvalidAliasNameException = exports.InvalidAliasNameException || (exports.InvalidAliasNameException = {}));
153
- var LimitExceededException;
154
- (function (LimitExceededException) {
155
- LimitExceededException.filterSensitiveLog = (obj) => ({
156
- ...obj,
157
- });
158
- })(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
159
69
  var CreateCustomKeyStoreRequest;
160
70
  (function (CreateCustomKeyStoreRequest) {
161
71
  CreateCustomKeyStoreRequest.filterSensitiveLog = (obj) => ({
@@ -169,18 +79,6 @@ var CreateCustomKeyStoreResponse;
169
79
  ...obj,
170
80
  });
171
81
  })(CreateCustomKeyStoreResponse = exports.CreateCustomKeyStoreResponse || (exports.CreateCustomKeyStoreResponse = {}));
172
- var CustomKeyStoreNameInUseException;
173
- (function (CustomKeyStoreNameInUseException) {
174
- CustomKeyStoreNameInUseException.filterSensitiveLog = (obj) => ({
175
- ...obj,
176
- });
177
- })(CustomKeyStoreNameInUseException = exports.CustomKeyStoreNameInUseException || (exports.CustomKeyStoreNameInUseException = {}));
178
- var IncorrectTrustAnchorException;
179
- (function (IncorrectTrustAnchorException) {
180
- IncorrectTrustAnchorException.filterSensitiveLog = (obj) => ({
181
- ...obj,
182
- });
183
- })(IncorrectTrustAnchorException = exports.IncorrectTrustAnchorException || (exports.IncorrectTrustAnchorException = {}));
184
82
  var GrantConstraints;
185
83
  (function (GrantConstraints) {
186
84
  GrantConstraints.filterSensitiveLog = (obj) => ({
@@ -216,18 +114,6 @@ var CreateGrantResponse;
216
114
  ...obj,
217
115
  });
218
116
  })(CreateGrantResponse = exports.CreateGrantResponse || (exports.CreateGrantResponse = {}));
219
- var DisabledException;
220
- (function (DisabledException) {
221
- DisabledException.filterSensitiveLog = (obj) => ({
222
- ...obj,
223
- });
224
- })(DisabledException = exports.DisabledException || (exports.DisabledException = {}));
225
- var InvalidGrantTokenException;
226
- (function (InvalidGrantTokenException) {
227
- InvalidGrantTokenException.filterSensitiveLog = (obj) => ({
228
- ...obj,
229
- });
230
- })(InvalidGrantTokenException = exports.InvalidGrantTokenException || (exports.InvalidGrantTokenException = {}));
231
117
  var CustomerMasterKeySpec;
232
118
  (function (CustomerMasterKeySpec) {
233
119
  CustomerMasterKeySpec["ECC_NIST_P256"] = "ECC_NIST_P256";
@@ -341,30 +227,6 @@ var CreateKeyResponse;
341
227
  ...obj,
342
228
  });
343
229
  })(CreateKeyResponse = exports.CreateKeyResponse || (exports.CreateKeyResponse = {}));
344
- var MalformedPolicyDocumentException;
345
- (function (MalformedPolicyDocumentException) {
346
- MalformedPolicyDocumentException.filterSensitiveLog = (obj) => ({
347
- ...obj,
348
- });
349
- })(MalformedPolicyDocumentException = exports.MalformedPolicyDocumentException || (exports.MalformedPolicyDocumentException = {}));
350
- var TagException;
351
- (function (TagException) {
352
- TagException.filterSensitiveLog = (obj) => ({
353
- ...obj,
354
- });
355
- })(TagException = exports.TagException || (exports.TagException = {}));
356
- var UnsupportedOperationException;
357
- (function (UnsupportedOperationException) {
358
- UnsupportedOperationException.filterSensitiveLog = (obj) => ({
359
- ...obj,
360
- });
361
- })(UnsupportedOperationException = exports.UnsupportedOperationException || (exports.UnsupportedOperationException = {}));
362
- var CustomKeyStoreHasCMKsException;
363
- (function (CustomKeyStoreHasCMKsException) {
364
- CustomKeyStoreHasCMKsException.filterSensitiveLog = (obj) => ({
365
- ...obj,
366
- });
367
- })(CustomKeyStoreHasCMKsException = exports.CustomKeyStoreHasCMKsException || (exports.CustomKeyStoreHasCMKsException = {}));
368
230
  var CustomKeyStoresListEntry;
369
231
  (function (CustomKeyStoresListEntry) {
370
232
  CustomKeyStoresListEntry.filterSensitiveLog = (obj) => ({
@@ -399,30 +261,6 @@ var DecryptResponse;
399
261
  ...(obj.Plaintext && { Plaintext: smithy_client_1.SENSITIVE_STRING }),
400
262
  });
401
263
  })(DecryptResponse = exports.DecryptResponse || (exports.DecryptResponse = {}));
402
- var IncorrectKeyException;
403
- (function (IncorrectKeyException) {
404
- IncorrectKeyException.filterSensitiveLog = (obj) => ({
405
- ...obj,
406
- });
407
- })(IncorrectKeyException = exports.IncorrectKeyException || (exports.IncorrectKeyException = {}));
408
- var InvalidCiphertextException;
409
- (function (InvalidCiphertextException) {
410
- InvalidCiphertextException.filterSensitiveLog = (obj) => ({
411
- ...obj,
412
- });
413
- })(InvalidCiphertextException = exports.InvalidCiphertextException || (exports.InvalidCiphertextException = {}));
414
- var InvalidKeyUsageException;
415
- (function (InvalidKeyUsageException) {
416
- InvalidKeyUsageException.filterSensitiveLog = (obj) => ({
417
- ...obj,
418
- });
419
- })(InvalidKeyUsageException = exports.InvalidKeyUsageException || (exports.InvalidKeyUsageException = {}));
420
- var KeyUnavailableException;
421
- (function (KeyUnavailableException) {
422
- KeyUnavailableException.filterSensitiveLog = (obj) => ({
423
- ...obj,
424
- });
425
- })(KeyUnavailableException = exports.KeyUnavailableException || (exports.KeyUnavailableException = {}));
426
264
  var DeleteAliasRequest;
427
265
  (function (DeleteAliasRequest) {
428
266
  DeleteAliasRequest.filterSensitiveLog = (obj) => ({
@@ -459,12 +297,6 @@ var DescribeCustomKeyStoresResponse;
459
297
  ...obj,
460
298
  });
461
299
  })(DescribeCustomKeyStoresResponse = exports.DescribeCustomKeyStoresResponse || (exports.DescribeCustomKeyStoresResponse = {}));
462
- var InvalidMarkerException;
463
- (function (InvalidMarkerException) {
464
- InvalidMarkerException.filterSensitiveLog = (obj) => ({
465
- ...obj,
466
- });
467
- })(InvalidMarkerException = exports.InvalidMarkerException || (exports.InvalidMarkerException = {}));
468
300
  var DescribeKeyRequest;
469
301
  (function (DescribeKeyRequest) {
470
302
  DescribeKeyRequest.filterSensitiveLog = (obj) => ({
@@ -526,12 +358,6 @@ var EncryptResponse;
526
358
  ...obj,
527
359
  });
528
360
  })(EncryptResponse = exports.EncryptResponse || (exports.EncryptResponse = {}));
529
- var ExpiredImportTokenException;
530
- (function (ExpiredImportTokenException) {
531
- ExpiredImportTokenException.filterSensitiveLog = (obj) => ({
532
- ...obj,
533
- });
534
- })(ExpiredImportTokenException = exports.ExpiredImportTokenException || (exports.ExpiredImportTokenException = {}));
535
361
  var GenerateDataKeyRequest;
536
362
  (function (GenerateDataKeyRequest) {
537
363
  GenerateDataKeyRequest.filterSensitiveLog = (obj) => ({
@@ -666,36 +492,12 @@ var ImportKeyMaterialResponse;
666
492
  ...obj,
667
493
  });
668
494
  })(ImportKeyMaterialResponse = exports.ImportKeyMaterialResponse || (exports.ImportKeyMaterialResponse = {}));
669
- var IncorrectKeyMaterialException;
670
- (function (IncorrectKeyMaterialException) {
671
- IncorrectKeyMaterialException.filterSensitiveLog = (obj) => ({
672
- ...obj,
673
- });
674
- })(IncorrectKeyMaterialException = exports.IncorrectKeyMaterialException || (exports.IncorrectKeyMaterialException = {}));
675
- var InvalidImportTokenException;
676
- (function (InvalidImportTokenException) {
677
- InvalidImportTokenException.filterSensitiveLog = (obj) => ({
678
- ...obj,
679
- });
680
- })(InvalidImportTokenException = exports.InvalidImportTokenException || (exports.InvalidImportTokenException = {}));
681
- var InvalidGrantIdException;
682
- (function (InvalidGrantIdException) {
683
- InvalidGrantIdException.filterSensitiveLog = (obj) => ({
684
- ...obj,
685
- });
686
- })(InvalidGrantIdException = exports.InvalidGrantIdException || (exports.InvalidGrantIdException = {}));
687
495
  var KeyListEntry;
688
496
  (function (KeyListEntry) {
689
497
  KeyListEntry.filterSensitiveLog = (obj) => ({
690
498
  ...obj,
691
499
  });
692
500
  })(KeyListEntry = exports.KeyListEntry || (exports.KeyListEntry = {}));
693
- var KMSInvalidSignatureException;
694
- (function (KMSInvalidSignatureException) {
695
- KMSInvalidSignatureException.filterSensitiveLog = (obj) => ({
696
- ...obj,
697
- });
698
- })(KMSInvalidSignatureException = exports.KMSInvalidSignatureException || (exports.KMSInvalidSignatureException = {}));
699
501
  var ListAliasesRequest;
700
502
  (function (ListAliasesRequest) {
701
503
  ListAliasesRequest.filterSensitiveLog = (obj) => ({
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),