@aws-sdk/client-kms 3.823.0 → 3.825.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/index.js +52 -6
- package/dist-es/models/models_0.js +17 -0
- package/dist-es/protocols/Aws_json1_1.js +22 -1
- package/dist-types/commands/CancelKeyDeletionCommand.d.ts +1 -1
- package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +4 -4
- package/dist-types/commands/CreateAliasCommand.d.ts +7 -7
- package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +6 -7
- package/dist-types/commands/CreateGrantCommand.d.ts +8 -7
- package/dist-types/commands/CreateKeyCommand.d.ts +21 -20
- package/dist-types/commands/DecryptCommand.d.ts +17 -16
- package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +4 -4
- package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +14 -5
- package/dist-types/commands/DeriveSharedSecretCommand.d.ts +40 -33
- package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +3 -3
- package/dist-types/commands/DescribeKeyCommand.d.ts +79 -78
- package/dist-types/commands/DisableKeyCommand.d.ts +5 -6
- package/dist-types/commands/DisableKeyRotationCommand.d.ts +4 -4
- package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +4 -4
- package/dist-types/commands/EnableKeyCommand.d.ts +5 -4
- package/dist-types/commands/EnableKeyRotationCommand.d.ts +12 -14
- package/dist-types/commands/EncryptCommand.d.ts +5 -4
- package/dist-types/commands/GenerateDataKeyCommand.d.ts +5 -4
- package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +5 -4
- package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +5 -4
- package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +5 -4
- package/dist-types/commands/GenerateMacCommand.d.ts +3 -3
- package/dist-types/commands/GenerateRandomCommand.d.ts +2 -3
- package/dist-types/commands/GetKeyPolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +12 -11
- package/dist-types/commands/GetParametersForImportCommand.d.ts +7 -7
- package/dist-types/commands/GetPublicKeyCommand.d.ts +8 -8
- package/dist-types/commands/ImportKeyMaterialCommand.d.ts +54 -38
- package/dist-types/commands/ListAliasesCommand.d.ts +4 -5
- package/dist-types/commands/ListGrantsCommand.d.ts +3 -3
- package/dist-types/commands/ListKeyPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListKeyRotationsCommand.d.ts +22 -4
- package/dist-types/commands/ListKeysCommand.d.ts +1 -1
- package/dist-types/commands/ListResourceTagsCommand.d.ts +3 -3
- package/dist-types/commands/ListRetirableGrantsCommand.d.ts +3 -3
- package/dist-types/commands/PutKeyPolicyCommand.d.ts +6 -4
- package/dist-types/commands/ReEncryptCommand.d.ts +12 -13
- package/dist-types/commands/ReplicateKeyCommand.d.ts +10 -13
- package/dist-types/commands/RetireGrantCommand.d.ts +6 -7
- package/dist-types/commands/RevokeGrantCommand.d.ts +5 -5
- package/dist-types/commands/RotateKeyOnDemandCommand.d.ts +33 -23
- package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +15 -15
- package/dist-types/commands/SignCommand.d.ts +19 -19
- package/dist-types/commands/TagResourceCommand.d.ts +6 -5
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAliasCommand.d.ts +4 -3
- package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +12 -12
- package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +2 -2
- package/dist-types/commands/VerifyCommand.d.ts +4 -4
- package/dist-types/commands/VerifyMacCommand.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +423 -150
- package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +7 -3
- package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +51 -1
- package/package.json +11 -11
|
@@ -5,13 +5,17 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../KMSClient";
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
DeleteImportedKeyMaterialRequest,
|
|
10
|
+
DeleteImportedKeyMaterialResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
9
12
|
export { __MetadataBearer };
|
|
10
13
|
export { $Command };
|
|
11
14
|
export interface DeleteImportedKeyMaterialCommandInput
|
|
12
15
|
extends DeleteImportedKeyMaterialRequest {}
|
|
13
16
|
export interface DeleteImportedKeyMaterialCommandOutput
|
|
14
|
-
extends
|
|
17
|
+
extends DeleteImportedKeyMaterialResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
15
19
|
declare const DeleteImportedKeyMaterialCommand_base: {
|
|
16
20
|
new (
|
|
17
21
|
input: DeleteImportedKeyMaterialCommandInput
|
|
@@ -37,7 +41,7 @@ export declare class DeleteImportedKeyMaterialCommand extends DeleteImportedKeyM
|
|
|
37
41
|
protected static __types: {
|
|
38
42
|
api: {
|
|
39
43
|
input: DeleteImportedKeyMaterialRequest;
|
|
40
|
-
output:
|
|
44
|
+
output: DeleteImportedKeyMaterialResponse;
|
|
41
45
|
};
|
|
42
46
|
sdk: {
|
|
43
47
|
input: DeleteImportedKeyMaterialCommandInput;
|
|
@@ -41,7 +41,7 @@ export declare class ImportKeyMaterialCommand extends ImportKeyMaterialCommand_b
|
|
|
41
41
|
protected static __types: {
|
|
42
42
|
api: {
|
|
43
43
|
input: ImportKeyMaterialRequest;
|
|
44
|
-
output:
|
|
44
|
+
output: ImportKeyMaterialResponse;
|
|
45
45
|
};
|
|
46
46
|
sdk: {
|
|
47
47
|
input: ImportKeyMaterialCommandInput;
|
|
@@ -548,6 +548,7 @@ export interface KeyMetadata {
|
|
|
548
548
|
PendingDeletionWindowInDays?: number | undefined;
|
|
549
549
|
MacAlgorithms?: MacAlgorithmSpec[] | undefined;
|
|
550
550
|
XksKeyConfiguration?: XksKeyConfigurationType | undefined;
|
|
551
|
+
CurrentKeyMaterialId?: string | undefined;
|
|
551
552
|
}
|
|
552
553
|
export interface CreateKeyResponse {
|
|
553
554
|
KeyMetadata?: KeyMetadata | undefined;
|
|
@@ -663,6 +664,7 @@ export interface DecryptResponse {
|
|
|
663
664
|
Plaintext?: Uint8Array | undefined;
|
|
664
665
|
EncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
|
|
665
666
|
CiphertextForRecipient?: Uint8Array | undefined;
|
|
667
|
+
KeyMaterialId?: string | undefined;
|
|
666
668
|
}
|
|
667
669
|
export declare class IncorrectKeyException extends __BaseException {
|
|
668
670
|
readonly name: "IncorrectKeyException";
|
|
@@ -701,6 +703,11 @@ export interface DeleteCustomKeyStoreRequest {
|
|
|
701
703
|
export interface DeleteCustomKeyStoreResponse {}
|
|
702
704
|
export interface DeleteImportedKeyMaterialRequest {
|
|
703
705
|
KeyId: string | undefined;
|
|
706
|
+
KeyMaterialId?: string | undefined;
|
|
707
|
+
}
|
|
708
|
+
export interface DeleteImportedKeyMaterialResponse {
|
|
709
|
+
KeyId?: string | undefined;
|
|
710
|
+
KeyMaterialId?: string | undefined;
|
|
704
711
|
}
|
|
705
712
|
export interface DeriveSharedSecretRequest {
|
|
706
713
|
KeyId: string | undefined;
|
|
@@ -771,6 +778,7 @@ export interface EncryptResponse {
|
|
|
771
778
|
CiphertextBlob?: Uint8Array | undefined;
|
|
772
779
|
KeyId?: string | undefined;
|
|
773
780
|
EncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
|
|
781
|
+
KeyMaterialId?: string | undefined;
|
|
774
782
|
}
|
|
775
783
|
export declare class ExpiredImportTokenException extends __BaseException {
|
|
776
784
|
readonly name: "ExpiredImportTokenException";
|
|
@@ -793,6 +801,7 @@ export interface GenerateDataKeyResponse {
|
|
|
793
801
|
Plaintext?: Uint8Array | undefined;
|
|
794
802
|
KeyId?: string | undefined;
|
|
795
803
|
CiphertextForRecipient?: Uint8Array | undefined;
|
|
804
|
+
KeyMaterialId?: string | undefined;
|
|
796
805
|
}
|
|
797
806
|
export interface GenerateDataKeyPairRequest {
|
|
798
807
|
EncryptionContext?: Record<string, string> | undefined;
|
|
@@ -809,6 +818,7 @@ export interface GenerateDataKeyPairResponse {
|
|
|
809
818
|
KeyId?: string | undefined;
|
|
810
819
|
KeyPairSpec?: DataKeyPairSpec | undefined;
|
|
811
820
|
CiphertextForRecipient?: Uint8Array | undefined;
|
|
821
|
+
KeyMaterialId?: string | undefined;
|
|
812
822
|
}
|
|
813
823
|
export interface GenerateDataKeyPairWithoutPlaintextRequest {
|
|
814
824
|
EncryptionContext?: Record<string, string> | undefined;
|
|
@@ -822,6 +832,7 @@ export interface GenerateDataKeyPairWithoutPlaintextResponse {
|
|
|
822
832
|
PublicKey?: Uint8Array | undefined;
|
|
823
833
|
KeyId?: string | undefined;
|
|
824
834
|
KeyPairSpec?: DataKeyPairSpec | undefined;
|
|
835
|
+
KeyMaterialId?: string | undefined;
|
|
825
836
|
}
|
|
826
837
|
export interface GenerateDataKeyWithoutPlaintextRequest {
|
|
827
838
|
KeyId: string | undefined;
|
|
@@ -834,6 +845,7 @@ export interface GenerateDataKeyWithoutPlaintextRequest {
|
|
|
834
845
|
export interface GenerateDataKeyWithoutPlaintextResponse {
|
|
835
846
|
CiphertextBlob?: Uint8Array | undefined;
|
|
836
847
|
KeyId?: string | undefined;
|
|
848
|
+
KeyMaterialId?: string | undefined;
|
|
837
849
|
}
|
|
838
850
|
export interface GenerateMacRequest {
|
|
839
851
|
Message: Uint8Array | undefined;
|
|
@@ -918,14 +930,25 @@ export interface GrantListEntry {
|
|
|
918
930
|
Operations?: GrantOperation[] | undefined;
|
|
919
931
|
Constraints?: GrantConstraints | undefined;
|
|
920
932
|
}
|
|
933
|
+
export declare const ImportType: {
|
|
934
|
+
readonly EXISTING_KEY_MATERIAL: "EXISTING_KEY_MATERIAL";
|
|
935
|
+
readonly NEW_KEY_MATERIAL: "NEW_KEY_MATERIAL";
|
|
936
|
+
};
|
|
937
|
+
export type ImportType = (typeof ImportType)[keyof typeof ImportType];
|
|
921
938
|
export interface ImportKeyMaterialRequest {
|
|
922
939
|
KeyId: string | undefined;
|
|
923
940
|
ImportToken: Uint8Array | undefined;
|
|
924
941
|
EncryptedKeyMaterial: Uint8Array | undefined;
|
|
925
942
|
ValidTo?: Date | undefined;
|
|
926
943
|
ExpirationModel?: ExpirationModelType | undefined;
|
|
944
|
+
ImportType?: ImportType | undefined;
|
|
945
|
+
KeyMaterialDescription?: string | undefined;
|
|
946
|
+
KeyMaterialId?: string | undefined;
|
|
947
|
+
}
|
|
948
|
+
export interface ImportKeyMaterialResponse {
|
|
949
|
+
KeyId?: string | undefined;
|
|
950
|
+
KeyMaterialId?: string | undefined;
|
|
927
951
|
}
|
|
928
|
-
export interface ImportKeyMaterialResponse {}
|
|
929
952
|
export declare class IncorrectKeyMaterialException extends __BaseException {
|
|
930
953
|
readonly name: "IncorrectKeyMaterialException";
|
|
931
954
|
readonly $fault: "client";
|
|
@@ -940,6 +963,17 @@ export declare class InvalidImportTokenException extends __BaseException {
|
|
|
940
963
|
opts: __ExceptionOptionType<InvalidImportTokenException, __BaseException>
|
|
941
964
|
);
|
|
942
965
|
}
|
|
966
|
+
export declare const ImportState: {
|
|
967
|
+
readonly IMPORTED: "IMPORTED";
|
|
968
|
+
readonly PENDING_IMPORT: "PENDING_IMPORT";
|
|
969
|
+
};
|
|
970
|
+
export type ImportState = (typeof ImportState)[keyof typeof ImportState];
|
|
971
|
+
export declare const IncludeKeyMaterial: {
|
|
972
|
+
readonly ALL_KEY_MATERIAL: "ALL_KEY_MATERIAL";
|
|
973
|
+
readonly ROTATIONS_ONLY: "ROTATIONS_ONLY";
|
|
974
|
+
};
|
|
975
|
+
export type IncludeKeyMaterial =
|
|
976
|
+
(typeof IncludeKeyMaterial)[keyof typeof IncludeKeyMaterial];
|
|
943
977
|
export declare class InvalidGrantIdException extends __BaseException {
|
|
944
978
|
readonly name: "InvalidGrantIdException";
|
|
945
979
|
readonly $fault: "client";
|
|
@@ -951,6 +985,13 @@ export interface KeyListEntry {
|
|
|
951
985
|
KeyId?: string | undefined;
|
|
952
986
|
KeyArn?: string | undefined;
|
|
953
987
|
}
|
|
988
|
+
export declare const KeyMaterialState: {
|
|
989
|
+
readonly CURRENT: "CURRENT";
|
|
990
|
+
readonly NON_CURRENT: "NON_CURRENT";
|
|
991
|
+
readonly PENDING_ROTATION: "PENDING_ROTATION";
|
|
992
|
+
};
|
|
993
|
+
export type KeyMaterialState =
|
|
994
|
+
(typeof KeyMaterialState)[keyof typeof KeyMaterialState];
|
|
954
995
|
export declare class KMSInvalidMacException extends __BaseException {
|
|
955
996
|
readonly name: "KMSInvalidMacException";
|
|
956
997
|
readonly $fault: "client";
|
|
@@ -999,6 +1040,7 @@ export interface ListKeyPoliciesResponse {
|
|
|
999
1040
|
}
|
|
1000
1041
|
export interface ListKeyRotationsRequest {
|
|
1001
1042
|
KeyId: string | undefined;
|
|
1043
|
+
IncludeKeyMaterial?: IncludeKeyMaterial | undefined;
|
|
1002
1044
|
Limit?: number | undefined;
|
|
1003
1045
|
Marker?: string | undefined;
|
|
1004
1046
|
}
|
|
@@ -1009,6 +1051,12 @@ export declare const RotationType: {
|
|
|
1009
1051
|
export type RotationType = (typeof RotationType)[keyof typeof RotationType];
|
|
1010
1052
|
export interface RotationsListEntry {
|
|
1011
1053
|
KeyId?: string | undefined;
|
|
1054
|
+
KeyMaterialId?: string | undefined;
|
|
1055
|
+
KeyMaterialDescription?: string | undefined;
|
|
1056
|
+
ImportState?: ImportState | undefined;
|
|
1057
|
+
KeyMaterialState?: KeyMaterialState | undefined;
|
|
1058
|
+
ExpirationModel?: ExpirationModelType | undefined;
|
|
1059
|
+
ValidTo?: Date | undefined;
|
|
1012
1060
|
RotationDate?: Date | undefined;
|
|
1013
1061
|
RotationType?: RotationType | undefined;
|
|
1014
1062
|
}
|
|
@@ -1069,6 +1117,8 @@ export interface ReEncryptResponse {
|
|
|
1069
1117
|
KeyId?: string | undefined;
|
|
1070
1118
|
SourceEncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
|
|
1071
1119
|
DestinationEncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
|
|
1120
|
+
SourceKeyMaterialId?: string | undefined;
|
|
1121
|
+
DestinationKeyMaterialId?: string | undefined;
|
|
1072
1122
|
}
|
|
1073
1123
|
export interface ReplicateKeyRequest {
|
|
1074
1124
|
KeyId: string | undefined;
|
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.
|
|
4
|
+
"version": "3.825.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-kms",
|
|
@@ -20,38 +20,38 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.825.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.825.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.821.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.821.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.821.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.825.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.821.0",
|
|
30
30
|
"@aws-sdk/types": "3.821.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.821.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.821.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.825.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.1.4",
|
|
35
|
-
"@smithy/core": "^3.5.
|
|
35
|
+
"@smithy/core": "^3.5.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.0.4",
|
|
37
37
|
"@smithy/hash-node": "^4.0.4",
|
|
38
38
|
"@smithy/invalid-dependency": "^4.0.4",
|
|
39
39
|
"@smithy/middleware-content-length": "^4.0.4",
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.1.
|
|
41
|
-
"@smithy/middleware-retry": "^4.1.
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.1.10",
|
|
41
|
+
"@smithy/middleware-retry": "^4.1.11",
|
|
42
42
|
"@smithy/middleware-serde": "^4.0.8",
|
|
43
43
|
"@smithy/middleware-stack": "^4.0.4",
|
|
44
44
|
"@smithy/node-config-provider": "^4.1.3",
|
|
45
45
|
"@smithy/node-http-handler": "^4.0.6",
|
|
46
46
|
"@smithy/protocol-http": "^5.1.2",
|
|
47
|
-
"@smithy/smithy-client": "^4.4.
|
|
47
|
+
"@smithy/smithy-client": "^4.4.2",
|
|
48
48
|
"@smithy/types": "^4.3.1",
|
|
49
49
|
"@smithy/url-parser": "^4.0.4",
|
|
50
50
|
"@smithy/util-base64": "^4.0.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.0.18",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.0.18",
|
|
55
55
|
"@smithy/util-endpoints": "^3.0.6",
|
|
56
56
|
"@smithy/util-middleware": "^4.0.4",
|
|
57
57
|
"@smithy/util-retry": "^4.0.5",
|