@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,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { ListEnvironmentsResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_ListEnvironmentsCommand, se_ListEnvironmentsCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class ListEnvironmentsCommand 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, ListEnvironmentsCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WorkSpacesThinClientClient";
27
+ const commandName = "ListEnvironmentsCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: ListEnvironmentsResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "ThinClient",
36
+ operation: "ListEnvironments",
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_ListEnvironmentsCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_ListEnvironmentsCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ListSoftwareSetsCommand, se_ListSoftwareSetsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListSoftwareSetsCommand 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, ListSoftwareSetsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "WorkSpacesThinClientClient";
26
+ const commandName = "ListSoftwareSetsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "ThinClient",
35
+ operation: "ListSoftwareSets",
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_ListSoftwareSetsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ListSoftwareSetsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class ListTagsForResourceCommand 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, ListTagsForResourceCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WorkSpacesThinClientClient";
27
+ const commandName = "ListTagsForResourceCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "ThinClient",
36
+ operation: "ListTagsForResource",
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_ListTagsForResourceCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_ListTagsForResourceCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { TagResourceRequestFilterSensitiveLog } from "../models/models_0";
6
+ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class TagResourceCommand 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, TagResourceCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WorkSpacesThinClientClient";
27
+ const commandName = "TagResourceCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "ThinClient",
36
+ operation: "TagResource",
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_TagResourceCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_TagResourceCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { UntagResourceRequestFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class UntagResourceCommand 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, UntagResourceCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WorkSpacesThinClientClient";
27
+ const commandName = "UntagResourceCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "ThinClient",
36
+ operation: "UntagResource",
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_UntagResourceCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_UntagResourceCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { UpdateDeviceRequestFilterSensitiveLog, UpdateDeviceResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_UpdateDeviceCommand, se_UpdateDeviceCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class UpdateDeviceCommand 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, UpdateDeviceCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WorkSpacesThinClientClient";
27
+ const commandName = "UpdateDeviceCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: UpdateDeviceRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: UpdateDeviceResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "ThinClient",
36
+ operation: "UpdateDevice",
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_UpdateDeviceCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_UpdateDeviceCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { UpdateEnvironmentRequestFilterSensitiveLog, UpdateEnvironmentResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_UpdateEnvironmentCommand, se_UpdateEnvironmentCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class UpdateEnvironmentCommand 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, UpdateEnvironmentCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WorkSpacesThinClientClient";
27
+ const commandName = "UpdateEnvironmentCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: UpdateEnvironmentRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: UpdateEnvironmentResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "ThinClient",
36
+ operation: "UpdateEnvironment",
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_UpdateEnvironmentCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_UpdateEnvironmentCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_UpdateSoftwareSetCommand, se_UpdateSoftwareSetCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateSoftwareSetCommand 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, UpdateSoftwareSetCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "WorkSpacesThinClientClient";
26
+ const commandName = "UpdateSoftwareSetCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "ThinClient",
35
+ operation: "UpdateSoftwareSet",
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_UpdateSoftwareSetCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_UpdateSoftwareSetCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,16 @@
1
+ export * from "./CreateEnvironmentCommand";
2
+ export * from "./DeleteDeviceCommand";
3
+ export * from "./DeleteEnvironmentCommand";
4
+ export * from "./DeregisterDeviceCommand";
5
+ export * from "./GetDeviceCommand";
6
+ export * from "./GetEnvironmentCommand";
7
+ export * from "./GetSoftwareSetCommand";
8
+ export * from "./ListDevicesCommand";
9
+ export * from "./ListEnvironmentsCommand";
10
+ export * from "./ListSoftwareSetsCommand";
11
+ export * from "./ListTagsForResourceCommand";
12
+ export * from "./TagResourceCommand";
13
+ export * from "./UntagResourceCommand";
14
+ export * from "./UpdateDeviceCommand";
15
+ export * from "./UpdateEnvironmentCommand";
16
+ export * from "./UpdateSoftwareSetCommand";
@@ -0,0 +1,8 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
6
+ defaultSigningName: "thinclient",
7
+ };
8
+ };
@@ -0,0 +1,8 @@
1
+ import { resolveEndpoint } from "@smithy/util-endpoints";
2
+ import { ruleSet } from "./ruleset";
3
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
+ return resolveEndpoint(ruleSet, {
5
+ endpointParams: endpointParams,
6
+ logger: context.logger,
7
+ });
8
+ };
@@ -0,0 +1,4 @@
1
+ const s = "required", t = "fn", u = "argv", v = "ref";
2
+ 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" }];
3
+ 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 }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export * from "./WorkSpacesThinClientClient";
2
+ export * from "./WorkSpacesThin";
3
+ export * from "./commands";
4
+ export * from "./pagination";
5
+ export * from "./models";
6
+ import "@aws-sdk/util-endpoints";
7
+ export { WorkSpacesThinClientServiceException } from "./models/WorkSpacesThinClientServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class WorkSpacesThinClientServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, WorkSpacesThinClientServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";