@aws-sdk/client-kms 3.193.0 → 3.195.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 (232) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/KMSClient.js +11 -8
  3. package/dist-cjs/commands/CancelKeyDeletionCommand.js +10 -0
  4. package/dist-cjs/commands/ConnectCustomKeyStoreCommand.js +10 -0
  5. package/dist-cjs/commands/CreateAliasCommand.js +10 -0
  6. package/dist-cjs/commands/CreateCustomKeyStoreCommand.js +10 -0
  7. package/dist-cjs/commands/CreateGrantCommand.js +10 -0
  8. package/dist-cjs/commands/CreateKeyCommand.js +10 -0
  9. package/dist-cjs/commands/DecryptCommand.js +10 -0
  10. package/dist-cjs/commands/DeleteAliasCommand.js +10 -0
  11. package/dist-cjs/commands/DeleteCustomKeyStoreCommand.js +10 -0
  12. package/dist-cjs/commands/DeleteImportedKeyMaterialCommand.js +10 -0
  13. package/dist-cjs/commands/DescribeCustomKeyStoresCommand.js +10 -0
  14. package/dist-cjs/commands/DescribeKeyCommand.js +10 -0
  15. package/dist-cjs/commands/DisableKeyCommand.js +10 -0
  16. package/dist-cjs/commands/DisableKeyRotationCommand.js +10 -0
  17. package/dist-cjs/commands/DisconnectCustomKeyStoreCommand.js +10 -0
  18. package/dist-cjs/commands/EnableKeyCommand.js +10 -0
  19. package/dist-cjs/commands/EnableKeyRotationCommand.js +10 -0
  20. package/dist-cjs/commands/EncryptCommand.js +10 -0
  21. package/dist-cjs/commands/GenerateDataKeyCommand.js +10 -0
  22. package/dist-cjs/commands/GenerateDataKeyPairCommand.js +10 -0
  23. package/dist-cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +10 -0
  24. package/dist-cjs/commands/GenerateDataKeyWithoutPlaintextCommand.js +10 -0
  25. package/dist-cjs/commands/GenerateMacCommand.js +10 -0
  26. package/dist-cjs/commands/GenerateRandomCommand.js +10 -0
  27. package/dist-cjs/commands/GetKeyPolicyCommand.js +10 -0
  28. package/dist-cjs/commands/GetKeyRotationStatusCommand.js +10 -0
  29. package/dist-cjs/commands/GetParametersForImportCommand.js +10 -0
  30. package/dist-cjs/commands/GetPublicKeyCommand.js +10 -0
  31. package/dist-cjs/commands/ImportKeyMaterialCommand.js +10 -0
  32. package/dist-cjs/commands/ListAliasesCommand.js +10 -0
  33. package/dist-cjs/commands/ListGrantsCommand.js +10 -0
  34. package/dist-cjs/commands/ListKeyPoliciesCommand.js +10 -0
  35. package/dist-cjs/commands/ListKeysCommand.js +10 -0
  36. package/dist-cjs/commands/ListResourceTagsCommand.js +10 -0
  37. package/dist-cjs/commands/ListRetirableGrantsCommand.js +10 -0
  38. package/dist-cjs/commands/PutKeyPolicyCommand.js +10 -0
  39. package/dist-cjs/commands/ReEncryptCommand.js +10 -0
  40. package/dist-cjs/commands/ReplicateKeyCommand.js +10 -0
  41. package/dist-cjs/commands/RetireGrantCommand.js +10 -0
  42. package/dist-cjs/commands/RevokeGrantCommand.js +10 -0
  43. package/dist-cjs/commands/ScheduleKeyDeletionCommand.js +10 -0
  44. package/dist-cjs/commands/SignCommand.js +10 -0
  45. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  46. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  47. package/dist-cjs/commands/UpdateAliasCommand.js +10 -0
  48. package/dist-cjs/commands/UpdateCustomKeyStoreCommand.js +10 -0
  49. package/dist-cjs/commands/UpdateKeyDescriptionCommand.js +10 -0
  50. package/dist-cjs/commands/UpdatePrimaryRegionCommand.js +10 -0
  51. package/dist-cjs/commands/VerifyCommand.js +10 -0
  52. package/dist-cjs/commands/VerifyMacCommand.js +10 -0
  53. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  54. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  55. package/dist-cjs/endpoint/ruleset.js +318 -0
  56. package/dist-cjs/runtimeConfig.shared.js +3 -3
  57. package/dist-es/KMSClient.js +12 -9
  58. package/dist-es/commands/CancelKeyDeletionCommand.js +10 -0
  59. package/dist-es/commands/ConnectCustomKeyStoreCommand.js +10 -0
  60. package/dist-es/commands/CreateAliasCommand.js +10 -0
  61. package/dist-es/commands/CreateCustomKeyStoreCommand.js +10 -0
  62. package/dist-es/commands/CreateGrantCommand.js +10 -0
  63. package/dist-es/commands/CreateKeyCommand.js +10 -0
  64. package/dist-es/commands/DecryptCommand.js +10 -0
  65. package/dist-es/commands/DeleteAliasCommand.js +10 -0
  66. package/dist-es/commands/DeleteCustomKeyStoreCommand.js +10 -0
  67. package/dist-es/commands/DeleteImportedKeyMaterialCommand.js +10 -0
  68. package/dist-es/commands/DescribeCustomKeyStoresCommand.js +10 -0
  69. package/dist-es/commands/DescribeKeyCommand.js +10 -0
  70. package/dist-es/commands/DisableKeyCommand.js +10 -0
  71. package/dist-es/commands/DisableKeyRotationCommand.js +10 -0
  72. package/dist-es/commands/DisconnectCustomKeyStoreCommand.js +10 -0
  73. package/dist-es/commands/EnableKeyCommand.js +10 -0
  74. package/dist-es/commands/EnableKeyRotationCommand.js +10 -0
  75. package/dist-es/commands/EncryptCommand.js +10 -0
  76. package/dist-es/commands/GenerateDataKeyCommand.js +10 -0
  77. package/dist-es/commands/GenerateDataKeyPairCommand.js +10 -0
  78. package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +10 -0
  79. package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js +10 -0
  80. package/dist-es/commands/GenerateMacCommand.js +10 -0
  81. package/dist-es/commands/GenerateRandomCommand.js +10 -0
  82. package/dist-es/commands/GetKeyPolicyCommand.js +10 -0
  83. package/dist-es/commands/GetKeyRotationStatusCommand.js +10 -0
  84. package/dist-es/commands/GetParametersForImportCommand.js +10 -0
  85. package/dist-es/commands/GetPublicKeyCommand.js +10 -0
  86. package/dist-es/commands/ImportKeyMaterialCommand.js +10 -0
  87. package/dist-es/commands/ListAliasesCommand.js +10 -0
  88. package/dist-es/commands/ListGrantsCommand.js +10 -0
  89. package/dist-es/commands/ListKeyPoliciesCommand.js +10 -0
  90. package/dist-es/commands/ListKeysCommand.js +10 -0
  91. package/dist-es/commands/ListResourceTagsCommand.js +10 -0
  92. package/dist-es/commands/ListRetirableGrantsCommand.js +10 -0
  93. package/dist-es/commands/PutKeyPolicyCommand.js +10 -0
  94. package/dist-es/commands/ReEncryptCommand.js +10 -0
  95. package/dist-es/commands/ReplicateKeyCommand.js +10 -0
  96. package/dist-es/commands/RetireGrantCommand.js +10 -0
  97. package/dist-es/commands/RevokeGrantCommand.js +10 -0
  98. package/dist-es/commands/ScheduleKeyDeletionCommand.js +10 -0
  99. package/dist-es/commands/SignCommand.js +10 -0
  100. package/dist-es/commands/TagResourceCommand.js +10 -0
  101. package/dist-es/commands/UntagResourceCommand.js +10 -0
  102. package/dist-es/commands/UpdateAliasCommand.js +10 -0
  103. package/dist-es/commands/UpdateCustomKeyStoreCommand.js +10 -0
  104. package/dist-es/commands/UpdateKeyDescriptionCommand.js +10 -0
  105. package/dist-es/commands/UpdatePrimaryRegionCommand.js +10 -0
  106. package/dist-es/commands/VerifyCommand.js +10 -0
  107. package/dist-es/commands/VerifyMacCommand.js +10 -0
  108. package/dist-es/endpoint/EndpointParameters.js +8 -0
  109. package/dist-es/endpoint/endpointResolver.js +8 -0
  110. package/dist-es/endpoint/ruleset.js +315 -0
  111. package/dist-es/runtimeConfig.shared.js +2 -2
  112. package/dist-types/KMSClient.d.ts +6 -9
  113. package/dist-types/commands/CancelKeyDeletionCommand.d.ts +2 -0
  114. package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +2 -0
  115. package/dist-types/commands/CreateAliasCommand.d.ts +2 -0
  116. package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +2 -0
  117. package/dist-types/commands/CreateGrantCommand.d.ts +2 -0
  118. package/dist-types/commands/CreateKeyCommand.d.ts +2 -0
  119. package/dist-types/commands/DecryptCommand.d.ts +2 -0
  120. package/dist-types/commands/DeleteAliasCommand.d.ts +2 -0
  121. package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +2 -0
  122. package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +2 -0
  123. package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +2 -0
  124. package/dist-types/commands/DescribeKeyCommand.d.ts +2 -0
  125. package/dist-types/commands/DisableKeyCommand.d.ts +2 -0
  126. package/dist-types/commands/DisableKeyRotationCommand.d.ts +2 -0
  127. package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +2 -0
  128. package/dist-types/commands/EnableKeyCommand.d.ts +2 -0
  129. package/dist-types/commands/EnableKeyRotationCommand.d.ts +2 -0
  130. package/dist-types/commands/EncryptCommand.d.ts +2 -0
  131. package/dist-types/commands/GenerateDataKeyCommand.d.ts +2 -0
  132. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +2 -0
  133. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +2 -0
  134. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +2 -0
  135. package/dist-types/commands/GenerateMacCommand.d.ts +2 -0
  136. package/dist-types/commands/GenerateRandomCommand.d.ts +2 -0
  137. package/dist-types/commands/GetKeyPolicyCommand.d.ts +2 -0
  138. package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +2 -0
  139. package/dist-types/commands/GetParametersForImportCommand.d.ts +2 -0
  140. package/dist-types/commands/GetPublicKeyCommand.d.ts +2 -0
  141. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +2 -0
  142. package/dist-types/commands/ListAliasesCommand.d.ts +2 -0
  143. package/dist-types/commands/ListGrantsCommand.d.ts +2 -0
  144. package/dist-types/commands/ListKeyPoliciesCommand.d.ts +2 -0
  145. package/dist-types/commands/ListKeysCommand.d.ts +2 -0
  146. package/dist-types/commands/ListResourceTagsCommand.d.ts +2 -0
  147. package/dist-types/commands/ListRetirableGrantsCommand.d.ts +2 -0
  148. package/dist-types/commands/PutKeyPolicyCommand.d.ts +2 -0
  149. package/dist-types/commands/ReEncryptCommand.d.ts +2 -0
  150. package/dist-types/commands/ReplicateKeyCommand.d.ts +2 -0
  151. package/dist-types/commands/RetireGrantCommand.d.ts +2 -0
  152. package/dist-types/commands/RevokeGrantCommand.d.ts +2 -0
  153. package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +2 -0
  154. package/dist-types/commands/SignCommand.d.ts +2 -0
  155. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  156. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  157. package/dist-types/commands/UpdateAliasCommand.d.ts +2 -0
  158. package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +2 -0
  159. package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +2 -0
  160. package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +2 -0
  161. package/dist-types/commands/VerifyCommand.d.ts +2 -0
  162. package/dist-types/commands/VerifyMacCommand.d.ts +2 -0
  163. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  164. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  165. package/dist-types/endpoint/ruleset.d.ts +2 -0
  166. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  167. package/dist-types/runtimeConfig.d.ts +4 -2
  168. package/dist-types/runtimeConfig.native.d.ts +4 -2
  169. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  170. package/dist-types/ts3.4/KMSClient.d.ts +15 -8
  171. package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +2 -0
  172. package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +2 -0
  173. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +2 -0
  174. package/dist-types/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +2 -0
  175. package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +2 -0
  176. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +2 -0
  177. package/dist-types/ts3.4/commands/DecryptCommand.d.ts +2 -0
  178. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +2 -0
  179. package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +2 -0
  180. package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +2 -0
  181. package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +2 -0
  182. package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +2 -0
  183. package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +2 -0
  184. package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +2 -0
  185. package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +2 -0
  186. package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +2 -0
  187. package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +2 -0
  188. package/dist-types/ts3.4/commands/EncryptCommand.d.ts +2 -0
  189. package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +2 -0
  190. package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +2 -0
  191. package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +2 -0
  192. package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +2 -0
  193. package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +2 -0
  194. package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +2 -0
  195. package/dist-types/ts3.4/commands/GetKeyPolicyCommand.d.ts +2 -0
  196. package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +2 -0
  197. package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +2 -0
  198. package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +2 -0
  199. package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +2 -0
  200. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +2 -0
  201. package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +2 -0
  202. package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +2 -0
  203. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +2 -0
  204. package/dist-types/ts3.4/commands/ListResourceTagsCommand.d.ts +2 -0
  205. package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +2 -0
  206. package/dist-types/ts3.4/commands/PutKeyPolicyCommand.d.ts +2 -0
  207. package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +2 -0
  208. package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +2 -0
  209. package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +2 -0
  210. package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +2 -0
  211. package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +2 -0
  212. package/dist-types/ts3.4/commands/SignCommand.d.ts +2 -0
  213. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  214. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  215. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +2 -0
  216. package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +2 -0
  217. package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +2 -0
  218. package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +2 -0
  219. package/dist-types/ts3.4/commands/VerifyCommand.d.ts +2 -0
  220. package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +2 -0
  221. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  222. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  223. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  224. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  225. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  226. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  227. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  228. package/package.json +4 -2
  229. package/dist-cjs/endpoints.js +0 -383
  230. package/dist-es/endpoints.js +0 -379
  231. package/dist-types/endpoints.d.ts +0 -2
  232. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateKeyRequestFilterSensitiveLog, CreateKeyResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class CreateKeyCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateKeyCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DecryptRequestFilterSensitiveLog, DecryptResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DecryptCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DecryptCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteAliasRequestFilterSensitiveLog } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DeleteAliasCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteAliasCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteCustomKeyStoreRequestFilterSensitiveLog, DeleteCustomKeyStoreResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DeleteCustomKeyStoreCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteCustomKeyStoreCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteImportedKeyMaterialRequestFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DeleteImportedKeyMaterialCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteImportedKeyMaterialCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeCustomKeyStoresRequestFilterSensitiveLog, DescribeCustomKeyStoresResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeCustomKeyStoresCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeCustomKeyStoresCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeKeyRequestFilterSensitiveLog, DescribeKeyResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeKeyCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeKeyCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DisableKeyRequestFilterSensitiveLog } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DisableKeyCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisableKeyCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DisableKeyRotationRequestFilterSensitiveLog } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DisableKeyRotationCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisableKeyRotationCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DisconnectCustomKeyStoreRequestFilterSensitiveLog, DisconnectCustomKeyStoreResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DisconnectCustomKeyStoreCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisconnectCustomKeyStoreCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { EnableKeyRequestFilterSensitiveLog } from "../models/models_0";
@@ -7,8 +8,17 @@ export class EnableKeyCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, EnableKeyCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { EnableKeyRotationRequestFilterSensitiveLog } from "../models/models_0";
@@ -7,8 +8,17 @@ export class EnableKeyRotationCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, EnableKeyRotationCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { EncryptRequestFilterSensitiveLog, EncryptResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class EncryptCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, EncryptCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GenerateDataKeyRequestFilterSensitiveLog, GenerateDataKeyResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GenerateDataKeyCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GenerateDataKeyCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GenerateDataKeyPairRequestFilterSensitiveLog, GenerateDataKeyPairResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GenerateDataKeyPairCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GenerateDataKeyPairCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GenerateDataKeyPairWithoutPlaintextRequestFilterSensitiveLog, GenerateDataKeyPairWithoutPlaintextResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GenerateDataKeyPairWithoutPlaintextCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GenerateDataKeyPairWithoutPlaintextCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GenerateDataKeyWithoutPlaintextRequestFilterSensitiveLog, GenerateDataKeyWithoutPlaintextResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GenerateDataKeyWithoutPlaintextCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GenerateDataKeyWithoutPlaintextCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GenerateMacRequestFilterSensitiveLog, GenerateMacResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GenerateMacCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GenerateMacCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GenerateRandomRequestFilterSensitiveLog, GenerateRandomResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GenerateRandomCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GenerateRandomCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetKeyPolicyRequestFilterSensitiveLog, GetKeyPolicyResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GetKeyPolicyCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetKeyPolicyCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetKeyRotationStatusRequestFilterSensitiveLog, GetKeyRotationStatusResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GetKeyRotationStatusCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetKeyRotationStatusCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetParametersForImportRequestFilterSensitiveLog, GetParametersForImportResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GetParametersForImportCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetParametersForImportCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetPublicKeyRequestFilterSensitiveLog, GetPublicKeyResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class GetPublicKeyCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetPublicKeyCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ImportKeyMaterialRequestFilterSensitiveLog, ImportKeyMaterialResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class ImportKeyMaterialCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ImportKeyMaterialCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListAliasesRequestFilterSensitiveLog, ListAliasesResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class ListAliasesCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListAliasesCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListGrantsRequestFilterSensitiveLog, ListGrantsResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class ListGrantsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListGrantsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListKeyPoliciesRequestFilterSensitiveLog, ListKeyPoliciesResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class ListKeyPoliciesCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListKeyPoliciesCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "KMSClient";