@aws-sdk/client-kms 3.301.0 → 3.306.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/models/models_0.js +166 -187
- package/dist-es/models/models_0.js +166 -187
- package/dist-types/models/models_0.d.ts +271 -166
- package/dist-types/ts3.4/models/models_0.d.ts +201 -166
- package/package.json +34 -34
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { KMSServiceException as __BaseException } from "./KMSServiceException";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})(AlgorithmSpec || (AlgorithmSpec = {}));
|
|
3
|
+
export const AlgorithmSpec = {
|
|
4
|
+
RSAES_OAEP_SHA_1: "RSAES_OAEP_SHA_1",
|
|
5
|
+
RSAES_OAEP_SHA_256: "RSAES_OAEP_SHA_256",
|
|
6
|
+
RSAES_PKCS1_V1_5: "RSAES_PKCS1_V1_5",
|
|
7
|
+
};
|
|
9
8
|
export class AlreadyExistsException extends __BaseException {
|
|
10
9
|
constructor(opts) {
|
|
11
10
|
super({
|
|
@@ -162,35 +161,33 @@ export class CustomKeyStoreNotFoundException extends __BaseException {
|
|
|
162
161
|
Object.setPrototypeOf(this, CustomKeyStoreNotFoundException.prototype);
|
|
163
162
|
}
|
|
164
163
|
}
|
|
165
|
-
export
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
ConnectionStateType["FAILED"] = "FAILED";
|
|
193
|
-
})(ConnectionStateType || (ConnectionStateType = {}));
|
|
164
|
+
export const ConnectionErrorCodeType = {
|
|
165
|
+
CLUSTER_NOT_FOUND: "CLUSTER_NOT_FOUND",
|
|
166
|
+
INSUFFICIENT_CLOUDHSM_HSMS: "INSUFFICIENT_CLOUDHSM_HSMS",
|
|
167
|
+
INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET: "INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET",
|
|
168
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
169
|
+
INVALID_CREDENTIALS: "INVALID_CREDENTIALS",
|
|
170
|
+
NETWORK_ERRORS: "NETWORK_ERRORS",
|
|
171
|
+
SUBNET_NOT_FOUND: "SUBNET_NOT_FOUND",
|
|
172
|
+
USER_LOCKED_OUT: "USER_LOCKED_OUT",
|
|
173
|
+
USER_LOGGED_IN: "USER_LOGGED_IN",
|
|
174
|
+
USER_NOT_FOUND: "USER_NOT_FOUND",
|
|
175
|
+
XKS_PROXY_ACCESS_DENIED: "XKS_PROXY_ACCESS_DENIED",
|
|
176
|
+
XKS_PROXY_INVALID_CONFIGURATION: "XKS_PROXY_INVALID_CONFIGURATION",
|
|
177
|
+
XKS_PROXY_INVALID_RESPONSE: "XKS_PROXY_INVALID_RESPONSE",
|
|
178
|
+
XKS_PROXY_INVALID_TLS_CONFIGURATION: "XKS_PROXY_INVALID_TLS_CONFIGURATION",
|
|
179
|
+
XKS_PROXY_NOT_REACHABLE: "XKS_PROXY_NOT_REACHABLE",
|
|
180
|
+
XKS_PROXY_TIMED_OUT: "XKS_PROXY_TIMED_OUT",
|
|
181
|
+
XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION: "XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION",
|
|
182
|
+
XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND: "XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND",
|
|
183
|
+
};
|
|
184
|
+
export const ConnectionStateType = {
|
|
185
|
+
CONNECTED: "CONNECTED",
|
|
186
|
+
CONNECTING: "CONNECTING",
|
|
187
|
+
DISCONNECTED: "DISCONNECTED",
|
|
188
|
+
DISCONNECTING: "DISCONNECTING",
|
|
189
|
+
FAILED: "FAILED",
|
|
190
|
+
};
|
|
194
191
|
export class InvalidAliasNameException extends __BaseException {
|
|
195
192
|
constructor(opts) {
|
|
196
193
|
super({
|
|
@@ -215,16 +212,14 @@ export class LimitExceededException extends __BaseException {
|
|
|
215
212
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
216
213
|
}
|
|
217
214
|
}
|
|
218
|
-
export
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
XksProxyConnectivityType["VPC_ENDPOINT_SERVICE"] = "VPC_ENDPOINT_SERVICE";
|
|
227
|
-
})(XksProxyConnectivityType || (XksProxyConnectivityType = {}));
|
|
215
|
+
export const CustomKeyStoreType = {
|
|
216
|
+
AWS_CLOUDHSM: "AWS_CLOUDHSM",
|
|
217
|
+
EXTERNAL_KEY_STORE: "EXTERNAL_KEY_STORE",
|
|
218
|
+
};
|
|
219
|
+
export const XksProxyConnectivityType = {
|
|
220
|
+
PUBLIC_ENDPOINT: "PUBLIC_ENDPOINT",
|
|
221
|
+
VPC_ENDPOINT_SERVICE: "VPC_ENDPOINT_SERVICE",
|
|
222
|
+
};
|
|
228
223
|
export class CustomKeyStoreNameInUseException extends __BaseException {
|
|
229
224
|
constructor(opts) {
|
|
230
225
|
super({
|
|
@@ -357,25 +352,24 @@ export class XksProxyVpcEndpointServiceNotFoundException extends __BaseException
|
|
|
357
352
|
Object.setPrototypeOf(this, XksProxyVpcEndpointServiceNotFoundException.prototype);
|
|
358
353
|
}
|
|
359
354
|
}
|
|
360
|
-
export
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
})(GrantOperation || (GrantOperation = {}));
|
|
355
|
+
export const GrantOperation = {
|
|
356
|
+
CreateGrant: "CreateGrant",
|
|
357
|
+
Decrypt: "Decrypt",
|
|
358
|
+
DescribeKey: "DescribeKey",
|
|
359
|
+
Encrypt: "Encrypt",
|
|
360
|
+
GenerateDataKey: "GenerateDataKey",
|
|
361
|
+
GenerateDataKeyPair: "GenerateDataKeyPair",
|
|
362
|
+
GenerateDataKeyPairWithoutPlaintext: "GenerateDataKeyPairWithoutPlaintext",
|
|
363
|
+
GenerateDataKeyWithoutPlaintext: "GenerateDataKeyWithoutPlaintext",
|
|
364
|
+
GenerateMac: "GenerateMac",
|
|
365
|
+
GetPublicKey: "GetPublicKey",
|
|
366
|
+
ReEncryptFrom: "ReEncryptFrom",
|
|
367
|
+
ReEncryptTo: "ReEncryptTo",
|
|
368
|
+
RetireGrant: "RetireGrant",
|
|
369
|
+
Sign: "Sign",
|
|
370
|
+
Verify: "Verify",
|
|
371
|
+
VerifyMac: "VerifyMac",
|
|
372
|
+
};
|
|
379
373
|
export class DisabledException extends __BaseException {
|
|
380
374
|
constructor(opts) {
|
|
381
375
|
super({
|
|
@@ -400,104 +394,93 @@ export class InvalidGrantTokenException extends __BaseException {
|
|
|
400
394
|
Object.setPrototypeOf(this, InvalidGrantTokenException.prototype);
|
|
401
395
|
}
|
|
402
396
|
}
|
|
403
|
-
export
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
SigningAlgorithmSpec["ECDSA_SHA_256"] = "ECDSA_SHA_256";
|
|
491
|
-
SigningAlgorithmSpec["ECDSA_SHA_384"] = "ECDSA_SHA_384";
|
|
492
|
-
SigningAlgorithmSpec["ECDSA_SHA_512"] = "ECDSA_SHA_512";
|
|
493
|
-
SigningAlgorithmSpec["RSASSA_PKCS1_V1_5_SHA_256"] = "RSASSA_PKCS1_V1_5_SHA_256";
|
|
494
|
-
SigningAlgorithmSpec["RSASSA_PKCS1_V1_5_SHA_384"] = "RSASSA_PKCS1_V1_5_SHA_384";
|
|
495
|
-
SigningAlgorithmSpec["RSASSA_PKCS1_V1_5_SHA_512"] = "RSASSA_PKCS1_V1_5_SHA_512";
|
|
496
|
-
SigningAlgorithmSpec["RSASSA_PSS_SHA_256"] = "RSASSA_PSS_SHA_256";
|
|
497
|
-
SigningAlgorithmSpec["RSASSA_PSS_SHA_384"] = "RSASSA_PSS_SHA_384";
|
|
498
|
-
SigningAlgorithmSpec["RSASSA_PSS_SHA_512"] = "RSASSA_PSS_SHA_512";
|
|
499
|
-
SigningAlgorithmSpec["SM2DSA"] = "SM2DSA";
|
|
500
|
-
})(SigningAlgorithmSpec || (SigningAlgorithmSpec = {}));
|
|
397
|
+
export const CustomerMasterKeySpec = {
|
|
398
|
+
ECC_NIST_P256: "ECC_NIST_P256",
|
|
399
|
+
ECC_NIST_P384: "ECC_NIST_P384",
|
|
400
|
+
ECC_NIST_P521: "ECC_NIST_P521",
|
|
401
|
+
ECC_SECG_P256K1: "ECC_SECG_P256K1",
|
|
402
|
+
HMAC_224: "HMAC_224",
|
|
403
|
+
HMAC_256: "HMAC_256",
|
|
404
|
+
HMAC_384: "HMAC_384",
|
|
405
|
+
HMAC_512: "HMAC_512",
|
|
406
|
+
RSA_2048: "RSA_2048",
|
|
407
|
+
RSA_3072: "RSA_3072",
|
|
408
|
+
RSA_4096: "RSA_4096",
|
|
409
|
+
SM2: "SM2",
|
|
410
|
+
SYMMETRIC_DEFAULT: "SYMMETRIC_DEFAULT",
|
|
411
|
+
};
|
|
412
|
+
export const KeySpec = {
|
|
413
|
+
ECC_NIST_P256: "ECC_NIST_P256",
|
|
414
|
+
ECC_NIST_P384: "ECC_NIST_P384",
|
|
415
|
+
ECC_NIST_P521: "ECC_NIST_P521",
|
|
416
|
+
ECC_SECG_P256K1: "ECC_SECG_P256K1",
|
|
417
|
+
HMAC_224: "HMAC_224",
|
|
418
|
+
HMAC_256: "HMAC_256",
|
|
419
|
+
HMAC_384: "HMAC_384",
|
|
420
|
+
HMAC_512: "HMAC_512",
|
|
421
|
+
RSA_2048: "RSA_2048",
|
|
422
|
+
RSA_3072: "RSA_3072",
|
|
423
|
+
RSA_4096: "RSA_4096",
|
|
424
|
+
SM2: "SM2",
|
|
425
|
+
SYMMETRIC_DEFAULT: "SYMMETRIC_DEFAULT",
|
|
426
|
+
};
|
|
427
|
+
export const KeyUsageType = {
|
|
428
|
+
ENCRYPT_DECRYPT: "ENCRYPT_DECRYPT",
|
|
429
|
+
GENERATE_VERIFY_MAC: "GENERATE_VERIFY_MAC",
|
|
430
|
+
SIGN_VERIFY: "SIGN_VERIFY",
|
|
431
|
+
};
|
|
432
|
+
export const OriginType = {
|
|
433
|
+
AWS_CLOUDHSM: "AWS_CLOUDHSM",
|
|
434
|
+
AWS_KMS: "AWS_KMS",
|
|
435
|
+
EXTERNAL: "EXTERNAL",
|
|
436
|
+
EXTERNAL_KEY_STORE: "EXTERNAL_KEY_STORE",
|
|
437
|
+
};
|
|
438
|
+
export const EncryptionAlgorithmSpec = {
|
|
439
|
+
RSAES_OAEP_SHA_1: "RSAES_OAEP_SHA_1",
|
|
440
|
+
RSAES_OAEP_SHA_256: "RSAES_OAEP_SHA_256",
|
|
441
|
+
SM2PKE: "SM2PKE",
|
|
442
|
+
SYMMETRIC_DEFAULT: "SYMMETRIC_DEFAULT",
|
|
443
|
+
};
|
|
444
|
+
export const ExpirationModelType = {
|
|
445
|
+
KEY_MATERIAL_DOES_NOT_EXPIRE: "KEY_MATERIAL_DOES_NOT_EXPIRE",
|
|
446
|
+
KEY_MATERIAL_EXPIRES: "KEY_MATERIAL_EXPIRES",
|
|
447
|
+
};
|
|
448
|
+
export const KeyManagerType = {
|
|
449
|
+
AWS: "AWS",
|
|
450
|
+
CUSTOMER: "CUSTOMER",
|
|
451
|
+
};
|
|
452
|
+
export const KeyState = {
|
|
453
|
+
Creating: "Creating",
|
|
454
|
+
Disabled: "Disabled",
|
|
455
|
+
Enabled: "Enabled",
|
|
456
|
+
PendingDeletion: "PendingDeletion",
|
|
457
|
+
PendingImport: "PendingImport",
|
|
458
|
+
PendingReplicaDeletion: "PendingReplicaDeletion",
|
|
459
|
+
Unavailable: "Unavailable",
|
|
460
|
+
Updating: "Updating",
|
|
461
|
+
};
|
|
462
|
+
export const MacAlgorithmSpec = {
|
|
463
|
+
HMAC_SHA_224: "HMAC_SHA_224",
|
|
464
|
+
HMAC_SHA_256: "HMAC_SHA_256",
|
|
465
|
+
HMAC_SHA_384: "HMAC_SHA_384",
|
|
466
|
+
HMAC_SHA_512: "HMAC_SHA_512",
|
|
467
|
+
};
|
|
468
|
+
export const MultiRegionKeyType = {
|
|
469
|
+
PRIMARY: "PRIMARY",
|
|
470
|
+
REPLICA: "REPLICA",
|
|
471
|
+
};
|
|
472
|
+
export const SigningAlgorithmSpec = {
|
|
473
|
+
ECDSA_SHA_256: "ECDSA_SHA_256",
|
|
474
|
+
ECDSA_SHA_384: "ECDSA_SHA_384",
|
|
475
|
+
ECDSA_SHA_512: "ECDSA_SHA_512",
|
|
476
|
+
RSASSA_PKCS1_V1_5_SHA_256: "RSASSA_PKCS1_V1_5_SHA_256",
|
|
477
|
+
RSASSA_PKCS1_V1_5_SHA_384: "RSASSA_PKCS1_V1_5_SHA_384",
|
|
478
|
+
RSASSA_PKCS1_V1_5_SHA_512: "RSASSA_PKCS1_V1_5_SHA_512",
|
|
479
|
+
RSASSA_PSS_SHA_256: "RSASSA_PSS_SHA_256",
|
|
480
|
+
RSASSA_PSS_SHA_384: "RSASSA_PSS_SHA_384",
|
|
481
|
+
RSASSA_PSS_SHA_512: "RSASSA_PSS_SHA_512",
|
|
482
|
+
SM2DSA: "SM2DSA",
|
|
483
|
+
};
|
|
501
484
|
export class MalformedPolicyDocumentException extends __BaseException {
|
|
502
485
|
constructor(opts) {
|
|
503
486
|
super({
|
|
@@ -582,22 +565,20 @@ export class CustomKeyStoreHasCMKsException extends __BaseException {
|
|
|
582
565
|
Object.setPrototypeOf(this, CustomKeyStoreHasCMKsException.prototype);
|
|
583
566
|
}
|
|
584
567
|
}
|
|
585
|
-
export
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
DataKeySpec["AES_256"] = "AES_256";
|
|
600
|
-
})(DataKeySpec || (DataKeySpec = {}));
|
|
568
|
+
export const DataKeyPairSpec = {
|
|
569
|
+
ECC_NIST_P256: "ECC_NIST_P256",
|
|
570
|
+
ECC_NIST_P384: "ECC_NIST_P384",
|
|
571
|
+
ECC_NIST_P521: "ECC_NIST_P521",
|
|
572
|
+
ECC_SECG_P256K1: "ECC_SECG_P256K1",
|
|
573
|
+
RSA_2048: "RSA_2048",
|
|
574
|
+
RSA_3072: "RSA_3072",
|
|
575
|
+
RSA_4096: "RSA_4096",
|
|
576
|
+
SM2: "SM2",
|
|
577
|
+
};
|
|
578
|
+
export const DataKeySpec = {
|
|
579
|
+
AES_128: "AES_128",
|
|
580
|
+
AES_256: "AES_256",
|
|
581
|
+
};
|
|
601
582
|
export class IncorrectKeyException extends __BaseException {
|
|
602
583
|
constructor(opts) {
|
|
603
584
|
super({
|
|
@@ -670,10 +651,9 @@ export class ExpiredImportTokenException extends __BaseException {
|
|
|
670
651
|
Object.setPrototypeOf(this, ExpiredImportTokenException.prototype);
|
|
671
652
|
}
|
|
672
653
|
}
|
|
673
|
-
export
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
})(WrappingKeySpec || (WrappingKeySpec = {}));
|
|
654
|
+
export const WrappingKeySpec = {
|
|
655
|
+
RSA_2048: "RSA_2048",
|
|
656
|
+
};
|
|
677
657
|
export class IncorrectKeyMaterialException extends __BaseException {
|
|
678
658
|
constructor(opts) {
|
|
679
659
|
super({
|
|
@@ -734,11 +714,10 @@ export class KMSInvalidSignatureException extends __BaseException {
|
|
|
734
714
|
Object.setPrototypeOf(this, KMSInvalidSignatureException.prototype);
|
|
735
715
|
}
|
|
736
716
|
}
|
|
737
|
-
export
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
})(MessageType || (MessageType = {}));
|
|
717
|
+
export const MessageType = {
|
|
718
|
+
DIGEST: "DIGEST",
|
|
719
|
+
RAW: "RAW",
|
|
720
|
+
};
|
|
742
721
|
export const XksProxyAuthenticationCredentialTypeFilterSensitiveLog = (obj) => ({
|
|
743
722
|
...obj,
|
|
744
723
|
...(obj.AccessKeyId && { AccessKeyId: SENSITIVE_STRING }),
|