@aws-sdk/client-payment-cryptography 3.477.0 → 3.481.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 (97) hide show
  1. package/dist-cjs/commands/CreateAliasCommand.js +18 -41
  2. package/dist-cjs/commands/CreateKeyCommand.js +18 -41
  3. package/dist-cjs/commands/DeleteAliasCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteKeyCommand.js +18 -41
  5. package/dist-cjs/commands/ExportKeyCommand.js +18 -41
  6. package/dist-cjs/commands/GetAliasCommand.js +18 -41
  7. package/dist-cjs/commands/GetKeyCommand.js +18 -41
  8. package/dist-cjs/commands/GetParametersForExportCommand.js +18 -41
  9. package/dist-cjs/commands/GetParametersForImportCommand.js +18 -41
  10. package/dist-cjs/commands/GetPublicKeyCertificateCommand.js +18 -41
  11. package/dist-cjs/commands/ImportKeyCommand.js +18 -41
  12. package/dist-cjs/commands/ListAliasesCommand.js +18 -41
  13. package/dist-cjs/commands/ListKeysCommand.js +18 -41
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  15. package/dist-cjs/commands/RestoreKeyCommand.js +18 -41
  16. package/dist-cjs/commands/StartKeyUsageCommand.js +18 -41
  17. package/dist-cjs/commands/StopKeyUsageCommand.js +18 -41
  18. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  19. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  20. package/dist-cjs/commands/UpdateAliasCommand.js +18 -41
  21. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  22. package/dist-cjs/pagination/ListAliasesPaginator.js +2 -24
  23. package/dist-cjs/pagination/ListKeysPaginator.js +2 -24
  24. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -24
  25. package/dist-es/commands/CreateAliasCommand.js +18 -41
  26. package/dist-es/commands/CreateKeyCommand.js +18 -41
  27. package/dist-es/commands/DeleteAliasCommand.js +18 -41
  28. package/dist-es/commands/DeleteKeyCommand.js +18 -41
  29. package/dist-es/commands/ExportKeyCommand.js +18 -41
  30. package/dist-es/commands/GetAliasCommand.js +18 -41
  31. package/dist-es/commands/GetKeyCommand.js +18 -41
  32. package/dist-es/commands/GetParametersForExportCommand.js +18 -41
  33. package/dist-es/commands/GetParametersForImportCommand.js +18 -41
  34. package/dist-es/commands/GetPublicKeyCertificateCommand.js +18 -41
  35. package/dist-es/commands/ImportKeyCommand.js +18 -41
  36. package/dist-es/commands/ListAliasesCommand.js +18 -41
  37. package/dist-es/commands/ListKeysCommand.js +18 -41
  38. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  39. package/dist-es/commands/RestoreKeyCommand.js +18 -41
  40. package/dist-es/commands/StartKeyUsageCommand.js +18 -41
  41. package/dist-es/commands/StopKeyUsageCommand.js +18 -41
  42. package/dist-es/commands/TagResourceCommand.js +18 -41
  43. package/dist-es/commands/UntagResourceCommand.js +18 -41
  44. package/dist-es/commands/UpdateAliasCommand.js +18 -41
  45. package/dist-es/endpoint/EndpointParameters.js +6 -0
  46. package/dist-es/pagination/ListAliasesPaginator.js +2 -23
  47. package/dist-es/pagination/ListKeysPaginator.js +2 -23
  48. package/dist-es/pagination/ListTagsForResourcePaginator.js +2 -23
  49. package/dist-types/commands/CreateAliasCommand.d.ts +6 -21
  50. package/dist-types/commands/CreateKeyCommand.d.ts +6 -21
  51. package/dist-types/commands/DeleteAliasCommand.d.ts +6 -21
  52. package/dist-types/commands/DeleteKeyCommand.d.ts +6 -21
  53. package/dist-types/commands/ExportKeyCommand.d.ts +6 -21
  54. package/dist-types/commands/GetAliasCommand.d.ts +6 -21
  55. package/dist-types/commands/GetKeyCommand.d.ts +6 -21
  56. package/dist-types/commands/GetParametersForExportCommand.d.ts +6 -21
  57. package/dist-types/commands/GetParametersForImportCommand.d.ts +6 -21
  58. package/dist-types/commands/GetPublicKeyCertificateCommand.d.ts +6 -21
  59. package/dist-types/commands/ImportKeyCommand.d.ts +6 -21
  60. package/dist-types/commands/ListAliasesCommand.d.ts +6 -21
  61. package/dist-types/commands/ListKeysCommand.d.ts +6 -21
  62. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  63. package/dist-types/commands/RestoreKeyCommand.d.ts +6 -21
  64. package/dist-types/commands/StartKeyUsageCommand.d.ts +6 -21
  65. package/dist-types/commands/StopKeyUsageCommand.d.ts +6 -21
  66. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  67. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  68. package/dist-types/commands/UpdateAliasCommand.d.ts +6 -21
  69. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  70. package/dist-types/pagination/ListAliasesPaginator.d.ts +1 -1
  71. package/dist-types/pagination/ListKeysPaginator.d.ts +1 -1
  72. package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +14 -23
  74. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +14 -23
  75. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +14 -23
  76. package/dist-types/ts3.4/commands/DeleteKeyCommand.d.ts +14 -23
  77. package/dist-types/ts3.4/commands/ExportKeyCommand.d.ts +14 -23
  78. package/dist-types/ts3.4/commands/GetAliasCommand.d.ts +14 -23
  79. package/dist-types/ts3.4/commands/GetKeyCommand.d.ts +12 -23
  80. package/dist-types/ts3.4/commands/GetParametersForExportCommand.d.ts +12 -24
  81. package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +12 -24
  82. package/dist-types/ts3.4/commands/GetPublicKeyCertificateCommand.d.ts +12 -24
  83. package/dist-types/ts3.4/commands/ImportKeyCommand.d.ts +14 -23
  84. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +14 -23
  86. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/RestoreKeyCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/StartKeyUsageCommand.d.ts +14 -23
  89. package/dist-types/ts3.4/commands/StopKeyUsageCommand.d.ts +14 -23
  90. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  91. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +14 -23
  93. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  94. package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +3 -3
  95. package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +3 -3
  96. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +3 -3
  97. package/package.json +11 -10
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_RestoreKeyCommand, se_RestoreKeyCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class RestoreKeyCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, RestoreKeyCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PaymentCryptographyClient";
26
- const commandName = "RestoreKeyCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PaymentCryptographyControlPlane",
35
- operation: "RestoreKey",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_RestoreKeyCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_RestoreKeyCommand(output, context);
46
- }
7
+ export class RestoreKeyCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PaymentCryptographyControlPlane", "RestoreKey", {})
19
+ .n("PaymentCryptographyClient", "RestoreKeyCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_RestoreKeyCommand)
22
+ .de(de_RestoreKeyCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StartKeyUsageCommand, se_StartKeyUsageCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class StartKeyUsageCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StartKeyUsageCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PaymentCryptographyClient";
26
- const commandName = "StartKeyUsageCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PaymentCryptographyControlPlane",
35
- operation: "StartKeyUsage",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StartKeyUsageCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StartKeyUsageCommand(output, context);
46
- }
7
+ export class StartKeyUsageCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PaymentCryptographyControlPlane", "StartKeyUsage", {})
19
+ .n("PaymentCryptographyClient", "StartKeyUsageCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartKeyUsageCommand)
22
+ .de(de_StartKeyUsageCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StopKeyUsageCommand, se_StopKeyUsageCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class StopKeyUsageCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StopKeyUsageCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PaymentCryptographyClient";
26
- const commandName = "StopKeyUsageCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PaymentCryptographyControlPlane",
35
- operation: "StopKeyUsage",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StopKeyUsageCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StopKeyUsageCommand(output, context);
46
- }
7
+ export class StopKeyUsageCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PaymentCryptographyControlPlane", "StopKeyUsage", {})
19
+ .n("PaymentCryptographyClient", "StopKeyUsageCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StopKeyUsageCommand)
22
+ .de(de_StopKeyUsageCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PaymentCryptographyClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PaymentCryptographyControlPlane",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PaymentCryptographyControlPlane", "TagResource", {})
19
+ .n("PaymentCryptographyClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PaymentCryptographyClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PaymentCryptographyControlPlane",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PaymentCryptographyControlPlane", "UntagResource", {})
19
+ .n("PaymentCryptographyClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateAliasCommand, se_UpdateAliasCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
- export class UpdateAliasCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateAliasCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PaymentCryptographyClient";
26
- const commandName = "UpdateAliasCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PaymentCryptographyControlPlane",
35
- operation: "UpdateAlias",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateAliasCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateAliasCommand(output, context);
46
- }
7
+ export class UpdateAliasCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PaymentCryptographyControlPlane", "UpdateAlias", {})
19
+ .n("PaymentCryptographyClient", "UpdateAliasCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateAliasCommand)
22
+ .de(de_UpdateAliasCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "payment-cryptography",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAliasesCommand } from "../commands/ListAliasesCommand";
2
3
  import { PaymentCryptographyClient } from "../PaymentCryptographyClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAliasesCommand(input), ...args);
5
- };
6
- export async function* paginateListAliases(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof PaymentCryptographyClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected PaymentCryptography | PaymentCryptographyClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListAliases = createPaginator(PaymentCryptographyClient, ListAliasesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListKeysCommand } from "../commands/ListKeysCommand";
2
3
  import { PaymentCryptographyClient } from "../PaymentCryptographyClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListKeysCommand(input), ...args);
5
- };
6
- export async function* paginateListKeys(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof PaymentCryptographyClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected PaymentCryptography | PaymentCryptographyClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListKeys = createPaginator(PaymentCryptographyClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTagsForResourceCommand, } from "../commands/ListTagsForResourceCommand";
2
3
  import { PaymentCryptographyClient } from "../PaymentCryptographyClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTagsForResourceCommand(input), ...args);
5
- };
6
- export async function* paginateListTagsForResource(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof PaymentCryptographyClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected PaymentCryptography | PaymentCryptographyClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListTagsForResource = createPaginator(PaymentCryptographyClient, ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreateAliasInput, CreateAliasOutput } from "../models/models_0";
5
4
  import { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateAliasCommandInput extends CreateAliasInput {
21
20
  */
22
21
  export interface CreateAliasCommandOutput extends CreateAliasOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateAliasCommand_base: {
24
+ new (input: CreateAliasCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAliasCommandInput, CreateAliasCommandOutput, PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates an <i>alias</i>, or a friendly name, for an Amazon Web Services Payment Cryptography key. You can use an alias to identify a key in the console and when you call cryptographic operations such as <a href="https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_EncryptData.html">EncryptData</a> or <a href="https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_DecryptData.html">DecryptData</a>.</p>
@@ -108,23 +111,5 @@ export interface CreateAliasCommandOutput extends CreateAliasOutput, __MetadataB
108
111
  * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
109
112
  *
110
113
  */
111
- export declare class CreateAliasCommand extends $Command<CreateAliasCommandInput, CreateAliasCommandOutput, PaymentCryptographyClientResolvedConfig> {
112
- readonly input: CreateAliasCommandInput;
113
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
114
- /**
115
- * @public
116
- */
117
- constructor(input: CreateAliasCommandInput);
118
- /**
119
- * @internal
120
- */
121
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAliasCommandInput, CreateAliasCommandOutput>;
122
- /**
123
- * @internal
124
- */
125
- private serialize;
126
- /**
127
- * @internal
128
- */
129
- private deserialize;
114
+ export declare class CreateAliasCommand extends CreateAliasCommand_base {
130
115
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreateKeyInput, CreateKeyOutput } from "../models/models_0";
5
4
  import { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateKeyCommandInput extends CreateKeyInput {
21
20
  */
22
21
  export interface CreateKeyCommandOutput extends CreateKeyOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateKeyCommand_base: {
24
+ new (input: CreateKeyCommandInput): import("@smithy/smithy-client").CommandImpl<CreateKeyCommandInput, CreateKeyCommandOutput, PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates an Amazon Web Services Payment Cryptography key, a logical representation of a cryptographic key, that is unique in your account and Amazon Web Services Region. You use keys for cryptographic functions such as encryption and decryption. </p>
@@ -153,23 +156,5 @@ export interface CreateKeyCommandOutput extends CreateKeyOutput, __MetadataBeare
153
156
  * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
154
157
  *
155
158
  */
156
- export declare class CreateKeyCommand extends $Command<CreateKeyCommandInput, CreateKeyCommandOutput, PaymentCryptographyClientResolvedConfig> {
157
- readonly input: CreateKeyCommandInput;
158
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
159
- /**
160
- * @public
161
- */
162
- constructor(input: CreateKeyCommandInput);
163
- /**
164
- * @internal
165
- */
166
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateKeyCommandInput, CreateKeyCommandOutput>;
167
- /**
168
- * @internal
169
- */
170
- private serialize;
171
- /**
172
- * @internal
173
- */
174
- private deserialize;
159
+ export declare class CreateKeyCommand extends CreateKeyCommand_base {
175
160
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { DeleteAliasInput, DeleteAliasOutput } from "../models/models_0";
5
4
  import { PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PaymentCryptographyClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteAliasCommandInput extends DeleteAliasInput {
21
20
  */
22
21
  export interface DeleteAliasCommandOutput extends DeleteAliasOutput, __MetadataBearer {
23
22
  }
23
+ declare const DeleteAliasCommand_base: {
24
+ new (input: DeleteAliasCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAliasCommandInput, DeleteAliasCommandOutput, PaymentCryptographyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes the alias, but doesn't affect the underlying key.</p>
@@ -98,23 +101,5 @@ export interface DeleteAliasCommandOutput extends DeleteAliasOutput, __MetadataB
98
101
  * <p>Base exception class for all service exceptions from PaymentCryptography service.</p>
99
102
  *
100
103
  */
101
- export declare class DeleteAliasCommand extends $Command<DeleteAliasCommandInput, DeleteAliasCommandOutput, PaymentCryptographyClientResolvedConfig> {
102
- readonly input: DeleteAliasCommandInput;
103
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
104
- /**
105
- * @public
106
- */
107
- constructor(input: DeleteAliasCommandInput);
108
- /**
109
- * @internal
110
- */
111
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PaymentCryptographyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteAliasCommandInput, DeleteAliasCommandOutput>;
112
- /**
113
- * @internal
114
- */
115
- private serialize;
116
- /**
117
- * @internal
118
- */
119
- private deserialize;
104
+ export declare class DeleteAliasCommand extends DeleteAliasCommand_base {
120
105
  }