@aws-sdk/client-iotsecuretunneling 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 (41) hide show
  1. package/dist-cjs/commands/CloseTunnelCommand.js +18 -41
  2. package/dist-cjs/commands/DescribeTunnelCommand.js +18 -41
  3. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  4. package/dist-cjs/commands/ListTunnelsCommand.js +18 -41
  5. package/dist-cjs/commands/OpenTunnelCommand.js +18 -41
  6. package/dist-cjs/commands/RotateTunnelAccessTokenCommand.js +18 -41
  7. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  8. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  9. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  10. package/dist-cjs/pagination/ListTunnelsPaginator.js +2 -24
  11. package/dist-es/commands/CloseTunnelCommand.js +18 -41
  12. package/dist-es/commands/DescribeTunnelCommand.js +18 -41
  13. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  14. package/dist-es/commands/ListTunnelsCommand.js +18 -41
  15. package/dist-es/commands/OpenTunnelCommand.js +18 -41
  16. package/dist-es/commands/RotateTunnelAccessTokenCommand.js +18 -41
  17. package/dist-es/commands/TagResourceCommand.js +18 -41
  18. package/dist-es/commands/UntagResourceCommand.js +18 -41
  19. package/dist-es/endpoint/EndpointParameters.js +6 -0
  20. package/dist-es/pagination/ListTunnelsPaginator.js +2 -23
  21. package/dist-types/commands/CloseTunnelCommand.d.ts +6 -21
  22. package/dist-types/commands/DescribeTunnelCommand.d.ts +6 -21
  23. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  24. package/dist-types/commands/ListTunnelsCommand.d.ts +6 -21
  25. package/dist-types/commands/OpenTunnelCommand.d.ts +6 -21
  26. package/dist-types/commands/RotateTunnelAccessTokenCommand.d.ts +6 -21
  27. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  28. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  29. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  30. package/dist-types/pagination/ListTunnelsPaginator.d.ts +1 -1
  31. package/dist-types/ts3.4/commands/CloseTunnelCommand.d.ts +14 -23
  32. package/dist-types/ts3.4/commands/DescribeTunnelCommand.d.ts +14 -23
  33. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  34. package/dist-types/ts3.4/commands/ListTunnelsCommand.d.ts +14 -23
  35. package/dist-types/ts3.4/commands/OpenTunnelCommand.d.ts +14 -23
  36. package/dist-types/ts3.4/commands/RotateTunnelAccessTokenCommand.d.ts +12 -24
  37. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  38. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  39. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  40. package/dist-types/ts3.4/pagination/ListTunnelsPaginator.d.ts +3 -3
  41. 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_CloseTunnelCommand, se_CloseTunnelCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class CloseTunnelCommand 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, CloseTunnelCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IoTSecureTunnelingClient";
26
- const commandName = "CloseTunnelCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "IoTSecuredTunneling",
35
- operation: "CloseTunnel",
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_CloseTunnelCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CloseTunnelCommand(output, context);
46
- }
7
+ export class CloseTunnelCommand 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("IoTSecuredTunneling", "CloseTunnel", {})
19
+ .n("IoTSecureTunnelingClient", "CloseTunnelCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CloseTunnelCommand)
22
+ .de(de_CloseTunnelCommand)
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_DescribeTunnelCommand, se_DescribeTunnelCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DescribeTunnelCommand 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, DescribeTunnelCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IoTSecureTunnelingClient";
26
- const commandName = "DescribeTunnelCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "IoTSecuredTunneling",
35
- operation: "DescribeTunnel",
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_DescribeTunnelCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeTunnelCommand(output, context);
46
- }
7
+ export class DescribeTunnelCommand 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("IoTSecuredTunneling", "DescribeTunnel", {})
19
+ .n("IoTSecureTunnelingClient", "DescribeTunnelCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeTunnelCommand)
22
+ .de(de_DescribeTunnelCommand)
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_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListTagsForResourceCommand 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, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IoTSecureTunnelingClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "IoTSecuredTunneling",
35
- operation: "ListTagsForResource",
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_ListTagsForResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsForResourceCommand(output, context);
46
- }
7
+ export class ListTagsForResourceCommand 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("IoTSecuredTunneling", "ListTagsForResource", {})
19
+ .n("IoTSecureTunnelingClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
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_ListTunnelsCommand, se_ListTunnelsCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListTunnelsCommand 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, ListTunnelsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "IoTSecureTunnelingClient";
26
- const commandName = "ListTunnelsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "IoTSecuredTunneling",
35
- operation: "ListTunnels",
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_ListTunnelsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTunnelsCommand(output, context);
46
- }
7
+ export class ListTunnelsCommand 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("IoTSecuredTunneling", "ListTunnels", {})
19
+ .n("IoTSecureTunnelingClient", "ListTunnelsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTunnelsCommand)
22
+ .de(de_ListTunnelsCommand)
23
+ .build() {
47
24
  }
@@ -1,48 +1,25 @@
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 { OpenTunnelResponseFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_OpenTunnelCommand, se_OpenTunnelCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class OpenTunnelCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, OpenTunnelCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "IoTSecureTunnelingClient";
27
- const commandName = "OpenTunnelCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: OpenTunnelResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "IoTSecuredTunneling",
36
- operation: "OpenTunnel",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_OpenTunnelCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_OpenTunnelCommand(output, context);
47
- }
8
+ export class OpenTunnelCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("IoTSecuredTunneling", "OpenTunnel", {})
20
+ .n("IoTSecureTunnelingClient", "OpenTunnelCommand")
21
+ .f(void 0, OpenTunnelResponseFilterSensitiveLog)
22
+ .ser(se_OpenTunnelCommand)
23
+ .de(de_OpenTunnelCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
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 { RotateTunnelAccessTokenResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_RotateTunnelAccessTokenCommand, se_RotateTunnelAccessTokenCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class RotateTunnelAccessTokenCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, RotateTunnelAccessTokenCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "IoTSecureTunnelingClient";
27
- const commandName = "RotateTunnelAccessTokenCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: RotateTunnelAccessTokenResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "IoTSecuredTunneling",
36
- operation: "RotateTunnelAccessToken",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_RotateTunnelAccessTokenCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_RotateTunnelAccessTokenCommand(output, context);
47
- }
8
+ export class RotateTunnelAccessTokenCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("IoTSecuredTunneling", "RotateTunnelAccessToken", {})
20
+ .n("IoTSecureTunnelingClient", "RotateTunnelAccessTokenCommand")
21
+ .f(void 0, RotateTunnelAccessTokenResponseFilterSensitiveLog)
22
+ .ser(se_RotateTunnelAccessTokenCommand)
23
+ .de(de_RotateTunnelAccessTokenCommand)
24
+ .build() {
48
25
  }
@@ -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_1";
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 = "IoTSecureTunnelingClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "IoTSecuredTunneling",
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("IoTSecuredTunneling", "TagResource", {})
19
+ .n("IoTSecureTunnelingClient", "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_1";
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 = "IoTSecureTunnelingClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "IoTSecuredTunneling",
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("IoTSecuredTunneling", "UntagResource", {})
19
+ .n("IoTSecureTunnelingClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "IoTSecuredTunneling",
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 { ListTunnelsCommand } from "../commands/ListTunnelsCommand";
2
3
  import { IoTSecureTunnelingClient } from "../IoTSecureTunnelingClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTunnelsCommand(input), ...args);
5
- };
6
- export async function* paginateListTunnels(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 IoTSecureTunnelingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IoTSecureTunneling | IoTSecureTunnelingClient");
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 paginateListTunnels = createPaginator(IoTSecureTunnelingClient, ListTunnelsCommand, "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 { IoTSecureTunnelingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTSecureTunnelingClient";
5
4
  import { CloseTunnelRequest, CloseTunnelResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CloseTunnelCommandInput extends CloseTunnelRequest {
21
20
  */
22
21
  export interface CloseTunnelCommandOutput extends CloseTunnelResponse, __MetadataBearer {
23
22
  }
23
+ declare const CloseTunnelCommand_base: {
24
+ new (input: CloseTunnelCommandInput): import("@smithy/smithy-client").CommandImpl<CloseTunnelCommandInput, CloseTunnelCommandOutput, IoTSecureTunnelingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Closes a tunnel identified by the unique tunnel id. When a <code>CloseTunnel</code>
@@ -56,23 +59,5 @@ export interface CloseTunnelCommandOutput extends CloseTunnelResponse, __Metadat
56
59
  * <p>Base exception class for all service exceptions from IoTSecureTunneling service.</p>
57
60
  *
58
61
  */
59
- export declare class CloseTunnelCommand extends $Command<CloseTunnelCommandInput, CloseTunnelCommandOutput, IoTSecureTunnelingClientResolvedConfig> {
60
- readonly input: CloseTunnelCommandInput;
61
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
62
- /**
63
- * @public
64
- */
65
- constructor(input: CloseTunnelCommandInput);
66
- /**
67
- * @internal
68
- */
69
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTSecureTunnelingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CloseTunnelCommandInput, CloseTunnelCommandOutput>;
70
- /**
71
- * @internal
72
- */
73
- private serialize;
74
- /**
75
- * @internal
76
- */
77
- private deserialize;
62
+ export declare class CloseTunnelCommand extends CloseTunnelCommand_base {
78
63
  }