@aws-sdk/client-kms 3.1077.0 → 3.1078.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 (170) hide show
  1. package/dist-cjs/index.js +168 -649
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CancelKeyDeletionCommand.js +2 -14
  4. package/dist-es/commands/ConnectCustomKeyStoreCommand.js +2 -14
  5. package/dist-es/commands/CreateAliasCommand.js +2 -14
  6. package/dist-es/commands/CreateCustomKeyStoreCommand.js +2 -14
  7. package/dist-es/commands/CreateGrantCommand.js +2 -14
  8. package/dist-es/commands/CreateKeyCommand.js +2 -14
  9. package/dist-es/commands/DecryptCommand.js +2 -14
  10. package/dist-es/commands/DeleteAliasCommand.js +2 -14
  11. package/dist-es/commands/DeleteCustomKeyStoreCommand.js +2 -14
  12. package/dist-es/commands/DeleteImportedKeyMaterialCommand.js +2 -14
  13. package/dist-es/commands/DeriveSharedSecretCommand.js +2 -14
  14. package/dist-es/commands/DescribeCustomKeyStoresCommand.js +2 -14
  15. package/dist-es/commands/DescribeKeyCommand.js +2 -14
  16. package/dist-es/commands/DisableKeyCommand.js +2 -14
  17. package/dist-es/commands/DisableKeyRotationCommand.js +2 -14
  18. package/dist-es/commands/DisconnectCustomKeyStoreCommand.js +2 -14
  19. package/dist-es/commands/EnableKeyCommand.js +2 -14
  20. package/dist-es/commands/EnableKeyRotationCommand.js +2 -14
  21. package/dist-es/commands/EncryptCommand.js +2 -14
  22. package/dist-es/commands/GenerateDataKeyCommand.js +2 -14
  23. package/dist-es/commands/GenerateDataKeyPairCommand.js +2 -14
  24. package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +2 -14
  25. package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js +2 -14
  26. package/dist-es/commands/GenerateMacCommand.js +2 -14
  27. package/dist-es/commands/GenerateRandomCommand.js +2 -14
  28. package/dist-es/commands/GetKeyLastUsageCommand.js +2 -14
  29. package/dist-es/commands/GetKeyPolicyCommand.js +2 -14
  30. package/dist-es/commands/GetKeyRotationStatusCommand.js +2 -14
  31. package/dist-es/commands/GetParametersForImportCommand.js +2 -14
  32. package/dist-es/commands/GetPublicKeyCommand.js +2 -14
  33. package/dist-es/commands/ImportKeyMaterialCommand.js +2 -14
  34. package/dist-es/commands/ListAliasesCommand.js +2 -14
  35. package/dist-es/commands/ListGrantsCommand.js +2 -14
  36. package/dist-es/commands/ListKeyPoliciesCommand.js +2 -14
  37. package/dist-es/commands/ListKeyRotationsCommand.js +2 -14
  38. package/dist-es/commands/ListKeysCommand.js +2 -14
  39. package/dist-es/commands/ListResourceTagsCommand.js +2 -14
  40. package/dist-es/commands/ListRetirableGrantsCommand.js +2 -14
  41. package/dist-es/commands/PutKeyPolicyCommand.js +2 -14
  42. package/dist-es/commands/ReEncryptCommand.js +2 -14
  43. package/dist-es/commands/ReplicateKeyCommand.js +2 -14
  44. package/dist-es/commands/RetireGrantCommand.js +2 -14
  45. package/dist-es/commands/RevokeGrantCommand.js +2 -14
  46. package/dist-es/commands/RotateKeyOnDemandCommand.js +2 -14
  47. package/dist-es/commands/ScheduleKeyDeletionCommand.js +2 -14
  48. package/dist-es/commands/SignCommand.js +2 -14
  49. package/dist-es/commands/TagResourceCommand.js +2 -14
  50. package/dist-es/commands/UntagResourceCommand.js +2 -14
  51. package/dist-es/commands/UpdateAliasCommand.js +2 -14
  52. package/dist-es/commands/UpdateCustomKeyStoreCommand.js +2 -14
  53. package/dist-es/commands/UpdateKeyDescriptionCommand.js +2 -14
  54. package/dist-es/commands/UpdatePrimaryRegionCommand.js +2 -14
  55. package/dist-es/commands/VerifyCommand.js +2 -14
  56. package/dist-es/commands/VerifyMacCommand.js +2 -14
  57. package/dist-es/index.js +1 -0
  58. package/dist-types/commandBuilder.d.ts +18 -0
  59. package/dist-types/commands/CancelKeyDeletionCommand.d.ts +3 -8
  60. package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +3 -8
  61. package/dist-types/commands/CreateAliasCommand.d.ts +3 -8
  62. package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +3 -8
  63. package/dist-types/commands/CreateGrantCommand.d.ts +3 -8
  64. package/dist-types/commands/CreateKeyCommand.d.ts +3 -8
  65. package/dist-types/commands/DecryptCommand.d.ts +3 -8
  66. package/dist-types/commands/DeleteAliasCommand.d.ts +3 -8
  67. package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +3 -8
  68. package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +3 -8
  69. package/dist-types/commands/DeriveSharedSecretCommand.d.ts +3 -8
  70. package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +3 -8
  71. package/dist-types/commands/DescribeKeyCommand.d.ts +3 -8
  72. package/dist-types/commands/DisableKeyCommand.d.ts +3 -8
  73. package/dist-types/commands/DisableKeyRotationCommand.d.ts +3 -8
  74. package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +3 -8
  75. package/dist-types/commands/EnableKeyCommand.d.ts +3 -8
  76. package/dist-types/commands/EnableKeyRotationCommand.d.ts +3 -8
  77. package/dist-types/commands/EncryptCommand.d.ts +3 -8
  78. package/dist-types/commands/GenerateDataKeyCommand.d.ts +3 -8
  79. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +3 -8
  80. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +3 -8
  81. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +3 -8
  82. package/dist-types/commands/GenerateMacCommand.d.ts +3 -8
  83. package/dist-types/commands/GenerateRandomCommand.d.ts +3 -8
  84. package/dist-types/commands/GetKeyLastUsageCommand.d.ts +3 -8
  85. package/dist-types/commands/GetKeyPolicyCommand.d.ts +3 -8
  86. package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +3 -8
  87. package/dist-types/commands/GetParametersForImportCommand.d.ts +3 -8
  88. package/dist-types/commands/GetPublicKeyCommand.d.ts +3 -8
  89. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +3 -8
  90. package/dist-types/commands/ListAliasesCommand.d.ts +3 -8
  91. package/dist-types/commands/ListGrantsCommand.d.ts +3 -8
  92. package/dist-types/commands/ListKeyPoliciesCommand.d.ts +3 -8
  93. package/dist-types/commands/ListKeyRotationsCommand.d.ts +3 -8
  94. package/dist-types/commands/ListKeysCommand.d.ts +3 -8
  95. package/dist-types/commands/ListResourceTagsCommand.d.ts +3 -8
  96. package/dist-types/commands/ListRetirableGrantsCommand.d.ts +3 -8
  97. package/dist-types/commands/PutKeyPolicyCommand.d.ts +3 -8
  98. package/dist-types/commands/ReEncryptCommand.d.ts +3 -8
  99. package/dist-types/commands/ReplicateKeyCommand.d.ts +3 -8
  100. package/dist-types/commands/RetireGrantCommand.d.ts +3 -8
  101. package/dist-types/commands/RevokeGrantCommand.d.ts +3 -8
  102. package/dist-types/commands/RotateKeyOnDemandCommand.d.ts +3 -8
  103. package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +3 -8
  104. package/dist-types/commands/SignCommand.d.ts +3 -8
  105. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  106. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  107. package/dist-types/commands/UpdateAliasCommand.d.ts +3 -8
  108. package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +3 -8
  109. package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +3 -8
  110. package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +3 -8
  111. package/dist-types/commands/VerifyCommand.d.ts +3 -8
  112. package/dist-types/commands/VerifyMacCommand.d.ts +3 -8
  113. package/dist-types/index.d.ts +1 -0
  114. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  115. package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +7 -16
  116. package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +7 -16
  117. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +7 -16
  118. package/dist-types/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +7 -16
  119. package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +7 -16
  120. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +7 -16
  121. package/dist-types/ts3.4/commands/DecryptCommand.d.ts +7 -16
  122. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +7 -16
  123. package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +7 -16
  124. package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +7 -16
  125. package/dist-types/ts3.4/commands/DeriveSharedSecretCommand.d.ts +7 -16
  126. package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +7 -16
  127. package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +7 -16
  128. package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +7 -16
  129. package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +7 -16
  130. package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +7 -16
  131. package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +7 -16
  132. package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +7 -16
  133. package/dist-types/ts3.4/commands/EncryptCommand.d.ts +7 -16
  134. package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +7 -16
  135. package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +7 -16
  136. package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +7 -16
  137. package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +7 -16
  138. package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +7 -16
  139. package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +7 -16
  140. package/dist-types/ts3.4/commands/GetKeyLastUsageCommand.d.ts +7 -16
  141. package/dist-types/ts3.4/commands/GetKeyPolicyCommand.d.ts +7 -16
  142. package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +7 -16
  143. package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +7 -16
  144. package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +7 -16
  145. package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +7 -16
  146. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +7 -16
  147. package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +7 -16
  148. package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +7 -16
  149. package/dist-types/ts3.4/commands/ListKeyRotationsCommand.d.ts +7 -16
  150. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +7 -16
  151. package/dist-types/ts3.4/commands/ListResourceTagsCommand.d.ts +7 -16
  152. package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +7 -16
  153. package/dist-types/ts3.4/commands/PutKeyPolicyCommand.d.ts +7 -16
  154. package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +7 -16
  155. package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +7 -16
  156. package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +7 -16
  157. package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +7 -16
  158. package/dist-types/ts3.4/commands/RotateKeyOnDemandCommand.d.ts +7 -16
  159. package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +7 -16
  160. package/dist-types/ts3.4/commands/SignCommand.d.ts +7 -16
  161. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  162. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  163. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +7 -16
  164. package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +7 -16
  165. package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +7 -16
  166. package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +7 -16
  167. package/dist-types/ts3.4/commands/VerifyCommand.d.ts +7 -16
  168. package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +7 -16
  169. package/dist-types/ts3.4/index.d.ts +1 -0
  170. package/package.json +8 -8
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListAliases$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListAliasesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "ListAliases", {})
13
- .n("KMSClient", "ListAliasesCommand")
14
- .sc(ListAliases$)
15
- .build() {
3
+ export class ListAliasesCommand extends command(_ep0, _mw0, "ListAliases", ListAliases$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListGrants$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListGrantsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "ListGrants", {})
13
- .n("KMSClient", "ListGrantsCommand")
14
- .sc(ListGrants$)
15
- .build() {
3
+ export class ListGrantsCommand extends command(_ep0, _mw0, "ListGrants", ListGrants$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListKeyPolicies$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListKeyPoliciesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "ListKeyPolicies", {})
13
- .n("KMSClient", "ListKeyPoliciesCommand")
14
- .sc(ListKeyPolicies$)
15
- .build() {
3
+ export class ListKeyPoliciesCommand extends command(_ep0, _mw0, "ListKeyPolicies", ListKeyPolicies$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListKeyRotations$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListKeyRotationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "ListKeyRotations", {})
13
- .n("KMSClient", "ListKeyRotationsCommand")
14
- .sc(ListKeyRotations$)
15
- .build() {
3
+ export class ListKeyRotationsCommand extends command(_ep0, _mw0, "ListKeyRotations", ListKeyRotations$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListKeys$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListKeysCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "ListKeys", {})
13
- .n("KMSClient", "ListKeysCommand")
14
- .sc(ListKeys$)
15
- .build() {
3
+ export class ListKeysCommand extends command(_ep0, _mw0, "ListKeys", ListKeys$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListResourceTags$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListResourceTagsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "ListResourceTags", {})
13
- .n("KMSClient", "ListResourceTagsCommand")
14
- .sc(ListResourceTags$)
15
- .build() {
3
+ export class ListResourceTagsCommand extends command(_ep0, _mw0, "ListResourceTags", ListResourceTags$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListRetirableGrants$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListRetirableGrantsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "ListRetirableGrants", {})
13
- .n("KMSClient", "ListRetirableGrantsCommand")
14
- .sc(ListRetirableGrants$)
15
- .build() {
3
+ export class ListRetirableGrantsCommand extends command(_ep0, _mw0, "ListRetirableGrants", ListRetirableGrants$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutKeyPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutKeyPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "PutKeyPolicy", {})
13
- .n("KMSClient", "PutKeyPolicyCommand")
14
- .sc(PutKeyPolicy$)
15
- .build() {
3
+ export class PutKeyPolicyCommand extends command(_ep0, _mw0, "PutKeyPolicy", PutKeyPolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ReEncrypt$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ReEncryptCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "ReEncrypt", {})
13
- .n("KMSClient", "ReEncryptCommand")
14
- .sc(ReEncrypt$)
15
- .build() {
3
+ export class ReEncryptCommand extends command(_ep0, _mw0, "ReEncrypt", ReEncrypt$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ReplicateKey$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ReplicateKeyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "ReplicateKey", {})
13
- .n("KMSClient", "ReplicateKeyCommand")
14
- .sc(ReplicateKey$)
15
- .build() {
3
+ export class ReplicateKeyCommand extends command(_ep0, _mw0, "ReplicateKey", ReplicateKey$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RetireGrant$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RetireGrantCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "RetireGrant", {})
13
- .n("KMSClient", "RetireGrantCommand")
14
- .sc(RetireGrant$)
15
- .build() {
3
+ export class RetireGrantCommand extends command(_ep0, _mw0, "RetireGrant", RetireGrant$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RevokeGrant$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RevokeGrantCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "RevokeGrant", {})
13
- .n("KMSClient", "RevokeGrantCommand")
14
- .sc(RevokeGrant$)
15
- .build() {
3
+ export class RevokeGrantCommand extends command(_ep0, _mw0, "RevokeGrant", RevokeGrant$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RotateKeyOnDemand$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RotateKeyOnDemandCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "RotateKeyOnDemand", {})
13
- .n("KMSClient", "RotateKeyOnDemandCommand")
14
- .sc(RotateKeyOnDemand$)
15
- .build() {
3
+ export class RotateKeyOnDemandCommand extends command(_ep0, _mw0, "RotateKeyOnDemand", RotateKeyOnDemand$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ScheduleKeyDeletion$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ScheduleKeyDeletionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "ScheduleKeyDeletion", {})
13
- .n("KMSClient", "ScheduleKeyDeletionCommand")
14
- .sc(ScheduleKeyDeletion$)
15
- .build() {
3
+ export class ScheduleKeyDeletionCommand extends command(_ep0, _mw0, "ScheduleKeyDeletion", ScheduleKeyDeletion$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { Sign$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SignCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "Sign", {})
13
- .n("KMSClient", "SignCommand")
14
- .sc(Sign$)
15
- .build() {
3
+ export class SignCommand extends command(_ep0, _mw0, "Sign", Sign$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "TagResource", {})
13
- .n("KMSClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "UntagResource", {})
13
- .n("KMSClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateAlias$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateAliasCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "UpdateAlias", {})
13
- .n("KMSClient", "UpdateAliasCommand")
14
- .sc(UpdateAlias$)
15
- .build() {
3
+ export class UpdateAliasCommand extends command(_ep0, _mw0, "UpdateAlias", UpdateAlias$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateCustomKeyStore$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateCustomKeyStoreCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "UpdateCustomKeyStore", {})
13
- .n("KMSClient", "UpdateCustomKeyStoreCommand")
14
- .sc(UpdateCustomKeyStore$)
15
- .build() {
3
+ export class UpdateCustomKeyStoreCommand extends command(_ep0, _mw0, "UpdateCustomKeyStore", UpdateCustomKeyStore$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateKeyDescription$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateKeyDescriptionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "UpdateKeyDescription", {})
13
- .n("KMSClient", "UpdateKeyDescriptionCommand")
14
- .sc(UpdateKeyDescription$)
15
- .build() {
3
+ export class UpdateKeyDescriptionCommand extends command(_ep0, _mw0, "UpdateKeyDescription", UpdateKeyDescription$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdatePrimaryRegion$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdatePrimaryRegionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "UpdatePrimaryRegion", {})
13
- .n("KMSClient", "UpdatePrimaryRegionCommand")
14
- .sc(UpdatePrimaryRegion$)
15
- .build() {
3
+ export class UpdatePrimaryRegionCommand extends command(_ep0, _mw0, "UpdatePrimaryRegion", UpdatePrimaryRegion$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { Verify$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class VerifyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "Verify", {})
13
- .n("KMSClient", "VerifyCommand")
14
- .sc(Verify$)
15
- .build() {
3
+ export class VerifyCommand extends command(_ep0, _mw0, "Verify", Verify$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { VerifyMac$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class VerifyMacCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TrentService", "VerifyMac", {})
13
- .n("KMSClient", "VerifyMacCommand")
14
- .sc(VerifyMac$)
15
- .build() {
3
+ export class VerifyMacCommand extends command(_ep0, _mw0, "VerifyMac", VerifyMac$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./KMSClient";
2
2
  export * from "./KMS";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./KMSClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
4
2
  import type { CancelKeyDeletionRequest, CancelKeyDeletionResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CancelKeyDeletionCommandInput extends CancelKeyDeletionRequest
22
19
  export interface CancelKeyDeletionCommandOutput extends CancelKeyDeletionResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CancelKeyDeletionCommand_base: {
25
- new (input: CancelKeyDeletionCommandInput): import("@smithy/core/client").CommandImpl<CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CancelKeyDeletionCommandInput): import("@smithy/core/client").CommandImpl<CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CancelKeyDeletionCommandInput): import("@smithy/core/client").CommandImpl<CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput, import("..").KMSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CancelKeyDeletionCommandInput): import("@smithy/core/client").CommandImpl<CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput, import("..").KMSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
4
2
  import type { ConnectCustomKeyStoreRequest, ConnectCustomKeyStoreResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface ConnectCustomKeyStoreCommandInput extends ConnectCustomKeyStore
22
19
  export interface ConnectCustomKeyStoreCommandOutput extends ConnectCustomKeyStoreResponse, __MetadataBearer {
23
20
  }
24
21
  declare const ConnectCustomKeyStoreCommand_base: {
25
- new (input: ConnectCustomKeyStoreCommandInput): import("@smithy/core/client").CommandImpl<ConnectCustomKeyStoreCommandInput, ConnectCustomKeyStoreCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ConnectCustomKeyStoreCommandInput): import("@smithy/core/client").CommandImpl<ConnectCustomKeyStoreCommandInput, ConnectCustomKeyStoreCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ConnectCustomKeyStoreCommandInput): import("@smithy/core/client").CommandImpl<ConnectCustomKeyStoreCommandInput, ConnectCustomKeyStoreCommandOutput, import("..").KMSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ConnectCustomKeyStoreCommandInput): import("@smithy/core/client").CommandImpl<ConnectCustomKeyStoreCommandInput, ConnectCustomKeyStoreCommandOutput, import("..").KMSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Connects or reconnects a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html">custom key store</a> to its backing key store. For an CloudHSM key
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
4
2
  import type { CreateAliasRequest } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateAliasCommandInput extends CreateAliasRequest {
22
19
  export interface CreateAliasCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const CreateAliasCommand_base: {
25
- new (input: CreateAliasCommandInput): import("@smithy/core/client").CommandImpl<CreateAliasCommandInput, CreateAliasCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateAliasCommandInput): import("@smithy/core/client").CommandImpl<CreateAliasCommandInput, CreateAliasCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateAliasCommandInput): import("@smithy/core/client").CommandImpl<CreateAliasCommandInput, CreateAliasCommandOutput, import("..").KMSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateAliasCommandInput): import("@smithy/core/client").CommandImpl<CreateAliasCommandInput, CreateAliasCommandOutput, import("..").KMSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a friendly name for a KMS key. </p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
4
2
  import type { CreateCustomKeyStoreRequest, CreateCustomKeyStoreResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateCustomKeyStoreCommandInput extends CreateCustomKeyStoreRe
22
19
  export interface CreateCustomKeyStoreCommandOutput extends CreateCustomKeyStoreResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateCustomKeyStoreCommand_base: {
25
- new (input: CreateCustomKeyStoreCommandInput): import("@smithy/core/client").CommandImpl<CreateCustomKeyStoreCommandInput, CreateCustomKeyStoreCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateCustomKeyStoreCommandInput): import("@smithy/core/client").CommandImpl<CreateCustomKeyStoreCommandInput, CreateCustomKeyStoreCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateCustomKeyStoreCommandInput): import("@smithy/core/client").CommandImpl<CreateCustomKeyStoreCommandInput, CreateCustomKeyStoreCommandOutput, import("..").KMSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateCustomKeyStoreCommandInput): import("@smithy/core/client").CommandImpl<CreateCustomKeyStoreCommandInput, CreateCustomKeyStoreCommandOutput, import("..").KMSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html">custom key store</a> backed by a key store that you own and manage. When you use a