@aws-sdk/client-workspaces-thin-client 3.458.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 (155) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +344 -0
  3. package/dist-cjs/WorkSpacesThin.js +43 -0
  4. package/dist-cjs/WorkSpacesThinClientClient.js +43 -0
  5. package/dist-cjs/commands/CreateEnvironmentCommand.js +52 -0
  6. package/dist-cjs/commands/DeleteDeviceCommand.js +51 -0
  7. package/dist-cjs/commands/DeleteEnvironmentCommand.js +51 -0
  8. package/dist-cjs/commands/DeregisterDeviceCommand.js +51 -0
  9. package/dist-cjs/commands/GetDeviceCommand.js +52 -0
  10. package/dist-cjs/commands/GetEnvironmentCommand.js +52 -0
  11. package/dist-cjs/commands/GetSoftwareSetCommand.js +51 -0
  12. package/dist-cjs/commands/ListDevicesCommand.js +52 -0
  13. package/dist-cjs/commands/ListEnvironmentsCommand.js +52 -0
  14. package/dist-cjs/commands/ListSoftwareSetsCommand.js +51 -0
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +52 -0
  16. package/dist-cjs/commands/TagResourceCommand.js +52 -0
  17. package/dist-cjs/commands/UntagResourceCommand.js +52 -0
  18. package/dist-cjs/commands/UpdateDeviceCommand.js +52 -0
  19. package/dist-cjs/commands/UpdateEnvironmentCommand.js +52 -0
  20. package/dist-cjs/commands/UpdateSoftwareSetCommand.js +51 -0
  21. package/dist-cjs/commands/index.js +19 -0
  22. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  23. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  24. package/dist-cjs/endpoint/ruleset.js +7 -0
  25. package/dist-cjs/extensionConfiguration.js +2 -0
  26. package/dist-cjs/index.js +12 -0
  27. package/dist-cjs/models/WorkSpacesThinClientServiceException.js +12 -0
  28. package/dist-cjs/models/index.js +4 -0
  29. package/dist-cjs/models/models_0.js +287 -0
  30. package/dist-cjs/pagination/Interfaces.js +2 -0
  31. package/dist-cjs/pagination/ListDevicesPaginator.js +29 -0
  32. package/dist-cjs/pagination/ListEnvironmentsPaginator.js +29 -0
  33. package/dist-cjs/pagination/ListSoftwareSetsPaginator.js +29 -0
  34. package/dist-cjs/pagination/index.js +7 -0
  35. package/dist-cjs/protocols/Aws_restJson1.js +1486 -0
  36. package/dist-cjs/runtimeConfig.browser.js +39 -0
  37. package/dist-cjs/runtimeConfig.js +50 -0
  38. package/dist-cjs/runtimeConfig.native.js +15 -0
  39. package/dist-cjs/runtimeConfig.shared.js +24 -0
  40. package/dist-cjs/runtimeExtensions.js +22 -0
  41. package/dist-es/WorkSpacesThin.js +39 -0
  42. package/dist-es/WorkSpacesThinClientClient.js +39 -0
  43. package/dist-es/commands/CreateEnvironmentCommand.js +48 -0
  44. package/dist-es/commands/DeleteDeviceCommand.js +47 -0
  45. package/dist-es/commands/DeleteEnvironmentCommand.js +47 -0
  46. package/dist-es/commands/DeregisterDeviceCommand.js +47 -0
  47. package/dist-es/commands/GetDeviceCommand.js +48 -0
  48. package/dist-es/commands/GetEnvironmentCommand.js +48 -0
  49. package/dist-es/commands/GetSoftwareSetCommand.js +47 -0
  50. package/dist-es/commands/ListDevicesCommand.js +48 -0
  51. package/dist-es/commands/ListEnvironmentsCommand.js +48 -0
  52. package/dist-es/commands/ListSoftwareSetsCommand.js +47 -0
  53. package/dist-es/commands/ListTagsForResourceCommand.js +48 -0
  54. package/dist-es/commands/TagResourceCommand.js +48 -0
  55. package/dist-es/commands/UntagResourceCommand.js +48 -0
  56. package/dist-es/commands/UpdateDeviceCommand.js +48 -0
  57. package/dist-es/commands/UpdateEnvironmentCommand.js +48 -0
  58. package/dist-es/commands/UpdateSoftwareSetCommand.js +47 -0
  59. package/dist-es/commands/index.js +16 -0
  60. package/dist-es/endpoint/EndpointParameters.js +8 -0
  61. package/dist-es/endpoint/endpointResolver.js +8 -0
  62. package/dist-es/endpoint/ruleset.js +4 -0
  63. package/dist-es/extensionConfiguration.js +1 -0
  64. package/dist-es/index.js +7 -0
  65. package/dist-es/models/WorkSpacesThinClientServiceException.js +8 -0
  66. package/dist-es/models/index.js +1 -0
  67. package/dist-es/models/models_0.js +258 -0
  68. package/dist-es/pagination/Interfaces.js +1 -0
  69. package/dist-es/pagination/ListDevicesPaginator.js +25 -0
  70. package/dist-es/pagination/ListEnvironmentsPaginator.js +25 -0
  71. package/dist-es/pagination/ListSoftwareSetsPaginator.js +25 -0
  72. package/dist-es/pagination/index.js +4 -0
  73. package/dist-es/protocols/Aws_restJson1.js +1451 -0
  74. package/dist-es/runtimeConfig.browser.js +34 -0
  75. package/dist-es/runtimeConfig.js +45 -0
  76. package/dist-es/runtimeConfig.native.js +11 -0
  77. package/dist-es/runtimeConfig.shared.js +20 -0
  78. package/dist-es/runtimeExtensions.js +18 -0
  79. package/dist-types/WorkSpacesThin.d.ts +133 -0
  80. package/dist-types/WorkSpacesThinClientClient.d.ts +196 -0
  81. package/dist-types/commands/CreateEnvironmentCommand.d.ts +146 -0
  82. package/dist-types/commands/DeleteDeviceCommand.d.ts +92 -0
  83. package/dist-types/commands/DeleteEnvironmentCommand.d.ts +92 -0
  84. package/dist-types/commands/DeregisterDeviceCommand.d.ts +93 -0
  85. package/dist-types/commands/GetDeviceCommand.d.ts +113 -0
  86. package/dist-types/commands/GetEnvironmentCommand.d.ts +121 -0
  87. package/dist-types/commands/GetSoftwareSetCommand.d.ts +101 -0
  88. package/dist-types/commands/ListDevicesCommand.d.ts +109 -0
  89. package/dist-types/commands/ListEnvironmentsCommand.d.ts +118 -0
  90. package/dist-types/commands/ListSoftwareSetsCommand.d.ts +96 -0
  91. package/dist-types/commands/ListTagsForResourceCommand.d.ts +84 -0
  92. package/dist-types/commands/TagResourceCommand.d.ts +83 -0
  93. package/dist-types/commands/UntagResourceCommand.d.ts +83 -0
  94. package/dist-types/commands/UpdateDeviceCommand.d.ts +112 -0
  95. package/dist-types/commands/UpdateEnvironmentCommand.d.ts +134 -0
  96. package/dist-types/commands/UpdateSoftwareSetCommand.d.ts +87 -0
  97. package/dist-types/commands/index.d.ts +16 -0
  98. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  99. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  100. package/dist-types/endpoint/ruleset.d.ts +2 -0
  101. package/dist-types/extensionConfiguration.d.ts +8 -0
  102. package/dist-types/index.d.ts +26 -0
  103. package/dist-types/models/WorkSpacesThinClientServiceException.d.ts +13 -0
  104. package/dist-types/models/index.d.ts +1 -0
  105. package/dist-types/models/models_0.d.ts +1506 -0
  106. package/dist-types/pagination/Interfaces.d.ts +8 -0
  107. package/dist-types/pagination/ListDevicesPaginator.d.ts +7 -0
  108. package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +7 -0
  109. package/dist-types/pagination/ListSoftwareSetsPaginator.d.ts +7 -0
  110. package/dist-types/pagination/index.d.ts +4 -0
  111. package/dist-types/protocols/Aws_restJson1.d.ts +146 -0
  112. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  113. package/dist-types/runtimeConfig.d.ts +46 -0
  114. package/dist-types/runtimeConfig.native.d.ts +45 -0
  115. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  116. package/dist-types/runtimeExtensions.d.ts +17 -0
  117. package/dist-types/ts3.4/WorkSpacesThin.d.ts +279 -0
  118. package/dist-types/ts3.4/WorkSpacesThinClientClient.d.ts +217 -0
  119. package/dist-types/ts3.4/commands/CreateEnvironmentCommand.d.ts +39 -0
  120. package/dist-types/ts3.4/commands/DeleteDeviceCommand.d.ts +35 -0
  121. package/dist-types/ts3.4/commands/DeleteEnvironmentCommand.d.ts +39 -0
  122. package/dist-types/ts3.4/commands/DeregisterDeviceCommand.d.ts +38 -0
  123. package/dist-types/ts3.4/commands/GetDeviceCommand.d.ts +35 -0
  124. package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +38 -0
  125. package/dist-types/ts3.4/commands/GetSoftwareSetCommand.d.ts +38 -0
  126. package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +35 -0
  127. package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +38 -0
  128. package/dist-types/ts3.4/commands/ListSoftwareSetsCommand.d.ts +38 -0
  129. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  130. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  131. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  132. package/dist-types/ts3.4/commands/UpdateDeviceCommand.d.ts +35 -0
  133. package/dist-types/ts3.4/commands/UpdateEnvironmentCommand.d.ts +39 -0
  134. package/dist-types/ts3.4/commands/UpdateSoftwareSetCommand.d.ts +39 -0
  135. package/dist-types/ts3.4/commands/index.d.ts +16 -0
  136. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  137. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  138. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  139. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  140. package/dist-types/ts3.4/index.d.ts +10 -0
  141. package/dist-types/ts3.4/models/WorkSpacesThinClientServiceException.d.ts +8 -0
  142. package/dist-types/ts3.4/models/index.d.ts +1 -0
  143. package/dist-types/ts3.4/models/models_0.d.ts +440 -0
  144. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  145. package/dist-types/ts3.4/pagination/ListDevicesPaginator.d.ts +11 -0
  146. package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +11 -0
  147. package/dist-types/ts3.4/pagination/ListSoftwareSetsPaginator.d.ts +11 -0
  148. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  149. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +197 -0
  150. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +99 -0
  151. package/dist-types/ts3.4/runtimeConfig.d.ts +99 -0
  152. package/dist-types/ts3.4/runtimeConfig.native.d.ts +90 -0
  153. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  154. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  155. package/package.json +104 -0
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UntagResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
+ class UntagResourceCommand extends smithy_client_1.Command {
12
+ static getEndpointParameterInstructions() {
13
+ return {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
19
+ }
20
+ constructor(input) {
21
+ super();
22
+ this.input = input;
23
+ }
24
+ resolveMiddleware(clientStack, configuration, options) {
25
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
27
+ const stack = clientStack.concat(this.middlewareStack);
28
+ const { logger } = configuration;
29
+ const clientName = "WorkSpacesThinClientClient";
30
+ const commandName = "UntagResourceCommand";
31
+ const handlerExecutionContext = {
32
+ logger,
33
+ clientName,
34
+ commandName,
35
+ inputFilterSensitiveLog: models_0_1.UntagResourceRequestFilterSensitiveLog,
36
+ outputFilterSensitiveLog: (_) => _,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "ThinClient",
39
+ operation: "UntagResource",
40
+ },
41
+ };
42
+ const { requestHandler } = configuration;
43
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
+ }
45
+ serialize(input, context) {
46
+ return (0, Aws_restJson1_1.se_UntagResourceCommand)(input, context);
47
+ }
48
+ deserialize(output, context) {
49
+ return (0, Aws_restJson1_1.de_UntagResourceCommand)(output, context);
50
+ }
51
+ }
52
+ exports.UntagResourceCommand = UntagResourceCommand;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateDeviceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
+ class UpdateDeviceCommand extends smithy_client_1.Command {
12
+ static getEndpointParameterInstructions() {
13
+ return {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
19
+ }
20
+ constructor(input) {
21
+ super();
22
+ this.input = input;
23
+ }
24
+ resolveMiddleware(clientStack, configuration, options) {
25
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateDeviceCommand.getEndpointParameterInstructions()));
27
+ const stack = clientStack.concat(this.middlewareStack);
28
+ const { logger } = configuration;
29
+ const clientName = "WorkSpacesThinClientClient";
30
+ const commandName = "UpdateDeviceCommand";
31
+ const handlerExecutionContext = {
32
+ logger,
33
+ clientName,
34
+ commandName,
35
+ inputFilterSensitiveLog: models_0_1.UpdateDeviceRequestFilterSensitiveLog,
36
+ outputFilterSensitiveLog: models_0_1.UpdateDeviceResponseFilterSensitiveLog,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "ThinClient",
39
+ operation: "UpdateDevice",
40
+ },
41
+ };
42
+ const { requestHandler } = configuration;
43
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
+ }
45
+ serialize(input, context) {
46
+ return (0, Aws_restJson1_1.se_UpdateDeviceCommand)(input, context);
47
+ }
48
+ deserialize(output, context) {
49
+ return (0, Aws_restJson1_1.de_UpdateDeviceCommand)(output, context);
50
+ }
51
+ }
52
+ exports.UpdateDeviceCommand = UpdateDeviceCommand;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateEnvironmentCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
+ class UpdateEnvironmentCommand extends smithy_client_1.Command {
12
+ static getEndpointParameterInstructions() {
13
+ return {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
19
+ }
20
+ constructor(input) {
21
+ super();
22
+ this.input = input;
23
+ }
24
+ resolveMiddleware(clientStack, configuration, options) {
25
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateEnvironmentCommand.getEndpointParameterInstructions()));
27
+ const stack = clientStack.concat(this.middlewareStack);
28
+ const { logger } = configuration;
29
+ const clientName = "WorkSpacesThinClientClient";
30
+ const commandName = "UpdateEnvironmentCommand";
31
+ const handlerExecutionContext = {
32
+ logger,
33
+ clientName,
34
+ commandName,
35
+ inputFilterSensitiveLog: models_0_1.UpdateEnvironmentRequestFilterSensitiveLog,
36
+ outputFilterSensitiveLog: models_0_1.UpdateEnvironmentResponseFilterSensitiveLog,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "ThinClient",
39
+ operation: "UpdateEnvironment",
40
+ },
41
+ };
42
+ const { requestHandler } = configuration;
43
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
+ }
45
+ serialize(input, context) {
46
+ return (0, Aws_restJson1_1.se_UpdateEnvironmentCommand)(input, context);
47
+ }
48
+ deserialize(output, context) {
49
+ return (0, Aws_restJson1_1.de_UpdateEnvironmentCommand)(output, context);
50
+ }
51
+ }
52
+ exports.UpdateEnvironmentCommand = UpdateEnvironmentCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSoftwareSetCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateSoftwareSetCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateSoftwareSetCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "WorkSpacesThinClientClient";
29
+ const commandName = "UpdateSoftwareSetCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "ThinClient",
38
+ operation: "UpdateSoftwareSet",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_UpdateSoftwareSetCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_UpdateSoftwareSetCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateSoftwareSetCommand = UpdateSoftwareSetCommand;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateEnvironmentCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeleteDeviceCommand"), exports);
6
+ tslib_1.__exportStar(require("./DeleteEnvironmentCommand"), exports);
7
+ tslib_1.__exportStar(require("./DeregisterDeviceCommand"), exports);
8
+ tslib_1.__exportStar(require("./GetDeviceCommand"), exports);
9
+ tslib_1.__exportStar(require("./GetEnvironmentCommand"), exports);
10
+ tslib_1.__exportStar(require("./GetSoftwareSetCommand"), exports);
11
+ tslib_1.__exportStar(require("./ListDevicesCommand"), exports);
12
+ tslib_1.__exportStar(require("./ListEnvironmentsCommand"), exports);
13
+ tslib_1.__exportStar(require("./ListSoftwareSetsCommand"), exports);
14
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
15
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
16
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
17
+ tslib_1.__exportStar(require("./UpdateDeviceCommand"), exports);
18
+ tslib_1.__exportStar(require("./UpdateEnvironmentCommand"), exports);
19
+ tslib_1.__exportStar(require("./UpdateSoftwareSetCommand"), exports);
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveClientEndpointParameters = void 0;
4
+ const resolveClientEndpointParameters = (options) => {
5
+ return {
6
+ ...options,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
9
+ defaultSigningName: "thinclient",
10
+ };
11
+ };
12
+ exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultEndpointResolver = void 0;
4
+ const util_endpoints_1 = require("@smithy/util-endpoints");
5
+ const ruleset_1 = require("./ruleset");
6
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
7
+ return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ endpointParams: endpointParams,
9
+ logger: context.logger,
10
+ });
11
+ };
12
+ exports.defaultEndpointResolver = defaultEndpointResolver;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ruleSet = void 0;
4
+ const s = "required", t = "fn", u = "argv", v = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://thinclient-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://thinclient-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://thinclient.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://thinclient.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
7
+ exports.ruleSet = _data;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkSpacesThinClientServiceException = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./WorkSpacesThinClientClient"), exports);
6
+ tslib_1.__exportStar(require("./WorkSpacesThin"), exports);
7
+ tslib_1.__exportStar(require("./commands"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./models"), exports);
10
+ require("@aws-sdk/util-endpoints");
11
+ var WorkSpacesThinClientServiceException_1 = require("./models/WorkSpacesThinClientServiceException");
12
+ Object.defineProperty(exports, "WorkSpacesThinClientServiceException", { enumerable: true, get: function () { return WorkSpacesThinClientServiceException_1.WorkSpacesThinClientServiceException; } });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkSpacesThinClientServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class WorkSpacesThinClientServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, WorkSpacesThinClientServiceException.prototype);
10
+ }
11
+ }
12
+ exports.WorkSpacesThinClientServiceException = WorkSpacesThinClientServiceException;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./models_0"), exports);
@@ -0,0 +1,287 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateEnvironmentResponseFilterSensitiveLog = exports.UpdateEnvironmentRequestFilterSensitiveLog = exports.UpdateDeviceResponseFilterSensitiveLog = exports.UpdateDeviceRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListEnvironmentsResponseFilterSensitiveLog = exports.ListDevicesResponseFilterSensitiveLog = exports.GetEnvironmentResponseFilterSensitiveLog = exports.GetDeviceResponseFilterSensitiveLog = exports.EnvironmentFilterSensitiveLog = exports.DeviceSummaryFilterSensitiveLog = exports.DeviceFilterSensitiveLog = exports.CreateEnvironmentResponseFilterSensitiveLog = exports.EnvironmentSummaryFilterSensitiveLog = exports.EmbeddedTagFilterSensitiveLog = exports.CreateEnvironmentRequestFilterSensitiveLog = exports.InternalServiceException = exports.SoftwareSetValidationStatus = exports.EnvironmentSoftwareSetComplianceStatus = exports.DeviceStatus = exports.SoftwareSetUpdateStatus = exports.DeviceSoftwareSetComplianceStatus = exports.TargetDeviceStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.DesktopType = exports.SoftwareSetUpdateSchedule = exports.SoftwareSetUpdateMode = exports.MaintenanceWindowType = exports.DayOfWeek = exports.ConflictException = exports.ApplyTimeOf = exports.AccessDeniedException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ const WorkSpacesThinClientServiceException_1 = require("./WorkSpacesThinClientServiceException");
6
+ class AccessDeniedException extends WorkSpacesThinClientServiceException_1.WorkSpacesThinClientServiceException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ this.name = "AccessDeniedException";
14
+ this.$fault = "client";
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ }
17
+ }
18
+ exports.AccessDeniedException = AccessDeniedException;
19
+ exports.ApplyTimeOf = {
20
+ DEVICE: "DEVICE",
21
+ UTC: "UTC",
22
+ };
23
+ class ConflictException extends WorkSpacesThinClientServiceException_1.WorkSpacesThinClientServiceException {
24
+ constructor(opts) {
25
+ super({
26
+ name: "ConflictException",
27
+ $fault: "client",
28
+ ...opts,
29
+ });
30
+ this.name = "ConflictException";
31
+ this.$fault = "client";
32
+ Object.setPrototypeOf(this, ConflictException.prototype);
33
+ this.resourceId = opts.resourceId;
34
+ this.resourceType = opts.resourceType;
35
+ }
36
+ }
37
+ exports.ConflictException = ConflictException;
38
+ exports.DayOfWeek = {
39
+ FRIDAY: "FRIDAY",
40
+ MONDAY: "MONDAY",
41
+ SATURDAY: "SATURDAY",
42
+ SUNDAY: "SUNDAY",
43
+ THURSDAY: "THURSDAY",
44
+ TUESDAY: "TUESDAY",
45
+ WEDNESDAY: "WEDNESDAY",
46
+ };
47
+ exports.MaintenanceWindowType = {
48
+ CUSTOM: "CUSTOM",
49
+ SYSTEM: "SYSTEM",
50
+ };
51
+ exports.SoftwareSetUpdateMode = {
52
+ USE_DESIRED: "USE_DESIRED",
53
+ USE_LATEST: "USE_LATEST",
54
+ };
55
+ exports.SoftwareSetUpdateSchedule = {
56
+ APPLY_IMMEDIATELY: "APPLY_IMMEDIATELY",
57
+ USE_MAINTENANCE_WINDOW: "USE_MAINTENANCE_WINDOW",
58
+ };
59
+ exports.DesktopType = {
60
+ APPSTREAM: "appstream",
61
+ WORKSPACES: "workspaces",
62
+ WORKSPACES_WEB: "workspaces-web",
63
+ };
64
+ class InternalServerException extends WorkSpacesThinClientServiceException_1.WorkSpacesThinClientServiceException {
65
+ constructor(opts) {
66
+ super({
67
+ name: "InternalServerException",
68
+ $fault: "server",
69
+ ...opts,
70
+ });
71
+ this.name = "InternalServerException";
72
+ this.$fault = "server";
73
+ Object.setPrototypeOf(this, InternalServerException.prototype);
74
+ this.retryAfterSeconds = opts.retryAfterSeconds;
75
+ }
76
+ }
77
+ exports.InternalServerException = InternalServerException;
78
+ class ResourceNotFoundException extends WorkSpacesThinClientServiceException_1.WorkSpacesThinClientServiceException {
79
+ constructor(opts) {
80
+ super({
81
+ name: "ResourceNotFoundException",
82
+ $fault: "client",
83
+ ...opts,
84
+ });
85
+ this.name = "ResourceNotFoundException";
86
+ this.$fault = "client";
87
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
88
+ this.resourceId = opts.resourceId;
89
+ this.resourceType = opts.resourceType;
90
+ }
91
+ }
92
+ exports.ResourceNotFoundException = ResourceNotFoundException;
93
+ class ServiceQuotaExceededException extends WorkSpacesThinClientServiceException_1.WorkSpacesThinClientServiceException {
94
+ constructor(opts) {
95
+ super({
96
+ name: "ServiceQuotaExceededException",
97
+ $fault: "client",
98
+ ...opts,
99
+ });
100
+ this.name = "ServiceQuotaExceededException";
101
+ this.$fault = "client";
102
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
103
+ this.resourceId = opts.resourceId;
104
+ this.resourceType = opts.resourceType;
105
+ this.serviceCode = opts.serviceCode;
106
+ this.quotaCode = opts.quotaCode;
107
+ }
108
+ }
109
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
110
+ class ThrottlingException extends WorkSpacesThinClientServiceException_1.WorkSpacesThinClientServiceException {
111
+ constructor(opts) {
112
+ super({
113
+ name: "ThrottlingException",
114
+ $fault: "client",
115
+ ...opts,
116
+ });
117
+ this.name = "ThrottlingException";
118
+ this.$fault = "client";
119
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
120
+ this.serviceCode = opts.serviceCode;
121
+ this.quotaCode = opts.quotaCode;
122
+ this.retryAfterSeconds = opts.retryAfterSeconds;
123
+ }
124
+ }
125
+ exports.ThrottlingException = ThrottlingException;
126
+ exports.ValidationExceptionReason = {
127
+ CANNOT_PARSE: "cannotParse",
128
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
129
+ OTHER: "other",
130
+ UNKNOWN_OPERATION: "unknownOperation",
131
+ };
132
+ class ValidationException extends WorkSpacesThinClientServiceException_1.WorkSpacesThinClientServiceException {
133
+ constructor(opts) {
134
+ super({
135
+ name: "ValidationException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ this.name = "ValidationException";
140
+ this.$fault = "client";
141
+ Object.setPrototypeOf(this, ValidationException.prototype);
142
+ this.reason = opts.reason;
143
+ this.fieldList = opts.fieldList;
144
+ }
145
+ }
146
+ exports.ValidationException = ValidationException;
147
+ exports.TargetDeviceStatus = {
148
+ ARCHIVED: "ARCHIVED",
149
+ DEREGISTERED: "DEREGISTERED",
150
+ };
151
+ exports.DeviceSoftwareSetComplianceStatus = {
152
+ COMPLIANT: "COMPLIANT",
153
+ NONE: "NONE",
154
+ NOT_COMPLIANT: "NOT_COMPLIANT",
155
+ };
156
+ exports.SoftwareSetUpdateStatus = {
157
+ AVAILABLE: "AVAILABLE",
158
+ IN_PROGRESS: "IN_PROGRESS",
159
+ UP_TO_DATE: "UP_TO_DATE",
160
+ };
161
+ exports.DeviceStatus = {
162
+ ARCHIVED: "ARCHIVED",
163
+ DEREGISTERED: "DEREGISTERED",
164
+ DEREGISTERING: "DEREGISTERING",
165
+ REGISTERED: "REGISTERED",
166
+ };
167
+ exports.EnvironmentSoftwareSetComplianceStatus = {
168
+ COMPLIANT: "COMPLIANT",
169
+ NOT_COMPLIANT: "NOT_COMPLIANT",
170
+ NO_REGISTERED_DEVICES: "NO_REGISTERED_DEVICES",
171
+ };
172
+ exports.SoftwareSetValidationStatus = {
173
+ NOT_VALIDATED: "NOT_VALIDATED",
174
+ VALIDATED: "VALIDATED",
175
+ };
176
+ class InternalServiceException extends WorkSpacesThinClientServiceException_1.WorkSpacesThinClientServiceException {
177
+ constructor(opts) {
178
+ super({
179
+ name: "InternalServiceException",
180
+ $fault: "server",
181
+ ...opts,
182
+ });
183
+ this.name = "InternalServiceException";
184
+ this.$fault = "server";
185
+ Object.setPrototypeOf(this, InternalServiceException.prototype);
186
+ this.retryAfterSeconds = opts.retryAfterSeconds;
187
+ }
188
+ }
189
+ exports.InternalServiceException = InternalServiceException;
190
+ const CreateEnvironmentRequestFilterSensitiveLog = (obj) => ({
191
+ ...obj,
192
+ ...(obj.name && { name: smithy_client_1.SENSITIVE_STRING }),
193
+ ...(obj.desktopEndpoint && { desktopEndpoint: smithy_client_1.SENSITIVE_STRING }),
194
+ ...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
195
+ });
196
+ exports.CreateEnvironmentRequestFilterSensitiveLog = CreateEnvironmentRequestFilterSensitiveLog;
197
+ const EmbeddedTagFilterSensitiveLog = (obj) => ({
198
+ ...obj,
199
+ });
200
+ exports.EmbeddedTagFilterSensitiveLog = EmbeddedTagFilterSensitiveLog;
201
+ const EnvironmentSummaryFilterSensitiveLog = (obj) => ({
202
+ ...obj,
203
+ ...(obj.name && { name: smithy_client_1.SENSITIVE_STRING }),
204
+ ...(obj.desktopEndpoint && { desktopEndpoint: smithy_client_1.SENSITIVE_STRING }),
205
+ ...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
206
+ });
207
+ exports.EnvironmentSummaryFilterSensitiveLog = EnvironmentSummaryFilterSensitiveLog;
208
+ const CreateEnvironmentResponseFilterSensitiveLog = (obj) => ({
209
+ ...obj,
210
+ ...(obj.environment && { environment: (0, exports.EnvironmentSummaryFilterSensitiveLog)(obj.environment) }),
211
+ });
212
+ exports.CreateEnvironmentResponseFilterSensitiveLog = CreateEnvironmentResponseFilterSensitiveLog;
213
+ const DeviceFilterSensitiveLog = (obj) => ({
214
+ ...obj,
215
+ ...(obj.name && { name: smithy_client_1.SENSITIVE_STRING }),
216
+ ...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
217
+ });
218
+ exports.DeviceFilterSensitiveLog = DeviceFilterSensitiveLog;
219
+ const DeviceSummaryFilterSensitiveLog = (obj) => ({
220
+ ...obj,
221
+ ...(obj.name && { name: smithy_client_1.SENSITIVE_STRING }),
222
+ ...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
223
+ });
224
+ exports.DeviceSummaryFilterSensitiveLog = DeviceSummaryFilterSensitiveLog;
225
+ const EnvironmentFilterSensitiveLog = (obj) => ({
226
+ ...obj,
227
+ ...(obj.name && { name: smithy_client_1.SENSITIVE_STRING }),
228
+ ...(obj.desktopEndpoint && { desktopEndpoint: smithy_client_1.SENSITIVE_STRING }),
229
+ ...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
230
+ });
231
+ exports.EnvironmentFilterSensitiveLog = EnvironmentFilterSensitiveLog;
232
+ const GetDeviceResponseFilterSensitiveLog = (obj) => ({
233
+ ...obj,
234
+ ...(obj.device && { device: (0, exports.DeviceFilterSensitiveLog)(obj.device) }),
235
+ });
236
+ exports.GetDeviceResponseFilterSensitiveLog = GetDeviceResponseFilterSensitiveLog;
237
+ const GetEnvironmentResponseFilterSensitiveLog = (obj) => ({
238
+ ...obj,
239
+ ...(obj.environment && { environment: (0, exports.EnvironmentFilterSensitiveLog)(obj.environment) }),
240
+ });
241
+ exports.GetEnvironmentResponseFilterSensitiveLog = GetEnvironmentResponseFilterSensitiveLog;
242
+ const ListDevicesResponseFilterSensitiveLog = (obj) => ({
243
+ ...obj,
244
+ ...(obj.devices && { devices: obj.devices.map((item) => (0, exports.DeviceSummaryFilterSensitiveLog)(item)) }),
245
+ });
246
+ exports.ListDevicesResponseFilterSensitiveLog = ListDevicesResponseFilterSensitiveLog;
247
+ const ListEnvironmentsResponseFilterSensitiveLog = (obj) => ({
248
+ ...obj,
249
+ ...(obj.environments && { environments: obj.environments.map((item) => (0, exports.EnvironmentSummaryFilterSensitiveLog)(item)) }),
250
+ });
251
+ exports.ListEnvironmentsResponseFilterSensitiveLog = ListEnvironmentsResponseFilterSensitiveLog;
252
+ const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
253
+ ...obj,
254
+ ...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
255
+ });
256
+ exports.ListTagsForResourceResponseFilterSensitiveLog = ListTagsForResourceResponseFilterSensitiveLog;
257
+ const TagResourceRequestFilterSensitiveLog = (obj) => ({
258
+ ...obj,
259
+ ...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
260
+ });
261
+ exports.TagResourceRequestFilterSensitiveLog = TagResourceRequestFilterSensitiveLog;
262
+ const UntagResourceRequestFilterSensitiveLog = (obj) => ({
263
+ ...obj,
264
+ ...(obj.tagKeys && { tagKeys: smithy_client_1.SENSITIVE_STRING }),
265
+ });
266
+ exports.UntagResourceRequestFilterSensitiveLog = UntagResourceRequestFilterSensitiveLog;
267
+ const UpdateDeviceRequestFilterSensitiveLog = (obj) => ({
268
+ ...obj,
269
+ ...(obj.name && { name: smithy_client_1.SENSITIVE_STRING }),
270
+ });
271
+ exports.UpdateDeviceRequestFilterSensitiveLog = UpdateDeviceRequestFilterSensitiveLog;
272
+ const UpdateDeviceResponseFilterSensitiveLog = (obj) => ({
273
+ ...obj,
274
+ ...(obj.device && { device: (0, exports.DeviceSummaryFilterSensitiveLog)(obj.device) }),
275
+ });
276
+ exports.UpdateDeviceResponseFilterSensitiveLog = UpdateDeviceResponseFilterSensitiveLog;
277
+ const UpdateEnvironmentRequestFilterSensitiveLog = (obj) => ({
278
+ ...obj,
279
+ ...(obj.name && { name: smithy_client_1.SENSITIVE_STRING }),
280
+ ...(obj.desktopEndpoint && { desktopEndpoint: smithy_client_1.SENSITIVE_STRING }),
281
+ });
282
+ exports.UpdateEnvironmentRequestFilterSensitiveLog = UpdateEnvironmentRequestFilterSensitiveLog;
283
+ const UpdateEnvironmentResponseFilterSensitiveLog = (obj) => ({
284
+ ...obj,
285
+ ...(obj.environment && { environment: (0, exports.EnvironmentSummaryFilterSensitiveLog)(obj.environment) }),
286
+ });
287
+ exports.UpdateEnvironmentResponseFilterSensitiveLog = UpdateEnvironmentResponseFilterSensitiveLog;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListDevices = void 0;
4
+ const ListDevicesCommand_1 = require("../commands/ListDevicesCommand");
5
+ const WorkSpacesThinClientClient_1 = require("../WorkSpacesThinClientClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListDevicesCommand_1.ListDevicesCommand(input), ...args);
8
+ };
9
+ async function* paginateListDevices(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof WorkSpacesThinClientClient_1.WorkSpacesThinClientClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected WorkSpacesThin | WorkSpacesThinClientClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListDevices = paginateListDevices;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListEnvironments = void 0;
4
+ const ListEnvironmentsCommand_1 = require("../commands/ListEnvironmentsCommand");
5
+ const WorkSpacesThinClientClient_1 = require("../WorkSpacesThinClientClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListEnvironmentsCommand_1.ListEnvironmentsCommand(input), ...args);
8
+ };
9
+ async function* paginateListEnvironments(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof WorkSpacesThinClientClient_1.WorkSpacesThinClientClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected WorkSpacesThin | WorkSpacesThinClientClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListEnvironments = paginateListEnvironments;