@aws-sdk/client-kms 3.927.0 → 3.928.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 +1971 -2615
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/KMSClient.js +2 -0
- package/dist-es/commands/CancelKeyDeletionCommand.js +3 -9
- package/dist-es/commands/ConnectCustomKeyStoreCommand.js +3 -9
- package/dist-es/commands/CreateAliasCommand.js +3 -9
- package/dist-es/commands/CreateCustomKeyStoreCommand.js +3 -10
- package/dist-es/commands/CreateGrantCommand.js +3 -9
- package/dist-es/commands/CreateKeyCommand.js +3 -9
- package/dist-es/commands/DecryptCommand.js +3 -10
- package/dist-es/commands/DeleteAliasCommand.js +3 -9
- package/dist-es/commands/DeleteCustomKeyStoreCommand.js +3 -9
- package/dist-es/commands/DeleteImportedKeyMaterialCommand.js +3 -9
- package/dist-es/commands/DeriveSharedSecretCommand.js +3 -10
- package/dist-es/commands/DescribeCustomKeyStoresCommand.js +3 -10
- package/dist-es/commands/DescribeKeyCommand.js +3 -9
- package/dist-es/commands/DisableKeyCommand.js +3 -9
- package/dist-es/commands/DisableKeyRotationCommand.js +3 -9
- package/dist-es/commands/DisconnectCustomKeyStoreCommand.js +3 -9
- package/dist-es/commands/EnableKeyCommand.js +3 -9
- package/dist-es/commands/EnableKeyRotationCommand.js +3 -9
- package/dist-es/commands/EncryptCommand.js +3 -10
- package/dist-es/commands/GenerateDataKeyCommand.js +3 -10
- package/dist-es/commands/GenerateDataKeyPairCommand.js +3 -10
- package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +3 -9
- package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js +3 -9
- package/dist-es/commands/GenerateMacCommand.js +3 -10
- package/dist-es/commands/GenerateRandomCommand.js +3 -10
- package/dist-es/commands/GetKeyPolicyCommand.js +3 -9
- package/dist-es/commands/GetKeyRotationStatusCommand.js +3 -9
- package/dist-es/commands/GetParametersForImportCommand.js +3 -10
- package/dist-es/commands/GetPublicKeyCommand.js +3 -9
- package/dist-es/commands/ImportKeyMaterialCommand.js +3 -9
- package/dist-es/commands/ListAliasesCommand.js +3 -9
- package/dist-es/commands/ListGrantsCommand.js +3 -9
- package/dist-es/commands/ListKeyPoliciesCommand.js +3 -9
- package/dist-es/commands/ListKeyRotationsCommand.js +3 -9
- package/dist-es/commands/ListKeysCommand.js +3 -9
- package/dist-es/commands/ListResourceTagsCommand.js +3 -9
- package/dist-es/commands/ListRetirableGrantsCommand.js +3 -9
- package/dist-es/commands/PutKeyPolicyCommand.js +3 -9
- package/dist-es/commands/ReEncryptCommand.js +3 -9
- package/dist-es/commands/ReplicateKeyCommand.js +3 -9
- package/dist-es/commands/RetireGrantCommand.js +3 -9
- package/dist-es/commands/RevokeGrantCommand.js +3 -9
- package/dist-es/commands/RotateKeyOnDemandCommand.js +3 -9
- package/dist-es/commands/ScheduleKeyDeletionCommand.js +3 -9
- package/dist-es/commands/SignCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateAliasCommand.js +3 -9
- package/dist-es/commands/UpdateCustomKeyStoreCommand.js +3 -10
- package/dist-es/commands/UpdateKeyDescriptionCommand.js +3 -9
- package/dist-es/commands/UpdatePrimaryRegionCommand.js +3 -9
- package/dist-es/commands/VerifyCommand.js +3 -10
- package/dist-es/commands/VerifyMacCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -80
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1728 -0
- package/dist-types/KMSClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -68
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +229 -0
- package/dist-types/ts3.4/KMSClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -49
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +235 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -2008
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -479
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -638
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { TagResource } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class TagResourceCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("TrentService", "TagResource", {})
|
|
17
13
|
.n("KMSClient", "TagResourceCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_TagResourceCommand)
|
|
20
|
-
.de(de_TagResourceCommand)
|
|
14
|
+
.sc(TagResource)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UntagResource } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UntagResourceCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("TrentService", "UntagResource", {})
|
|
17
13
|
.n("KMSClient", "UntagResourceCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UntagResourceCommand)
|
|
20
|
-
.de(de_UntagResourceCommand)
|
|
14
|
+
.sc(UntagResource)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateAlias } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateAliasCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("TrentService", "UpdateAlias", {})
|
|
17
13
|
.n("KMSClient", "UpdateAliasCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateAliasCommand)
|
|
20
|
-
.de(de_UpdateAliasCommand)
|
|
14
|
+
.sc(UpdateAlias)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_UpdateCustomKeyStoreCommand, se_UpdateCustomKeyStoreCommand } from "../protocols/Aws_json1_1";
|
|
4
|
+
import { UpdateCustomKeyStore } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class UpdateCustomKeyStoreCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("TrentService", "UpdateCustomKeyStore", {})
|
|
18
13
|
.n("KMSClient", "UpdateCustomKeyStoreCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_UpdateCustomKeyStoreCommand)
|
|
21
|
-
.de(de_UpdateCustomKeyStoreCommand)
|
|
14
|
+
.sc(UpdateCustomKeyStore)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateKeyDescription } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateKeyDescriptionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("TrentService", "UpdateKeyDescription", {})
|
|
17
13
|
.n("KMSClient", "UpdateKeyDescriptionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateKeyDescriptionCommand)
|
|
20
|
-
.de(de_UpdateKeyDescriptionCommand)
|
|
14
|
+
.sc(UpdateKeyDescription)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdatePrimaryRegion } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdatePrimaryRegionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("TrentService", "UpdatePrimaryRegion", {})
|
|
17
13
|
.n("KMSClient", "UpdatePrimaryRegionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdatePrimaryRegionCommand)
|
|
20
|
-
.de(de_UpdatePrimaryRegionCommand)
|
|
14
|
+
.sc(UpdatePrimaryRegion)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_VerifyCommand, se_VerifyCommand } from "../protocols/Aws_json1_1";
|
|
4
|
+
import { Verify } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class VerifyCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("TrentService", "Verify", {})
|
|
18
13
|
.n("KMSClient", "VerifyCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_VerifyCommand)
|
|
21
|
-
.de(de_VerifyCommand)
|
|
14
|
+
.sc(Verify)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_VerifyMacCommand, se_VerifyMacCommand } from "../protocols/Aws_json1_1";
|
|
4
|
+
import { VerifyMac } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class VerifyMacCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("TrentService", "VerifyMac", {})
|
|
18
13
|
.n("KMSClient", "VerifyMacCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_VerifyMacCommand)
|
|
21
|
-
.de(de_VerifyMacCommand)
|
|
14
|
+
.sc(VerifyMac)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { KMSServiceException as __BaseException } from "./KMSServiceException";
|
|
3
2
|
export const AlgorithmSpec = {
|
|
4
3
|
RSAES_OAEP_SHA_1: "RSAES_OAEP_SHA_1",
|
|
@@ -786,82 +785,3 @@ export const MessageType = {
|
|
|
786
785
|
EXTERNAL_MU: "EXTERNAL_MU",
|
|
787
786
|
RAW: "RAW",
|
|
788
787
|
};
|
|
789
|
-
export const XksProxyAuthenticationCredentialTypeFilterSensitiveLog = (obj) => ({
|
|
790
|
-
...obj,
|
|
791
|
-
...(obj.AccessKeyId && { AccessKeyId: SENSITIVE_STRING }),
|
|
792
|
-
...(obj.RawSecretAccessKey && { RawSecretAccessKey: SENSITIVE_STRING }),
|
|
793
|
-
});
|
|
794
|
-
export const CreateCustomKeyStoreRequestFilterSensitiveLog = (obj) => ({
|
|
795
|
-
...obj,
|
|
796
|
-
...(obj.KeyStorePassword && { KeyStorePassword: SENSITIVE_STRING }),
|
|
797
|
-
...(obj.XksProxyAuthenticationCredential && {
|
|
798
|
-
XksProxyAuthenticationCredential: XksProxyAuthenticationCredentialTypeFilterSensitiveLog(obj.XksProxyAuthenticationCredential),
|
|
799
|
-
}),
|
|
800
|
-
});
|
|
801
|
-
export const XksProxyConfigurationTypeFilterSensitiveLog = (obj) => ({
|
|
802
|
-
...obj,
|
|
803
|
-
...(obj.AccessKeyId && { AccessKeyId: SENSITIVE_STRING }),
|
|
804
|
-
});
|
|
805
|
-
export const CustomKeyStoresListEntryFilterSensitiveLog = (obj) => ({
|
|
806
|
-
...obj,
|
|
807
|
-
...(obj.XksProxyConfiguration && {
|
|
808
|
-
XksProxyConfiguration: XksProxyConfigurationTypeFilterSensitiveLog(obj.XksProxyConfiguration),
|
|
809
|
-
}),
|
|
810
|
-
});
|
|
811
|
-
export const DecryptResponseFilterSensitiveLog = (obj) => ({
|
|
812
|
-
...obj,
|
|
813
|
-
...(obj.Plaintext && { Plaintext: SENSITIVE_STRING }),
|
|
814
|
-
});
|
|
815
|
-
export const DeriveSharedSecretResponseFilterSensitiveLog = (obj) => ({
|
|
816
|
-
...obj,
|
|
817
|
-
...(obj.SharedSecret && { SharedSecret: SENSITIVE_STRING }),
|
|
818
|
-
});
|
|
819
|
-
export const DescribeCustomKeyStoresResponseFilterSensitiveLog = (obj) => ({
|
|
820
|
-
...obj,
|
|
821
|
-
...(obj.CustomKeyStores && {
|
|
822
|
-
CustomKeyStores: obj.CustomKeyStores.map((item) => CustomKeyStoresListEntryFilterSensitiveLog(item)),
|
|
823
|
-
}),
|
|
824
|
-
});
|
|
825
|
-
export const EncryptRequestFilterSensitiveLog = (obj) => ({
|
|
826
|
-
...obj,
|
|
827
|
-
...(obj.Plaintext && { Plaintext: SENSITIVE_STRING }),
|
|
828
|
-
});
|
|
829
|
-
export const GenerateDataKeyResponseFilterSensitiveLog = (obj) => ({
|
|
830
|
-
...obj,
|
|
831
|
-
...(obj.Plaintext && { Plaintext: SENSITIVE_STRING }),
|
|
832
|
-
});
|
|
833
|
-
export const GenerateDataKeyPairResponseFilterSensitiveLog = (obj) => ({
|
|
834
|
-
...obj,
|
|
835
|
-
...(obj.PrivateKeyPlaintext && { PrivateKeyPlaintext: SENSITIVE_STRING }),
|
|
836
|
-
});
|
|
837
|
-
export const GenerateMacRequestFilterSensitiveLog = (obj) => ({
|
|
838
|
-
...obj,
|
|
839
|
-
...(obj.Message && { Message: SENSITIVE_STRING }),
|
|
840
|
-
});
|
|
841
|
-
export const GenerateRandomResponseFilterSensitiveLog = (obj) => ({
|
|
842
|
-
...obj,
|
|
843
|
-
...(obj.Plaintext && { Plaintext: SENSITIVE_STRING }),
|
|
844
|
-
});
|
|
845
|
-
export const GetParametersForImportResponseFilterSensitiveLog = (obj) => ({
|
|
846
|
-
...obj,
|
|
847
|
-
...(obj.PublicKey && { PublicKey: SENSITIVE_STRING }),
|
|
848
|
-
});
|
|
849
|
-
export const SignRequestFilterSensitiveLog = (obj) => ({
|
|
850
|
-
...obj,
|
|
851
|
-
...(obj.Message && { Message: SENSITIVE_STRING }),
|
|
852
|
-
});
|
|
853
|
-
export const UpdateCustomKeyStoreRequestFilterSensitiveLog = (obj) => ({
|
|
854
|
-
...obj,
|
|
855
|
-
...(obj.KeyStorePassword && { KeyStorePassword: SENSITIVE_STRING }),
|
|
856
|
-
...(obj.XksProxyAuthenticationCredential && {
|
|
857
|
-
XksProxyAuthenticationCredential: XksProxyAuthenticationCredentialTypeFilterSensitiveLog(obj.XksProxyAuthenticationCredential),
|
|
858
|
-
}),
|
|
859
|
-
});
|
|
860
|
-
export const VerifyRequestFilterSensitiveLog = (obj) => ({
|
|
861
|
-
...obj,
|
|
862
|
-
...(obj.Message && { Message: SENSITIVE_STRING }),
|
|
863
|
-
});
|
|
864
|
-
export const VerifyMacRequestFilterSensitiveLog = (obj) => ({
|
|
865
|
-
...obj,
|
|
866
|
-
...(obj.Message && { Message: SENSITIVE_STRING }),
|
|
867
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_1Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.kms",
|
|
29
|
+
serviceTarget: "TrentService",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "KMS",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|