@aws-sdk/client-kms 3.181.0 → 3.183.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 (69) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/KMS.js +202 -209
  3. package/dist-es/KMSClient.js +22 -28
  4. package/dist-es/commands/CancelKeyDeletionCommand.js +21 -28
  5. package/dist-es/commands/ConnectCustomKeyStoreCommand.js +21 -28
  6. package/dist-es/commands/CreateAliasCommand.js +22 -29
  7. package/dist-es/commands/CreateCustomKeyStoreCommand.js +21 -28
  8. package/dist-es/commands/CreateGrantCommand.js +21 -28
  9. package/dist-es/commands/CreateKeyCommand.js +21 -28
  10. package/dist-es/commands/DecryptCommand.js +21 -28
  11. package/dist-es/commands/DeleteAliasCommand.js +22 -29
  12. package/dist-es/commands/DeleteCustomKeyStoreCommand.js +21 -28
  13. package/dist-es/commands/DeleteImportedKeyMaterialCommand.js +22 -29
  14. package/dist-es/commands/DescribeCustomKeyStoresCommand.js +21 -28
  15. package/dist-es/commands/DescribeKeyCommand.js +21 -28
  16. package/dist-es/commands/DisableKeyCommand.js +22 -29
  17. package/dist-es/commands/DisableKeyRotationCommand.js +22 -29
  18. package/dist-es/commands/DisconnectCustomKeyStoreCommand.js +21 -28
  19. package/dist-es/commands/EnableKeyCommand.js +22 -29
  20. package/dist-es/commands/EnableKeyRotationCommand.js +22 -29
  21. package/dist-es/commands/EncryptCommand.js +21 -28
  22. package/dist-es/commands/GenerateDataKeyCommand.js +21 -28
  23. package/dist-es/commands/GenerateDataKeyPairCommand.js +21 -28
  24. package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +21 -28
  25. package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js +21 -28
  26. package/dist-es/commands/GenerateMacCommand.js +21 -28
  27. package/dist-es/commands/GenerateRandomCommand.js +21 -28
  28. package/dist-es/commands/GetKeyPolicyCommand.js +21 -28
  29. package/dist-es/commands/GetKeyRotationStatusCommand.js +21 -28
  30. package/dist-es/commands/GetParametersForImportCommand.js +21 -28
  31. package/dist-es/commands/GetPublicKeyCommand.js +21 -28
  32. package/dist-es/commands/ImportKeyMaterialCommand.js +21 -28
  33. package/dist-es/commands/ListAliasesCommand.js +21 -28
  34. package/dist-es/commands/ListGrantsCommand.js +21 -28
  35. package/dist-es/commands/ListKeyPoliciesCommand.js +21 -28
  36. package/dist-es/commands/ListKeysCommand.js +21 -28
  37. package/dist-es/commands/ListResourceTagsCommand.js +21 -28
  38. package/dist-es/commands/ListRetirableGrantsCommand.js +21 -28
  39. package/dist-es/commands/PutKeyPolicyCommand.js +22 -29
  40. package/dist-es/commands/ReEncryptCommand.js +21 -28
  41. package/dist-es/commands/ReplicateKeyCommand.js +21 -28
  42. package/dist-es/commands/RetireGrantCommand.js +22 -29
  43. package/dist-es/commands/RevokeGrantCommand.js +22 -29
  44. package/dist-es/commands/ScheduleKeyDeletionCommand.js +21 -28
  45. package/dist-es/commands/SignCommand.js +21 -28
  46. package/dist-es/commands/TagResourceCommand.js +22 -29
  47. package/dist-es/commands/UntagResourceCommand.js +22 -29
  48. package/dist-es/commands/UpdateAliasCommand.js +22 -29
  49. package/dist-es/commands/UpdateCustomKeyStoreCommand.js +21 -28
  50. package/dist-es/commands/UpdateKeyDescriptionCommand.js +22 -29
  51. package/dist-es/commands/UpdatePrimaryRegionCommand.js +22 -29
  52. package/dist-es/commands/VerifyCommand.js +21 -28
  53. package/dist-es/commands/VerifyMacCommand.js +21 -28
  54. package/dist-es/endpoints.js +8 -8
  55. package/dist-es/models/KMSServiceException.js +5 -10
  56. package/dist-es/models/models_0.js +699 -502
  57. package/dist-es/pagination/DescribeCustomKeyStoresPaginator.js +25 -68
  58. package/dist-es/pagination/ListAliasesPaginator.js +25 -68
  59. package/dist-es/pagination/ListGrantsPaginator.js +25 -68
  60. package/dist-es/pagination/ListKeyPoliciesPaginator.js +25 -68
  61. package/dist-es/pagination/ListKeysPaginator.js +25 -68
  62. package/dist-es/pagination/ListResourceTagsPaginator.js +25 -68
  63. package/dist-es/pagination/ListRetirableGrantsPaginator.js +25 -68
  64. package/dist-es/protocols/Aws_json1_1.js +3725 -4852
  65. package/dist-es/runtimeConfig.browser.js +26 -12
  66. package/dist-es/runtimeConfig.js +30 -12
  67. package/dist-es/runtimeConfig.native.js +8 -5
  68. package/dist-es/runtimeConfig.shared.js +8 -11
  69. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GenerateDataKeyPairRequestFilterSensitiveLog, GenerateDataKeyPairResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GenerateDataKeyPairCommand, serializeAws_json1_1GenerateDataKeyPairCommand, } from "../protocols/Aws_json1_1";
6
- var GenerateDataKeyPairCommand = (function (_super) {
7
- __extends(GenerateDataKeyPairCommand, _super);
8
- function GenerateDataKeyPairCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GenerateDataKeyPairCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GenerateDataKeyPairCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KMSClient";
18
- var commandName = "GenerateDataKeyPairCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KMSClient";
15
+ const commandName = "GenerateDataKeyPairCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GenerateDataKeyPairRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GenerateDataKeyPairResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GenerateDataKeyPairCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GenerateDataKeyPairCommand(input, context);
33
- };
34
- GenerateDataKeyPairCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GenerateDataKeyPairCommand(output, context);
36
- };
37
- return GenerateDataKeyPairCommand;
38
- }($Command));
39
- export { GenerateDataKeyPairCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GenerateDataKeyPairWithoutPlaintextRequestFilterSensitiveLog, GenerateDataKeyPairWithoutPlaintextResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand, serializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand, } from "../protocols/Aws_json1_1";
6
- var GenerateDataKeyPairWithoutPlaintextCommand = (function (_super) {
7
- __extends(GenerateDataKeyPairWithoutPlaintextCommand, _super);
8
- function GenerateDataKeyPairWithoutPlaintextCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GenerateDataKeyPairWithoutPlaintextCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GenerateDataKeyPairWithoutPlaintextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KMSClient";
18
- var commandName = "GenerateDataKeyPairWithoutPlaintextCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KMSClient";
15
+ const commandName = "GenerateDataKeyPairWithoutPlaintextCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GenerateDataKeyPairWithoutPlaintextRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GenerateDataKeyPairWithoutPlaintextResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GenerateDataKeyPairWithoutPlaintextCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand(input, context);
33
- };
34
- GenerateDataKeyPairWithoutPlaintextCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand(output, context);
36
- };
37
- return GenerateDataKeyPairWithoutPlaintextCommand;
38
- }($Command));
39
- export { GenerateDataKeyPairWithoutPlaintextCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GenerateDataKeyWithoutPlaintextRequestFilterSensitiveLog, GenerateDataKeyWithoutPlaintextResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand, serializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand, } from "../protocols/Aws_json1_1";
6
- var GenerateDataKeyWithoutPlaintextCommand = (function (_super) {
7
- __extends(GenerateDataKeyWithoutPlaintextCommand, _super);
8
- function GenerateDataKeyWithoutPlaintextCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GenerateDataKeyWithoutPlaintextCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GenerateDataKeyWithoutPlaintextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KMSClient";
18
- var commandName = "GenerateDataKeyWithoutPlaintextCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KMSClient";
15
+ const commandName = "GenerateDataKeyWithoutPlaintextCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GenerateDataKeyWithoutPlaintextRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GenerateDataKeyWithoutPlaintextResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GenerateDataKeyWithoutPlaintextCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand(input, context);
33
- };
34
- GenerateDataKeyWithoutPlaintextCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand(output, context);
36
- };
37
- return GenerateDataKeyWithoutPlaintextCommand;
38
- }($Command));
39
- export { GenerateDataKeyWithoutPlaintextCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GenerateMacRequestFilterSensitiveLog, GenerateMacResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GenerateMacCommand, serializeAws_json1_1GenerateMacCommand, } from "../protocols/Aws_json1_1";
6
- var GenerateMacCommand = (function (_super) {
7
- __extends(GenerateMacCommand, _super);
8
- function GenerateMacCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GenerateMacCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GenerateMacCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KMSClient";
18
- var commandName = "GenerateMacCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KMSClient";
15
+ const commandName = "GenerateMacCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GenerateMacRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GenerateMacResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GenerateMacCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GenerateMacCommand(input, context);
33
- };
34
- GenerateMacCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GenerateMacCommand(output, context);
36
- };
37
- return GenerateMacCommand;
38
- }($Command));
39
- export { GenerateMacCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GenerateRandomRequestFilterSensitiveLog, GenerateRandomResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GenerateRandomCommand, serializeAws_json1_1GenerateRandomCommand, } from "../protocols/Aws_json1_1";
6
- var GenerateRandomCommand = (function (_super) {
7
- __extends(GenerateRandomCommand, _super);
8
- function GenerateRandomCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GenerateRandomCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GenerateRandomCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KMSClient";
18
- var commandName = "GenerateRandomCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KMSClient";
15
+ const commandName = "GenerateRandomCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GenerateRandomRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GenerateRandomResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GenerateRandomCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GenerateRandomCommand(input, context);
33
- };
34
- GenerateRandomCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GenerateRandomCommand(output, context);
36
- };
37
- return GenerateRandomCommand;
38
- }($Command));
39
- export { GenerateRandomCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetKeyPolicyRequestFilterSensitiveLog, GetKeyPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetKeyPolicyCommand, serializeAws_json1_1GetKeyPolicyCommand, } from "../protocols/Aws_json1_1";
6
- var GetKeyPolicyCommand = (function (_super) {
7
- __extends(GetKeyPolicyCommand, _super);
8
- function GetKeyPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetKeyPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetKeyPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KMSClient";
18
- var commandName = "GetKeyPolicyCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KMSClient";
15
+ const commandName = "GetKeyPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetKeyPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetKeyPolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetKeyPolicyCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GetKeyPolicyCommand(input, context);
33
- };
34
- GetKeyPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetKeyPolicyCommand(output, context);
36
- };
37
- return GetKeyPolicyCommand;
38
- }($Command));
39
- export { GetKeyPolicyCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetKeyRotationStatusRequestFilterSensitiveLog, GetKeyRotationStatusResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetKeyRotationStatusCommand, serializeAws_json1_1GetKeyRotationStatusCommand, } from "../protocols/Aws_json1_1";
6
- var GetKeyRotationStatusCommand = (function (_super) {
7
- __extends(GetKeyRotationStatusCommand, _super);
8
- function GetKeyRotationStatusCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetKeyRotationStatusCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetKeyRotationStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KMSClient";
18
- var commandName = "GetKeyRotationStatusCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KMSClient";
15
+ const commandName = "GetKeyRotationStatusCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetKeyRotationStatusRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetKeyRotationStatusResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetKeyRotationStatusCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GetKeyRotationStatusCommand(input, context);
33
- };
34
- GetKeyRotationStatusCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetKeyRotationStatusCommand(output, context);
36
- };
37
- return GetKeyRotationStatusCommand;
38
- }($Command));
39
- export { GetKeyRotationStatusCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetParametersForImportRequestFilterSensitiveLog, GetParametersForImportResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetParametersForImportCommand, serializeAws_json1_1GetParametersForImportCommand, } from "../protocols/Aws_json1_1";
6
- var GetParametersForImportCommand = (function (_super) {
7
- __extends(GetParametersForImportCommand, _super);
8
- function GetParametersForImportCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetParametersForImportCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetParametersForImportCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KMSClient";
18
- var commandName = "GetParametersForImportCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KMSClient";
15
+ const commandName = "GetParametersForImportCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetParametersForImportRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetParametersForImportResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetParametersForImportCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GetParametersForImportCommand(input, context);
33
- };
34
- GetParametersForImportCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetParametersForImportCommand(output, context);
36
- };
37
- return GetParametersForImportCommand;
38
- }($Command));
39
- export { GetParametersForImportCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetPublicKeyRequestFilterSensitiveLog, GetPublicKeyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetPublicKeyCommand, serializeAws_json1_1GetPublicKeyCommand, } from "../protocols/Aws_json1_1";
6
- var GetPublicKeyCommand = (function (_super) {
7
- __extends(GetPublicKeyCommand, _super);
8
- function GetPublicKeyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetPublicKeyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetPublicKeyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KMSClient";
18
- var commandName = "GetPublicKeyCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KMSClient";
15
+ const commandName = "GetPublicKeyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetPublicKeyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetPublicKeyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetPublicKeyCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GetPublicKeyCommand(input, context);
33
- };
34
- GetPublicKeyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetPublicKeyCommand(output, context);
36
- };
37
- return GetPublicKeyCommand;
38
- }($Command));
39
- export { GetPublicKeyCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ImportKeyMaterialRequestFilterSensitiveLog, ImportKeyMaterialResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ImportKeyMaterialCommand, serializeAws_json1_1ImportKeyMaterialCommand, } from "../protocols/Aws_json1_1";
6
- var ImportKeyMaterialCommand = (function (_super) {
7
- __extends(ImportKeyMaterialCommand, _super);
8
- function ImportKeyMaterialCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ImportKeyMaterialCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ImportKeyMaterialCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KMSClient";
18
- var commandName = "ImportKeyMaterialCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KMSClient";
15
+ const commandName = "ImportKeyMaterialCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ImportKeyMaterialRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ImportKeyMaterialResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ImportKeyMaterialCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ImportKeyMaterialCommand(input, context);
33
- };
34
- ImportKeyMaterialCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ImportKeyMaterialCommand(output, context);
36
- };
37
- return ImportKeyMaterialCommand;
38
- }($Command));
39
- export { ImportKeyMaterialCommand };
31
+ }
32
+ }