@aws-sdk/client-appstream 3.310.0 → 3.312.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.
@@ -8,650 +8,455 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const AppStreamServiceException_1 = require("../models/AppStreamServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_AssociateApplicationFleetCommand = async (input, context) => {
11
- const headers = {
12
- "content-type": "application/x-amz-json-1.1",
13
- "x-amz-target": "PhotonAdminProxyService.AssociateApplicationFleet",
14
- };
11
+ const headers = sharedHeaders("AssociateApplicationFleet");
15
12
  let body;
16
13
  body = JSON.stringify(se_AssociateApplicationFleetRequest(input, context));
17
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
15
  };
19
16
  exports.se_AssociateApplicationFleetCommand = se_AssociateApplicationFleetCommand;
20
17
  const se_AssociateApplicationToEntitlementCommand = async (input, context) => {
21
- const headers = {
22
- "content-type": "application/x-amz-json-1.1",
23
- "x-amz-target": "PhotonAdminProxyService.AssociateApplicationToEntitlement",
24
- };
18
+ const headers = sharedHeaders("AssociateApplicationToEntitlement");
25
19
  let body;
26
20
  body = JSON.stringify(se_AssociateApplicationToEntitlementRequest(input, context));
27
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
22
  };
29
23
  exports.se_AssociateApplicationToEntitlementCommand = se_AssociateApplicationToEntitlementCommand;
30
24
  const se_AssociateFleetCommand = async (input, context) => {
31
- const headers = {
32
- "content-type": "application/x-amz-json-1.1",
33
- "x-amz-target": "PhotonAdminProxyService.AssociateFleet",
34
- };
25
+ const headers = sharedHeaders("AssociateFleet");
35
26
  let body;
36
27
  body = JSON.stringify(se_AssociateFleetRequest(input, context));
37
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
38
29
  };
39
30
  exports.se_AssociateFleetCommand = se_AssociateFleetCommand;
40
31
  const se_BatchAssociateUserStackCommand = async (input, context) => {
41
- const headers = {
42
- "content-type": "application/x-amz-json-1.1",
43
- "x-amz-target": "PhotonAdminProxyService.BatchAssociateUserStack",
44
- };
32
+ const headers = sharedHeaders("BatchAssociateUserStack");
45
33
  let body;
46
34
  body = JSON.stringify(se_BatchAssociateUserStackRequest(input, context));
47
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
36
  };
49
37
  exports.se_BatchAssociateUserStackCommand = se_BatchAssociateUserStackCommand;
50
38
  const se_BatchDisassociateUserStackCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "PhotonAdminProxyService.BatchDisassociateUserStack",
54
- };
39
+ const headers = sharedHeaders("BatchDisassociateUserStack");
55
40
  let body;
56
41
  body = JSON.stringify(se_BatchDisassociateUserStackRequest(input, context));
57
42
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
43
  };
59
44
  exports.se_BatchDisassociateUserStackCommand = se_BatchDisassociateUserStackCommand;
60
45
  const se_CopyImageCommand = async (input, context) => {
61
- const headers = {
62
- "content-type": "application/x-amz-json-1.1",
63
- "x-amz-target": "PhotonAdminProxyService.CopyImage",
64
- };
46
+ const headers = sharedHeaders("CopyImage");
65
47
  let body;
66
48
  body = JSON.stringify(se_CopyImageRequest(input, context));
67
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
68
50
  };
69
51
  exports.se_CopyImageCommand = se_CopyImageCommand;
70
52
  const se_CreateAppBlockCommand = async (input, context) => {
71
- const headers = {
72
- "content-type": "application/x-amz-json-1.1",
73
- "x-amz-target": "PhotonAdminProxyService.CreateAppBlock",
74
- };
53
+ const headers = sharedHeaders("CreateAppBlock");
75
54
  let body;
76
55
  body = JSON.stringify(se_CreateAppBlockRequest(input, context));
77
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
57
  };
79
58
  exports.se_CreateAppBlockCommand = se_CreateAppBlockCommand;
80
59
  const se_CreateApplicationCommand = async (input, context) => {
81
- const headers = {
82
- "content-type": "application/x-amz-json-1.1",
83
- "x-amz-target": "PhotonAdminProxyService.CreateApplication",
84
- };
60
+ const headers = sharedHeaders("CreateApplication");
85
61
  let body;
86
62
  body = JSON.stringify(se_CreateApplicationRequest(input, context));
87
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
64
  };
89
65
  exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
90
66
  const se_CreateDirectoryConfigCommand = async (input, context) => {
91
- const headers = {
92
- "content-type": "application/x-amz-json-1.1",
93
- "x-amz-target": "PhotonAdminProxyService.CreateDirectoryConfig",
94
- };
67
+ const headers = sharedHeaders("CreateDirectoryConfig");
95
68
  let body;
96
69
  body = JSON.stringify(se_CreateDirectoryConfigRequest(input, context));
97
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
71
  };
99
72
  exports.se_CreateDirectoryConfigCommand = se_CreateDirectoryConfigCommand;
100
73
  const se_CreateEntitlementCommand = async (input, context) => {
101
- const headers = {
102
- "content-type": "application/x-amz-json-1.1",
103
- "x-amz-target": "PhotonAdminProxyService.CreateEntitlement",
104
- };
74
+ const headers = sharedHeaders("CreateEntitlement");
105
75
  let body;
106
76
  body = JSON.stringify(se_CreateEntitlementRequest(input, context));
107
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
78
  };
109
79
  exports.se_CreateEntitlementCommand = se_CreateEntitlementCommand;
110
80
  const se_CreateFleetCommand = async (input, context) => {
111
- const headers = {
112
- "content-type": "application/x-amz-json-1.1",
113
- "x-amz-target": "PhotonAdminProxyService.CreateFleet",
114
- };
81
+ const headers = sharedHeaders("CreateFleet");
115
82
  let body;
116
83
  body = JSON.stringify(se_CreateFleetRequest(input, context));
117
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
85
  };
119
86
  exports.se_CreateFleetCommand = se_CreateFleetCommand;
120
87
  const se_CreateImageBuilderCommand = async (input, context) => {
121
- const headers = {
122
- "content-type": "application/x-amz-json-1.1",
123
- "x-amz-target": "PhotonAdminProxyService.CreateImageBuilder",
124
- };
88
+ const headers = sharedHeaders("CreateImageBuilder");
125
89
  let body;
126
90
  body = JSON.stringify(se_CreateImageBuilderRequest(input, context));
127
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
128
92
  };
129
93
  exports.se_CreateImageBuilderCommand = se_CreateImageBuilderCommand;
130
94
  const se_CreateImageBuilderStreamingURLCommand = async (input, context) => {
131
- const headers = {
132
- "content-type": "application/x-amz-json-1.1",
133
- "x-amz-target": "PhotonAdminProxyService.CreateImageBuilderStreamingURL",
134
- };
95
+ const headers = sharedHeaders("CreateImageBuilderStreamingURL");
135
96
  let body;
136
97
  body = JSON.stringify(se_CreateImageBuilderStreamingURLRequest(input, context));
137
98
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
99
  };
139
100
  exports.se_CreateImageBuilderStreamingURLCommand = se_CreateImageBuilderStreamingURLCommand;
140
101
  const se_CreateStackCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "PhotonAdminProxyService.CreateStack",
144
- };
102
+ const headers = sharedHeaders("CreateStack");
145
103
  let body;
146
104
  body = JSON.stringify(se_CreateStackRequest(input, context));
147
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
106
  };
149
107
  exports.se_CreateStackCommand = se_CreateStackCommand;
150
108
  const se_CreateStreamingURLCommand = async (input, context) => {
151
- const headers = {
152
- "content-type": "application/x-amz-json-1.1",
153
- "x-amz-target": "PhotonAdminProxyService.CreateStreamingURL",
154
- };
109
+ const headers = sharedHeaders("CreateStreamingURL");
155
110
  let body;
156
111
  body = JSON.stringify(se_CreateStreamingURLRequest(input, context));
157
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
158
113
  };
159
114
  exports.se_CreateStreamingURLCommand = se_CreateStreamingURLCommand;
160
115
  const se_CreateUpdatedImageCommand = async (input, context) => {
161
- const headers = {
162
- "content-type": "application/x-amz-json-1.1",
163
- "x-amz-target": "PhotonAdminProxyService.CreateUpdatedImage",
164
- };
116
+ const headers = sharedHeaders("CreateUpdatedImage");
165
117
  let body;
166
118
  body = JSON.stringify(se_CreateUpdatedImageRequest(input, context));
167
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
120
  };
169
121
  exports.se_CreateUpdatedImageCommand = se_CreateUpdatedImageCommand;
170
122
  const se_CreateUsageReportSubscriptionCommand = async (input, context) => {
171
- const headers = {
172
- "content-type": "application/x-amz-json-1.1",
173
- "x-amz-target": "PhotonAdminProxyService.CreateUsageReportSubscription",
174
- };
123
+ const headers = sharedHeaders("CreateUsageReportSubscription");
175
124
  let body;
176
125
  body = JSON.stringify(se_CreateUsageReportSubscriptionRequest(input, context));
177
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
127
  };
179
128
  exports.se_CreateUsageReportSubscriptionCommand = se_CreateUsageReportSubscriptionCommand;
180
129
  const se_CreateUserCommand = async (input, context) => {
181
- const headers = {
182
- "content-type": "application/x-amz-json-1.1",
183
- "x-amz-target": "PhotonAdminProxyService.CreateUser",
184
- };
130
+ const headers = sharedHeaders("CreateUser");
185
131
  let body;
186
132
  body = JSON.stringify(se_CreateUserRequest(input, context));
187
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
188
134
  };
189
135
  exports.se_CreateUserCommand = se_CreateUserCommand;
190
136
  const se_DeleteAppBlockCommand = async (input, context) => {
191
- const headers = {
192
- "content-type": "application/x-amz-json-1.1",
193
- "x-amz-target": "PhotonAdminProxyService.DeleteAppBlock",
194
- };
137
+ const headers = sharedHeaders("DeleteAppBlock");
195
138
  let body;
196
139
  body = JSON.stringify(se_DeleteAppBlockRequest(input, context));
197
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
141
  };
199
142
  exports.se_DeleteAppBlockCommand = se_DeleteAppBlockCommand;
200
143
  const se_DeleteApplicationCommand = async (input, context) => {
201
- const headers = {
202
- "content-type": "application/x-amz-json-1.1",
203
- "x-amz-target": "PhotonAdminProxyService.DeleteApplication",
204
- };
144
+ const headers = sharedHeaders("DeleteApplication");
205
145
  let body;
206
146
  body = JSON.stringify(se_DeleteApplicationRequest(input, context));
207
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
148
  };
209
149
  exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
210
150
  const se_DeleteDirectoryConfigCommand = async (input, context) => {
211
- const headers = {
212
- "content-type": "application/x-amz-json-1.1",
213
- "x-amz-target": "PhotonAdminProxyService.DeleteDirectoryConfig",
214
- };
151
+ const headers = sharedHeaders("DeleteDirectoryConfig");
215
152
  let body;
216
153
  body = JSON.stringify(se_DeleteDirectoryConfigRequest(input, context));
217
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
155
  };
219
156
  exports.se_DeleteDirectoryConfigCommand = se_DeleteDirectoryConfigCommand;
220
157
  const se_DeleteEntitlementCommand = async (input, context) => {
221
- const headers = {
222
- "content-type": "application/x-amz-json-1.1",
223
- "x-amz-target": "PhotonAdminProxyService.DeleteEntitlement",
224
- };
158
+ const headers = sharedHeaders("DeleteEntitlement");
225
159
  let body;
226
160
  body = JSON.stringify(se_DeleteEntitlementRequest(input, context));
227
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
162
  };
229
163
  exports.se_DeleteEntitlementCommand = se_DeleteEntitlementCommand;
230
164
  const se_DeleteFleetCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.1",
233
- "x-amz-target": "PhotonAdminProxyService.DeleteFleet",
234
- };
165
+ const headers = sharedHeaders("DeleteFleet");
235
166
  let body;
236
167
  body = JSON.stringify(se_DeleteFleetRequest(input, context));
237
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
169
  };
239
170
  exports.se_DeleteFleetCommand = se_DeleteFleetCommand;
240
171
  const se_DeleteImageCommand = async (input, context) => {
241
- const headers = {
242
- "content-type": "application/x-amz-json-1.1",
243
- "x-amz-target": "PhotonAdminProxyService.DeleteImage",
244
- };
172
+ const headers = sharedHeaders("DeleteImage");
245
173
  let body;
246
174
  body = JSON.stringify(se_DeleteImageRequest(input, context));
247
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
248
176
  };
249
177
  exports.se_DeleteImageCommand = se_DeleteImageCommand;
250
178
  const se_DeleteImageBuilderCommand = async (input, context) => {
251
- const headers = {
252
- "content-type": "application/x-amz-json-1.1",
253
- "x-amz-target": "PhotonAdminProxyService.DeleteImageBuilder",
254
- };
179
+ const headers = sharedHeaders("DeleteImageBuilder");
255
180
  let body;
256
181
  body = JSON.stringify(se_DeleteImageBuilderRequest(input, context));
257
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
183
  };
259
184
  exports.se_DeleteImageBuilderCommand = se_DeleteImageBuilderCommand;
260
185
  const se_DeleteImagePermissionsCommand = async (input, context) => {
261
- const headers = {
262
- "content-type": "application/x-amz-json-1.1",
263
- "x-amz-target": "PhotonAdminProxyService.DeleteImagePermissions",
264
- };
186
+ const headers = sharedHeaders("DeleteImagePermissions");
265
187
  let body;
266
188
  body = JSON.stringify(se_DeleteImagePermissionsRequest(input, context));
267
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
190
  };
269
191
  exports.se_DeleteImagePermissionsCommand = se_DeleteImagePermissionsCommand;
270
192
  const se_DeleteStackCommand = async (input, context) => {
271
- const headers = {
272
- "content-type": "application/x-amz-json-1.1",
273
- "x-amz-target": "PhotonAdminProxyService.DeleteStack",
274
- };
193
+ const headers = sharedHeaders("DeleteStack");
275
194
  let body;
276
195
  body = JSON.stringify(se_DeleteStackRequest(input, context));
277
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
278
197
  };
279
198
  exports.se_DeleteStackCommand = se_DeleteStackCommand;
280
199
  const se_DeleteUsageReportSubscriptionCommand = async (input, context) => {
281
- const headers = {
282
- "content-type": "application/x-amz-json-1.1",
283
- "x-amz-target": "PhotonAdminProxyService.DeleteUsageReportSubscription",
284
- };
200
+ const headers = sharedHeaders("DeleteUsageReportSubscription");
285
201
  let body;
286
202
  body = JSON.stringify(se_DeleteUsageReportSubscriptionRequest(input, context));
287
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
204
  };
289
205
  exports.se_DeleteUsageReportSubscriptionCommand = se_DeleteUsageReportSubscriptionCommand;
290
206
  const se_DeleteUserCommand = async (input, context) => {
291
- const headers = {
292
- "content-type": "application/x-amz-json-1.1",
293
- "x-amz-target": "PhotonAdminProxyService.DeleteUser",
294
- };
207
+ const headers = sharedHeaders("DeleteUser");
295
208
  let body;
296
209
  body = JSON.stringify(se_DeleteUserRequest(input, context));
297
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
298
211
  };
299
212
  exports.se_DeleteUserCommand = se_DeleteUserCommand;
300
213
  const se_DescribeAppBlocksCommand = async (input, context) => {
301
- const headers = {
302
- "content-type": "application/x-amz-json-1.1",
303
- "x-amz-target": "PhotonAdminProxyService.DescribeAppBlocks",
304
- };
214
+ const headers = sharedHeaders("DescribeAppBlocks");
305
215
  let body;
306
216
  body = JSON.stringify(se_DescribeAppBlocksRequest(input, context));
307
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
308
218
  };
309
219
  exports.se_DescribeAppBlocksCommand = se_DescribeAppBlocksCommand;
310
220
  const se_DescribeApplicationFleetAssociationsCommand = async (input, context) => {
311
- const headers = {
312
- "content-type": "application/x-amz-json-1.1",
313
- "x-amz-target": "PhotonAdminProxyService.DescribeApplicationFleetAssociations",
314
- };
221
+ const headers = sharedHeaders("DescribeApplicationFleetAssociations");
315
222
  let body;
316
223
  body = JSON.stringify(se_DescribeApplicationFleetAssociationsRequest(input, context));
317
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
225
  };
319
226
  exports.se_DescribeApplicationFleetAssociationsCommand = se_DescribeApplicationFleetAssociationsCommand;
320
227
  const se_DescribeApplicationsCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-amz-json-1.1",
323
- "x-amz-target": "PhotonAdminProxyService.DescribeApplications",
324
- };
228
+ const headers = sharedHeaders("DescribeApplications");
325
229
  let body;
326
230
  body = JSON.stringify(se_DescribeApplicationsRequest(input, context));
327
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
232
  };
329
233
  exports.se_DescribeApplicationsCommand = se_DescribeApplicationsCommand;
330
234
  const se_DescribeDirectoryConfigsCommand = async (input, context) => {
331
- const headers = {
332
- "content-type": "application/x-amz-json-1.1",
333
- "x-amz-target": "PhotonAdminProxyService.DescribeDirectoryConfigs",
334
- };
235
+ const headers = sharedHeaders("DescribeDirectoryConfigs");
335
236
  let body;
336
237
  body = JSON.stringify(se_DescribeDirectoryConfigsRequest(input, context));
337
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
338
239
  };
339
240
  exports.se_DescribeDirectoryConfigsCommand = se_DescribeDirectoryConfigsCommand;
340
241
  const se_DescribeEntitlementsCommand = async (input, context) => {
341
- const headers = {
342
- "content-type": "application/x-amz-json-1.1",
343
- "x-amz-target": "PhotonAdminProxyService.DescribeEntitlements",
344
- };
242
+ const headers = sharedHeaders("DescribeEntitlements");
345
243
  let body;
346
244
  body = JSON.stringify(se_DescribeEntitlementsRequest(input, context));
347
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
246
  };
349
247
  exports.se_DescribeEntitlementsCommand = se_DescribeEntitlementsCommand;
350
248
  const se_DescribeFleetsCommand = async (input, context) => {
351
- const headers = {
352
- "content-type": "application/x-amz-json-1.1",
353
- "x-amz-target": "PhotonAdminProxyService.DescribeFleets",
354
- };
249
+ const headers = sharedHeaders("DescribeFleets");
355
250
  let body;
356
251
  body = JSON.stringify(se_DescribeFleetsRequest(input, context));
357
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
253
  };
359
254
  exports.se_DescribeFleetsCommand = se_DescribeFleetsCommand;
360
255
  const se_DescribeImageBuildersCommand = async (input, context) => {
361
- const headers = {
362
- "content-type": "application/x-amz-json-1.1",
363
- "x-amz-target": "PhotonAdminProxyService.DescribeImageBuilders",
364
- };
256
+ const headers = sharedHeaders("DescribeImageBuilders");
365
257
  let body;
366
258
  body = JSON.stringify(se_DescribeImageBuildersRequest(input, context));
367
259
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
368
260
  };
369
261
  exports.se_DescribeImageBuildersCommand = se_DescribeImageBuildersCommand;
370
262
  const se_DescribeImagePermissionsCommand = async (input, context) => {
371
- const headers = {
372
- "content-type": "application/x-amz-json-1.1",
373
- "x-amz-target": "PhotonAdminProxyService.DescribeImagePermissions",
374
- };
263
+ const headers = sharedHeaders("DescribeImagePermissions");
375
264
  let body;
376
265
  body = JSON.stringify(se_DescribeImagePermissionsRequest(input, context));
377
266
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
267
  };
379
268
  exports.se_DescribeImagePermissionsCommand = se_DescribeImagePermissionsCommand;
380
269
  const se_DescribeImagesCommand = async (input, context) => {
381
- const headers = {
382
- "content-type": "application/x-amz-json-1.1",
383
- "x-amz-target": "PhotonAdminProxyService.DescribeImages",
384
- };
270
+ const headers = sharedHeaders("DescribeImages");
385
271
  let body;
386
272
  body = JSON.stringify(se_DescribeImagesRequest(input, context));
387
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
388
274
  };
389
275
  exports.se_DescribeImagesCommand = se_DescribeImagesCommand;
390
276
  const se_DescribeSessionsCommand = async (input, context) => {
391
- const headers = {
392
- "content-type": "application/x-amz-json-1.1",
393
- "x-amz-target": "PhotonAdminProxyService.DescribeSessions",
394
- };
277
+ const headers = sharedHeaders("DescribeSessions");
395
278
  let body;
396
279
  body = JSON.stringify(se_DescribeSessionsRequest(input, context));
397
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
398
281
  };
399
282
  exports.se_DescribeSessionsCommand = se_DescribeSessionsCommand;
400
283
  const se_DescribeStacksCommand = async (input, context) => {
401
- const headers = {
402
- "content-type": "application/x-amz-json-1.1",
403
- "x-amz-target": "PhotonAdminProxyService.DescribeStacks",
404
- };
284
+ const headers = sharedHeaders("DescribeStacks");
405
285
  let body;
406
286
  body = JSON.stringify(se_DescribeStacksRequest(input, context));
407
287
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
288
  };
409
289
  exports.se_DescribeStacksCommand = se_DescribeStacksCommand;
410
290
  const se_DescribeUsageReportSubscriptionsCommand = async (input, context) => {
411
- const headers = {
412
- "content-type": "application/x-amz-json-1.1",
413
- "x-amz-target": "PhotonAdminProxyService.DescribeUsageReportSubscriptions",
414
- };
291
+ const headers = sharedHeaders("DescribeUsageReportSubscriptions");
415
292
  let body;
416
293
  body = JSON.stringify(se_DescribeUsageReportSubscriptionsRequest(input, context));
417
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
295
  };
419
296
  exports.se_DescribeUsageReportSubscriptionsCommand = se_DescribeUsageReportSubscriptionsCommand;
420
297
  const se_DescribeUsersCommand = async (input, context) => {
421
- const headers = {
422
- "content-type": "application/x-amz-json-1.1",
423
- "x-amz-target": "PhotonAdminProxyService.DescribeUsers",
424
- };
298
+ const headers = sharedHeaders("DescribeUsers");
425
299
  let body;
426
300
  body = JSON.stringify(se_DescribeUsersRequest(input, context));
427
301
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
428
302
  };
429
303
  exports.se_DescribeUsersCommand = se_DescribeUsersCommand;
430
304
  const se_DescribeUserStackAssociationsCommand = async (input, context) => {
431
- const headers = {
432
- "content-type": "application/x-amz-json-1.1",
433
- "x-amz-target": "PhotonAdminProxyService.DescribeUserStackAssociations",
434
- };
305
+ const headers = sharedHeaders("DescribeUserStackAssociations");
435
306
  let body;
436
307
  body = JSON.stringify(se_DescribeUserStackAssociationsRequest(input, context));
437
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
309
  };
439
310
  exports.se_DescribeUserStackAssociationsCommand = se_DescribeUserStackAssociationsCommand;
440
311
  const se_DisableUserCommand = async (input, context) => {
441
- const headers = {
442
- "content-type": "application/x-amz-json-1.1",
443
- "x-amz-target": "PhotonAdminProxyService.DisableUser",
444
- };
312
+ const headers = sharedHeaders("DisableUser");
445
313
  let body;
446
314
  body = JSON.stringify(se_DisableUserRequest(input, context));
447
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
448
316
  };
449
317
  exports.se_DisableUserCommand = se_DisableUserCommand;
450
318
  const se_DisassociateApplicationFleetCommand = async (input, context) => {
451
- const headers = {
452
- "content-type": "application/x-amz-json-1.1",
453
- "x-amz-target": "PhotonAdminProxyService.DisassociateApplicationFleet",
454
- };
319
+ const headers = sharedHeaders("DisassociateApplicationFleet");
455
320
  let body;
456
321
  body = JSON.stringify(se_DisassociateApplicationFleetRequest(input, context));
457
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
458
323
  };
459
324
  exports.se_DisassociateApplicationFleetCommand = se_DisassociateApplicationFleetCommand;
460
325
  const se_DisassociateApplicationFromEntitlementCommand = async (input, context) => {
461
- const headers = {
462
- "content-type": "application/x-amz-json-1.1",
463
- "x-amz-target": "PhotonAdminProxyService.DisassociateApplicationFromEntitlement",
464
- };
326
+ const headers = sharedHeaders("DisassociateApplicationFromEntitlement");
465
327
  let body;
466
328
  body = JSON.stringify(se_DisassociateApplicationFromEntitlementRequest(input, context));
467
329
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
468
330
  };
469
331
  exports.se_DisassociateApplicationFromEntitlementCommand = se_DisassociateApplicationFromEntitlementCommand;
470
332
  const se_DisassociateFleetCommand = async (input, context) => {
471
- const headers = {
472
- "content-type": "application/x-amz-json-1.1",
473
- "x-amz-target": "PhotonAdminProxyService.DisassociateFleet",
474
- };
333
+ const headers = sharedHeaders("DisassociateFleet");
475
334
  let body;
476
335
  body = JSON.stringify(se_DisassociateFleetRequest(input, context));
477
336
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
478
337
  };
479
338
  exports.se_DisassociateFleetCommand = se_DisassociateFleetCommand;
480
339
  const se_EnableUserCommand = async (input, context) => {
481
- const headers = {
482
- "content-type": "application/x-amz-json-1.1",
483
- "x-amz-target": "PhotonAdminProxyService.EnableUser",
484
- };
340
+ const headers = sharedHeaders("EnableUser");
485
341
  let body;
486
342
  body = JSON.stringify(se_EnableUserRequest(input, context));
487
343
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
488
344
  };
489
345
  exports.se_EnableUserCommand = se_EnableUserCommand;
490
346
  const se_ExpireSessionCommand = async (input, context) => {
491
- const headers = {
492
- "content-type": "application/x-amz-json-1.1",
493
- "x-amz-target": "PhotonAdminProxyService.ExpireSession",
494
- };
347
+ const headers = sharedHeaders("ExpireSession");
495
348
  let body;
496
349
  body = JSON.stringify(se_ExpireSessionRequest(input, context));
497
350
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
351
  };
499
352
  exports.se_ExpireSessionCommand = se_ExpireSessionCommand;
500
353
  const se_ListAssociatedFleetsCommand = async (input, context) => {
501
- const headers = {
502
- "content-type": "application/x-amz-json-1.1",
503
- "x-amz-target": "PhotonAdminProxyService.ListAssociatedFleets",
504
- };
354
+ const headers = sharedHeaders("ListAssociatedFleets");
505
355
  let body;
506
356
  body = JSON.stringify(se_ListAssociatedFleetsRequest(input, context));
507
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
508
358
  };
509
359
  exports.se_ListAssociatedFleetsCommand = se_ListAssociatedFleetsCommand;
510
360
  const se_ListAssociatedStacksCommand = async (input, context) => {
511
- const headers = {
512
- "content-type": "application/x-amz-json-1.1",
513
- "x-amz-target": "PhotonAdminProxyService.ListAssociatedStacks",
514
- };
361
+ const headers = sharedHeaders("ListAssociatedStacks");
515
362
  let body;
516
363
  body = JSON.stringify(se_ListAssociatedStacksRequest(input, context));
517
364
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
518
365
  };
519
366
  exports.se_ListAssociatedStacksCommand = se_ListAssociatedStacksCommand;
520
367
  const se_ListEntitledApplicationsCommand = async (input, context) => {
521
- const headers = {
522
- "content-type": "application/x-amz-json-1.1",
523
- "x-amz-target": "PhotonAdminProxyService.ListEntitledApplications",
524
- };
368
+ const headers = sharedHeaders("ListEntitledApplications");
525
369
  let body;
526
370
  body = JSON.stringify(se_ListEntitledApplicationsRequest(input, context));
527
371
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
528
372
  };
529
373
  exports.se_ListEntitledApplicationsCommand = se_ListEntitledApplicationsCommand;
530
374
  const se_ListTagsForResourceCommand = async (input, context) => {
531
- const headers = {
532
- "content-type": "application/x-amz-json-1.1",
533
- "x-amz-target": "PhotonAdminProxyService.ListTagsForResource",
534
- };
375
+ const headers = sharedHeaders("ListTagsForResource");
535
376
  let body;
536
377
  body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
537
378
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
538
379
  };
539
380
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
540
381
  const se_StartFleetCommand = async (input, context) => {
541
- const headers = {
542
- "content-type": "application/x-amz-json-1.1",
543
- "x-amz-target": "PhotonAdminProxyService.StartFleet",
544
- };
382
+ const headers = sharedHeaders("StartFleet");
545
383
  let body;
546
384
  body = JSON.stringify(se_StartFleetRequest(input, context));
547
385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
548
386
  };
549
387
  exports.se_StartFleetCommand = se_StartFleetCommand;
550
388
  const se_StartImageBuilderCommand = async (input, context) => {
551
- const headers = {
552
- "content-type": "application/x-amz-json-1.1",
553
- "x-amz-target": "PhotonAdminProxyService.StartImageBuilder",
554
- };
389
+ const headers = sharedHeaders("StartImageBuilder");
555
390
  let body;
556
391
  body = JSON.stringify(se_StartImageBuilderRequest(input, context));
557
392
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
558
393
  };
559
394
  exports.se_StartImageBuilderCommand = se_StartImageBuilderCommand;
560
395
  const se_StopFleetCommand = async (input, context) => {
561
- const headers = {
562
- "content-type": "application/x-amz-json-1.1",
563
- "x-amz-target": "PhotonAdminProxyService.StopFleet",
564
- };
396
+ const headers = sharedHeaders("StopFleet");
565
397
  let body;
566
398
  body = JSON.stringify(se_StopFleetRequest(input, context));
567
399
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
568
400
  };
569
401
  exports.se_StopFleetCommand = se_StopFleetCommand;
570
402
  const se_StopImageBuilderCommand = async (input, context) => {
571
- const headers = {
572
- "content-type": "application/x-amz-json-1.1",
573
- "x-amz-target": "PhotonAdminProxyService.StopImageBuilder",
574
- };
403
+ const headers = sharedHeaders("StopImageBuilder");
575
404
  let body;
576
405
  body = JSON.stringify(se_StopImageBuilderRequest(input, context));
577
406
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
578
407
  };
579
408
  exports.se_StopImageBuilderCommand = se_StopImageBuilderCommand;
580
409
  const se_TagResourceCommand = async (input, context) => {
581
- const headers = {
582
- "content-type": "application/x-amz-json-1.1",
583
- "x-amz-target": "PhotonAdminProxyService.TagResource",
584
- };
410
+ const headers = sharedHeaders("TagResource");
585
411
  let body;
586
412
  body = JSON.stringify(se_TagResourceRequest(input, context));
587
413
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
588
414
  };
589
415
  exports.se_TagResourceCommand = se_TagResourceCommand;
590
416
  const se_UntagResourceCommand = async (input, context) => {
591
- const headers = {
592
- "content-type": "application/x-amz-json-1.1",
593
- "x-amz-target": "PhotonAdminProxyService.UntagResource",
594
- };
417
+ const headers = sharedHeaders("UntagResource");
595
418
  let body;
596
419
  body = JSON.stringify(se_UntagResourceRequest(input, context));
597
420
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
598
421
  };
599
422
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
600
423
  const se_UpdateApplicationCommand = async (input, context) => {
601
- const headers = {
602
- "content-type": "application/x-amz-json-1.1",
603
- "x-amz-target": "PhotonAdminProxyService.UpdateApplication",
604
- };
424
+ const headers = sharedHeaders("UpdateApplication");
605
425
  let body;
606
426
  body = JSON.stringify(se_UpdateApplicationRequest(input, context));
607
427
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
608
428
  };
609
429
  exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
610
430
  const se_UpdateDirectoryConfigCommand = async (input, context) => {
611
- const headers = {
612
- "content-type": "application/x-amz-json-1.1",
613
- "x-amz-target": "PhotonAdminProxyService.UpdateDirectoryConfig",
614
- };
431
+ const headers = sharedHeaders("UpdateDirectoryConfig");
615
432
  let body;
616
433
  body = JSON.stringify(se_UpdateDirectoryConfigRequest(input, context));
617
434
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
618
435
  };
619
436
  exports.se_UpdateDirectoryConfigCommand = se_UpdateDirectoryConfigCommand;
620
437
  const se_UpdateEntitlementCommand = async (input, context) => {
621
- const headers = {
622
- "content-type": "application/x-amz-json-1.1",
623
- "x-amz-target": "PhotonAdminProxyService.UpdateEntitlement",
624
- };
438
+ const headers = sharedHeaders("UpdateEntitlement");
625
439
  let body;
626
440
  body = JSON.stringify(se_UpdateEntitlementRequest(input, context));
627
441
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
628
442
  };
629
443
  exports.se_UpdateEntitlementCommand = se_UpdateEntitlementCommand;
630
444
  const se_UpdateFleetCommand = async (input, context) => {
631
- const headers = {
632
- "content-type": "application/x-amz-json-1.1",
633
- "x-amz-target": "PhotonAdminProxyService.UpdateFleet",
634
- };
445
+ const headers = sharedHeaders("UpdateFleet");
635
446
  let body;
636
447
  body = JSON.stringify(se_UpdateFleetRequest(input, context));
637
448
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
638
449
  };
639
450
  exports.se_UpdateFleetCommand = se_UpdateFleetCommand;
640
451
  const se_UpdateImagePermissionsCommand = async (input, context) => {
641
- const headers = {
642
- "content-type": "application/x-amz-json-1.1",
643
- "x-amz-target": "PhotonAdminProxyService.UpdateImagePermissions",
644
- };
452
+ const headers = sharedHeaders("UpdateImagePermissions");
645
453
  let body;
646
454
  body = JSON.stringify(se_UpdateImagePermissionsRequest(input, context));
647
455
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
648
456
  };
649
457
  exports.se_UpdateImagePermissionsCommand = se_UpdateImagePermissionsCommand;
650
458
  const se_UpdateStackCommand = async (input, context) => {
651
- const headers = {
652
- "content-type": "application/x-amz-json-1.1",
653
- "x-amz-target": "PhotonAdminProxyService.UpdateStack",
654
- };
459
+ const headers = sharedHeaders("UpdateStack");
655
460
  let body;
656
461
  body = JSON.stringify(se_UpdateStackRequest(input, context));
657
462
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -5445,6 +5250,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
5445
5250
  }
5446
5251
  return new protocol_http_1.HttpRequest(contents);
5447
5252
  };
5253
+ function sharedHeaders(operation) {
5254
+ return {
5255
+ "content-type": "application/x-amz-json-1.1",
5256
+ "x-amz-target": `PhotonAdminProxyService.${operation}`,
5257
+ };
5258
+ }
5448
5259
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5449
5260
  if (encoded.length) {
5450
5261
  return JSON.parse(encoded);