@aws-sdk/client-appstream 3.926.0 → 3.928.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 (114) hide show
  1. package/dist-cjs/index.js +2567 -3131
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/AppStreamClient.js +2 -0
  4. package/dist-es/commands/AssociateAppBlockBuilderAppBlockCommand.js +3 -9
  5. package/dist-es/commands/AssociateApplicationFleetCommand.js +3 -9
  6. package/dist-es/commands/AssociateApplicationToEntitlementCommand.js +3 -9
  7. package/dist-es/commands/AssociateFleetCommand.js +3 -9
  8. package/dist-es/commands/AssociateSoftwareToImageBuilderCommand.js +3 -9
  9. package/dist-es/commands/BatchAssociateUserStackCommand.js +3 -10
  10. package/dist-es/commands/BatchDisassociateUserStackCommand.js +3 -10
  11. package/dist-es/commands/CopyImageCommand.js +3 -9
  12. package/dist-es/commands/CreateAppBlockBuilderCommand.js +3 -9
  13. package/dist-es/commands/CreateAppBlockBuilderStreamingURLCommand.js +3 -9
  14. package/dist-es/commands/CreateAppBlockCommand.js +3 -9
  15. package/dist-es/commands/CreateApplicationCommand.js +3 -9
  16. package/dist-es/commands/CreateDirectoryConfigCommand.js +3 -10
  17. package/dist-es/commands/CreateEntitlementCommand.js +3 -9
  18. package/dist-es/commands/CreateFleetCommand.js +3 -9
  19. package/dist-es/commands/CreateImageBuilderCommand.js +3 -9
  20. package/dist-es/commands/CreateImageBuilderStreamingURLCommand.js +3 -9
  21. package/dist-es/commands/CreateStackCommand.js +3 -9
  22. package/dist-es/commands/CreateStreamingURLCommand.js +3 -9
  23. package/dist-es/commands/CreateThemeForStackCommand.js +3 -9
  24. package/dist-es/commands/CreateUpdatedImageCommand.js +3 -9
  25. package/dist-es/commands/CreateUsageReportSubscriptionCommand.js +3 -9
  26. package/dist-es/commands/CreateUserCommand.js +3 -10
  27. package/dist-es/commands/DeleteAppBlockBuilderCommand.js +3 -9
  28. package/dist-es/commands/DeleteAppBlockCommand.js +3 -9
  29. package/dist-es/commands/DeleteApplicationCommand.js +3 -9
  30. package/dist-es/commands/DeleteDirectoryConfigCommand.js +3 -9
  31. package/dist-es/commands/DeleteEntitlementCommand.js +3 -9
  32. package/dist-es/commands/DeleteFleetCommand.js +3 -9
  33. package/dist-es/commands/DeleteImageBuilderCommand.js +3 -9
  34. package/dist-es/commands/DeleteImageCommand.js +3 -9
  35. package/dist-es/commands/DeleteImagePermissionsCommand.js +3 -9
  36. package/dist-es/commands/DeleteStackCommand.js +3 -9
  37. package/dist-es/commands/DeleteThemeForStackCommand.js +3 -9
  38. package/dist-es/commands/DeleteUsageReportSubscriptionCommand.js +3 -9
  39. package/dist-es/commands/DeleteUserCommand.js +3 -10
  40. package/dist-es/commands/DescribeAppBlockBuilderAppBlockAssociationsCommand.js +3 -9
  41. package/dist-es/commands/DescribeAppBlockBuildersCommand.js +3 -9
  42. package/dist-es/commands/DescribeAppBlocksCommand.js +3 -9
  43. package/dist-es/commands/DescribeAppLicenseUsageCommand.js +3 -9
  44. package/dist-es/commands/DescribeApplicationFleetAssociationsCommand.js +3 -9
  45. package/dist-es/commands/DescribeApplicationsCommand.js +3 -9
  46. package/dist-es/commands/DescribeDirectoryConfigsCommand.js +3 -10
  47. package/dist-es/commands/DescribeEntitlementsCommand.js +3 -9
  48. package/dist-es/commands/DescribeFleetsCommand.js +3 -9
  49. package/dist-es/commands/DescribeImageBuildersCommand.js +3 -9
  50. package/dist-es/commands/DescribeImagePermissionsCommand.js +3 -9
  51. package/dist-es/commands/DescribeImagesCommand.js +3 -9
  52. package/dist-es/commands/DescribeSessionsCommand.js +3 -9
  53. package/dist-es/commands/DescribeSoftwareAssociationsCommand.js +3 -9
  54. package/dist-es/commands/DescribeStacksCommand.js +3 -9
  55. package/dist-es/commands/DescribeThemeForStackCommand.js +3 -9
  56. package/dist-es/commands/DescribeUsageReportSubscriptionsCommand.js +3 -9
  57. package/dist-es/commands/DescribeUserStackAssociationsCommand.js +3 -10
  58. package/dist-es/commands/DescribeUsersCommand.js +3 -10
  59. package/dist-es/commands/DisableUserCommand.js +3 -10
  60. package/dist-es/commands/DisassociateAppBlockBuilderAppBlockCommand.js +3 -9
  61. package/dist-es/commands/DisassociateApplicationFleetCommand.js +3 -9
  62. package/dist-es/commands/DisassociateApplicationFromEntitlementCommand.js +3 -9
  63. package/dist-es/commands/DisassociateFleetCommand.js +3 -9
  64. package/dist-es/commands/DisassociateSoftwareFromImageBuilderCommand.js +3 -9
  65. package/dist-es/commands/EnableUserCommand.js +3 -10
  66. package/dist-es/commands/ExpireSessionCommand.js +3 -9
  67. package/dist-es/commands/ListAssociatedFleetsCommand.js +3 -9
  68. package/dist-es/commands/ListAssociatedStacksCommand.js +3 -9
  69. package/dist-es/commands/ListEntitledApplicationsCommand.js +3 -9
  70. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  71. package/dist-es/commands/StartAppBlockBuilderCommand.js +3 -9
  72. package/dist-es/commands/StartFleetCommand.js +3 -9
  73. package/dist-es/commands/StartImageBuilderCommand.js +3 -9
  74. package/dist-es/commands/StartSoftwareDeploymentToImageBuilderCommand.js +3 -9
  75. package/dist-es/commands/StopAppBlockBuilderCommand.js +3 -9
  76. package/dist-es/commands/StopFleetCommand.js +3 -9
  77. package/dist-es/commands/StopImageBuilderCommand.js +3 -9
  78. package/dist-es/commands/TagResourceCommand.js +3 -9
  79. package/dist-es/commands/UntagResourceCommand.js +3 -9
  80. package/dist-es/commands/UpdateAppBlockBuilderCommand.js +3 -9
  81. package/dist-es/commands/UpdateApplicationCommand.js +3 -9
  82. package/dist-es/commands/UpdateDirectoryConfigCommand.js +3 -10
  83. package/dist-es/commands/UpdateEntitlementCommand.js +3 -9
  84. package/dist-es/commands/UpdateFleetCommand.js +3 -9
  85. package/dist-es/commands/UpdateImagePermissionsCommand.js +3 -9
  86. package/dist-es/commands/UpdateStackCommand.js +3 -9
  87. package/dist-es/commands/UpdateThemeForStackCommand.js +3 -9
  88. package/dist-es/models/models_0.js +0 -106
  89. package/dist-es/runtimeConfig.shared.js +7 -0
  90. package/dist-es/schemas/schemas_0.js +2375 -0
  91. package/dist-types/AppStreamClient.d.ts +10 -1
  92. package/dist-types/commands/CreateImageBuilderCommand.d.ts +3 -0
  93. package/dist-types/commands/DeleteImageBuilderCommand.d.ts +3 -0
  94. package/dist-types/commands/DescribeImageBuildersCommand.d.ts +3 -0
  95. package/dist-types/commands/DescribeSessionsCommand.d.ts +3 -0
  96. package/dist-types/commands/StartImageBuilderCommand.d.ts +3 -0
  97. package/dist-types/commands/StopImageBuilderCommand.d.ts +3 -0
  98. package/dist-types/models/models_0.d.ts +5 -84
  99. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  100. package/dist-types/runtimeConfig.d.ts +1 -0
  101. package/dist-types/runtimeConfig.native.d.ts +1 -0
  102. package/dist-types/runtimeConfig.shared.d.ts +2 -5
  103. package/dist-types/schemas/schemas_0.d.ts +369 -0
  104. package/dist-types/ts3.4/AppStreamClient.d.ts +4 -0
  105. package/dist-types/ts3.4/models/models_0.d.ts +1 -61
  106. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  107. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  108. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  109. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  110. package/dist-types/ts3.4/schemas/schemas_0.d.ts +375 -0
  111. package/package.json +5 -5
  112. package/dist-es/protocols/Aws_json1_1.js +0 -2379
  113. package/dist-types/protocols/Aws_json1_1.d.ts +0 -758
  114. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -1013
@@ -1,2379 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AppStreamServiceException as __BaseException } from "../models/AppStreamServiceException";
5
- import { ConcurrentModificationException, EntitlementAlreadyExistsException, EntitlementNotFoundException, IncompatibleImageException, InvalidAccountStatusException, InvalidParameterCombinationException, InvalidRoleException, LimitExceededException, OperationNotPermittedException, RequestLimitExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotAvailableException, ResourceNotFoundException, } from "../models/models_0";
6
- export const se_AssociateAppBlockBuilderAppBlockCommand = async (input, context) => {
7
- const headers = sharedHeaders("AssociateAppBlockBuilderAppBlock");
8
- let body;
9
- body = JSON.stringify(_json(input));
10
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
- };
12
- export const se_AssociateApplicationFleetCommand = async (input, context) => {
13
- const headers = sharedHeaders("AssociateApplicationFleet");
14
- let body;
15
- body = JSON.stringify(_json(input));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- export const se_AssociateApplicationToEntitlementCommand = async (input, context) => {
19
- const headers = sharedHeaders("AssociateApplicationToEntitlement");
20
- let body;
21
- body = JSON.stringify(_json(input));
22
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
- };
24
- export const se_AssociateFleetCommand = async (input, context) => {
25
- const headers = sharedHeaders("AssociateFleet");
26
- let body;
27
- body = JSON.stringify(_json(input));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- export const se_AssociateSoftwareToImageBuilderCommand = async (input, context) => {
31
- const headers = sharedHeaders("AssociateSoftwareToImageBuilder");
32
- let body;
33
- body = JSON.stringify(_json(input));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- export const se_BatchAssociateUserStackCommand = async (input, context) => {
37
- const headers = sharedHeaders("BatchAssociateUserStack");
38
- let body;
39
- body = JSON.stringify(_json(input));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- export const se_BatchDisassociateUserStackCommand = async (input, context) => {
43
- const headers = sharedHeaders("BatchDisassociateUserStack");
44
- let body;
45
- body = JSON.stringify(_json(input));
46
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
- };
48
- export const se_CopyImageCommand = async (input, context) => {
49
- const headers = sharedHeaders("CopyImage");
50
- let body;
51
- body = JSON.stringify(_json(input));
52
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
- };
54
- export const se_CreateAppBlockCommand = async (input, context) => {
55
- const headers = sharedHeaders("CreateAppBlock");
56
- let body;
57
- body = JSON.stringify(_json(input));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- export const se_CreateAppBlockBuilderCommand = async (input, context) => {
61
- const headers = sharedHeaders("CreateAppBlockBuilder");
62
- let body;
63
- body = JSON.stringify(_json(input));
64
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
- };
66
- export const se_CreateAppBlockBuilderStreamingURLCommand = async (input, context) => {
67
- const headers = sharedHeaders("CreateAppBlockBuilderStreamingURL");
68
- let body;
69
- body = JSON.stringify(_json(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- export const se_CreateApplicationCommand = async (input, context) => {
73
- const headers = sharedHeaders("CreateApplication");
74
- let body;
75
- body = JSON.stringify(_json(input));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- export const se_CreateDirectoryConfigCommand = async (input, context) => {
79
- const headers = sharedHeaders("CreateDirectoryConfig");
80
- let body;
81
- body = JSON.stringify(_json(input));
82
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
- };
84
- export const se_CreateEntitlementCommand = async (input, context) => {
85
- const headers = sharedHeaders("CreateEntitlement");
86
- let body;
87
- body = JSON.stringify(_json(input));
88
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
- };
90
- export const se_CreateFleetCommand = async (input, context) => {
91
- const headers = sharedHeaders("CreateFleet");
92
- let body;
93
- body = JSON.stringify(_json(input));
94
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
- };
96
- export const se_CreateImageBuilderCommand = async (input, context) => {
97
- const headers = sharedHeaders("CreateImageBuilder");
98
- let body;
99
- body = JSON.stringify(_json(input));
100
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
- };
102
- export const se_CreateImageBuilderStreamingURLCommand = async (input, context) => {
103
- const headers = sharedHeaders("CreateImageBuilderStreamingURL");
104
- let body;
105
- body = JSON.stringify(_json(input));
106
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
- };
108
- export const se_CreateStackCommand = async (input, context) => {
109
- const headers = sharedHeaders("CreateStack");
110
- let body;
111
- body = JSON.stringify(_json(input));
112
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
- };
114
- export const se_CreateStreamingURLCommand = async (input, context) => {
115
- const headers = sharedHeaders("CreateStreamingURL");
116
- let body;
117
- body = JSON.stringify(_json(input));
118
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
- };
120
- export const se_CreateThemeForStackCommand = async (input, context) => {
121
- const headers = sharedHeaders("CreateThemeForStack");
122
- let body;
123
- body = JSON.stringify(_json(input));
124
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
- };
126
- export const se_CreateUpdatedImageCommand = async (input, context) => {
127
- const headers = sharedHeaders("CreateUpdatedImage");
128
- let body;
129
- body = JSON.stringify(_json(input));
130
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
- };
132
- export const se_CreateUsageReportSubscriptionCommand = async (input, context) => {
133
- const headers = sharedHeaders("CreateUsageReportSubscription");
134
- let body;
135
- body = JSON.stringify(_json(input));
136
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
- };
138
- export const se_CreateUserCommand = async (input, context) => {
139
- const headers = sharedHeaders("CreateUser");
140
- let body;
141
- body = JSON.stringify(_json(input));
142
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
- };
144
- export const se_DeleteAppBlockCommand = async (input, context) => {
145
- const headers = sharedHeaders("DeleteAppBlock");
146
- let body;
147
- body = JSON.stringify(_json(input));
148
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
- };
150
- export const se_DeleteAppBlockBuilderCommand = async (input, context) => {
151
- const headers = sharedHeaders("DeleteAppBlockBuilder");
152
- let body;
153
- body = JSON.stringify(_json(input));
154
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
- };
156
- export const se_DeleteApplicationCommand = async (input, context) => {
157
- const headers = sharedHeaders("DeleteApplication");
158
- let body;
159
- body = JSON.stringify(_json(input));
160
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
- };
162
- export const se_DeleteDirectoryConfigCommand = async (input, context) => {
163
- const headers = sharedHeaders("DeleteDirectoryConfig");
164
- let body;
165
- body = JSON.stringify(_json(input));
166
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
- };
168
- export const se_DeleteEntitlementCommand = async (input, context) => {
169
- const headers = sharedHeaders("DeleteEntitlement");
170
- let body;
171
- body = JSON.stringify(_json(input));
172
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
- };
174
- export const se_DeleteFleetCommand = async (input, context) => {
175
- const headers = sharedHeaders("DeleteFleet");
176
- let body;
177
- body = JSON.stringify(_json(input));
178
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
- };
180
- export const se_DeleteImageCommand = async (input, context) => {
181
- const headers = sharedHeaders("DeleteImage");
182
- let body;
183
- body = JSON.stringify(_json(input));
184
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
- };
186
- export const se_DeleteImageBuilderCommand = async (input, context) => {
187
- const headers = sharedHeaders("DeleteImageBuilder");
188
- let body;
189
- body = JSON.stringify(_json(input));
190
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
- };
192
- export const se_DeleteImagePermissionsCommand = async (input, context) => {
193
- const headers = sharedHeaders("DeleteImagePermissions");
194
- let body;
195
- body = JSON.stringify(_json(input));
196
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
- };
198
- export const se_DeleteStackCommand = async (input, context) => {
199
- const headers = sharedHeaders("DeleteStack");
200
- let body;
201
- body = JSON.stringify(_json(input));
202
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
- };
204
- export const se_DeleteThemeForStackCommand = async (input, context) => {
205
- const headers = sharedHeaders("DeleteThemeForStack");
206
- let body;
207
- body = JSON.stringify(_json(input));
208
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
- };
210
- export const se_DeleteUsageReportSubscriptionCommand = async (input, context) => {
211
- const headers = sharedHeaders("DeleteUsageReportSubscription");
212
- let body;
213
- body = JSON.stringify(_json(input));
214
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
- };
216
- export const se_DeleteUserCommand = async (input, context) => {
217
- const headers = sharedHeaders("DeleteUser");
218
- let body;
219
- body = JSON.stringify(_json(input));
220
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
- };
222
- export const se_DescribeAppBlockBuilderAppBlockAssociationsCommand = async (input, context) => {
223
- const headers = sharedHeaders("DescribeAppBlockBuilderAppBlockAssociations");
224
- let body;
225
- body = JSON.stringify(_json(input));
226
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
- };
228
- export const se_DescribeAppBlockBuildersCommand = async (input, context) => {
229
- const headers = sharedHeaders("DescribeAppBlockBuilders");
230
- let body;
231
- body = JSON.stringify(_json(input));
232
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
- };
234
- export const se_DescribeAppBlocksCommand = async (input, context) => {
235
- const headers = sharedHeaders("DescribeAppBlocks");
236
- let body;
237
- body = JSON.stringify(_json(input));
238
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
- };
240
- export const se_DescribeApplicationFleetAssociationsCommand = async (input, context) => {
241
- const headers = sharedHeaders("DescribeApplicationFleetAssociations");
242
- let body;
243
- body = JSON.stringify(_json(input));
244
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
- };
246
- export const se_DescribeApplicationsCommand = async (input, context) => {
247
- const headers = sharedHeaders("DescribeApplications");
248
- let body;
249
- body = JSON.stringify(_json(input));
250
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
251
- };
252
- export const se_DescribeAppLicenseUsageCommand = async (input, context) => {
253
- const headers = sharedHeaders("DescribeAppLicenseUsage");
254
- let body;
255
- body = JSON.stringify(_json(input));
256
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
- };
258
- export const se_DescribeDirectoryConfigsCommand = async (input, context) => {
259
- const headers = sharedHeaders("DescribeDirectoryConfigs");
260
- let body;
261
- body = JSON.stringify(_json(input));
262
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
- };
264
- export const se_DescribeEntitlementsCommand = async (input, context) => {
265
- const headers = sharedHeaders("DescribeEntitlements");
266
- let body;
267
- body = JSON.stringify(_json(input));
268
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
- };
270
- export const se_DescribeFleetsCommand = async (input, context) => {
271
- const headers = sharedHeaders("DescribeFleets");
272
- let body;
273
- body = JSON.stringify(_json(input));
274
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
- };
276
- export const se_DescribeImageBuildersCommand = async (input, context) => {
277
- const headers = sharedHeaders("DescribeImageBuilders");
278
- let body;
279
- body = JSON.stringify(_json(input));
280
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
- };
282
- export const se_DescribeImagePermissionsCommand = async (input, context) => {
283
- const headers = sharedHeaders("DescribeImagePermissions");
284
- let body;
285
- body = JSON.stringify(_json(input));
286
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
- };
288
- export const se_DescribeImagesCommand = async (input, context) => {
289
- const headers = sharedHeaders("DescribeImages");
290
- let body;
291
- body = JSON.stringify(_json(input));
292
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
- };
294
- export const se_DescribeSessionsCommand = async (input, context) => {
295
- const headers = sharedHeaders("DescribeSessions");
296
- let body;
297
- body = JSON.stringify(_json(input));
298
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
- };
300
- export const se_DescribeSoftwareAssociationsCommand = async (input, context) => {
301
- const headers = sharedHeaders("DescribeSoftwareAssociations");
302
- let body;
303
- body = JSON.stringify(_json(input));
304
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
- };
306
- export const se_DescribeStacksCommand = async (input, context) => {
307
- const headers = sharedHeaders("DescribeStacks");
308
- let body;
309
- body = JSON.stringify(_json(input));
310
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
- };
312
- export const se_DescribeThemeForStackCommand = async (input, context) => {
313
- const headers = sharedHeaders("DescribeThemeForStack");
314
- let body;
315
- body = JSON.stringify(_json(input));
316
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
- };
318
- export const se_DescribeUsageReportSubscriptionsCommand = async (input, context) => {
319
- const headers = sharedHeaders("DescribeUsageReportSubscriptions");
320
- let body;
321
- body = JSON.stringify(_json(input));
322
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
- };
324
- export const se_DescribeUsersCommand = async (input, context) => {
325
- const headers = sharedHeaders("DescribeUsers");
326
- let body;
327
- body = JSON.stringify(_json(input));
328
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
- };
330
- export const se_DescribeUserStackAssociationsCommand = async (input, context) => {
331
- const headers = sharedHeaders("DescribeUserStackAssociations");
332
- let body;
333
- body = JSON.stringify(_json(input));
334
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
- };
336
- export const se_DisableUserCommand = async (input, context) => {
337
- const headers = sharedHeaders("DisableUser");
338
- let body;
339
- body = JSON.stringify(_json(input));
340
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
- };
342
- export const se_DisassociateAppBlockBuilderAppBlockCommand = async (input, context) => {
343
- const headers = sharedHeaders("DisassociateAppBlockBuilderAppBlock");
344
- let body;
345
- body = JSON.stringify(_json(input));
346
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
- };
348
- export const se_DisassociateApplicationFleetCommand = async (input, context) => {
349
- const headers = sharedHeaders("DisassociateApplicationFleet");
350
- let body;
351
- body = JSON.stringify(_json(input));
352
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
- };
354
- export const se_DisassociateApplicationFromEntitlementCommand = async (input, context) => {
355
- const headers = sharedHeaders("DisassociateApplicationFromEntitlement");
356
- let body;
357
- body = JSON.stringify(_json(input));
358
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
359
- };
360
- export const se_DisassociateFleetCommand = async (input, context) => {
361
- const headers = sharedHeaders("DisassociateFleet");
362
- let body;
363
- body = JSON.stringify(_json(input));
364
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
- };
366
- export const se_DisassociateSoftwareFromImageBuilderCommand = async (input, context) => {
367
- const headers = sharedHeaders("DisassociateSoftwareFromImageBuilder");
368
- let body;
369
- body = JSON.stringify(_json(input));
370
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
371
- };
372
- export const se_EnableUserCommand = async (input, context) => {
373
- const headers = sharedHeaders("EnableUser");
374
- let body;
375
- body = JSON.stringify(_json(input));
376
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
- };
378
- export const se_ExpireSessionCommand = async (input, context) => {
379
- const headers = sharedHeaders("ExpireSession");
380
- let body;
381
- body = JSON.stringify(_json(input));
382
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
383
- };
384
- export const se_ListAssociatedFleetsCommand = async (input, context) => {
385
- const headers = sharedHeaders("ListAssociatedFleets");
386
- let body;
387
- body = JSON.stringify(_json(input));
388
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
389
- };
390
- export const se_ListAssociatedStacksCommand = async (input, context) => {
391
- const headers = sharedHeaders("ListAssociatedStacks");
392
- let body;
393
- body = JSON.stringify(_json(input));
394
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
395
- };
396
- export const se_ListEntitledApplicationsCommand = async (input, context) => {
397
- const headers = sharedHeaders("ListEntitledApplications");
398
- let body;
399
- body = JSON.stringify(_json(input));
400
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
401
- };
402
- export const se_ListTagsForResourceCommand = async (input, context) => {
403
- const headers = sharedHeaders("ListTagsForResource");
404
- let body;
405
- body = JSON.stringify(_json(input));
406
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
- };
408
- export const se_StartAppBlockBuilderCommand = async (input, context) => {
409
- const headers = sharedHeaders("StartAppBlockBuilder");
410
- let body;
411
- body = JSON.stringify(_json(input));
412
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
413
- };
414
- export const se_StartFleetCommand = async (input, context) => {
415
- const headers = sharedHeaders("StartFleet");
416
- let body;
417
- body = JSON.stringify(_json(input));
418
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
419
- };
420
- export const se_StartImageBuilderCommand = async (input, context) => {
421
- const headers = sharedHeaders("StartImageBuilder");
422
- let body;
423
- body = JSON.stringify(_json(input));
424
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
425
- };
426
- export const se_StartSoftwareDeploymentToImageBuilderCommand = async (input, context) => {
427
- const headers = sharedHeaders("StartSoftwareDeploymentToImageBuilder");
428
- let body;
429
- body = JSON.stringify(_json(input));
430
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
431
- };
432
- export const se_StopAppBlockBuilderCommand = async (input, context) => {
433
- const headers = sharedHeaders("StopAppBlockBuilder");
434
- let body;
435
- body = JSON.stringify(_json(input));
436
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
- };
438
- export const se_StopFleetCommand = async (input, context) => {
439
- const headers = sharedHeaders("StopFleet");
440
- let body;
441
- body = JSON.stringify(_json(input));
442
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
443
- };
444
- export const se_StopImageBuilderCommand = async (input, context) => {
445
- const headers = sharedHeaders("StopImageBuilder");
446
- let body;
447
- body = JSON.stringify(_json(input));
448
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
- };
450
- export const se_TagResourceCommand = async (input, context) => {
451
- const headers = sharedHeaders("TagResource");
452
- let body;
453
- body = JSON.stringify(_json(input));
454
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
455
- };
456
- export const se_UntagResourceCommand = async (input, context) => {
457
- const headers = sharedHeaders("UntagResource");
458
- let body;
459
- body = JSON.stringify(_json(input));
460
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
461
- };
462
- export const se_UpdateAppBlockBuilderCommand = async (input, context) => {
463
- const headers = sharedHeaders("UpdateAppBlockBuilder");
464
- let body;
465
- body = JSON.stringify(_json(input));
466
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
467
- };
468
- export const se_UpdateApplicationCommand = async (input, context) => {
469
- const headers = sharedHeaders("UpdateApplication");
470
- let body;
471
- body = JSON.stringify(_json(input));
472
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
473
- };
474
- export const se_UpdateDirectoryConfigCommand = async (input, context) => {
475
- const headers = sharedHeaders("UpdateDirectoryConfig");
476
- let body;
477
- body = JSON.stringify(_json(input));
478
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
479
- };
480
- export const se_UpdateEntitlementCommand = async (input, context) => {
481
- const headers = sharedHeaders("UpdateEntitlement");
482
- let body;
483
- body = JSON.stringify(_json(input));
484
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
485
- };
486
- export const se_UpdateFleetCommand = async (input, context) => {
487
- const headers = sharedHeaders("UpdateFleet");
488
- let body;
489
- body = JSON.stringify(_json(input));
490
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
491
- };
492
- export const se_UpdateImagePermissionsCommand = async (input, context) => {
493
- const headers = sharedHeaders("UpdateImagePermissions");
494
- let body;
495
- body = JSON.stringify(_json(input));
496
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
497
- };
498
- export const se_UpdateStackCommand = async (input, context) => {
499
- const headers = sharedHeaders("UpdateStack");
500
- let body;
501
- body = JSON.stringify(_json(input));
502
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
503
- };
504
- export const se_UpdateThemeForStackCommand = async (input, context) => {
505
- const headers = sharedHeaders("UpdateThemeForStack");
506
- let body;
507
- body = JSON.stringify(_json(input));
508
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
509
- };
510
- export const de_AssociateAppBlockBuilderAppBlockCommand = async (output, context) => {
511
- if (output.statusCode >= 300) {
512
- return de_CommandError(output, context);
513
- }
514
- const data = await parseBody(output.body, context);
515
- let contents = {};
516
- contents = _json(data);
517
- const response = {
518
- $metadata: deserializeMetadata(output),
519
- ...contents,
520
- };
521
- return response;
522
- };
523
- export const de_AssociateApplicationFleetCommand = async (output, context) => {
524
- if (output.statusCode >= 300) {
525
- return de_CommandError(output, context);
526
- }
527
- const data = await parseBody(output.body, context);
528
- let contents = {};
529
- contents = _json(data);
530
- const response = {
531
- $metadata: deserializeMetadata(output),
532
- ...contents,
533
- };
534
- return response;
535
- };
536
- export const de_AssociateApplicationToEntitlementCommand = async (output, context) => {
537
- if (output.statusCode >= 300) {
538
- return de_CommandError(output, context);
539
- }
540
- const data = await parseBody(output.body, context);
541
- let contents = {};
542
- contents = _json(data);
543
- const response = {
544
- $metadata: deserializeMetadata(output),
545
- ...contents,
546
- };
547
- return response;
548
- };
549
- export const de_AssociateFleetCommand = async (output, context) => {
550
- if (output.statusCode >= 300) {
551
- return de_CommandError(output, context);
552
- }
553
- const data = await parseBody(output.body, context);
554
- let contents = {};
555
- contents = _json(data);
556
- const response = {
557
- $metadata: deserializeMetadata(output),
558
- ...contents,
559
- };
560
- return response;
561
- };
562
- export const de_AssociateSoftwareToImageBuilderCommand = async (output, context) => {
563
- if (output.statusCode >= 300) {
564
- return de_CommandError(output, context);
565
- }
566
- const data = await parseBody(output.body, context);
567
- let contents = {};
568
- contents = _json(data);
569
- const response = {
570
- $metadata: deserializeMetadata(output),
571
- ...contents,
572
- };
573
- return response;
574
- };
575
- export const de_BatchAssociateUserStackCommand = async (output, context) => {
576
- if (output.statusCode >= 300) {
577
- return de_CommandError(output, context);
578
- }
579
- const data = await parseBody(output.body, context);
580
- let contents = {};
581
- contents = _json(data);
582
- const response = {
583
- $metadata: deserializeMetadata(output),
584
- ...contents,
585
- };
586
- return response;
587
- };
588
- export const de_BatchDisassociateUserStackCommand = async (output, context) => {
589
- if (output.statusCode >= 300) {
590
- return de_CommandError(output, context);
591
- }
592
- const data = await parseBody(output.body, context);
593
- let contents = {};
594
- contents = _json(data);
595
- const response = {
596
- $metadata: deserializeMetadata(output),
597
- ...contents,
598
- };
599
- return response;
600
- };
601
- export const de_CopyImageCommand = async (output, context) => {
602
- if (output.statusCode >= 300) {
603
- return de_CommandError(output, context);
604
- }
605
- const data = await parseBody(output.body, context);
606
- let contents = {};
607
- contents = _json(data);
608
- const response = {
609
- $metadata: deserializeMetadata(output),
610
- ...contents,
611
- };
612
- return response;
613
- };
614
- export const de_CreateAppBlockCommand = async (output, context) => {
615
- if (output.statusCode >= 300) {
616
- return de_CommandError(output, context);
617
- }
618
- const data = await parseBody(output.body, context);
619
- let contents = {};
620
- contents = de_CreateAppBlockResult(data, context);
621
- const response = {
622
- $metadata: deserializeMetadata(output),
623
- ...contents,
624
- };
625
- return response;
626
- };
627
- export const de_CreateAppBlockBuilderCommand = async (output, context) => {
628
- if (output.statusCode >= 300) {
629
- return de_CommandError(output, context);
630
- }
631
- const data = await parseBody(output.body, context);
632
- let contents = {};
633
- contents = de_CreateAppBlockBuilderResult(data, context);
634
- const response = {
635
- $metadata: deserializeMetadata(output),
636
- ...contents,
637
- };
638
- return response;
639
- };
640
- export const de_CreateAppBlockBuilderStreamingURLCommand = async (output, context) => {
641
- if (output.statusCode >= 300) {
642
- return de_CommandError(output, context);
643
- }
644
- const data = await parseBody(output.body, context);
645
- let contents = {};
646
- contents = de_CreateAppBlockBuilderStreamingURLResult(data, context);
647
- const response = {
648
- $metadata: deserializeMetadata(output),
649
- ...contents,
650
- };
651
- return response;
652
- };
653
- export const de_CreateApplicationCommand = async (output, context) => {
654
- if (output.statusCode >= 300) {
655
- return de_CommandError(output, context);
656
- }
657
- const data = await parseBody(output.body, context);
658
- let contents = {};
659
- contents = de_CreateApplicationResult(data, context);
660
- const response = {
661
- $metadata: deserializeMetadata(output),
662
- ...contents,
663
- };
664
- return response;
665
- };
666
- export const de_CreateDirectoryConfigCommand = async (output, context) => {
667
- if (output.statusCode >= 300) {
668
- return de_CommandError(output, context);
669
- }
670
- const data = await parseBody(output.body, context);
671
- let contents = {};
672
- contents = de_CreateDirectoryConfigResult(data, context);
673
- const response = {
674
- $metadata: deserializeMetadata(output),
675
- ...contents,
676
- };
677
- return response;
678
- };
679
- export const de_CreateEntitlementCommand = async (output, context) => {
680
- if (output.statusCode >= 300) {
681
- return de_CommandError(output, context);
682
- }
683
- const data = await parseBody(output.body, context);
684
- let contents = {};
685
- contents = de_CreateEntitlementResult(data, context);
686
- const response = {
687
- $metadata: deserializeMetadata(output),
688
- ...contents,
689
- };
690
- return response;
691
- };
692
- export const de_CreateFleetCommand = async (output, context) => {
693
- if (output.statusCode >= 300) {
694
- return de_CommandError(output, context);
695
- }
696
- const data = await parseBody(output.body, context);
697
- let contents = {};
698
- contents = de_CreateFleetResult(data, context);
699
- const response = {
700
- $metadata: deserializeMetadata(output),
701
- ...contents,
702
- };
703
- return response;
704
- };
705
- export const de_CreateImageBuilderCommand = async (output, context) => {
706
- if (output.statusCode >= 300) {
707
- return de_CommandError(output, context);
708
- }
709
- const data = await parseBody(output.body, context);
710
- let contents = {};
711
- contents = de_CreateImageBuilderResult(data, context);
712
- const response = {
713
- $metadata: deserializeMetadata(output),
714
- ...contents,
715
- };
716
- return response;
717
- };
718
- export const de_CreateImageBuilderStreamingURLCommand = async (output, context) => {
719
- if (output.statusCode >= 300) {
720
- return de_CommandError(output, context);
721
- }
722
- const data = await parseBody(output.body, context);
723
- let contents = {};
724
- contents = de_CreateImageBuilderStreamingURLResult(data, context);
725
- const response = {
726
- $metadata: deserializeMetadata(output),
727
- ...contents,
728
- };
729
- return response;
730
- };
731
- export const de_CreateStackCommand = async (output, context) => {
732
- if (output.statusCode >= 300) {
733
- return de_CommandError(output, context);
734
- }
735
- const data = await parseBody(output.body, context);
736
- let contents = {};
737
- contents = de_CreateStackResult(data, context);
738
- const response = {
739
- $metadata: deserializeMetadata(output),
740
- ...contents,
741
- };
742
- return response;
743
- };
744
- export const de_CreateStreamingURLCommand = async (output, context) => {
745
- if (output.statusCode >= 300) {
746
- return de_CommandError(output, context);
747
- }
748
- const data = await parseBody(output.body, context);
749
- let contents = {};
750
- contents = de_CreateStreamingURLResult(data, context);
751
- const response = {
752
- $metadata: deserializeMetadata(output),
753
- ...contents,
754
- };
755
- return response;
756
- };
757
- export const de_CreateThemeForStackCommand = async (output, context) => {
758
- if (output.statusCode >= 300) {
759
- return de_CommandError(output, context);
760
- }
761
- const data = await parseBody(output.body, context);
762
- let contents = {};
763
- contents = de_CreateThemeForStackResult(data, context);
764
- const response = {
765
- $metadata: deserializeMetadata(output),
766
- ...contents,
767
- };
768
- return response;
769
- };
770
- export const de_CreateUpdatedImageCommand = async (output, context) => {
771
- if (output.statusCode >= 300) {
772
- return de_CommandError(output, context);
773
- }
774
- const data = await parseBody(output.body, context);
775
- let contents = {};
776
- contents = de_CreateUpdatedImageResult(data, context);
777
- const response = {
778
- $metadata: deserializeMetadata(output),
779
- ...contents,
780
- };
781
- return response;
782
- };
783
- export const de_CreateUsageReportSubscriptionCommand = async (output, context) => {
784
- if (output.statusCode >= 300) {
785
- return de_CommandError(output, context);
786
- }
787
- const data = await parseBody(output.body, context);
788
- let contents = {};
789
- contents = _json(data);
790
- const response = {
791
- $metadata: deserializeMetadata(output),
792
- ...contents,
793
- };
794
- return response;
795
- };
796
- export const de_CreateUserCommand = async (output, context) => {
797
- if (output.statusCode >= 300) {
798
- return de_CommandError(output, context);
799
- }
800
- const data = await parseBody(output.body, context);
801
- let contents = {};
802
- contents = _json(data);
803
- const response = {
804
- $metadata: deserializeMetadata(output),
805
- ...contents,
806
- };
807
- return response;
808
- };
809
- export const de_DeleteAppBlockCommand = async (output, context) => {
810
- if (output.statusCode >= 300) {
811
- return de_CommandError(output, context);
812
- }
813
- const data = await parseBody(output.body, context);
814
- let contents = {};
815
- contents = _json(data);
816
- const response = {
817
- $metadata: deserializeMetadata(output),
818
- ...contents,
819
- };
820
- return response;
821
- };
822
- export const de_DeleteAppBlockBuilderCommand = async (output, context) => {
823
- if (output.statusCode >= 300) {
824
- return de_CommandError(output, context);
825
- }
826
- const data = await parseBody(output.body, context);
827
- let contents = {};
828
- contents = _json(data);
829
- const response = {
830
- $metadata: deserializeMetadata(output),
831
- ...contents,
832
- };
833
- return response;
834
- };
835
- export const de_DeleteApplicationCommand = async (output, context) => {
836
- if (output.statusCode >= 300) {
837
- return de_CommandError(output, context);
838
- }
839
- const data = await parseBody(output.body, context);
840
- let contents = {};
841
- contents = _json(data);
842
- const response = {
843
- $metadata: deserializeMetadata(output),
844
- ...contents,
845
- };
846
- return response;
847
- };
848
- export const de_DeleteDirectoryConfigCommand = async (output, context) => {
849
- if (output.statusCode >= 300) {
850
- return de_CommandError(output, context);
851
- }
852
- const data = await parseBody(output.body, context);
853
- let contents = {};
854
- contents = _json(data);
855
- const response = {
856
- $metadata: deserializeMetadata(output),
857
- ...contents,
858
- };
859
- return response;
860
- };
861
- export const de_DeleteEntitlementCommand = async (output, context) => {
862
- if (output.statusCode >= 300) {
863
- return de_CommandError(output, context);
864
- }
865
- const data = await parseBody(output.body, context);
866
- let contents = {};
867
- contents = _json(data);
868
- const response = {
869
- $metadata: deserializeMetadata(output),
870
- ...contents,
871
- };
872
- return response;
873
- };
874
- export const de_DeleteFleetCommand = async (output, context) => {
875
- if (output.statusCode >= 300) {
876
- return de_CommandError(output, context);
877
- }
878
- const data = await parseBody(output.body, context);
879
- let contents = {};
880
- contents = _json(data);
881
- const response = {
882
- $metadata: deserializeMetadata(output),
883
- ...contents,
884
- };
885
- return response;
886
- };
887
- export const de_DeleteImageCommand = async (output, context) => {
888
- if (output.statusCode >= 300) {
889
- return de_CommandError(output, context);
890
- }
891
- const data = await parseBody(output.body, context);
892
- let contents = {};
893
- contents = de_DeleteImageResult(data, context);
894
- const response = {
895
- $metadata: deserializeMetadata(output),
896
- ...contents,
897
- };
898
- return response;
899
- };
900
- export const de_DeleteImageBuilderCommand = async (output, context) => {
901
- if (output.statusCode >= 300) {
902
- return de_CommandError(output, context);
903
- }
904
- const data = await parseBody(output.body, context);
905
- let contents = {};
906
- contents = de_DeleteImageBuilderResult(data, context);
907
- const response = {
908
- $metadata: deserializeMetadata(output),
909
- ...contents,
910
- };
911
- return response;
912
- };
913
- export const de_DeleteImagePermissionsCommand = async (output, context) => {
914
- if (output.statusCode >= 300) {
915
- return de_CommandError(output, context);
916
- }
917
- const data = await parseBody(output.body, context);
918
- let contents = {};
919
- contents = _json(data);
920
- const response = {
921
- $metadata: deserializeMetadata(output),
922
- ...contents,
923
- };
924
- return response;
925
- };
926
- export const de_DeleteStackCommand = async (output, context) => {
927
- if (output.statusCode >= 300) {
928
- return de_CommandError(output, context);
929
- }
930
- const data = await parseBody(output.body, context);
931
- let contents = {};
932
- contents = _json(data);
933
- const response = {
934
- $metadata: deserializeMetadata(output),
935
- ...contents,
936
- };
937
- return response;
938
- };
939
- export const de_DeleteThemeForStackCommand = async (output, context) => {
940
- if (output.statusCode >= 300) {
941
- return de_CommandError(output, context);
942
- }
943
- const data = await parseBody(output.body, context);
944
- let contents = {};
945
- contents = _json(data);
946
- const response = {
947
- $metadata: deserializeMetadata(output),
948
- ...contents,
949
- };
950
- return response;
951
- };
952
- export const de_DeleteUsageReportSubscriptionCommand = async (output, context) => {
953
- if (output.statusCode >= 300) {
954
- return de_CommandError(output, context);
955
- }
956
- const data = await parseBody(output.body, context);
957
- let contents = {};
958
- contents = _json(data);
959
- const response = {
960
- $metadata: deserializeMetadata(output),
961
- ...contents,
962
- };
963
- return response;
964
- };
965
- export const de_DeleteUserCommand = async (output, context) => {
966
- if (output.statusCode >= 300) {
967
- return de_CommandError(output, context);
968
- }
969
- const data = await parseBody(output.body, context);
970
- let contents = {};
971
- contents = _json(data);
972
- const response = {
973
- $metadata: deserializeMetadata(output),
974
- ...contents,
975
- };
976
- return response;
977
- };
978
- export const de_DescribeAppBlockBuilderAppBlockAssociationsCommand = async (output, context) => {
979
- if (output.statusCode >= 300) {
980
- return de_CommandError(output, context);
981
- }
982
- const data = await parseBody(output.body, context);
983
- let contents = {};
984
- contents = _json(data);
985
- const response = {
986
- $metadata: deserializeMetadata(output),
987
- ...contents,
988
- };
989
- return response;
990
- };
991
- export const de_DescribeAppBlockBuildersCommand = async (output, context) => {
992
- if (output.statusCode >= 300) {
993
- return de_CommandError(output, context);
994
- }
995
- const data = await parseBody(output.body, context);
996
- let contents = {};
997
- contents = de_DescribeAppBlockBuildersResult(data, context);
998
- const response = {
999
- $metadata: deserializeMetadata(output),
1000
- ...contents,
1001
- };
1002
- return response;
1003
- };
1004
- export const de_DescribeAppBlocksCommand = async (output, context) => {
1005
- if (output.statusCode >= 300) {
1006
- return de_CommandError(output, context);
1007
- }
1008
- const data = await parseBody(output.body, context);
1009
- let contents = {};
1010
- contents = de_DescribeAppBlocksResult(data, context);
1011
- const response = {
1012
- $metadata: deserializeMetadata(output),
1013
- ...contents,
1014
- };
1015
- return response;
1016
- };
1017
- export const de_DescribeApplicationFleetAssociationsCommand = async (output, context) => {
1018
- if (output.statusCode >= 300) {
1019
- return de_CommandError(output, context);
1020
- }
1021
- const data = await parseBody(output.body, context);
1022
- let contents = {};
1023
- contents = _json(data);
1024
- const response = {
1025
- $metadata: deserializeMetadata(output),
1026
- ...contents,
1027
- };
1028
- return response;
1029
- };
1030
- export const de_DescribeApplicationsCommand = async (output, context) => {
1031
- if (output.statusCode >= 300) {
1032
- return de_CommandError(output, context);
1033
- }
1034
- const data = await parseBody(output.body, context);
1035
- let contents = {};
1036
- contents = de_DescribeApplicationsResult(data, context);
1037
- const response = {
1038
- $metadata: deserializeMetadata(output),
1039
- ...contents,
1040
- };
1041
- return response;
1042
- };
1043
- export const de_DescribeAppLicenseUsageCommand = async (output, context) => {
1044
- if (output.statusCode >= 300) {
1045
- return de_CommandError(output, context);
1046
- }
1047
- const data = await parseBody(output.body, context);
1048
- let contents = {};
1049
- contents = de_DescribeAppLicenseUsageResult(data, context);
1050
- const response = {
1051
- $metadata: deserializeMetadata(output),
1052
- ...contents,
1053
- };
1054
- return response;
1055
- };
1056
- export const de_DescribeDirectoryConfigsCommand = async (output, context) => {
1057
- if (output.statusCode >= 300) {
1058
- return de_CommandError(output, context);
1059
- }
1060
- const data = await parseBody(output.body, context);
1061
- let contents = {};
1062
- contents = de_DescribeDirectoryConfigsResult(data, context);
1063
- const response = {
1064
- $metadata: deserializeMetadata(output),
1065
- ...contents,
1066
- };
1067
- return response;
1068
- };
1069
- export const de_DescribeEntitlementsCommand = async (output, context) => {
1070
- if (output.statusCode >= 300) {
1071
- return de_CommandError(output, context);
1072
- }
1073
- const data = await parseBody(output.body, context);
1074
- let contents = {};
1075
- contents = de_DescribeEntitlementsResult(data, context);
1076
- const response = {
1077
- $metadata: deserializeMetadata(output),
1078
- ...contents,
1079
- };
1080
- return response;
1081
- };
1082
- export const de_DescribeFleetsCommand = async (output, context) => {
1083
- if (output.statusCode >= 300) {
1084
- return de_CommandError(output, context);
1085
- }
1086
- const data = await parseBody(output.body, context);
1087
- let contents = {};
1088
- contents = de_DescribeFleetsResult(data, context);
1089
- const response = {
1090
- $metadata: deserializeMetadata(output),
1091
- ...contents,
1092
- };
1093
- return response;
1094
- };
1095
- export const de_DescribeImageBuildersCommand = async (output, context) => {
1096
- if (output.statusCode >= 300) {
1097
- return de_CommandError(output, context);
1098
- }
1099
- const data = await parseBody(output.body, context);
1100
- let contents = {};
1101
- contents = de_DescribeImageBuildersResult(data, context);
1102
- const response = {
1103
- $metadata: deserializeMetadata(output),
1104
- ...contents,
1105
- };
1106
- return response;
1107
- };
1108
- export const de_DescribeImagePermissionsCommand = async (output, context) => {
1109
- if (output.statusCode >= 300) {
1110
- return de_CommandError(output, context);
1111
- }
1112
- const data = await parseBody(output.body, context);
1113
- let contents = {};
1114
- contents = _json(data);
1115
- const response = {
1116
- $metadata: deserializeMetadata(output),
1117
- ...contents,
1118
- };
1119
- return response;
1120
- };
1121
- export const de_DescribeImagesCommand = async (output, context) => {
1122
- if (output.statusCode >= 300) {
1123
- return de_CommandError(output, context);
1124
- }
1125
- const data = await parseBody(output.body, context);
1126
- let contents = {};
1127
- contents = de_DescribeImagesResult(data, context);
1128
- const response = {
1129
- $metadata: deserializeMetadata(output),
1130
- ...contents,
1131
- };
1132
- return response;
1133
- };
1134
- export const de_DescribeSessionsCommand = async (output, context) => {
1135
- if (output.statusCode >= 300) {
1136
- return de_CommandError(output, context);
1137
- }
1138
- const data = await parseBody(output.body, context);
1139
- let contents = {};
1140
- contents = de_DescribeSessionsResult(data, context);
1141
- const response = {
1142
- $metadata: deserializeMetadata(output),
1143
- ...contents,
1144
- };
1145
- return response;
1146
- };
1147
- export const de_DescribeSoftwareAssociationsCommand = async (output, context) => {
1148
- if (output.statusCode >= 300) {
1149
- return de_CommandError(output, context);
1150
- }
1151
- const data = await parseBody(output.body, context);
1152
- let contents = {};
1153
- contents = _json(data);
1154
- const response = {
1155
- $metadata: deserializeMetadata(output),
1156
- ...contents,
1157
- };
1158
- return response;
1159
- };
1160
- export const de_DescribeStacksCommand = async (output, context) => {
1161
- if (output.statusCode >= 300) {
1162
- return de_CommandError(output, context);
1163
- }
1164
- const data = await parseBody(output.body, context);
1165
- let contents = {};
1166
- contents = de_DescribeStacksResult(data, context);
1167
- const response = {
1168
- $metadata: deserializeMetadata(output),
1169
- ...contents,
1170
- };
1171
- return response;
1172
- };
1173
- export const de_DescribeThemeForStackCommand = async (output, context) => {
1174
- if (output.statusCode >= 300) {
1175
- return de_CommandError(output, context);
1176
- }
1177
- const data = await parseBody(output.body, context);
1178
- let contents = {};
1179
- contents = de_DescribeThemeForStackResult(data, context);
1180
- const response = {
1181
- $metadata: deserializeMetadata(output),
1182
- ...contents,
1183
- };
1184
- return response;
1185
- };
1186
- export const de_DescribeUsageReportSubscriptionsCommand = async (output, context) => {
1187
- if (output.statusCode >= 300) {
1188
- return de_CommandError(output, context);
1189
- }
1190
- const data = await parseBody(output.body, context);
1191
- let contents = {};
1192
- contents = de_DescribeUsageReportSubscriptionsResult(data, context);
1193
- const response = {
1194
- $metadata: deserializeMetadata(output),
1195
- ...contents,
1196
- };
1197
- return response;
1198
- };
1199
- export const de_DescribeUsersCommand = async (output, context) => {
1200
- if (output.statusCode >= 300) {
1201
- return de_CommandError(output, context);
1202
- }
1203
- const data = await parseBody(output.body, context);
1204
- let contents = {};
1205
- contents = de_DescribeUsersResult(data, context);
1206
- const response = {
1207
- $metadata: deserializeMetadata(output),
1208
- ...contents,
1209
- };
1210
- return response;
1211
- };
1212
- export const de_DescribeUserStackAssociationsCommand = async (output, context) => {
1213
- if (output.statusCode >= 300) {
1214
- return de_CommandError(output, context);
1215
- }
1216
- const data = await parseBody(output.body, context);
1217
- let contents = {};
1218
- contents = _json(data);
1219
- const response = {
1220
- $metadata: deserializeMetadata(output),
1221
- ...contents,
1222
- };
1223
- return response;
1224
- };
1225
- export const de_DisableUserCommand = async (output, context) => {
1226
- if (output.statusCode >= 300) {
1227
- return de_CommandError(output, context);
1228
- }
1229
- const data = await parseBody(output.body, context);
1230
- let contents = {};
1231
- contents = _json(data);
1232
- const response = {
1233
- $metadata: deserializeMetadata(output),
1234
- ...contents,
1235
- };
1236
- return response;
1237
- };
1238
- export const de_DisassociateAppBlockBuilderAppBlockCommand = async (output, context) => {
1239
- if (output.statusCode >= 300) {
1240
- return de_CommandError(output, context);
1241
- }
1242
- const data = await parseBody(output.body, context);
1243
- let contents = {};
1244
- contents = _json(data);
1245
- const response = {
1246
- $metadata: deserializeMetadata(output),
1247
- ...contents,
1248
- };
1249
- return response;
1250
- };
1251
- export const de_DisassociateApplicationFleetCommand = async (output, context) => {
1252
- if (output.statusCode >= 300) {
1253
- return de_CommandError(output, context);
1254
- }
1255
- const data = await parseBody(output.body, context);
1256
- let contents = {};
1257
- contents = _json(data);
1258
- const response = {
1259
- $metadata: deserializeMetadata(output),
1260
- ...contents,
1261
- };
1262
- return response;
1263
- };
1264
- export const de_DisassociateApplicationFromEntitlementCommand = async (output, context) => {
1265
- if (output.statusCode >= 300) {
1266
- return de_CommandError(output, context);
1267
- }
1268
- const data = await parseBody(output.body, context);
1269
- let contents = {};
1270
- contents = _json(data);
1271
- const response = {
1272
- $metadata: deserializeMetadata(output),
1273
- ...contents,
1274
- };
1275
- return response;
1276
- };
1277
- export const de_DisassociateFleetCommand = async (output, context) => {
1278
- if (output.statusCode >= 300) {
1279
- return de_CommandError(output, context);
1280
- }
1281
- const data = await parseBody(output.body, context);
1282
- let contents = {};
1283
- contents = _json(data);
1284
- const response = {
1285
- $metadata: deserializeMetadata(output),
1286
- ...contents,
1287
- };
1288
- return response;
1289
- };
1290
- export const de_DisassociateSoftwareFromImageBuilderCommand = async (output, context) => {
1291
- if (output.statusCode >= 300) {
1292
- return de_CommandError(output, context);
1293
- }
1294
- const data = await parseBody(output.body, context);
1295
- let contents = {};
1296
- contents = _json(data);
1297
- const response = {
1298
- $metadata: deserializeMetadata(output),
1299
- ...contents,
1300
- };
1301
- return response;
1302
- };
1303
- export const de_EnableUserCommand = async (output, context) => {
1304
- if (output.statusCode >= 300) {
1305
- return de_CommandError(output, context);
1306
- }
1307
- const data = await parseBody(output.body, context);
1308
- let contents = {};
1309
- contents = _json(data);
1310
- const response = {
1311
- $metadata: deserializeMetadata(output),
1312
- ...contents,
1313
- };
1314
- return response;
1315
- };
1316
- export const de_ExpireSessionCommand = async (output, context) => {
1317
- if (output.statusCode >= 300) {
1318
- return de_CommandError(output, context);
1319
- }
1320
- const data = await parseBody(output.body, context);
1321
- let contents = {};
1322
- contents = _json(data);
1323
- const response = {
1324
- $metadata: deserializeMetadata(output),
1325
- ...contents,
1326
- };
1327
- return response;
1328
- };
1329
- export const de_ListAssociatedFleetsCommand = async (output, context) => {
1330
- if (output.statusCode >= 300) {
1331
- return de_CommandError(output, context);
1332
- }
1333
- const data = await parseBody(output.body, context);
1334
- let contents = {};
1335
- contents = _json(data);
1336
- const response = {
1337
- $metadata: deserializeMetadata(output),
1338
- ...contents,
1339
- };
1340
- return response;
1341
- };
1342
- export const de_ListAssociatedStacksCommand = async (output, context) => {
1343
- if (output.statusCode >= 300) {
1344
- return de_CommandError(output, context);
1345
- }
1346
- const data = await parseBody(output.body, context);
1347
- let contents = {};
1348
- contents = _json(data);
1349
- const response = {
1350
- $metadata: deserializeMetadata(output),
1351
- ...contents,
1352
- };
1353
- return response;
1354
- };
1355
- export const de_ListEntitledApplicationsCommand = async (output, context) => {
1356
- if (output.statusCode >= 300) {
1357
- return de_CommandError(output, context);
1358
- }
1359
- const data = await parseBody(output.body, context);
1360
- let contents = {};
1361
- contents = _json(data);
1362
- const response = {
1363
- $metadata: deserializeMetadata(output),
1364
- ...contents,
1365
- };
1366
- return response;
1367
- };
1368
- export const de_ListTagsForResourceCommand = async (output, context) => {
1369
- if (output.statusCode >= 300) {
1370
- return de_CommandError(output, context);
1371
- }
1372
- const data = await parseBody(output.body, context);
1373
- let contents = {};
1374
- contents = _json(data);
1375
- const response = {
1376
- $metadata: deserializeMetadata(output),
1377
- ...contents,
1378
- };
1379
- return response;
1380
- };
1381
- export const de_StartAppBlockBuilderCommand = async (output, context) => {
1382
- if (output.statusCode >= 300) {
1383
- return de_CommandError(output, context);
1384
- }
1385
- const data = await parseBody(output.body, context);
1386
- let contents = {};
1387
- contents = de_StartAppBlockBuilderResult(data, context);
1388
- const response = {
1389
- $metadata: deserializeMetadata(output),
1390
- ...contents,
1391
- };
1392
- return response;
1393
- };
1394
- export const de_StartFleetCommand = async (output, context) => {
1395
- if (output.statusCode >= 300) {
1396
- return de_CommandError(output, context);
1397
- }
1398
- const data = await parseBody(output.body, context);
1399
- let contents = {};
1400
- contents = _json(data);
1401
- const response = {
1402
- $metadata: deserializeMetadata(output),
1403
- ...contents,
1404
- };
1405
- return response;
1406
- };
1407
- export const de_StartImageBuilderCommand = async (output, context) => {
1408
- if (output.statusCode >= 300) {
1409
- return de_CommandError(output, context);
1410
- }
1411
- const data = await parseBody(output.body, context);
1412
- let contents = {};
1413
- contents = de_StartImageBuilderResult(data, context);
1414
- const response = {
1415
- $metadata: deserializeMetadata(output),
1416
- ...contents,
1417
- };
1418
- return response;
1419
- };
1420
- export const de_StartSoftwareDeploymentToImageBuilderCommand = async (output, context) => {
1421
- if (output.statusCode >= 300) {
1422
- return de_CommandError(output, context);
1423
- }
1424
- const data = await parseBody(output.body, context);
1425
- let contents = {};
1426
- contents = _json(data);
1427
- const response = {
1428
- $metadata: deserializeMetadata(output),
1429
- ...contents,
1430
- };
1431
- return response;
1432
- };
1433
- export const de_StopAppBlockBuilderCommand = async (output, context) => {
1434
- if (output.statusCode >= 300) {
1435
- return de_CommandError(output, context);
1436
- }
1437
- const data = await parseBody(output.body, context);
1438
- let contents = {};
1439
- contents = de_StopAppBlockBuilderResult(data, context);
1440
- const response = {
1441
- $metadata: deserializeMetadata(output),
1442
- ...contents,
1443
- };
1444
- return response;
1445
- };
1446
- export const de_StopFleetCommand = async (output, context) => {
1447
- if (output.statusCode >= 300) {
1448
- return de_CommandError(output, context);
1449
- }
1450
- const data = await parseBody(output.body, context);
1451
- let contents = {};
1452
- contents = _json(data);
1453
- const response = {
1454
- $metadata: deserializeMetadata(output),
1455
- ...contents,
1456
- };
1457
- return response;
1458
- };
1459
- export const de_StopImageBuilderCommand = async (output, context) => {
1460
- if (output.statusCode >= 300) {
1461
- return de_CommandError(output, context);
1462
- }
1463
- const data = await parseBody(output.body, context);
1464
- let contents = {};
1465
- contents = de_StopImageBuilderResult(data, context);
1466
- const response = {
1467
- $metadata: deserializeMetadata(output),
1468
- ...contents,
1469
- };
1470
- return response;
1471
- };
1472
- export const de_TagResourceCommand = async (output, context) => {
1473
- if (output.statusCode >= 300) {
1474
- return de_CommandError(output, context);
1475
- }
1476
- const data = await parseBody(output.body, context);
1477
- let contents = {};
1478
- contents = _json(data);
1479
- const response = {
1480
- $metadata: deserializeMetadata(output),
1481
- ...contents,
1482
- };
1483
- return response;
1484
- };
1485
- export const de_UntagResourceCommand = async (output, context) => {
1486
- if (output.statusCode >= 300) {
1487
- return de_CommandError(output, context);
1488
- }
1489
- const data = await parseBody(output.body, context);
1490
- let contents = {};
1491
- contents = _json(data);
1492
- const response = {
1493
- $metadata: deserializeMetadata(output),
1494
- ...contents,
1495
- };
1496
- return response;
1497
- };
1498
- export const de_UpdateAppBlockBuilderCommand = async (output, context) => {
1499
- if (output.statusCode >= 300) {
1500
- return de_CommandError(output, context);
1501
- }
1502
- const data = await parseBody(output.body, context);
1503
- let contents = {};
1504
- contents = de_UpdateAppBlockBuilderResult(data, context);
1505
- const response = {
1506
- $metadata: deserializeMetadata(output),
1507
- ...contents,
1508
- };
1509
- return response;
1510
- };
1511
- export const de_UpdateApplicationCommand = async (output, context) => {
1512
- if (output.statusCode >= 300) {
1513
- return de_CommandError(output, context);
1514
- }
1515
- const data = await parseBody(output.body, context);
1516
- let contents = {};
1517
- contents = de_UpdateApplicationResult(data, context);
1518
- const response = {
1519
- $metadata: deserializeMetadata(output),
1520
- ...contents,
1521
- };
1522
- return response;
1523
- };
1524
- export const de_UpdateDirectoryConfigCommand = async (output, context) => {
1525
- if (output.statusCode >= 300) {
1526
- return de_CommandError(output, context);
1527
- }
1528
- const data = await parseBody(output.body, context);
1529
- let contents = {};
1530
- contents = de_UpdateDirectoryConfigResult(data, context);
1531
- const response = {
1532
- $metadata: deserializeMetadata(output),
1533
- ...contents,
1534
- };
1535
- return response;
1536
- };
1537
- export const de_UpdateEntitlementCommand = async (output, context) => {
1538
- if (output.statusCode >= 300) {
1539
- return de_CommandError(output, context);
1540
- }
1541
- const data = await parseBody(output.body, context);
1542
- let contents = {};
1543
- contents = de_UpdateEntitlementResult(data, context);
1544
- const response = {
1545
- $metadata: deserializeMetadata(output),
1546
- ...contents,
1547
- };
1548
- return response;
1549
- };
1550
- export const de_UpdateFleetCommand = async (output, context) => {
1551
- if (output.statusCode >= 300) {
1552
- return de_CommandError(output, context);
1553
- }
1554
- const data = await parseBody(output.body, context);
1555
- let contents = {};
1556
- contents = de_UpdateFleetResult(data, context);
1557
- const response = {
1558
- $metadata: deserializeMetadata(output),
1559
- ...contents,
1560
- };
1561
- return response;
1562
- };
1563
- export const de_UpdateImagePermissionsCommand = async (output, context) => {
1564
- if (output.statusCode >= 300) {
1565
- return de_CommandError(output, context);
1566
- }
1567
- const data = await parseBody(output.body, context);
1568
- let contents = {};
1569
- contents = _json(data);
1570
- const response = {
1571
- $metadata: deserializeMetadata(output),
1572
- ...contents,
1573
- };
1574
- return response;
1575
- };
1576
- export const de_UpdateStackCommand = async (output, context) => {
1577
- if (output.statusCode >= 300) {
1578
- return de_CommandError(output, context);
1579
- }
1580
- const data = await parseBody(output.body, context);
1581
- let contents = {};
1582
- contents = de_UpdateStackResult(data, context);
1583
- const response = {
1584
- $metadata: deserializeMetadata(output),
1585
- ...contents,
1586
- };
1587
- return response;
1588
- };
1589
- export const de_UpdateThemeForStackCommand = async (output, context) => {
1590
- if (output.statusCode >= 300) {
1591
- return de_CommandError(output, context);
1592
- }
1593
- const data = await parseBody(output.body, context);
1594
- let contents = {};
1595
- contents = de_UpdateThemeForStackResult(data, context);
1596
- const response = {
1597
- $metadata: deserializeMetadata(output),
1598
- ...contents,
1599
- };
1600
- return response;
1601
- };
1602
- const de_CommandError = async (output, context) => {
1603
- const parsedOutput = {
1604
- ...output,
1605
- body: await parseErrorBody(output.body, context),
1606
- };
1607
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1608
- switch (errorCode) {
1609
- case "ConcurrentModificationException":
1610
- case "com.amazonaws.appstream#ConcurrentModificationException":
1611
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1612
- case "InvalidParameterCombinationException":
1613
- case "com.amazonaws.appstream#InvalidParameterCombinationException":
1614
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1615
- case "LimitExceededException":
1616
- case "com.amazonaws.appstream#LimitExceededException":
1617
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1618
- case "OperationNotPermittedException":
1619
- case "com.amazonaws.appstream#OperationNotPermittedException":
1620
- throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1621
- case "ResourceNotFoundException":
1622
- case "com.amazonaws.appstream#ResourceNotFoundException":
1623
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1624
- case "EntitlementNotFoundException":
1625
- case "com.amazonaws.appstream#EntitlementNotFoundException":
1626
- throw await de_EntitlementNotFoundExceptionRes(parsedOutput, context);
1627
- case "IncompatibleImageException":
1628
- case "com.amazonaws.appstream#IncompatibleImageException":
1629
- throw await de_IncompatibleImageExceptionRes(parsedOutput, context);
1630
- case "InvalidAccountStatusException":
1631
- case "com.amazonaws.appstream#InvalidAccountStatusException":
1632
- throw await de_InvalidAccountStatusExceptionRes(parsedOutput, context);
1633
- case "ResourceAlreadyExistsException":
1634
- case "com.amazonaws.appstream#ResourceAlreadyExistsException":
1635
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1636
- case "ResourceNotAvailableException":
1637
- case "com.amazonaws.appstream#ResourceNotAvailableException":
1638
- throw await de_ResourceNotAvailableExceptionRes(parsedOutput, context);
1639
- case "InvalidRoleException":
1640
- case "com.amazonaws.appstream#InvalidRoleException":
1641
- throw await de_InvalidRoleExceptionRes(parsedOutput, context);
1642
- case "RequestLimitExceededException":
1643
- case "com.amazonaws.appstream#RequestLimitExceededException":
1644
- throw await de_RequestLimitExceededExceptionRes(parsedOutput, context);
1645
- case "EntitlementAlreadyExistsException":
1646
- case "com.amazonaws.appstream#EntitlementAlreadyExistsException":
1647
- throw await de_EntitlementAlreadyExistsExceptionRes(parsedOutput, context);
1648
- case "ResourceInUseException":
1649
- case "com.amazonaws.appstream#ResourceInUseException":
1650
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1651
- default:
1652
- const parsedBody = parsedOutput.body;
1653
- return throwDefaultError({
1654
- output,
1655
- parsedBody,
1656
- errorCode,
1657
- });
1658
- }
1659
- };
1660
- const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
1661
- const body = parsedOutput.body;
1662
- const deserialized = _json(body);
1663
- const exception = new ConcurrentModificationException({
1664
- $metadata: deserializeMetadata(parsedOutput),
1665
- ...deserialized,
1666
- });
1667
- return __decorateServiceException(exception, body);
1668
- };
1669
- const de_EntitlementAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1670
- const body = parsedOutput.body;
1671
- const deserialized = _json(body);
1672
- const exception = new EntitlementAlreadyExistsException({
1673
- $metadata: deserializeMetadata(parsedOutput),
1674
- ...deserialized,
1675
- });
1676
- return __decorateServiceException(exception, body);
1677
- };
1678
- const de_EntitlementNotFoundExceptionRes = async (parsedOutput, context) => {
1679
- const body = parsedOutput.body;
1680
- const deserialized = _json(body);
1681
- const exception = new EntitlementNotFoundException({
1682
- $metadata: deserializeMetadata(parsedOutput),
1683
- ...deserialized,
1684
- });
1685
- return __decorateServiceException(exception, body);
1686
- };
1687
- const de_IncompatibleImageExceptionRes = async (parsedOutput, context) => {
1688
- const body = parsedOutput.body;
1689
- const deserialized = _json(body);
1690
- const exception = new IncompatibleImageException({
1691
- $metadata: deserializeMetadata(parsedOutput),
1692
- ...deserialized,
1693
- });
1694
- return __decorateServiceException(exception, body);
1695
- };
1696
- const de_InvalidAccountStatusExceptionRes = async (parsedOutput, context) => {
1697
- const body = parsedOutput.body;
1698
- const deserialized = _json(body);
1699
- const exception = new InvalidAccountStatusException({
1700
- $metadata: deserializeMetadata(parsedOutput),
1701
- ...deserialized,
1702
- });
1703
- return __decorateServiceException(exception, body);
1704
- };
1705
- const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
1706
- const body = parsedOutput.body;
1707
- const deserialized = _json(body);
1708
- const exception = new InvalidParameterCombinationException({
1709
- $metadata: deserializeMetadata(parsedOutput),
1710
- ...deserialized,
1711
- });
1712
- return __decorateServiceException(exception, body);
1713
- };
1714
- const de_InvalidRoleExceptionRes = async (parsedOutput, context) => {
1715
- const body = parsedOutput.body;
1716
- const deserialized = _json(body);
1717
- const exception = new InvalidRoleException({
1718
- $metadata: deserializeMetadata(parsedOutput),
1719
- ...deserialized,
1720
- });
1721
- return __decorateServiceException(exception, body);
1722
- };
1723
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1724
- const body = parsedOutput.body;
1725
- const deserialized = _json(body);
1726
- const exception = new LimitExceededException({
1727
- $metadata: deserializeMetadata(parsedOutput),
1728
- ...deserialized,
1729
- });
1730
- return __decorateServiceException(exception, body);
1731
- };
1732
- const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
1733
- const body = parsedOutput.body;
1734
- const deserialized = _json(body);
1735
- const exception = new OperationNotPermittedException({
1736
- $metadata: deserializeMetadata(parsedOutput),
1737
- ...deserialized,
1738
- });
1739
- return __decorateServiceException(exception, body);
1740
- };
1741
- const de_RequestLimitExceededExceptionRes = async (parsedOutput, context) => {
1742
- const body = parsedOutput.body;
1743
- const deserialized = _json(body);
1744
- const exception = new RequestLimitExceededException({
1745
- $metadata: deserializeMetadata(parsedOutput),
1746
- ...deserialized,
1747
- });
1748
- return __decorateServiceException(exception, body);
1749
- };
1750
- const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1751
- const body = parsedOutput.body;
1752
- const deserialized = _json(body);
1753
- const exception = new ResourceAlreadyExistsException({
1754
- $metadata: deserializeMetadata(parsedOutput),
1755
- ...deserialized,
1756
- });
1757
- return __decorateServiceException(exception, body);
1758
- };
1759
- const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1760
- const body = parsedOutput.body;
1761
- const deserialized = _json(body);
1762
- const exception = new ResourceInUseException({
1763
- $metadata: deserializeMetadata(parsedOutput),
1764
- ...deserialized,
1765
- });
1766
- return __decorateServiceException(exception, body);
1767
- };
1768
- const de_ResourceNotAvailableExceptionRes = async (parsedOutput, context) => {
1769
- const body = parsedOutput.body;
1770
- const deserialized = _json(body);
1771
- const exception = new ResourceNotAvailableException({
1772
- $metadata: deserializeMetadata(parsedOutput),
1773
- ...deserialized,
1774
- });
1775
- return __decorateServiceException(exception, body);
1776
- };
1777
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1778
- const body = parsedOutput.body;
1779
- const deserialized = _json(body);
1780
- const exception = new ResourceNotFoundException({
1781
- $metadata: deserializeMetadata(parsedOutput),
1782
- ...deserialized,
1783
- });
1784
- return __decorateServiceException(exception, body);
1785
- };
1786
- const de_AdminAppLicenseUsageList = (output, context) => {
1787
- const retVal = (output || [])
1788
- .filter((e) => e != null)
1789
- .map((entry) => {
1790
- return de_AdminAppLicenseUsageRecord(entry, context);
1791
- });
1792
- return retVal;
1793
- };
1794
- const de_AdminAppLicenseUsageRecord = (output, context) => {
1795
- return take(output, {
1796
- BillingPeriod: __expectString,
1797
- LicenseType: __expectString,
1798
- OwnerAWSAccountId: __expectString,
1799
- SubscriptionFirstUsedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1800
- SubscriptionLastUsedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1801
- UserArn: __expectString,
1802
- UserId: __expectString,
1803
- });
1804
- };
1805
- const de_AppBlock = (output, context) => {
1806
- return take(output, {
1807
- AppBlockErrors: _json,
1808
- Arn: __expectString,
1809
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1810
- Description: __expectString,
1811
- DisplayName: __expectString,
1812
- Name: __expectString,
1813
- PackagingType: __expectString,
1814
- PostSetupScriptDetails: _json,
1815
- SetupScriptDetails: _json,
1816
- SourceS3Location: _json,
1817
- State: __expectString,
1818
- });
1819
- };
1820
- const de_AppBlockBuilder = (output, context) => {
1821
- return take(output, {
1822
- AccessEndpoints: _json,
1823
- AppBlockBuilderErrors: (_) => de_ResourceErrors(_, context),
1824
- Arn: __expectString,
1825
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1826
- Description: __expectString,
1827
- DisplayName: __expectString,
1828
- EnableDefaultInternetAccess: __expectBoolean,
1829
- IamRoleArn: __expectString,
1830
- InstanceType: __expectString,
1831
- Name: __expectString,
1832
- Platform: __expectString,
1833
- State: __expectString,
1834
- StateChangeReason: _json,
1835
- VpcConfig: _json,
1836
- });
1837
- };
1838
- const de_AppBlockBuilderList = (output, context) => {
1839
- const retVal = (output || [])
1840
- .filter((e) => e != null)
1841
- .map((entry) => {
1842
- return de_AppBlockBuilder(entry, context);
1843
- });
1844
- return retVal;
1845
- };
1846
- const de_AppBlocks = (output, context) => {
1847
- const retVal = (output || [])
1848
- .filter((e) => e != null)
1849
- .map((entry) => {
1850
- return de_AppBlock(entry, context);
1851
- });
1852
- return retVal;
1853
- };
1854
- const de_Application = (output, context) => {
1855
- return take(output, {
1856
- AppBlockArn: __expectString,
1857
- Arn: __expectString,
1858
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1859
- Description: __expectString,
1860
- DisplayName: __expectString,
1861
- Enabled: __expectBoolean,
1862
- IconS3Location: _json,
1863
- IconURL: __expectString,
1864
- InstanceFamilies: _json,
1865
- LaunchParameters: __expectString,
1866
- LaunchPath: __expectString,
1867
- Metadata: _json,
1868
- Name: __expectString,
1869
- Platforms: _json,
1870
- WorkingDirectory: __expectString,
1871
- });
1872
- };
1873
- const de_Applications = (output, context) => {
1874
- const retVal = (output || [])
1875
- .filter((e) => e != null)
1876
- .map((entry) => {
1877
- return de_Application(entry, context);
1878
- });
1879
- return retVal;
1880
- };
1881
- const de_CreateAppBlockBuilderResult = (output, context) => {
1882
- return take(output, {
1883
- AppBlockBuilder: (_) => de_AppBlockBuilder(_, context),
1884
- });
1885
- };
1886
- const de_CreateAppBlockBuilderStreamingURLResult = (output, context) => {
1887
- return take(output, {
1888
- Expires: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1889
- StreamingURL: __expectString,
1890
- });
1891
- };
1892
- const de_CreateAppBlockResult = (output, context) => {
1893
- return take(output, {
1894
- AppBlock: (_) => de_AppBlock(_, context),
1895
- });
1896
- };
1897
- const de_CreateApplicationResult = (output, context) => {
1898
- return take(output, {
1899
- Application: (_) => de_Application(_, context),
1900
- });
1901
- };
1902
- const de_CreateDirectoryConfigResult = (output, context) => {
1903
- return take(output, {
1904
- DirectoryConfig: (_) => de_DirectoryConfig(_, context),
1905
- });
1906
- };
1907
- const de_CreateEntitlementResult = (output, context) => {
1908
- return take(output, {
1909
- Entitlement: (_) => de_Entitlement(_, context),
1910
- });
1911
- };
1912
- const de_CreateFleetResult = (output, context) => {
1913
- return take(output, {
1914
- Fleet: (_) => de_Fleet(_, context),
1915
- });
1916
- };
1917
- const de_CreateImageBuilderResult = (output, context) => {
1918
- return take(output, {
1919
- ImageBuilder: (_) => de_ImageBuilder(_, context),
1920
- });
1921
- };
1922
- const de_CreateImageBuilderStreamingURLResult = (output, context) => {
1923
- return take(output, {
1924
- Expires: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1925
- StreamingURL: __expectString,
1926
- });
1927
- };
1928
- const de_CreateStackResult = (output, context) => {
1929
- return take(output, {
1930
- Stack: (_) => de_Stack(_, context),
1931
- });
1932
- };
1933
- const de_CreateStreamingURLResult = (output, context) => {
1934
- return take(output, {
1935
- Expires: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1936
- StreamingURL: __expectString,
1937
- });
1938
- };
1939
- const de_CreateThemeForStackResult = (output, context) => {
1940
- return take(output, {
1941
- Theme: (_) => de_Theme(_, context),
1942
- });
1943
- };
1944
- const de_CreateUpdatedImageResult = (output, context) => {
1945
- return take(output, {
1946
- canUpdateImage: __expectBoolean,
1947
- image: (_) => de_Image(_, context),
1948
- });
1949
- };
1950
- const de_DeleteImageBuilderResult = (output, context) => {
1951
- return take(output, {
1952
- ImageBuilder: (_) => de_ImageBuilder(_, context),
1953
- });
1954
- };
1955
- const de_DeleteImageResult = (output, context) => {
1956
- return take(output, {
1957
- Image: (_) => de_Image(_, context),
1958
- });
1959
- };
1960
- const de_DescribeAppBlockBuildersResult = (output, context) => {
1961
- return take(output, {
1962
- AppBlockBuilders: (_) => de_AppBlockBuilderList(_, context),
1963
- NextToken: __expectString,
1964
- });
1965
- };
1966
- const de_DescribeAppBlocksResult = (output, context) => {
1967
- return take(output, {
1968
- AppBlocks: (_) => de_AppBlocks(_, context),
1969
- NextToken: __expectString,
1970
- });
1971
- };
1972
- const de_DescribeApplicationsResult = (output, context) => {
1973
- return take(output, {
1974
- Applications: (_) => de_Applications(_, context),
1975
- NextToken: __expectString,
1976
- });
1977
- };
1978
- const de_DescribeAppLicenseUsageResult = (output, context) => {
1979
- return take(output, {
1980
- AppLicenseUsages: (_) => de_AdminAppLicenseUsageList(_, context),
1981
- NextToken: __expectString,
1982
- });
1983
- };
1984
- const de_DescribeDirectoryConfigsResult = (output, context) => {
1985
- return take(output, {
1986
- DirectoryConfigs: (_) => de_DirectoryConfigList(_, context),
1987
- NextToken: __expectString,
1988
- });
1989
- };
1990
- const de_DescribeEntitlementsResult = (output, context) => {
1991
- return take(output, {
1992
- Entitlements: (_) => de_EntitlementList(_, context),
1993
- NextToken: __expectString,
1994
- });
1995
- };
1996
- const de_DescribeFleetsResult = (output, context) => {
1997
- return take(output, {
1998
- Fleets: (_) => de_FleetList(_, context),
1999
- NextToken: __expectString,
2000
- });
2001
- };
2002
- const de_DescribeImageBuildersResult = (output, context) => {
2003
- return take(output, {
2004
- ImageBuilders: (_) => de_ImageBuilderList(_, context),
2005
- NextToken: __expectString,
2006
- });
2007
- };
2008
- const de_DescribeImagesResult = (output, context) => {
2009
- return take(output, {
2010
- Images: (_) => de_ImageList(_, context),
2011
- NextToken: __expectString,
2012
- });
2013
- };
2014
- const de_DescribeSessionsResult = (output, context) => {
2015
- return take(output, {
2016
- NextToken: __expectString,
2017
- Sessions: (_) => de_SessionList(_, context),
2018
- });
2019
- };
2020
- const de_DescribeStacksResult = (output, context) => {
2021
- return take(output, {
2022
- NextToken: __expectString,
2023
- Stacks: (_) => de_StackList(_, context),
2024
- });
2025
- };
2026
- const de_DescribeThemeForStackResult = (output, context) => {
2027
- return take(output, {
2028
- Theme: (_) => de_Theme(_, context),
2029
- });
2030
- };
2031
- const de_DescribeUsageReportSubscriptionsResult = (output, context) => {
2032
- return take(output, {
2033
- NextToken: __expectString,
2034
- UsageReportSubscriptions: (_) => de_UsageReportSubscriptionList(_, context),
2035
- });
2036
- };
2037
- const de_DescribeUsersResult = (output, context) => {
2038
- return take(output, {
2039
- NextToken: __expectString,
2040
- Users: (_) => de_UserList(_, context),
2041
- });
2042
- };
2043
- const de_DirectoryConfig = (output, context) => {
2044
- return take(output, {
2045
- CertificateBasedAuthProperties: _json,
2046
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2047
- DirectoryName: __expectString,
2048
- OrganizationalUnitDistinguishedNames: _json,
2049
- ServiceAccountCredentials: _json,
2050
- });
2051
- };
2052
- const de_DirectoryConfigList = (output, context) => {
2053
- const retVal = (output || [])
2054
- .filter((e) => e != null)
2055
- .map((entry) => {
2056
- return de_DirectoryConfig(entry, context);
2057
- });
2058
- return retVal;
2059
- };
2060
- const de_Entitlement = (output, context) => {
2061
- return take(output, {
2062
- AppVisibility: __expectString,
2063
- Attributes: _json,
2064
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2065
- Description: __expectString,
2066
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2067
- Name: __expectString,
2068
- StackName: __expectString,
2069
- });
2070
- };
2071
- const de_EntitlementList = (output, context) => {
2072
- const retVal = (output || [])
2073
- .filter((e) => e != null)
2074
- .map((entry) => {
2075
- return de_Entitlement(entry, context);
2076
- });
2077
- return retVal;
2078
- };
2079
- const de_Fleet = (output, context) => {
2080
- return take(output, {
2081
- Arn: __expectString,
2082
- ComputeCapacityStatus: _json,
2083
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2084
- Description: __expectString,
2085
- DisconnectTimeoutInSeconds: __expectInt32,
2086
- DisplayName: __expectString,
2087
- DomainJoinInfo: _json,
2088
- EnableDefaultInternetAccess: __expectBoolean,
2089
- FleetErrors: _json,
2090
- FleetType: __expectString,
2091
- IamRoleArn: __expectString,
2092
- IdleDisconnectTimeoutInSeconds: __expectInt32,
2093
- ImageArn: __expectString,
2094
- ImageName: __expectString,
2095
- InstanceType: __expectString,
2096
- MaxConcurrentSessions: __expectInt32,
2097
- MaxSessionsPerInstance: __expectInt32,
2098
- MaxUserDurationInSeconds: __expectInt32,
2099
- Name: __expectString,
2100
- Platform: __expectString,
2101
- SessionScriptS3Location: _json,
2102
- State: __expectString,
2103
- StreamView: __expectString,
2104
- UsbDeviceFilterStrings: _json,
2105
- VpcConfig: _json,
2106
- });
2107
- };
2108
- const de_FleetList = (output, context) => {
2109
- const retVal = (output || [])
2110
- .filter((e) => e != null)
2111
- .map((entry) => {
2112
- return de_Fleet(entry, context);
2113
- });
2114
- return retVal;
2115
- };
2116
- const de_Image = (output, context) => {
2117
- return take(output, {
2118
- Applications: (_) => de_Applications(_, context),
2119
- AppstreamAgentVersion: __expectString,
2120
- Arn: __expectString,
2121
- BaseImageArn: __expectString,
2122
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2123
- Description: __expectString,
2124
- DisplayName: __expectString,
2125
- DynamicAppProvidersEnabled: __expectString,
2126
- ImageBuilderName: __expectString,
2127
- ImageBuilderSupported: __expectBoolean,
2128
- ImageErrors: (_) => de_ResourceErrors(_, context),
2129
- ImagePermissions: _json,
2130
- ImageSharedWithOthers: __expectString,
2131
- LatestAppstreamAgentVersion: __expectString,
2132
- ManagedSoftwareIncluded: __expectBoolean,
2133
- Name: __expectString,
2134
- Platform: __expectString,
2135
- PublicBaseImageReleasedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2136
- State: __expectString,
2137
- StateChangeReason: _json,
2138
- SupportedInstanceFamilies: _json,
2139
- Visibility: __expectString,
2140
- });
2141
- };
2142
- const de_ImageBuilder = (output, context) => {
2143
- return take(output, {
2144
- AccessEndpoints: _json,
2145
- AppstreamAgentVersion: __expectString,
2146
- Arn: __expectString,
2147
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2148
- Description: __expectString,
2149
- DisplayName: __expectString,
2150
- DomainJoinInfo: _json,
2151
- EnableDefaultInternetAccess: __expectBoolean,
2152
- IamRoleArn: __expectString,
2153
- ImageArn: __expectString,
2154
- ImageBuilderErrors: (_) => de_ResourceErrors(_, context),
2155
- InstanceType: __expectString,
2156
- LatestAppstreamAgentVersion: __expectString,
2157
- Name: __expectString,
2158
- NetworkAccessConfiguration: _json,
2159
- Platform: __expectString,
2160
- State: __expectString,
2161
- StateChangeReason: _json,
2162
- VpcConfig: _json,
2163
- });
2164
- };
2165
- const de_ImageBuilderList = (output, context) => {
2166
- const retVal = (output || [])
2167
- .filter((e) => e != null)
2168
- .map((entry) => {
2169
- return de_ImageBuilder(entry, context);
2170
- });
2171
- return retVal;
2172
- };
2173
- const de_ImageList = (output, context) => {
2174
- const retVal = (output || [])
2175
- .filter((e) => e != null)
2176
- .map((entry) => {
2177
- return de_Image(entry, context);
2178
- });
2179
- return retVal;
2180
- };
2181
- const de_ResourceError = (output, context) => {
2182
- return take(output, {
2183
- ErrorCode: __expectString,
2184
- ErrorMessage: __expectString,
2185
- ErrorTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2186
- });
2187
- };
2188
- const de_ResourceErrors = (output, context) => {
2189
- const retVal = (output || [])
2190
- .filter((e) => e != null)
2191
- .map((entry) => {
2192
- return de_ResourceError(entry, context);
2193
- });
2194
- return retVal;
2195
- };
2196
- const de_Session = (output, context) => {
2197
- return take(output, {
2198
- AuthenticationType: __expectString,
2199
- ConnectionState: __expectString,
2200
- FleetName: __expectString,
2201
- Id: __expectString,
2202
- InstanceId: __expectString,
2203
- MaxExpirationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2204
- NetworkAccessConfiguration: _json,
2205
- StackName: __expectString,
2206
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2207
- State: __expectString,
2208
- UserId: __expectString,
2209
- });
2210
- };
2211
- const de_SessionList = (output, context) => {
2212
- const retVal = (output || [])
2213
- .filter((e) => e != null)
2214
- .map((entry) => {
2215
- return de_Session(entry, context);
2216
- });
2217
- return retVal;
2218
- };
2219
- const de_Stack = (output, context) => {
2220
- return take(output, {
2221
- AccessEndpoints: _json,
2222
- ApplicationSettings: _json,
2223
- Arn: __expectString,
2224
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2225
- Description: __expectString,
2226
- DisplayName: __expectString,
2227
- EmbedHostDomains: _json,
2228
- FeedbackURL: __expectString,
2229
- Name: __expectString,
2230
- RedirectURL: __expectString,
2231
- StackErrors: _json,
2232
- StorageConnectors: _json,
2233
- StreamingExperienceSettings: _json,
2234
- UserSettings: _json,
2235
- });
2236
- };
2237
- const de_StackList = (output, context) => {
2238
- const retVal = (output || [])
2239
- .filter((e) => e != null)
2240
- .map((entry) => {
2241
- return de_Stack(entry, context);
2242
- });
2243
- return retVal;
2244
- };
2245
- const de_StartAppBlockBuilderResult = (output, context) => {
2246
- return take(output, {
2247
- AppBlockBuilder: (_) => de_AppBlockBuilder(_, context),
2248
- });
2249
- };
2250
- const de_StartImageBuilderResult = (output, context) => {
2251
- return take(output, {
2252
- ImageBuilder: (_) => de_ImageBuilder(_, context),
2253
- });
2254
- };
2255
- const de_StopAppBlockBuilderResult = (output, context) => {
2256
- return take(output, {
2257
- AppBlockBuilder: (_) => de_AppBlockBuilder(_, context),
2258
- });
2259
- };
2260
- const de_StopImageBuilderResult = (output, context) => {
2261
- return take(output, {
2262
- ImageBuilder: (_) => de_ImageBuilder(_, context),
2263
- });
2264
- };
2265
- const de_Theme = (output, context) => {
2266
- return take(output, {
2267
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2268
- StackName: __expectString,
2269
- State: __expectString,
2270
- ThemeFaviconURL: __expectString,
2271
- ThemeFooterLinks: _json,
2272
- ThemeOrganizationLogoURL: __expectString,
2273
- ThemeStyling: __expectString,
2274
- ThemeTitleText: __expectString,
2275
- });
2276
- };
2277
- const de_UpdateAppBlockBuilderResult = (output, context) => {
2278
- return take(output, {
2279
- AppBlockBuilder: (_) => de_AppBlockBuilder(_, context),
2280
- });
2281
- };
2282
- const de_UpdateApplicationResult = (output, context) => {
2283
- return take(output, {
2284
- Application: (_) => de_Application(_, context),
2285
- });
2286
- };
2287
- const de_UpdateDirectoryConfigResult = (output, context) => {
2288
- return take(output, {
2289
- DirectoryConfig: (_) => de_DirectoryConfig(_, context),
2290
- });
2291
- };
2292
- const de_UpdateEntitlementResult = (output, context) => {
2293
- return take(output, {
2294
- Entitlement: (_) => de_Entitlement(_, context),
2295
- });
2296
- };
2297
- const de_UpdateFleetResult = (output, context) => {
2298
- return take(output, {
2299
- Fleet: (_) => de_Fleet(_, context),
2300
- });
2301
- };
2302
- const de_UpdateStackResult = (output, context) => {
2303
- return take(output, {
2304
- Stack: (_) => de_Stack(_, context),
2305
- });
2306
- };
2307
- const de_UpdateThemeForStackResult = (output, context) => {
2308
- return take(output, {
2309
- Theme: (_) => de_Theme(_, context),
2310
- });
2311
- };
2312
- const de_UsageReportSubscription = (output, context) => {
2313
- return take(output, {
2314
- LastGeneratedReportDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2315
- S3BucketName: __expectString,
2316
- Schedule: __expectString,
2317
- SubscriptionErrors: _json,
2318
- });
2319
- };
2320
- const de_UsageReportSubscriptionList = (output, context) => {
2321
- const retVal = (output || [])
2322
- .filter((e) => e != null)
2323
- .map((entry) => {
2324
- return de_UsageReportSubscription(entry, context);
2325
- });
2326
- return retVal;
2327
- };
2328
- const de_User = (output, context) => {
2329
- return take(output, {
2330
- Arn: __expectString,
2331
- AuthenticationType: __expectString,
2332
- CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2333
- Enabled: __expectBoolean,
2334
- FirstName: __expectString,
2335
- LastName: __expectString,
2336
- Status: __expectString,
2337
- UserName: __expectString,
2338
- });
2339
- };
2340
- const de_UserList = (output, context) => {
2341
- const retVal = (output || [])
2342
- .filter((e) => e != null)
2343
- .map((entry) => {
2344
- return de_User(entry, context);
2345
- });
2346
- return retVal;
2347
- };
2348
- const deserializeMetadata = (output) => ({
2349
- httpStatusCode: output.statusCode,
2350
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2351
- extendedRequestId: output.headers["x-amz-id-2"],
2352
- cfId: output.headers["x-amz-cf-id"],
2353
- });
2354
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2355
- const throwDefaultError = withBaseException(__BaseException);
2356
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2357
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2358
- const contents = {
2359
- protocol,
2360
- hostname,
2361
- port,
2362
- method: "POST",
2363
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2364
- headers,
2365
- };
2366
- if (resolvedHostname !== undefined) {
2367
- contents.hostname = resolvedHostname;
2368
- }
2369
- if (body !== undefined) {
2370
- contents.body = body;
2371
- }
2372
- return new __HttpRequest(contents);
2373
- };
2374
- function sharedHeaders(operation) {
2375
- return {
2376
- "content-type": "application/x-amz-json-1.1",
2377
- "x-amz-target": `PhotonAdminProxyService.${operation}`,
2378
- };
2379
- }