@aws-sdk/client-kms 3.927.0 → 3.929.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 (77) hide show
  1. package/dist-cjs/index.js +1971 -2615
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/KMSClient.js +2 -0
  4. package/dist-es/commands/CancelKeyDeletionCommand.js +3 -9
  5. package/dist-es/commands/ConnectCustomKeyStoreCommand.js +3 -9
  6. package/dist-es/commands/CreateAliasCommand.js +3 -9
  7. package/dist-es/commands/CreateCustomKeyStoreCommand.js +3 -10
  8. package/dist-es/commands/CreateGrantCommand.js +3 -9
  9. package/dist-es/commands/CreateKeyCommand.js +3 -9
  10. package/dist-es/commands/DecryptCommand.js +3 -10
  11. package/dist-es/commands/DeleteAliasCommand.js +3 -9
  12. package/dist-es/commands/DeleteCustomKeyStoreCommand.js +3 -9
  13. package/dist-es/commands/DeleteImportedKeyMaterialCommand.js +3 -9
  14. package/dist-es/commands/DeriveSharedSecretCommand.js +3 -10
  15. package/dist-es/commands/DescribeCustomKeyStoresCommand.js +3 -10
  16. package/dist-es/commands/DescribeKeyCommand.js +3 -9
  17. package/dist-es/commands/DisableKeyCommand.js +3 -9
  18. package/dist-es/commands/DisableKeyRotationCommand.js +3 -9
  19. package/dist-es/commands/DisconnectCustomKeyStoreCommand.js +3 -9
  20. package/dist-es/commands/EnableKeyCommand.js +3 -9
  21. package/dist-es/commands/EnableKeyRotationCommand.js +3 -9
  22. package/dist-es/commands/EncryptCommand.js +3 -10
  23. package/dist-es/commands/GenerateDataKeyCommand.js +3 -10
  24. package/dist-es/commands/GenerateDataKeyPairCommand.js +3 -10
  25. package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +3 -9
  26. package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js +3 -9
  27. package/dist-es/commands/GenerateMacCommand.js +3 -10
  28. package/dist-es/commands/GenerateRandomCommand.js +3 -10
  29. package/dist-es/commands/GetKeyPolicyCommand.js +3 -9
  30. package/dist-es/commands/GetKeyRotationStatusCommand.js +3 -9
  31. package/dist-es/commands/GetParametersForImportCommand.js +3 -10
  32. package/dist-es/commands/GetPublicKeyCommand.js +3 -9
  33. package/dist-es/commands/ImportKeyMaterialCommand.js +3 -9
  34. package/dist-es/commands/ListAliasesCommand.js +3 -9
  35. package/dist-es/commands/ListGrantsCommand.js +3 -9
  36. package/dist-es/commands/ListKeyPoliciesCommand.js +3 -9
  37. package/dist-es/commands/ListKeyRotationsCommand.js +3 -9
  38. package/dist-es/commands/ListKeysCommand.js +3 -9
  39. package/dist-es/commands/ListResourceTagsCommand.js +3 -9
  40. package/dist-es/commands/ListRetirableGrantsCommand.js +3 -9
  41. package/dist-es/commands/PutKeyPolicyCommand.js +3 -9
  42. package/dist-es/commands/ReEncryptCommand.js +3 -9
  43. package/dist-es/commands/ReplicateKeyCommand.js +3 -9
  44. package/dist-es/commands/RetireGrantCommand.js +3 -9
  45. package/dist-es/commands/RevokeGrantCommand.js +3 -9
  46. package/dist-es/commands/RotateKeyOnDemandCommand.js +3 -9
  47. package/dist-es/commands/ScheduleKeyDeletionCommand.js +3 -9
  48. package/dist-es/commands/SignCommand.js +3 -10
  49. package/dist-es/commands/TagResourceCommand.js +3 -9
  50. package/dist-es/commands/UntagResourceCommand.js +3 -9
  51. package/dist-es/commands/UpdateAliasCommand.js +3 -9
  52. package/dist-es/commands/UpdateCustomKeyStoreCommand.js +3 -10
  53. package/dist-es/commands/UpdateKeyDescriptionCommand.js +3 -9
  54. package/dist-es/commands/UpdatePrimaryRegionCommand.js +3 -9
  55. package/dist-es/commands/VerifyCommand.js +3 -10
  56. package/dist-es/commands/VerifyMacCommand.js +3 -10
  57. package/dist-es/models/models_0.js +0 -80
  58. package/dist-es/runtimeConfig.shared.js +7 -0
  59. package/dist-es/schemas/schemas_0.js +1728 -0
  60. package/dist-types/KMSClient.d.ts +10 -1
  61. package/dist-types/models/models_0.d.ts +0 -68
  62. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  63. package/dist-types/runtimeConfig.d.ts +1 -0
  64. package/dist-types/runtimeConfig.native.d.ts +1 -0
  65. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  66. package/dist-types/schemas/schemas_0.d.ts +229 -0
  67. package/dist-types/ts3.4/KMSClient.d.ts +4 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +0 -49
  69. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  70. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  71. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  72. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  73. package/dist-types/ts3.4/schemas/schemas_0.d.ts +235 -0
  74. package/package.json +5 -5
  75. package/dist-es/protocols/Aws_json1_1.js +0 -2008
  76. package/dist-types/protocols/Aws_json1_1.d.ts +0 -479
  77. 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 { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
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
- .f(void 0, void 0)
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 { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
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
- .f(void 0, void 0)
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 { de_UpdateAliasCommand, se_UpdateAliasCommand } from "../protocols/Aws_json1_1";
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
- .f(void 0, void 0)
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 { UpdateCustomKeyStoreRequestFilterSensitiveLog, } from "../models/models_0";
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
- .f(UpdateCustomKeyStoreRequestFilterSensitiveLog, void 0)
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 { de_UpdateKeyDescriptionCommand, se_UpdateKeyDescriptionCommand } from "../protocols/Aws_json1_1";
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
- .f(void 0, void 0)
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 { de_UpdatePrimaryRegionCommand, se_UpdatePrimaryRegionCommand } from "../protocols/Aws_json1_1";
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
- .f(void 0, void 0)
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 { VerifyRequestFilterSensitiveLog } from "../models/models_0";
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
- .f(VerifyRequestFilterSensitiveLog, void 0)
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 { VerifyMacRequestFilterSensitiveLog } from "../models/models_0";
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
- .f(VerifyMacRequestFilterSensitiveLog, void 0)
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,