@aws-sdk/client-kms 3.218.0 → 3.220.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.
Files changed (52) hide show
  1. package/README.md +12 -11
  2. package/dist-cjs/endpoint/ruleset.js +1 -1
  3. package/dist-cjs/models/models_0.js +206 -3
  4. package/dist-cjs/protocols/Aws_json1_1.js +284 -0
  5. package/dist-es/endpoint/ruleset.js +1 -1
  6. package/dist-es/models/models_0.js +187 -0
  7. package/dist-es/protocols/Aws_json1_1.js +285 -1
  8. package/dist-types/KMS.d.ts +457 -312
  9. package/dist-types/KMSClient.d.ts +12 -11
  10. package/dist-types/commands/CancelKeyDeletionCommand.d.ts +1 -2
  11. package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +43 -17
  12. package/dist-types/commands/CreateAliasCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +51 -13
  14. package/dist-types/commands/CreateGrantCommand.d.ts +1 -2
  15. package/dist-types/commands/CreateKeyCommand.d.ts +76 -35
  16. package/dist-types/commands/DecryptCommand.d.ts +16 -17
  17. package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
  18. package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +21 -16
  19. package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +22 -17
  20. package/dist-types/commands/DescribeKeyCommand.d.ts +7 -3
  21. package/dist-types/commands/DisableKeyCommand.d.ts +3 -2
  22. package/dist-types/commands/DisableKeyRotationCommand.d.ts +4 -6
  23. package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +12 -12
  24. package/dist-types/commands/EnableKeyCommand.d.ts +1 -2
  25. package/dist-types/commands/EnableKeyRotationCommand.d.ts +6 -8
  26. package/dist-types/commands/EncryptCommand.d.ts +11 -9
  27. package/dist-types/commands/GenerateDataKeyCommand.d.ts +1 -2
  28. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +8 -10
  29. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +4 -6
  30. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +9 -2
  31. package/dist-types/commands/GenerateMacCommand.d.ts +14 -14
  32. package/dist-types/commands/GenerateRandomCommand.d.ts +6 -3
  33. package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +3 -3
  34. package/dist-types/commands/GetParametersForImportCommand.d.ts +3 -3
  35. package/dist-types/commands/GetPublicKeyCommand.d.ts +5 -4
  36. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +8 -8
  37. package/dist-types/commands/ReEncryptCommand.d.ts +5 -5
  38. package/dist-types/commands/ReplicateKeyCommand.d.ts +5 -4
  39. package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +11 -8
  40. package/dist-types/commands/SignCommand.d.ts +8 -6
  41. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  42. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateAliasCommand.d.ts +6 -6
  44. package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +58 -38
  45. package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +1 -2
  46. package/dist-types/commands/VerifyCommand.d.ts +5 -6
  47. package/dist-types/commands/VerifyMacCommand.d.ts +6 -6
  48. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  49. package/dist-types/models/models_0.d.ts +925 -224
  50. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  51. package/dist-types/ts3.4/models/models_0.d.ts +166 -0
  52. package/package.json +1 -1
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region?: string;
30
+ Region: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
@@ -140,6 +140,14 @@ export declare enum ConnectionErrorCodeType {
140
140
  USER_LOCKED_OUT = "USER_LOCKED_OUT",
141
141
  USER_LOGGED_IN = "USER_LOGGED_IN",
142
142
  USER_NOT_FOUND = "USER_NOT_FOUND",
143
+ XKS_PROXY_ACCESS_DENIED = "XKS_PROXY_ACCESS_DENIED",
144
+ XKS_PROXY_INVALID_CONFIGURATION = "XKS_PROXY_INVALID_CONFIGURATION",
145
+ XKS_PROXY_INVALID_RESPONSE = "XKS_PROXY_INVALID_RESPONSE",
146
+ XKS_PROXY_INVALID_TLS_CONFIGURATION = "XKS_PROXY_INVALID_TLS_CONFIGURATION",
147
+ XKS_PROXY_NOT_REACHABLE = "XKS_PROXY_NOT_REACHABLE",
148
+ XKS_PROXY_TIMED_OUT = "XKS_PROXY_TIMED_OUT",
149
+ XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION = "XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION",
150
+ XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND = "XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND",
143
151
  }
144
152
  export declare enum ConnectionStateType {
145
153
  CONNECTED = "CONNECTED",
@@ -166,11 +174,29 @@ export declare class LimitExceededException extends __BaseException {
166
174
  opts: __ExceptionOptionType<LimitExceededException, __BaseException>
167
175
  );
168
176
  }
177
+ export declare enum CustomKeyStoreType {
178
+ AWS_CLOUDHSM = "AWS_CLOUDHSM",
179
+ EXTERNAL_KEY_STORE = "EXTERNAL_KEY_STORE",
180
+ }
181
+ export interface XksProxyAuthenticationCredentialType {
182
+ AccessKeyId: string | undefined;
183
+ RawSecretAccessKey: string | undefined;
184
+ }
185
+ export declare enum XksProxyConnectivityType {
186
+ PUBLIC_ENDPOINT = "PUBLIC_ENDPOINT",
187
+ VPC_ENDPOINT_SERVICE = "VPC_ENDPOINT_SERVICE",
188
+ }
169
189
  export interface CreateCustomKeyStoreRequest {
170
190
  CustomKeyStoreName: string | undefined;
171
191
  CloudHsmClusterId?: string;
172
192
  TrustAnchorCertificate?: string;
173
193
  KeyStorePassword?: string;
194
+ CustomKeyStoreType?: CustomKeyStoreType | string;
195
+ XksProxyUriEndpoint?: string;
196
+ XksProxyUriPath?: string;
197
+ XksProxyVpcEndpointServiceName?: string;
198
+ XksProxyAuthenticationCredential?: XksProxyAuthenticationCredentialType;
199
+ XksProxyConnectivity?: XksProxyConnectivityType | string;
174
200
  }
175
201
  export interface CreateCustomKeyStoreResponse {
176
202
  CustomKeyStoreId?: string;
@@ -192,6 +218,93 @@ export declare class IncorrectTrustAnchorException extends __BaseException {
192
218
  opts: __ExceptionOptionType<IncorrectTrustAnchorException, __BaseException>
193
219
  );
194
220
  }
221
+ export declare class XksProxyIncorrectAuthenticationCredentialException extends __BaseException {
222
+ readonly name: "XksProxyIncorrectAuthenticationCredentialException";
223
+ readonly $fault: "client";
224
+ constructor(
225
+ opts: __ExceptionOptionType<
226
+ XksProxyIncorrectAuthenticationCredentialException,
227
+ __BaseException
228
+ >
229
+ );
230
+ }
231
+ export declare class XksProxyInvalidConfigurationException extends __BaseException {
232
+ readonly name: "XksProxyInvalidConfigurationException";
233
+ readonly $fault: "client";
234
+ constructor(
235
+ opts: __ExceptionOptionType<
236
+ XksProxyInvalidConfigurationException,
237
+ __BaseException
238
+ >
239
+ );
240
+ }
241
+ export declare class XksProxyInvalidResponseException extends __BaseException {
242
+ readonly name: "XksProxyInvalidResponseException";
243
+ readonly $fault: "client";
244
+ constructor(
245
+ opts: __ExceptionOptionType<
246
+ XksProxyInvalidResponseException,
247
+ __BaseException
248
+ >
249
+ );
250
+ }
251
+ export declare class XksProxyUriEndpointInUseException extends __BaseException {
252
+ readonly name: "XksProxyUriEndpointInUseException";
253
+ readonly $fault: "client";
254
+ constructor(
255
+ opts: __ExceptionOptionType<
256
+ XksProxyUriEndpointInUseException,
257
+ __BaseException
258
+ >
259
+ );
260
+ }
261
+ export declare class XksProxyUriInUseException extends __BaseException {
262
+ readonly name: "XksProxyUriInUseException";
263
+ readonly $fault: "client";
264
+ constructor(
265
+ opts: __ExceptionOptionType<XksProxyUriInUseException, __BaseException>
266
+ );
267
+ }
268
+ export declare class XksProxyUriUnreachableException extends __BaseException {
269
+ readonly name: "XksProxyUriUnreachableException";
270
+ readonly $fault: "client";
271
+ constructor(
272
+ opts: __ExceptionOptionType<
273
+ XksProxyUriUnreachableException,
274
+ __BaseException
275
+ >
276
+ );
277
+ }
278
+ export declare class XksProxyVpcEndpointServiceInUseException extends __BaseException {
279
+ readonly name: "XksProxyVpcEndpointServiceInUseException";
280
+ readonly $fault: "client";
281
+ constructor(
282
+ opts: __ExceptionOptionType<
283
+ XksProxyVpcEndpointServiceInUseException,
284
+ __BaseException
285
+ >
286
+ );
287
+ }
288
+ export declare class XksProxyVpcEndpointServiceInvalidConfigurationException extends __BaseException {
289
+ readonly name: "XksProxyVpcEndpointServiceInvalidConfigurationException";
290
+ readonly $fault: "client";
291
+ constructor(
292
+ opts: __ExceptionOptionType<
293
+ XksProxyVpcEndpointServiceInvalidConfigurationException,
294
+ __BaseException
295
+ >
296
+ );
297
+ }
298
+ export declare class XksProxyVpcEndpointServiceNotFoundException extends __BaseException {
299
+ readonly name: "XksProxyVpcEndpointServiceNotFoundException";
300
+ readonly $fault: "client";
301
+ constructor(
302
+ opts: __ExceptionOptionType<
303
+ XksProxyVpcEndpointServiceNotFoundException,
304
+ __BaseException
305
+ >
306
+ );
307
+ }
195
308
  export interface GrantConstraints {
196
309
  EncryptionContextSubset?: Record<string, string>;
197
310
  EncryptionContextEquals?: Record<string, string>;
@@ -278,6 +391,7 @@ export declare enum OriginType {
278
391
  AWS_CLOUDHSM = "AWS_CLOUDHSM",
279
392
  AWS_KMS = "AWS_KMS",
280
393
  EXTERNAL = "EXTERNAL",
394
+ EXTERNAL_KEY_STORE = "EXTERNAL_KEY_STORE",
281
395
  }
282
396
  export interface Tag {
283
397
  TagKey: string | undefined;
@@ -294,6 +408,7 @@ export interface CreateKeyRequest {
294
408
  BypassPolicyLockoutSafetyCheck?: boolean;
295
409
  Tags?: Tag[];
296
410
  MultiRegion?: boolean;
411
+ XksKeyId?: string;
297
412
  }
298
413
  export declare enum EncryptionAlgorithmSpec {
299
414
  RSAES_OAEP_SHA_1 = "RSAES_OAEP_SHA_1",
@@ -350,6 +465,9 @@ export declare enum SigningAlgorithmSpec {
350
465
  RSASSA_PSS_SHA_512 = "RSASSA_PSS_SHA_512",
351
466
  SM2DSA = "SM2DSA",
352
467
  }
468
+ export interface XksKeyConfigurationType {
469
+ Id?: string;
470
+ }
353
471
  export interface KeyMetadata {
354
472
  AWSAccountId?: string;
355
473
  KeyId: string | undefined;
@@ -374,6 +492,7 @@ export interface KeyMetadata {
374
492
  MultiRegionConfiguration?: MultiRegionConfiguration;
375
493
  PendingDeletionWindowInDays?: number;
376
494
  MacAlgorithms?: (MacAlgorithmSpec | string)[];
495
+ XksKeyConfiguration?: XksKeyConfigurationType;
377
496
  }
378
497
  export interface CreateKeyResponse {
379
498
  KeyMetadata?: KeyMetadata;
@@ -400,6 +519,30 @@ export declare class UnsupportedOperationException extends __BaseException {
400
519
  opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>
401
520
  );
402
521
  }
522
+ export declare class XksKeyAlreadyInUseException extends __BaseException {
523
+ readonly name: "XksKeyAlreadyInUseException";
524
+ readonly $fault: "client";
525
+ constructor(
526
+ opts: __ExceptionOptionType<XksKeyAlreadyInUseException, __BaseException>
527
+ );
528
+ }
529
+ export declare class XksKeyInvalidConfigurationException extends __BaseException {
530
+ readonly name: "XksKeyInvalidConfigurationException";
531
+ readonly $fault: "client";
532
+ constructor(
533
+ opts: __ExceptionOptionType<
534
+ XksKeyInvalidConfigurationException,
535
+ __BaseException
536
+ >
537
+ );
538
+ }
539
+ export declare class XksKeyNotFoundException extends __BaseException {
540
+ readonly name: "XksKeyNotFoundException";
541
+ readonly $fault: "client";
542
+ constructor(
543
+ opts: __ExceptionOptionType<XksKeyNotFoundException, __BaseException>
544
+ );
545
+ }
403
546
  export declare class CustomKeyStoreHasCMKsException extends __BaseException {
404
547
  readonly name: "CustomKeyStoreHasCMKsException";
405
548
  readonly $fault: "client";
@@ -407,6 +550,13 @@ export declare class CustomKeyStoreHasCMKsException extends __BaseException {
407
550
  opts: __ExceptionOptionType<CustomKeyStoreHasCMKsException, __BaseException>
408
551
  );
409
552
  }
553
+ export interface XksProxyConfigurationType {
554
+ Connectivity?: XksProxyConnectivityType | string;
555
+ AccessKeyId?: string;
556
+ UriEndpoint?: string;
557
+ UriPath?: string;
558
+ VpcEndpointServiceName?: string;
559
+ }
410
560
  export interface CustomKeyStoresListEntry {
411
561
  CustomKeyStoreId?: string;
412
562
  CustomKeyStoreName?: string;
@@ -415,6 +565,8 @@ export interface CustomKeyStoresListEntry {
415
565
  ConnectionState?: ConnectionStateType | string;
416
566
  ConnectionErrorCode?: ConnectionErrorCodeType | string;
417
567
  CreationDate?: Date;
568
+ CustomKeyStoreType?: CustomKeyStoreType | string;
569
+ XksProxyConfiguration?: XksProxyConfigurationType;
418
570
  }
419
571
  export declare enum DataKeyPairSpec {
420
572
  ECC_NIST_P256 = "ECC_NIST_P256",
@@ -848,6 +1000,11 @@ export interface UpdateCustomKeyStoreRequest {
848
1000
  NewCustomKeyStoreName?: string;
849
1001
  KeyStorePassword?: string;
850
1002
  CloudHsmClusterId?: string;
1003
+ XksProxyUriEndpoint?: string;
1004
+ XksProxyUriPath?: string;
1005
+ XksProxyVpcEndpointServiceName?: string;
1006
+ XksProxyAuthenticationCredential?: XksProxyAuthenticationCredentialType;
1007
+ XksProxyConnectivity?: XksProxyConnectivityType | string;
851
1008
  }
852
1009
  export interface UpdateCustomKeyStoreResponse {}
853
1010
  export interface UpdateKeyDescriptionRequest {
@@ -901,6 +1058,9 @@ export declare const ConnectCustomKeyStoreResponseFilterSensitiveLog: (
901
1058
  export declare const CreateAliasRequestFilterSensitiveLog: (
902
1059
  obj: CreateAliasRequest
903
1060
  ) => any;
1061
+ export declare const XksProxyAuthenticationCredentialTypeFilterSensitiveLog: (
1062
+ obj: XksProxyAuthenticationCredentialType
1063
+ ) => any;
904
1064
  export declare const CreateCustomKeyStoreRequestFilterSensitiveLog: (
905
1065
  obj: CreateCustomKeyStoreRequest
906
1066
  ) => any;
@@ -926,10 +1086,16 @@ export declare const MultiRegionKeyFilterSensitiveLog: (
926
1086
  export declare const MultiRegionConfigurationFilterSensitiveLog: (
927
1087
  obj: MultiRegionConfiguration
928
1088
  ) => any;
1089
+ export declare const XksKeyConfigurationTypeFilterSensitiveLog: (
1090
+ obj: XksKeyConfigurationType
1091
+ ) => any;
929
1092
  export declare const KeyMetadataFilterSensitiveLog: (obj: KeyMetadata) => any;
930
1093
  export declare const CreateKeyResponseFilterSensitiveLog: (
931
1094
  obj: CreateKeyResponse
932
1095
  ) => any;
1096
+ export declare const XksProxyConfigurationTypeFilterSensitiveLog: (
1097
+ obj: XksProxyConfigurationType
1098
+ ) => any;
933
1099
  export declare const CustomKeyStoresListEntryFilterSensitiveLog: (
934
1100
  obj: CustomKeyStoresListEntry
935
1101
  ) => any;
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.218.0",
4
+ "version": "3.220.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",