@aws-sdk/client-pcs 3.641.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 (171) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +366 -0
  3. package/dist-cjs/PCS.js +47 -0
  4. package/dist-cjs/PCSClient.js +50 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateClusterCommand.js +28 -0
  8. package/dist-cjs/commands/CreateComputeNodeGroupCommand.js +28 -0
  9. package/dist-cjs/commands/CreateQueueCommand.js +28 -0
  10. package/dist-cjs/commands/DeleteClusterCommand.js +28 -0
  11. package/dist-cjs/commands/DeleteComputeNodeGroupCommand.js +28 -0
  12. package/dist-cjs/commands/DeleteQueueCommand.js +28 -0
  13. package/dist-cjs/commands/GetClusterCommand.js +28 -0
  14. package/dist-cjs/commands/GetComputeNodeGroupCommand.js +28 -0
  15. package/dist-cjs/commands/GetQueueCommand.js +28 -0
  16. package/dist-cjs/commands/ListClustersCommand.js +28 -0
  17. package/dist-cjs/commands/ListComputeNodeGroupsCommand.js +28 -0
  18. package/dist-cjs/commands/ListQueuesCommand.js +28 -0
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
  20. package/dist-cjs/commands/RegisterComputeNodeGroupInstanceCommand.js +29 -0
  21. package/dist-cjs/commands/TagResourceCommand.js +28 -0
  22. package/dist-cjs/commands/UntagResourceCommand.js +28 -0
  23. package/dist-cjs/commands/UpdateComputeNodeGroupCommand.js +28 -0
  24. package/dist-cjs/commands/UpdateQueueCommand.js +28 -0
  25. package/dist-cjs/commands/index.js +21 -0
  26. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  27. package/dist-cjs/endpoint/endpointResolver.js +14 -0
  28. package/dist-cjs/endpoint/ruleset.js +7 -0
  29. package/dist-cjs/extensionConfiguration.js +2 -0
  30. package/dist-cjs/index.js +11 -0
  31. package/dist-cjs/models/PCSServiceException.js +12 -0
  32. package/dist-cjs/models/index.js +4 -0
  33. package/dist-cjs/models/models_0.js +169 -0
  34. package/dist-cjs/pagination/Interfaces.js +2 -0
  35. package/dist-cjs/pagination/ListClustersPaginator.js +7 -0
  36. package/dist-cjs/pagination/ListComputeNodeGroupsPaginator.js +7 -0
  37. package/dist-cjs/pagination/ListQueuesPaginator.js +7 -0
  38. package/dist-cjs/pagination/index.js +7 -0
  39. package/dist-cjs/protocols/Aws_json1_0.js +757 -0
  40. package/dist-cjs/runtimeConfig.browser.js +39 -0
  41. package/dist-cjs/runtimeConfig.js +49 -0
  42. package/dist-cjs/runtimeConfig.native.js +15 -0
  43. package/dist-cjs/runtimeConfig.shared.js +34 -0
  44. package/dist-cjs/runtimeExtensions.js +25 -0
  45. package/dist-es/PCS.js +43 -0
  46. package/dist-es/PCSClient.js +46 -0
  47. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  48. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  49. package/dist-es/commands/CreateClusterCommand.js +24 -0
  50. package/dist-es/commands/CreateComputeNodeGroupCommand.js +24 -0
  51. package/dist-es/commands/CreateQueueCommand.js +24 -0
  52. package/dist-es/commands/DeleteClusterCommand.js +24 -0
  53. package/dist-es/commands/DeleteComputeNodeGroupCommand.js +24 -0
  54. package/dist-es/commands/DeleteQueueCommand.js +24 -0
  55. package/dist-es/commands/GetClusterCommand.js +24 -0
  56. package/dist-es/commands/GetComputeNodeGroupCommand.js +24 -0
  57. package/dist-es/commands/GetQueueCommand.js +24 -0
  58. package/dist-es/commands/ListClustersCommand.js +24 -0
  59. package/dist-es/commands/ListComputeNodeGroupsCommand.js +24 -0
  60. package/dist-es/commands/ListQueuesCommand.js +24 -0
  61. package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
  62. package/dist-es/commands/RegisterComputeNodeGroupInstanceCommand.js +25 -0
  63. package/dist-es/commands/TagResourceCommand.js +24 -0
  64. package/dist-es/commands/UntagResourceCommand.js +24 -0
  65. package/dist-es/commands/UpdateComputeNodeGroupCommand.js +24 -0
  66. package/dist-es/commands/UpdateQueueCommand.js +24 -0
  67. package/dist-es/commands/index.js +18 -0
  68. package/dist-es/endpoint/EndpointParameters.js +14 -0
  69. package/dist-es/endpoint/endpointResolver.js +10 -0
  70. package/dist-es/endpoint/ruleset.js +4 -0
  71. package/dist-es/extensionConfiguration.js +1 -0
  72. package/dist-es/index.js +6 -0
  73. package/dist-es/models/PCSServiceException.js +8 -0
  74. package/dist-es/models/index.js +1 -0
  75. package/dist-es/models/models_0.js +158 -0
  76. package/dist-es/pagination/Interfaces.js +1 -0
  77. package/dist-es/pagination/ListClustersPaginator.js +4 -0
  78. package/dist-es/pagination/ListComputeNodeGroupsPaginator.js +4 -0
  79. package/dist-es/pagination/ListQueuesPaginator.js +4 -0
  80. package/dist-es/pagination/index.js +4 -0
  81. package/dist-es/protocols/Aws_json1_0.js +718 -0
  82. package/dist-es/runtimeConfig.browser.js +34 -0
  83. package/dist-es/runtimeConfig.js +44 -0
  84. package/dist-es/runtimeConfig.native.js +11 -0
  85. package/dist-es/runtimeConfig.shared.js +30 -0
  86. package/dist-es/runtimeExtensions.js +21 -0
  87. package/dist-types/PCS.d.ts +154 -0
  88. package/dist-types/PCSClient.d.ts +204 -0
  89. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  90. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  91. package/dist-types/commands/CreateClusterCommand.d.ts +237 -0
  92. package/dist-types/commands/CreateComputeNodeGroupCommand.d.ts +247 -0
  93. package/dist-types/commands/CreateQueueCommand.d.ts +190 -0
  94. package/dist-types/commands/DeleteClusterCommand.d.ts +137 -0
  95. package/dist-types/commands/DeleteComputeNodeGroupCommand.d.ts +138 -0
  96. package/dist-types/commands/DeleteQueueCommand.d.ts +139 -0
  97. package/dist-types/commands/GetClusterCommand.d.ts +186 -0
  98. package/dist-types/commands/GetComputeNodeGroupCommand.d.ts +184 -0
  99. package/dist-types/commands/GetQueueCommand.d.ts +158 -0
  100. package/dist-types/commands/ListClustersCommand.d.ts +148 -0
  101. package/dist-types/commands/ListComputeNodeGroupsCommand.d.ts +150 -0
  102. package/dist-types/commands/ListQueuesCommand.d.ts +150 -0
  103. package/dist-types/commands/ListTagsForResourceCommand.d.ts +69 -0
  104. package/dist-types/commands/RegisterComputeNodeGroupInstanceCommand.d.ts +97 -0
  105. package/dist-types/commands/TagResourceCommand.d.ts +71 -0
  106. package/dist-types/commands/UntagResourceCommand.d.ts +69 -0
  107. package/dist-types/commands/UpdateComputeNodeGroupCommand.d.ts +233 -0
  108. package/dist-types/commands/UpdateQueueCommand.d.ts +187 -0
  109. package/dist-types/commands/index.d.ts +18 -0
  110. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  111. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  112. package/dist-types/endpoint/ruleset.d.ts +2 -0
  113. package/dist-types/extensionConfiguration.d.ts +9 -0
  114. package/dist-types/index.d.ts +31 -0
  115. package/dist-types/models/PCSServiceException.d.ts +14 -0
  116. package/dist-types/models/index.d.ts +1 -0
  117. package/dist-types/models/models_0.d.ts +1871 -0
  118. package/dist-types/pagination/Interfaces.d.ts +8 -0
  119. package/dist-types/pagination/ListClustersPaginator.d.ts +7 -0
  120. package/dist-types/pagination/ListComputeNodeGroupsPaginator.d.ts +7 -0
  121. package/dist-types/pagination/ListQueuesPaginator.d.ts +7 -0
  122. package/dist-types/pagination/index.d.ts +4 -0
  123. package/dist-types/protocols/Aws_json1_0.d.ts +164 -0
  124. package/dist-types/runtimeConfig.browser.d.ts +45 -0
  125. package/dist-types/runtimeConfig.d.ts +45 -0
  126. package/dist-types/runtimeConfig.native.d.ts +44 -0
  127. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  128. package/dist-types/runtimeExtensions.d.ts +17 -0
  129. package/dist-types/ts3.4/PCS.d.ts +312 -0
  130. package/dist-types/ts3.4/PCSClient.d.ts +223 -0
  131. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  132. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  133. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +39 -0
  134. package/dist-types/ts3.4/commands/CreateComputeNodeGroupCommand.d.ts +40 -0
  135. package/dist-types/ts3.4/commands/CreateQueueCommand.d.ts +36 -0
  136. package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +39 -0
  137. package/dist-types/ts3.4/commands/DeleteComputeNodeGroupCommand.d.ts +40 -0
  138. package/dist-types/ts3.4/commands/DeleteQueueCommand.d.ts +36 -0
  139. package/dist-types/ts3.4/commands/GetClusterCommand.d.ts +36 -0
  140. package/dist-types/ts3.4/commands/GetComputeNodeGroupCommand.d.ts +40 -0
  141. package/dist-types/ts3.4/commands/GetQueueCommand.d.ts +36 -0
  142. package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +36 -0
  143. package/dist-types/ts3.4/commands/ListComputeNodeGroupsCommand.d.ts +40 -0
  144. package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +36 -0
  145. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +40 -0
  146. package/dist-types/ts3.4/commands/RegisterComputeNodeGroupInstanceCommand.d.ts +40 -0
  147. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
  148. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
  149. package/dist-types/ts3.4/commands/UpdateComputeNodeGroupCommand.d.ts +40 -0
  150. package/dist-types/ts3.4/commands/UpdateQueueCommand.d.ts +36 -0
  151. package/dist-types/ts3.4/commands/index.d.ts +18 -0
  152. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  153. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  154. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  155. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  156. package/dist-types/ts3.4/index.d.ts +9 -0
  157. package/dist-types/ts3.4/models/PCSServiceException.d.ts +9 -0
  158. package/dist-types/ts3.4/models/index.d.ts +1 -0
  159. package/dist-types/ts3.4/models/models_0.d.ts +431 -0
  160. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  161. package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +11 -0
  162. package/dist-types/ts3.4/pagination/ListComputeNodeGroupsPaginator.d.ts +11 -0
  163. package/dist-types/ts3.4/pagination/ListQueuesPaginator.d.ts +11 -0
  164. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  165. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +221 -0
  166. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +85 -0
  167. package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
  168. package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
  169. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  170. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  171. package/package.json +103 -0
@@ -0,0 +1,757 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.de_UpdateQueueCommand = exports.de_UpdateComputeNodeGroupCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterComputeNodeGroupInstanceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQueuesCommand = exports.de_ListComputeNodeGroupsCommand = exports.de_ListClustersCommand = exports.de_GetQueueCommand = exports.de_GetComputeNodeGroupCommand = exports.de_GetClusterCommand = exports.de_DeleteQueueCommand = exports.de_DeleteComputeNodeGroupCommand = exports.de_DeleteClusterCommand = exports.de_CreateQueueCommand = exports.de_CreateComputeNodeGroupCommand = exports.de_CreateClusterCommand = exports.se_UpdateQueueCommand = exports.se_UpdateComputeNodeGroupCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterComputeNodeGroupInstanceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQueuesCommand = exports.se_ListComputeNodeGroupsCommand = exports.se_ListClustersCommand = exports.se_GetQueueCommand = exports.se_GetComputeNodeGroupCommand = exports.se_GetClusterCommand = exports.se_DeleteQueueCommand = exports.se_DeleteComputeNodeGroupCommand = exports.se_DeleteClusterCommand = exports.se_CreateQueueCommand = exports.se_CreateComputeNodeGroupCommand = exports.se_CreateClusterCommand = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const protocol_http_1 = require("@smithy/protocol-http");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ const uuid_1 = require("uuid");
8
+ const models_0_1 = require("../models/models_0");
9
+ const PCSServiceException_1 = require("../models/PCSServiceException");
10
+ const se_CreateClusterCommand = async (input, context) => {
11
+ const headers = sharedHeaders("CreateCluster");
12
+ let body;
13
+ body = JSON.stringify(se_CreateClusterRequest(input, context));
14
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
15
+ };
16
+ exports.se_CreateClusterCommand = se_CreateClusterCommand;
17
+ const se_CreateComputeNodeGroupCommand = async (input, context) => {
18
+ const headers = sharedHeaders("CreateComputeNodeGroup");
19
+ let body;
20
+ body = JSON.stringify(se_CreateComputeNodeGroupRequest(input, context));
21
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
+ };
23
+ exports.se_CreateComputeNodeGroupCommand = se_CreateComputeNodeGroupCommand;
24
+ const se_CreateQueueCommand = async (input, context) => {
25
+ const headers = sharedHeaders("CreateQueue");
26
+ let body;
27
+ body = JSON.stringify(se_CreateQueueRequest(input, context));
28
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
+ };
30
+ exports.se_CreateQueueCommand = se_CreateQueueCommand;
31
+ const se_DeleteClusterCommand = async (input, context) => {
32
+ const headers = sharedHeaders("DeleteCluster");
33
+ let body;
34
+ body = JSON.stringify(se_DeleteClusterRequest(input, context));
35
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
+ };
37
+ exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
38
+ const se_DeleteComputeNodeGroupCommand = async (input, context) => {
39
+ const headers = sharedHeaders("DeleteComputeNodeGroup");
40
+ let body;
41
+ body = JSON.stringify(se_DeleteComputeNodeGroupRequest(input, context));
42
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
43
+ };
44
+ exports.se_DeleteComputeNodeGroupCommand = se_DeleteComputeNodeGroupCommand;
45
+ const se_DeleteQueueCommand = async (input, context) => {
46
+ const headers = sharedHeaders("DeleteQueue");
47
+ let body;
48
+ body = JSON.stringify(se_DeleteQueueRequest(input, context));
49
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
+ };
51
+ exports.se_DeleteQueueCommand = se_DeleteQueueCommand;
52
+ const se_GetClusterCommand = async (input, context) => {
53
+ const headers = sharedHeaders("GetCluster");
54
+ let body;
55
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
+ };
58
+ exports.se_GetClusterCommand = se_GetClusterCommand;
59
+ const se_GetComputeNodeGroupCommand = async (input, context) => {
60
+ const headers = sharedHeaders("GetComputeNodeGroup");
61
+ let body;
62
+ body = JSON.stringify((0, smithy_client_1._json)(input));
63
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
+ };
65
+ exports.se_GetComputeNodeGroupCommand = se_GetComputeNodeGroupCommand;
66
+ const se_GetQueueCommand = async (input, context) => {
67
+ const headers = sharedHeaders("GetQueue");
68
+ let body;
69
+ body = JSON.stringify((0, smithy_client_1._json)(input));
70
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
+ };
72
+ exports.se_GetQueueCommand = se_GetQueueCommand;
73
+ const se_ListClustersCommand = async (input, context) => {
74
+ const headers = sharedHeaders("ListClusters");
75
+ let body;
76
+ body = JSON.stringify((0, smithy_client_1._json)(input));
77
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
+ };
79
+ exports.se_ListClustersCommand = se_ListClustersCommand;
80
+ const se_ListComputeNodeGroupsCommand = async (input, context) => {
81
+ const headers = sharedHeaders("ListComputeNodeGroups");
82
+ let body;
83
+ body = JSON.stringify((0, smithy_client_1._json)(input));
84
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
+ };
86
+ exports.se_ListComputeNodeGroupsCommand = se_ListComputeNodeGroupsCommand;
87
+ const se_ListQueuesCommand = async (input, context) => {
88
+ const headers = sharedHeaders("ListQueues");
89
+ let body;
90
+ body = JSON.stringify((0, smithy_client_1._json)(input));
91
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
92
+ };
93
+ exports.se_ListQueuesCommand = se_ListQueuesCommand;
94
+ const se_ListTagsForResourceCommand = async (input, context) => {
95
+ const headers = sharedHeaders("ListTagsForResource");
96
+ let body;
97
+ body = JSON.stringify((0, smithy_client_1._json)(input));
98
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
99
+ };
100
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
101
+ const se_RegisterComputeNodeGroupInstanceCommand = async (input, context) => {
102
+ const headers = sharedHeaders("RegisterComputeNodeGroupInstance");
103
+ let body;
104
+ body = JSON.stringify((0, smithy_client_1._json)(input));
105
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
+ };
107
+ exports.se_RegisterComputeNodeGroupInstanceCommand = se_RegisterComputeNodeGroupInstanceCommand;
108
+ const se_TagResourceCommand = async (input, context) => {
109
+ const headers = sharedHeaders("TagResource");
110
+ let body;
111
+ body = JSON.stringify((0, smithy_client_1._json)(input));
112
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
+ };
114
+ exports.se_TagResourceCommand = se_TagResourceCommand;
115
+ const se_UntagResourceCommand = async (input, context) => {
116
+ const headers = sharedHeaders("UntagResource");
117
+ let body;
118
+ body = JSON.stringify((0, smithy_client_1._json)(input));
119
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
+ };
121
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
122
+ const se_UpdateComputeNodeGroupCommand = async (input, context) => {
123
+ const headers = sharedHeaders("UpdateComputeNodeGroup");
124
+ let body;
125
+ body = JSON.stringify(se_UpdateComputeNodeGroupRequest(input, context));
126
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
+ };
128
+ exports.se_UpdateComputeNodeGroupCommand = se_UpdateComputeNodeGroupCommand;
129
+ const se_UpdateQueueCommand = async (input, context) => {
130
+ const headers = sharedHeaders("UpdateQueue");
131
+ let body;
132
+ body = JSON.stringify(se_UpdateQueueRequest(input, context));
133
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
134
+ };
135
+ exports.se_UpdateQueueCommand = se_UpdateQueueCommand;
136
+ const de_CreateClusterCommand = async (output, context) => {
137
+ if (output.statusCode >= 300) {
138
+ return de_CommandError(output, context);
139
+ }
140
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
141
+ let contents = {};
142
+ contents = de_CreateClusterResponse(data, context);
143
+ const response = {
144
+ $metadata: deserializeMetadata(output),
145
+ ...contents,
146
+ };
147
+ return response;
148
+ };
149
+ exports.de_CreateClusterCommand = de_CreateClusterCommand;
150
+ const de_CreateComputeNodeGroupCommand = async (output, context) => {
151
+ if (output.statusCode >= 300) {
152
+ return de_CommandError(output, context);
153
+ }
154
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
155
+ let contents = {};
156
+ contents = de_CreateComputeNodeGroupResponse(data, context);
157
+ const response = {
158
+ $metadata: deserializeMetadata(output),
159
+ ...contents,
160
+ };
161
+ return response;
162
+ };
163
+ exports.de_CreateComputeNodeGroupCommand = de_CreateComputeNodeGroupCommand;
164
+ const de_CreateQueueCommand = async (output, context) => {
165
+ if (output.statusCode >= 300) {
166
+ return de_CommandError(output, context);
167
+ }
168
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
169
+ let contents = {};
170
+ contents = de_CreateQueueResponse(data, context);
171
+ const response = {
172
+ $metadata: deserializeMetadata(output),
173
+ ...contents,
174
+ };
175
+ return response;
176
+ };
177
+ exports.de_CreateQueueCommand = de_CreateQueueCommand;
178
+ const de_DeleteClusterCommand = async (output, context) => {
179
+ if (output.statusCode >= 300) {
180
+ return de_CommandError(output, context);
181
+ }
182
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
183
+ let contents = {};
184
+ contents = (0, smithy_client_1._json)(data);
185
+ const response = {
186
+ $metadata: deserializeMetadata(output),
187
+ ...contents,
188
+ };
189
+ return response;
190
+ };
191
+ exports.de_DeleteClusterCommand = de_DeleteClusterCommand;
192
+ const de_DeleteComputeNodeGroupCommand = async (output, context) => {
193
+ if (output.statusCode >= 300) {
194
+ return de_CommandError(output, context);
195
+ }
196
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
197
+ let contents = {};
198
+ contents = (0, smithy_client_1._json)(data);
199
+ const response = {
200
+ $metadata: deserializeMetadata(output),
201
+ ...contents,
202
+ };
203
+ return response;
204
+ };
205
+ exports.de_DeleteComputeNodeGroupCommand = de_DeleteComputeNodeGroupCommand;
206
+ const de_DeleteQueueCommand = async (output, context) => {
207
+ if (output.statusCode >= 300) {
208
+ return de_CommandError(output, context);
209
+ }
210
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
211
+ let contents = {};
212
+ contents = (0, smithy_client_1._json)(data);
213
+ const response = {
214
+ $metadata: deserializeMetadata(output),
215
+ ...contents,
216
+ };
217
+ return response;
218
+ };
219
+ exports.de_DeleteQueueCommand = de_DeleteQueueCommand;
220
+ const de_GetClusterCommand = async (output, context) => {
221
+ if (output.statusCode >= 300) {
222
+ return de_CommandError(output, context);
223
+ }
224
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
225
+ let contents = {};
226
+ contents = de_GetClusterResponse(data, context);
227
+ const response = {
228
+ $metadata: deserializeMetadata(output),
229
+ ...contents,
230
+ };
231
+ return response;
232
+ };
233
+ exports.de_GetClusterCommand = de_GetClusterCommand;
234
+ const de_GetComputeNodeGroupCommand = async (output, context) => {
235
+ if (output.statusCode >= 300) {
236
+ return de_CommandError(output, context);
237
+ }
238
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
239
+ let contents = {};
240
+ contents = de_GetComputeNodeGroupResponse(data, context);
241
+ const response = {
242
+ $metadata: deserializeMetadata(output),
243
+ ...contents,
244
+ };
245
+ return response;
246
+ };
247
+ exports.de_GetComputeNodeGroupCommand = de_GetComputeNodeGroupCommand;
248
+ const de_GetQueueCommand = async (output, context) => {
249
+ if (output.statusCode >= 300) {
250
+ return de_CommandError(output, context);
251
+ }
252
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
253
+ let contents = {};
254
+ contents = de_GetQueueResponse(data, context);
255
+ const response = {
256
+ $metadata: deserializeMetadata(output),
257
+ ...contents,
258
+ };
259
+ return response;
260
+ };
261
+ exports.de_GetQueueCommand = de_GetQueueCommand;
262
+ const de_ListClustersCommand = async (output, context) => {
263
+ if (output.statusCode >= 300) {
264
+ return de_CommandError(output, context);
265
+ }
266
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
267
+ let contents = {};
268
+ contents = de_ListClustersResponse(data, context);
269
+ const response = {
270
+ $metadata: deserializeMetadata(output),
271
+ ...contents,
272
+ };
273
+ return response;
274
+ };
275
+ exports.de_ListClustersCommand = de_ListClustersCommand;
276
+ const de_ListComputeNodeGroupsCommand = async (output, context) => {
277
+ if (output.statusCode >= 300) {
278
+ return de_CommandError(output, context);
279
+ }
280
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
281
+ let contents = {};
282
+ contents = de_ListComputeNodeGroupsResponse(data, context);
283
+ const response = {
284
+ $metadata: deserializeMetadata(output),
285
+ ...contents,
286
+ };
287
+ return response;
288
+ };
289
+ exports.de_ListComputeNodeGroupsCommand = de_ListComputeNodeGroupsCommand;
290
+ const de_ListQueuesCommand = async (output, context) => {
291
+ if (output.statusCode >= 300) {
292
+ return de_CommandError(output, context);
293
+ }
294
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
295
+ let contents = {};
296
+ contents = de_ListQueuesResponse(data, context);
297
+ const response = {
298
+ $metadata: deserializeMetadata(output),
299
+ ...contents,
300
+ };
301
+ return response;
302
+ };
303
+ exports.de_ListQueuesCommand = de_ListQueuesCommand;
304
+ const de_ListTagsForResourceCommand = async (output, context) => {
305
+ if (output.statusCode >= 300) {
306
+ return de_CommandError(output, context);
307
+ }
308
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
309
+ let contents = {};
310
+ contents = (0, smithy_client_1._json)(data);
311
+ const response = {
312
+ $metadata: deserializeMetadata(output),
313
+ ...contents,
314
+ };
315
+ return response;
316
+ };
317
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
318
+ const de_RegisterComputeNodeGroupInstanceCommand = async (output, context) => {
319
+ if (output.statusCode >= 300) {
320
+ return de_CommandError(output, context);
321
+ }
322
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
323
+ let contents = {};
324
+ contents = (0, smithy_client_1._json)(data);
325
+ const response = {
326
+ $metadata: deserializeMetadata(output),
327
+ ...contents,
328
+ };
329
+ return response;
330
+ };
331
+ exports.de_RegisterComputeNodeGroupInstanceCommand = de_RegisterComputeNodeGroupInstanceCommand;
332
+ const de_TagResourceCommand = async (output, context) => {
333
+ if (output.statusCode >= 300) {
334
+ return de_CommandError(output, context);
335
+ }
336
+ await (0, smithy_client_1.collectBody)(output.body, context);
337
+ const response = {
338
+ $metadata: deserializeMetadata(output),
339
+ };
340
+ return response;
341
+ };
342
+ exports.de_TagResourceCommand = de_TagResourceCommand;
343
+ const de_UntagResourceCommand = async (output, context) => {
344
+ if (output.statusCode >= 300) {
345
+ return de_CommandError(output, context);
346
+ }
347
+ await (0, smithy_client_1.collectBody)(output.body, context);
348
+ const response = {
349
+ $metadata: deserializeMetadata(output),
350
+ };
351
+ return response;
352
+ };
353
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
354
+ const de_UpdateComputeNodeGroupCommand = async (output, context) => {
355
+ if (output.statusCode >= 300) {
356
+ return de_CommandError(output, context);
357
+ }
358
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
359
+ let contents = {};
360
+ contents = de_UpdateComputeNodeGroupResponse(data, context);
361
+ const response = {
362
+ $metadata: deserializeMetadata(output),
363
+ ...contents,
364
+ };
365
+ return response;
366
+ };
367
+ exports.de_UpdateComputeNodeGroupCommand = de_UpdateComputeNodeGroupCommand;
368
+ const de_UpdateQueueCommand = async (output, context) => {
369
+ if (output.statusCode >= 300) {
370
+ return de_CommandError(output, context);
371
+ }
372
+ const data = await (0, core_1.parseJsonBody)(output.body, context);
373
+ let contents = {};
374
+ contents = de_UpdateQueueResponse(data, context);
375
+ const response = {
376
+ $metadata: deserializeMetadata(output),
377
+ ...contents,
378
+ };
379
+ return response;
380
+ };
381
+ exports.de_UpdateQueueCommand = de_UpdateQueueCommand;
382
+ const de_CommandError = async (output, context) => {
383
+ const parsedOutput = {
384
+ ...output,
385
+ body: await (0, core_1.parseJsonErrorBody)(output.body, context),
386
+ };
387
+ const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
388
+ switch (errorCode) {
389
+ case "AccessDeniedException":
390
+ case "com.amazonaws.pcs#AccessDeniedException":
391
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
392
+ case "ConflictException":
393
+ case "com.amazonaws.pcs#ConflictException":
394
+ throw await de_ConflictExceptionRes(parsedOutput, context);
395
+ case "InternalServerException":
396
+ case "com.amazonaws.pcs#InternalServerException":
397
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
398
+ case "ServiceQuotaExceededException":
399
+ case "com.amazonaws.pcs#ServiceQuotaExceededException":
400
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
401
+ case "ThrottlingException":
402
+ case "com.amazonaws.pcs#ThrottlingException":
403
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
404
+ case "ValidationException":
405
+ case "com.amazonaws.pcs#ValidationException":
406
+ throw await de_ValidationExceptionRes(parsedOutput, context);
407
+ case "ResourceNotFoundException":
408
+ case "com.amazonaws.pcs#ResourceNotFoundException":
409
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
410
+ default:
411
+ const parsedBody = parsedOutput.body;
412
+ return throwDefaultError({
413
+ output,
414
+ parsedBody,
415
+ errorCode,
416
+ });
417
+ }
418
+ };
419
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
420
+ const body = parsedOutput.body;
421
+ const deserialized = (0, smithy_client_1._json)(body);
422
+ const exception = new models_0_1.AccessDeniedException({
423
+ $metadata: deserializeMetadata(parsedOutput),
424
+ ...deserialized,
425
+ });
426
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
427
+ };
428
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
429
+ const body = parsedOutput.body;
430
+ const deserialized = (0, smithy_client_1._json)(body);
431
+ const exception = new models_0_1.ConflictException({
432
+ $metadata: deserializeMetadata(parsedOutput),
433
+ ...deserialized,
434
+ });
435
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
436
+ };
437
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
438
+ const body = parsedOutput.body;
439
+ const deserialized = (0, smithy_client_1._json)(body);
440
+ const exception = new models_0_1.InternalServerException({
441
+ $metadata: deserializeMetadata(parsedOutput),
442
+ ...deserialized,
443
+ });
444
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
445
+ };
446
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
447
+ const body = parsedOutput.body;
448
+ const deserialized = (0, smithy_client_1._json)(body);
449
+ const exception = new models_0_1.ResourceNotFoundException({
450
+ $metadata: deserializeMetadata(parsedOutput),
451
+ ...deserialized,
452
+ });
453
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
454
+ };
455
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
456
+ const body = parsedOutput.body;
457
+ const deserialized = (0, smithy_client_1._json)(body);
458
+ const exception = new models_0_1.ServiceQuotaExceededException({
459
+ $metadata: deserializeMetadata(parsedOutput),
460
+ ...deserialized,
461
+ });
462
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
463
+ };
464
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
465
+ const body = parsedOutput.body;
466
+ const deserialized = (0, smithy_client_1._json)(body);
467
+ const exception = new models_0_1.ThrottlingException({
468
+ $metadata: deserializeMetadata(parsedOutput),
469
+ ...deserialized,
470
+ });
471
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
472
+ };
473
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
474
+ const body = parsedOutput.body;
475
+ const deserialized = (0, smithy_client_1._json)(body);
476
+ const exception = new models_0_1.ValidationException({
477
+ $metadata: deserializeMetadata(parsedOutput),
478
+ ...deserialized,
479
+ });
480
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
481
+ };
482
+ const se_CreateClusterRequest = (input, context) => {
483
+ return (0, smithy_client_1.take)(input, {
484
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
485
+ clusterName: [],
486
+ networking: smithy_client_1._json,
487
+ scheduler: smithy_client_1._json,
488
+ size: [],
489
+ slurmConfiguration: smithy_client_1._json,
490
+ tags: smithy_client_1._json,
491
+ });
492
+ };
493
+ const se_CreateComputeNodeGroupRequest = (input, context) => {
494
+ return (0, smithy_client_1.take)(input, {
495
+ amiId: [],
496
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
497
+ clusterIdentifier: [],
498
+ computeNodeGroupName: [],
499
+ customLaunchTemplate: smithy_client_1._json,
500
+ iamInstanceProfileArn: [],
501
+ instanceConfigs: smithy_client_1._json,
502
+ purchaseOption: [],
503
+ scalingConfiguration: smithy_client_1._json,
504
+ slurmConfiguration: smithy_client_1._json,
505
+ spotOptions: smithy_client_1._json,
506
+ subnetIds: smithy_client_1._json,
507
+ tags: smithy_client_1._json,
508
+ });
509
+ };
510
+ const se_CreateQueueRequest = (input, context) => {
511
+ return (0, smithy_client_1.take)(input, {
512
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
513
+ clusterIdentifier: [],
514
+ computeNodeGroupConfigurations: smithy_client_1._json,
515
+ queueName: [],
516
+ tags: smithy_client_1._json,
517
+ });
518
+ };
519
+ const se_DeleteClusterRequest = (input, context) => {
520
+ return (0, smithy_client_1.take)(input, {
521
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
522
+ clusterIdentifier: [],
523
+ });
524
+ };
525
+ const se_DeleteComputeNodeGroupRequest = (input, context) => {
526
+ return (0, smithy_client_1.take)(input, {
527
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
528
+ clusterIdentifier: [],
529
+ computeNodeGroupIdentifier: [],
530
+ });
531
+ };
532
+ const se_DeleteQueueRequest = (input, context) => {
533
+ return (0, smithy_client_1.take)(input, {
534
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
535
+ clusterIdentifier: [],
536
+ queueIdentifier: [],
537
+ });
538
+ };
539
+ const se_UpdateComputeNodeGroupRequest = (input, context) => {
540
+ return (0, smithy_client_1.take)(input, {
541
+ amiId: [],
542
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
543
+ clusterIdentifier: [],
544
+ computeNodeGroupIdentifier: [],
545
+ customLaunchTemplate: smithy_client_1._json,
546
+ iamInstanceProfileArn: [],
547
+ purchaseOption: [],
548
+ scalingConfiguration: smithy_client_1._json,
549
+ slurmConfiguration: smithy_client_1._json,
550
+ spotOptions: smithy_client_1._json,
551
+ subnetIds: smithy_client_1._json,
552
+ });
553
+ };
554
+ const se_UpdateQueueRequest = (input, context) => {
555
+ return (0, smithy_client_1.take)(input, {
556
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
557
+ clusterIdentifier: [],
558
+ computeNodeGroupConfigurations: smithy_client_1._json,
559
+ queueIdentifier: [],
560
+ });
561
+ };
562
+ const de_Cluster = (output, context) => {
563
+ return (0, smithy_client_1.take)(output, {
564
+ arn: smithy_client_1.expectString,
565
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
566
+ endpoints: smithy_client_1._json,
567
+ errorInfo: smithy_client_1._json,
568
+ id: smithy_client_1.expectString,
569
+ modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
570
+ name: smithy_client_1.expectString,
571
+ networking: smithy_client_1._json,
572
+ scheduler: smithy_client_1._json,
573
+ size: smithy_client_1.expectString,
574
+ slurmConfiguration: smithy_client_1._json,
575
+ status: smithy_client_1.expectString,
576
+ });
577
+ };
578
+ const de_ClusterList = (output, context) => {
579
+ const retVal = (output || [])
580
+ .filter((e) => e != null)
581
+ .map((entry) => {
582
+ return de_ClusterSummary(entry, context);
583
+ });
584
+ return retVal;
585
+ };
586
+ const de_ClusterSummary = (output, context) => {
587
+ return (0, smithy_client_1.take)(output, {
588
+ arn: smithy_client_1.expectString,
589
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
590
+ id: smithy_client_1.expectString,
591
+ modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
592
+ name: smithy_client_1.expectString,
593
+ status: smithy_client_1.expectString,
594
+ });
595
+ };
596
+ const de_ComputeNodeGroup = (output, context) => {
597
+ return (0, smithy_client_1.take)(output, {
598
+ amiId: smithy_client_1.expectString,
599
+ arn: smithy_client_1.expectString,
600
+ clusterId: smithy_client_1.expectString,
601
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
602
+ customLaunchTemplate: smithy_client_1._json,
603
+ errorInfo: smithy_client_1._json,
604
+ iamInstanceProfileArn: smithy_client_1.expectString,
605
+ id: smithy_client_1.expectString,
606
+ instanceConfigs: smithy_client_1._json,
607
+ modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
608
+ name: smithy_client_1.expectString,
609
+ purchaseOption: smithy_client_1.expectString,
610
+ scalingConfiguration: smithy_client_1._json,
611
+ slurmConfiguration: smithy_client_1._json,
612
+ spotOptions: smithy_client_1._json,
613
+ status: smithy_client_1.expectString,
614
+ subnetIds: smithy_client_1._json,
615
+ });
616
+ };
617
+ const de_ComputeNodeGroupList = (output, context) => {
618
+ const retVal = (output || [])
619
+ .filter((e) => e != null)
620
+ .map((entry) => {
621
+ return de_ComputeNodeGroupSummary(entry, context);
622
+ });
623
+ return retVal;
624
+ };
625
+ const de_ComputeNodeGroupSummary = (output, context) => {
626
+ return (0, smithy_client_1.take)(output, {
627
+ arn: smithy_client_1.expectString,
628
+ clusterId: smithy_client_1.expectString,
629
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
630
+ id: smithy_client_1.expectString,
631
+ modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
632
+ name: smithy_client_1.expectString,
633
+ status: smithy_client_1.expectString,
634
+ });
635
+ };
636
+ const de_CreateClusterResponse = (output, context) => {
637
+ return (0, smithy_client_1.take)(output, {
638
+ cluster: (_) => de_Cluster(_, context),
639
+ });
640
+ };
641
+ const de_CreateComputeNodeGroupResponse = (output, context) => {
642
+ return (0, smithy_client_1.take)(output, {
643
+ computeNodeGroup: (_) => de_ComputeNodeGroup(_, context),
644
+ });
645
+ };
646
+ const de_CreateQueueResponse = (output, context) => {
647
+ return (0, smithy_client_1.take)(output, {
648
+ queue: (_) => de_Queue(_, context),
649
+ });
650
+ };
651
+ const de_GetClusterResponse = (output, context) => {
652
+ return (0, smithy_client_1.take)(output, {
653
+ cluster: (_) => de_Cluster(_, context),
654
+ });
655
+ };
656
+ const de_GetComputeNodeGroupResponse = (output, context) => {
657
+ return (0, smithy_client_1.take)(output, {
658
+ computeNodeGroup: (_) => de_ComputeNodeGroup(_, context),
659
+ });
660
+ };
661
+ const de_GetQueueResponse = (output, context) => {
662
+ return (0, smithy_client_1.take)(output, {
663
+ queue: (_) => de_Queue(_, context),
664
+ });
665
+ };
666
+ const de_ListClustersResponse = (output, context) => {
667
+ return (0, smithy_client_1.take)(output, {
668
+ clusters: (_) => de_ClusterList(_, context),
669
+ nextToken: smithy_client_1.expectString,
670
+ });
671
+ };
672
+ const de_ListComputeNodeGroupsResponse = (output, context) => {
673
+ return (0, smithy_client_1.take)(output, {
674
+ computeNodeGroups: (_) => de_ComputeNodeGroupList(_, context),
675
+ nextToken: smithy_client_1.expectString,
676
+ });
677
+ };
678
+ const de_ListQueuesResponse = (output, context) => {
679
+ return (0, smithy_client_1.take)(output, {
680
+ nextToken: smithy_client_1.expectString,
681
+ queues: (_) => de_QueueList(_, context),
682
+ });
683
+ };
684
+ const de_Queue = (output, context) => {
685
+ return (0, smithy_client_1.take)(output, {
686
+ arn: smithy_client_1.expectString,
687
+ clusterId: smithy_client_1.expectString,
688
+ computeNodeGroupConfigurations: smithy_client_1._json,
689
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
690
+ errorInfo: smithy_client_1._json,
691
+ id: smithy_client_1.expectString,
692
+ modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
693
+ name: smithy_client_1.expectString,
694
+ status: smithy_client_1.expectString,
695
+ });
696
+ };
697
+ const de_QueueList = (output, context) => {
698
+ const retVal = (output || [])
699
+ .filter((e) => e != null)
700
+ .map((entry) => {
701
+ return de_QueueSummary(entry, context);
702
+ });
703
+ return retVal;
704
+ };
705
+ const de_QueueSummary = (output, context) => {
706
+ return (0, smithy_client_1.take)(output, {
707
+ arn: smithy_client_1.expectString,
708
+ clusterId: smithy_client_1.expectString,
709
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
710
+ id: smithy_client_1.expectString,
711
+ modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
712
+ name: smithy_client_1.expectString,
713
+ status: smithy_client_1.expectString,
714
+ });
715
+ };
716
+ const de_UpdateComputeNodeGroupResponse = (output, context) => {
717
+ return (0, smithy_client_1.take)(output, {
718
+ computeNodeGroup: (_) => de_ComputeNodeGroup(_, context),
719
+ });
720
+ };
721
+ const de_UpdateQueueResponse = (output, context) => {
722
+ return (0, smithy_client_1.take)(output, {
723
+ queue: (_) => de_Queue(_, context),
724
+ });
725
+ };
726
+ const deserializeMetadata = (output) => ({
727
+ httpStatusCode: output.statusCode,
728
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
729
+ extendedRequestId: output.headers["x-amz-id-2"],
730
+ cfId: output.headers["x-amz-cf-id"],
731
+ });
732
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
733
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(PCSServiceException_1.PCSServiceException);
734
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
735
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
736
+ const contents = {
737
+ protocol,
738
+ hostname,
739
+ port,
740
+ method: "POST",
741
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
742
+ headers,
743
+ };
744
+ if (resolvedHostname !== undefined) {
745
+ contents.hostname = resolvedHostname;
746
+ }
747
+ if (body !== undefined) {
748
+ contents.body = body;
749
+ }
750
+ return new protocol_http_1.HttpRequest(contents);
751
+ };
752
+ function sharedHeaders(operation) {
753
+ return {
754
+ "content-type": "application/x-amz-json-1.0",
755
+ "x-amz-target": `AWSParallelComputingService.${operation}`,
756
+ };
757
+ }