@aws-sdk/client-kms 3.300.0 → 3.303.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/commands/CancelKeyDeletionCommand.d.ts +1 -1
- package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +1 -1
- package/dist-types/commands/CreateAliasCommand.d.ts +1 -1
- package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +2 -2
- package/dist-types/commands/CreateGrantCommand.d.ts +5 -5
- package/dist-types/commands/CreateKeyCommand.d.ts +3 -3
- package/dist-types/commands/DecryptCommand.d.ts +3 -3
- package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +1 -1
- package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +1 -1
- package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +1 -1
- package/dist-types/commands/DescribeKeyCommand.d.ts +2 -2
- package/dist-types/commands/DisableKeyCommand.d.ts +1 -1
- package/dist-types/commands/DisableKeyRotationCommand.d.ts +1 -1
- package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +1 -1
- package/dist-types/commands/EnableKeyCommand.d.ts +1 -1
- package/dist-types/commands/EnableKeyRotationCommand.d.ts +1 -1
- package/dist-types/commands/EncryptCommand.d.ts +3 -3
- package/dist-types/commands/GenerateDataKeyCommand.d.ts +3 -3
- package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +3 -3
- package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +3 -3
- package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +3 -3
- package/dist-types/commands/GenerateMacCommand.d.ts +2 -2
- package/dist-types/commands/GenerateRandomCommand.d.ts +1 -1
- package/dist-types/commands/GetKeyPolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +1 -1
- package/dist-types/commands/GetParametersForImportCommand.d.ts +1 -1
- package/dist-types/commands/GetPublicKeyCommand.d.ts +2 -2
- package/dist-types/commands/ImportKeyMaterialCommand.d.ts +1 -1
- package/dist-types/commands/ListAliasesCommand.d.ts +1 -1
- package/dist-types/commands/ListGrantsCommand.d.ts +1 -1
- package/dist-types/commands/ListKeyPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListKeysCommand.d.ts +1 -1
- package/dist-types/commands/ListResourceTagsCommand.d.ts +1 -1
- package/dist-types/commands/ListRetirableGrantsCommand.d.ts +1 -1
- package/dist-types/commands/PutKeyPolicyCommand.d.ts +1 -1
- package/dist-types/commands/ReEncryptCommand.d.ts +3 -3
- package/dist-types/commands/ReplicateKeyCommand.d.ts +3 -3
- package/dist-types/commands/RetireGrantCommand.d.ts +1 -1
- package/dist-types/commands/RevokeGrantCommand.d.ts +1 -1
- package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +1 -1
- package/dist-types/commands/SignCommand.d.ts +2 -2
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateAliasCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +2 -2
- package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +1 -1
- package/dist-types/commands/VerifyCommand.d.ts +2 -2
- package/dist-types/commands/VerifyMacCommand.d.ts +2 -2
- 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 }),
|
|
@@ -38,7 +38,7 @@ export interface CancelKeyDeletionCommandOutput extends CancelKeyDeletionRespons
|
|
|
38
38
|
* import { KMSClient, CancelKeyDeletionCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
39
39
|
* // const { KMSClient, CancelKeyDeletionCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
40
40
|
* const client = new KMSClient(config);
|
|
41
|
-
* const input = {
|
|
41
|
+
* const input = { // CancelKeyDeletionRequest
|
|
42
42
|
* KeyId: "STRING_VALUE", // required
|
|
43
43
|
* };
|
|
44
44
|
* const command = new CancelKeyDeletionCommand(input);
|
|
@@ -112,7 +112,7 @@ export interface ConnectCustomKeyStoreCommandOutput extends ConnectCustomKeyStor
|
|
|
112
112
|
* import { KMSClient, ConnectCustomKeyStoreCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
113
113
|
* // const { KMSClient, ConnectCustomKeyStoreCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
114
114
|
* const client = new KMSClient(config);
|
|
115
|
-
* const input = {
|
|
115
|
+
* const input = { // ConnectCustomKeyStoreRequest
|
|
116
116
|
* CustomKeyStoreId: "STRING_VALUE", // required
|
|
117
117
|
* };
|
|
118
118
|
* const command = new ConnectCustomKeyStoreCommand(input);
|
|
@@ -82,7 +82,7 @@ export interface CreateAliasCommandOutput extends __MetadataBearer {
|
|
|
82
82
|
* import { KMSClient, CreateAliasCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
83
83
|
* // const { KMSClient, CreateAliasCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
84
84
|
* const client = new KMSClient(config);
|
|
85
|
-
* const input = {
|
|
85
|
+
* const input = { // CreateAliasRequest
|
|
86
86
|
* AliasName: "STRING_VALUE", // required
|
|
87
87
|
* TargetKeyId: "STRING_VALUE", // required
|
|
88
88
|
* };
|
|
@@ -113,7 +113,7 @@ export interface CreateCustomKeyStoreCommandOutput extends CreateCustomKeyStoreR
|
|
|
113
113
|
* import { KMSClient, CreateCustomKeyStoreCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
114
114
|
* // const { KMSClient, CreateCustomKeyStoreCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
115
115
|
* const client = new KMSClient(config);
|
|
116
|
-
* const input = {
|
|
116
|
+
* const input = { // CreateCustomKeyStoreRequest
|
|
117
117
|
* CustomKeyStoreName: "STRING_VALUE", // required
|
|
118
118
|
* CloudHsmClusterId: "STRING_VALUE",
|
|
119
119
|
* TrustAnchorCertificate: "STRING_VALUE",
|
|
@@ -122,7 +122,7 @@ export interface CreateCustomKeyStoreCommandOutput extends CreateCustomKeyStoreR
|
|
|
122
122
|
* XksProxyUriEndpoint: "STRING_VALUE",
|
|
123
123
|
* XksProxyUriPath: "STRING_VALUE",
|
|
124
124
|
* XksProxyVpcEndpointServiceName: "STRING_VALUE",
|
|
125
|
-
* XksProxyAuthenticationCredential: {
|
|
125
|
+
* XksProxyAuthenticationCredential: { // XksProxyAuthenticationCredentialType
|
|
126
126
|
* AccessKeyId: "STRING_VALUE", // required
|
|
127
127
|
* RawSecretAccessKey: "STRING_VALUE", // required
|
|
128
128
|
* },
|
|
@@ -87,22 +87,22 @@ export interface CreateGrantCommandOutput extends CreateGrantResponse, __Metadat
|
|
|
87
87
|
* import { KMSClient, CreateGrantCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
88
88
|
* // const { KMSClient, CreateGrantCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
89
89
|
* const client = new KMSClient(config);
|
|
90
|
-
* const input = {
|
|
90
|
+
* const input = { // CreateGrantRequest
|
|
91
91
|
* KeyId: "STRING_VALUE", // required
|
|
92
92
|
* GranteePrincipal: "STRING_VALUE", // required
|
|
93
93
|
* RetiringPrincipal: "STRING_VALUE",
|
|
94
|
-
* Operations: [ // required
|
|
94
|
+
* Operations: [ // GrantOperationList // required
|
|
95
95
|
* "Decrypt" || "Encrypt" || "GenerateDataKey" || "GenerateDataKeyWithoutPlaintext" || "ReEncryptFrom" || "ReEncryptTo" || "Sign" || "Verify" || "GetPublicKey" || "CreateGrant" || "RetireGrant" || "DescribeKey" || "GenerateDataKeyPair" || "GenerateDataKeyPairWithoutPlaintext" || "GenerateMac" || "VerifyMac",
|
|
96
96
|
* ],
|
|
97
|
-
* Constraints: {
|
|
98
|
-
* EncryptionContextSubset: {
|
|
97
|
+
* Constraints: { // GrantConstraints
|
|
98
|
+
* EncryptionContextSubset: { // EncryptionContextType
|
|
99
99
|
* "<keys>": "STRING_VALUE",
|
|
100
100
|
* },
|
|
101
101
|
* EncryptionContextEquals: {
|
|
102
102
|
* "<keys>": "STRING_VALUE",
|
|
103
103
|
* },
|
|
104
104
|
* },
|
|
105
|
-
* GrantTokens: [
|
|
105
|
+
* GrantTokens: [ // GrantTokenList
|
|
106
106
|
* "STRING_VALUE",
|
|
107
107
|
* ],
|
|
108
108
|
* Name: "STRING_VALUE",
|
|
@@ -192,7 +192,7 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
|
|
|
192
192
|
* import { KMSClient, CreateKeyCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
193
193
|
* // const { KMSClient, CreateKeyCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
194
194
|
* const client = new KMSClient(config);
|
|
195
|
-
* const input = {
|
|
195
|
+
* const input = { // CreateKeyRequest
|
|
196
196
|
* Policy: "STRING_VALUE",
|
|
197
197
|
* Description: "STRING_VALUE",
|
|
198
198
|
* KeyUsage: "SIGN_VERIFY" || "ENCRYPT_DECRYPT" || "GENERATE_VERIFY_MAC",
|
|
@@ -201,8 +201,8 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
|
|
|
201
201
|
* Origin: "AWS_KMS" || "EXTERNAL" || "AWS_CLOUDHSM" || "EXTERNAL_KEY_STORE",
|
|
202
202
|
* CustomKeyStoreId: "STRING_VALUE",
|
|
203
203
|
* BypassPolicyLockoutSafetyCheck: true || false,
|
|
204
|
-
* Tags: [
|
|
205
|
-
* {
|
|
204
|
+
* Tags: [ // TagList
|
|
205
|
+
* { // Tag
|
|
206
206
|
* TagKey: "STRING_VALUE", // required
|
|
207
207
|
* TagValue: "STRING_VALUE", // required
|
|
208
208
|
* },
|
|
@@ -113,12 +113,12 @@ export interface DecryptCommandOutput extends DecryptResponse, __MetadataBearer
|
|
|
113
113
|
* import { KMSClient, DecryptCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
114
114
|
* // const { KMSClient, DecryptCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
115
115
|
* const client = new KMSClient(config);
|
|
116
|
-
* const input = {
|
|
116
|
+
* const input = { // DecryptRequest
|
|
117
117
|
* CiphertextBlob: "BLOB_VALUE", // required
|
|
118
|
-
* EncryptionContext: {
|
|
118
|
+
* EncryptionContext: { // EncryptionContextType
|
|
119
119
|
* "<keys>": "STRING_VALUE",
|
|
120
120
|
* },
|
|
121
|
-
* GrantTokens: [
|
|
121
|
+
* GrantTokens: [ // GrantTokenList
|
|
122
122
|
* "STRING_VALUE",
|
|
123
123
|
* ],
|
|
124
124
|
* KeyId: "STRING_VALUE",
|
|
@@ -73,7 +73,7 @@ export interface DeleteAliasCommandOutput extends __MetadataBearer {
|
|
|
73
73
|
* import { KMSClient, DeleteAliasCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
74
74
|
* // const { KMSClient, DeleteAliasCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
75
75
|
* const client = new KMSClient(config);
|
|
76
|
-
* const input = {
|
|
76
|
+
* const input = { // DeleteAliasRequest
|
|
77
77
|
* AliasName: "STRING_VALUE", // required
|
|
78
78
|
* };
|
|
79
79
|
* const command = new DeleteAliasCommand(input);
|
|
@@ -84,7 +84,7 @@ export interface DeleteCustomKeyStoreCommandOutput extends DeleteCustomKeyStoreR
|
|
|
84
84
|
* import { KMSClient, DeleteCustomKeyStoreCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
85
85
|
* // const { KMSClient, DeleteCustomKeyStoreCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
86
86
|
* const client = new KMSClient(config);
|
|
87
|
-
* const input = {
|
|
87
|
+
* const input = { // DeleteCustomKeyStoreRequest
|
|
88
88
|
* CustomKeyStoreId: "STRING_VALUE", // required
|
|
89
89
|
* };
|
|
90
90
|
* const command = new DeleteCustomKeyStoreCommand(input);
|
|
@@ -54,7 +54,7 @@ export interface DeleteImportedKeyMaterialCommandOutput extends __MetadataBearer
|
|
|
54
54
|
* import { KMSClient, DeleteImportedKeyMaterialCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
55
55
|
* // const { KMSClient, DeleteImportedKeyMaterialCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
56
56
|
* const client = new KMSClient(config);
|
|
57
|
-
* const input = {
|
|
57
|
+
* const input = { // DeleteImportedKeyMaterialRequest
|
|
58
58
|
* KeyId: "STRING_VALUE", // required
|
|
59
59
|
* };
|
|
60
60
|
* const command = new DeleteImportedKeyMaterialCommand(input);
|
|
@@ -84,7 +84,7 @@ export interface DescribeCustomKeyStoresCommandOutput extends DescribeCustomKeyS
|
|
|
84
84
|
* import { KMSClient, DescribeCustomKeyStoresCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
85
85
|
* // const { KMSClient, DescribeCustomKeyStoresCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
86
86
|
* const client = new KMSClient(config);
|
|
87
|
-
* const input = {
|
|
87
|
+
* const input = { // DescribeCustomKeyStoresRequest
|
|
88
88
|
* CustomKeyStoreId: "STRING_VALUE",
|
|
89
89
|
* CustomKeyStoreName: "STRING_VALUE",
|
|
90
90
|
* Limit: Number("int"),
|
|
@@ -108,9 +108,9 @@ export interface DescribeKeyCommandOutput extends DescribeKeyResponse, __Metadat
|
|
|
108
108
|
* import { KMSClient, DescribeKeyCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
109
109
|
* // const { KMSClient, DescribeKeyCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
110
110
|
* const client = new KMSClient(config);
|
|
111
|
-
* const input = {
|
|
111
|
+
* const input = { // DescribeKeyRequest
|
|
112
112
|
* KeyId: "STRING_VALUE", // required
|
|
113
|
-
* GrantTokens: [
|
|
113
|
+
* GrantTokens: [ // GrantTokenList
|
|
114
114
|
* "STRING_VALUE",
|
|
115
115
|
* ],
|
|
116
116
|
* };
|
|
@@ -40,7 +40,7 @@ export interface DisableKeyCommandOutput extends __MetadataBearer {
|
|
|
40
40
|
* import { KMSClient, DisableKeyCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
41
41
|
* // const { KMSClient, DisableKeyCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
42
42
|
* const client = new KMSClient(config);
|
|
43
|
-
* const input = {
|
|
43
|
+
* const input = { // DisableKeyRequest
|
|
44
44
|
* KeyId: "STRING_VALUE", // required
|
|
45
45
|
* };
|
|
46
46
|
* const command = new DisableKeyCommand(input);
|
|
@@ -58,7 +58,7 @@ export interface DisableKeyRotationCommandOutput extends __MetadataBearer {
|
|
|
58
58
|
* import { KMSClient, DisableKeyRotationCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
59
59
|
* // const { KMSClient, DisableKeyRotationCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
60
60
|
* const client = new KMSClient(config);
|
|
61
|
-
* const input = {
|
|
61
|
+
* const input = { // DisableKeyRotationRequest
|
|
62
62
|
* KeyId: "STRING_VALUE", // required
|
|
63
63
|
* };
|
|
64
64
|
* const command = new DisableKeyRotationCommand(input);
|
|
@@ -77,7 +77,7 @@ export interface DisconnectCustomKeyStoreCommandOutput extends DisconnectCustomK
|
|
|
77
77
|
* import { KMSClient, DisconnectCustomKeyStoreCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
78
78
|
* // const { KMSClient, DisconnectCustomKeyStoreCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
79
79
|
* const client = new KMSClient(config);
|
|
80
|
-
* const input = {
|
|
80
|
+
* const input = { // DisconnectCustomKeyStoreRequest
|
|
81
81
|
* CustomKeyStoreId: "STRING_VALUE", // required
|
|
82
82
|
* };
|
|
83
83
|
* const command = new DisconnectCustomKeyStoreCommand(input);
|