@aws-sdk/client-cloudhsm 3.927.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist-cjs/index.js +486 -614
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/CloudHSMClient.js +2 -0
  4. package/dist-es/commands/AddTagsToResourceCommand.js +3 -9
  5. package/dist-es/commands/CreateHapgCommand.js +3 -9
  6. package/dist-es/commands/CreateHsmCommand.js +3 -9
  7. package/dist-es/commands/CreateLunaClientCommand.js +3 -9
  8. package/dist-es/commands/DeleteHapgCommand.js +3 -9
  9. package/dist-es/commands/DeleteHsmCommand.js +3 -9
  10. package/dist-es/commands/DeleteLunaClientCommand.js +3 -9
  11. package/dist-es/commands/DescribeHapgCommand.js +3 -9
  12. package/dist-es/commands/DescribeHsmCommand.js +3 -9
  13. package/dist-es/commands/DescribeLunaClientCommand.js +3 -9
  14. package/dist-es/commands/GetConfigCommand.js +3 -9
  15. package/dist-es/commands/ListAvailableZonesCommand.js +3 -9
  16. package/dist-es/commands/ListHapgsCommand.js +3 -9
  17. package/dist-es/commands/ListHsmsCommand.js +3 -9
  18. package/dist-es/commands/ListLunaClientsCommand.js +3 -9
  19. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  20. package/dist-es/commands/ModifyHapgCommand.js +3 -9
  21. package/dist-es/commands/ModifyHsmCommand.js +3 -9
  22. package/dist-es/commands/ModifyLunaClientCommand.js +3 -9
  23. package/dist-es/commands/RemoveTagsFromResourceCommand.js +3 -9
  24. package/dist-es/runtimeConfig.shared.js +7 -0
  25. package/dist-es/schemas/schemas_0.js +443 -0
  26. package/dist-types/CloudHSMClient.d.ts +10 -1
  27. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  28. package/dist-types/runtimeConfig.d.ts +1 -0
  29. package/dist-types/runtimeConfig.native.d.ts +1 -0
  30. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  31. package/dist-types/schemas/schemas_0.d.ts +75 -0
  32. package/dist-types/ts3.4/CloudHSMClient.d.ts +4 -0
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  37. package/dist-types/ts3.4/schemas/schemas_0.d.ts +80 -0
  38. package/package.json +5 -5
  39. package/dist-es/protocols/Aws_json1_1.js +0 -469
  40. package/dist-types/protocols/Aws_json1_1.d.ts +0 -182
  41. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -245
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ??
30
+ new protocols_1.AwsJson1_1Protocol({
31
+ defaultNamespace: "com.amazonaws.cloudhsm",
32
+ serviceTarget: "CloudHsmFrontendService",
33
+ awsQueryCompatible: false,
34
+ }),
28
35
  serviceId: config?.serviceId ?? "CloudHSM",
29
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class CloudHSMClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_AddTagsToResourceCommand, se_AddTagsToResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { AddTagsToResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class AddTagsToResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "AddTagsToResource", {})
17
13
  .n("CloudHSMClient", "AddTagsToResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_AddTagsToResourceCommand)
20
- .de(de_AddTagsToResourceCommand)
14
+ .sc(AddTagsToResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreateHapgCommand, se_CreateHapgCommand } from "../protocols/Aws_json1_1";
4
+ import { CreateHapg } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateHapgCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "CreateHapg", {})
17
13
  .n("CloudHSMClient", "CreateHapgCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateHapgCommand)
20
- .de(de_CreateHapgCommand)
14
+ .sc(CreateHapg)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreateHsmCommand, se_CreateHsmCommand } from "../protocols/Aws_json1_1";
4
+ import { CreateHsm } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateHsmCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "CreateHsm", {})
17
13
  .n("CloudHSMClient", "CreateHsmCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateHsmCommand)
20
- .de(de_CreateHsmCommand)
14
+ .sc(CreateHsm)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreateLunaClientCommand, se_CreateLunaClientCommand } from "../protocols/Aws_json1_1";
4
+ import { CreateLunaClient } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateLunaClientCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "CreateLunaClient", {})
17
13
  .n("CloudHSMClient", "CreateLunaClientCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateLunaClientCommand)
20
- .de(de_CreateLunaClientCommand)
14
+ .sc(CreateLunaClient)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteHapgCommand, se_DeleteHapgCommand } from "../protocols/Aws_json1_1";
4
+ import { DeleteHapg } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteHapgCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "DeleteHapg", {})
17
13
  .n("CloudHSMClient", "DeleteHapgCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteHapgCommand)
20
- .de(de_DeleteHapgCommand)
14
+ .sc(DeleteHapg)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteHsmCommand, se_DeleteHsmCommand } from "../protocols/Aws_json1_1";
4
+ import { DeleteHsm } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteHsmCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "DeleteHsm", {})
17
13
  .n("CloudHSMClient", "DeleteHsmCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteHsmCommand)
20
- .de(de_DeleteHsmCommand)
14
+ .sc(DeleteHsm)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteLunaClientCommand, se_DeleteLunaClientCommand } from "../protocols/Aws_json1_1";
4
+ import { DeleteLunaClient } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteLunaClientCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "DeleteLunaClient", {})
17
13
  .n("CloudHSMClient", "DeleteLunaClientCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteLunaClientCommand)
20
- .de(de_DeleteLunaClientCommand)
14
+ .sc(DeleteLunaClient)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DescribeHapgCommand, se_DescribeHapgCommand } from "../protocols/Aws_json1_1";
4
+ import { DescribeHapg } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DescribeHapgCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "DescribeHapg", {})
17
13
  .n("CloudHSMClient", "DescribeHapgCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DescribeHapgCommand)
20
- .de(de_DescribeHapgCommand)
14
+ .sc(DescribeHapg)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DescribeHsmCommand, se_DescribeHsmCommand } from "../protocols/Aws_json1_1";
4
+ import { DescribeHsm } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DescribeHsmCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "DescribeHsm", {})
17
13
  .n("CloudHSMClient", "DescribeHsmCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DescribeHsmCommand)
20
- .de(de_DescribeHsmCommand)
14
+ .sc(DescribeHsm)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DescribeLunaClientCommand, se_DescribeLunaClientCommand } from "../protocols/Aws_json1_1";
4
+ import { DescribeLunaClient } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DescribeLunaClientCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "DescribeLunaClient", {})
17
13
  .n("CloudHSMClient", "DescribeLunaClientCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DescribeLunaClientCommand)
20
- .de(de_DescribeLunaClientCommand)
14
+ .sc(DescribeLunaClient)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetConfigCommand, se_GetConfigCommand } from "../protocols/Aws_json1_1";
4
+ import { GetConfig } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetConfigCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "GetConfig", {})
17
13
  .n("CloudHSMClient", "GetConfigCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetConfigCommand)
20
- .de(de_GetConfigCommand)
14
+ .sc(GetConfig)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListAvailableZonesCommand, se_ListAvailableZonesCommand } from "../protocols/Aws_json1_1";
4
+ import { ListAvailableZones } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListAvailableZonesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "ListAvailableZones", {})
17
13
  .n("CloudHSMClient", "ListAvailableZonesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListAvailableZonesCommand)
20
- .de(de_ListAvailableZonesCommand)
14
+ .sc(ListAvailableZones)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListHapgsCommand, se_ListHapgsCommand } from "../protocols/Aws_json1_1";
4
+ import { ListHapgs } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListHapgsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "ListHapgs", {})
17
13
  .n("CloudHSMClient", "ListHapgsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListHapgsCommand)
20
- .de(de_ListHapgsCommand)
14
+ .sc(ListHapgs)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListHsmsCommand, se_ListHsmsCommand } from "../protocols/Aws_json1_1";
4
+ import { ListHsms } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListHsmsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "ListHsms", {})
17
13
  .n("CloudHSMClient", "ListHsmsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListHsmsCommand)
20
- .de(de_ListHsmsCommand)
14
+ .sc(ListHsms)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListLunaClientsCommand, se_ListLunaClientsCommand } from "../protocols/Aws_json1_1";
4
+ import { ListLunaClients } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListLunaClientsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "ListLunaClients", {})
17
13
  .n("CloudHSMClient", "ListLunaClientsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListLunaClientsCommand)
20
- .de(de_ListLunaClientsCommand)
14
+ .sc(ListLunaClients)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "ListTagsForResource", {})
17
13
  .n("CloudHSMClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ModifyHapgCommand, se_ModifyHapgCommand } from "../protocols/Aws_json1_1";
4
+ import { ModifyHapg } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ModifyHapgCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "ModifyHapg", {})
17
13
  .n("CloudHSMClient", "ModifyHapgCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ModifyHapgCommand)
20
- .de(de_ModifyHapgCommand)
14
+ .sc(ModifyHapg)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ModifyHsmCommand, se_ModifyHsmCommand } from "../protocols/Aws_json1_1";
4
+ import { ModifyHsm } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ModifyHsmCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "ModifyHsm", {})
17
13
  .n("CloudHSMClient", "ModifyHsmCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ModifyHsmCommand)
20
- .de(de_ModifyHsmCommand)
14
+ .sc(ModifyHsm)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ModifyLunaClientCommand, se_ModifyLunaClientCommand } from "../protocols/Aws_json1_1";
4
+ import { ModifyLunaClient } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ModifyLunaClientCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "ModifyLunaClient", {})
17
13
  .n("CloudHSMClient", "ModifyLunaClientCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ModifyLunaClientCommand)
20
- .de(de_ModifyLunaClientCommand)
14
+ .sc(ModifyLunaClient)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_RemoveTagsFromResourceCommand, se_RemoveTagsFromResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { RemoveTagsFromResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class RemoveTagsFromResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("CloudHsmFrontendService", "RemoveTagsFromResource", {})
17
13
  .n("CloudHSMClient", "RemoveTagsFromResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_RemoveTagsFromResourceCommand)
20
- .de(de_RemoveTagsFromResourceCommand)
14
+ .sc(RemoveTagsFromResource)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.cloudhsm",
29
+ serviceTarget: "CloudHsmFrontendService",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "CloudHSM",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,