@aws-sdk/client-lightsail 3.309.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.
@@ -3,1432 +3,955 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
3
3
  import { LightsailServiceException as __BaseException } from "../models/LightsailServiceException";
4
4
  import { AccessDeniedException, AccountSetupInProgressException, InvalidInputException, NotFoundException, OperationFailureException, ServiceException, UnauthenticatedException, } from "../models/models_0";
5
5
  export const se_AllocateStaticIpCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "Lightsail_20161128.AllocateStaticIp",
9
- };
6
+ const headers = sharedHeaders("AllocateStaticIp");
10
7
  let body;
11
8
  body = JSON.stringify(se_AllocateStaticIpRequest(input, context));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_AttachCertificateToDistributionCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "Lightsail_20161128.AttachCertificateToDistribution",
18
- };
12
+ const headers = sharedHeaders("AttachCertificateToDistribution");
19
13
  let body;
20
14
  body = JSON.stringify(se_AttachCertificateToDistributionRequest(input, context));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_AttachDiskCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "Lightsail_20161128.AttachDisk",
27
- };
18
+ const headers = sharedHeaders("AttachDisk");
28
19
  let body;
29
20
  body = JSON.stringify(se_AttachDiskRequest(input, context));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_AttachInstancesToLoadBalancerCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "Lightsail_20161128.AttachInstancesToLoadBalancer",
36
- };
24
+ const headers = sharedHeaders("AttachInstancesToLoadBalancer");
37
25
  let body;
38
26
  body = JSON.stringify(se_AttachInstancesToLoadBalancerRequest(input, context));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_AttachLoadBalancerTlsCertificateCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "Lightsail_20161128.AttachLoadBalancerTlsCertificate",
45
- };
30
+ const headers = sharedHeaders("AttachLoadBalancerTlsCertificate");
46
31
  let body;
47
32
  body = JSON.stringify(se_AttachLoadBalancerTlsCertificateRequest(input, context));
48
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
34
  };
50
35
  export const se_AttachStaticIpCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "Lightsail_20161128.AttachStaticIp",
54
- };
36
+ const headers = sharedHeaders("AttachStaticIp");
55
37
  let body;
56
38
  body = JSON.stringify(se_AttachStaticIpRequest(input, context));
57
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
40
  };
59
41
  export const se_CloseInstancePublicPortsCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "Lightsail_20161128.CloseInstancePublicPorts",
63
- };
42
+ const headers = sharedHeaders("CloseInstancePublicPorts");
64
43
  let body;
65
44
  body = JSON.stringify(se_CloseInstancePublicPortsRequest(input, context));
66
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
46
  };
68
47
  export const se_CopySnapshotCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "Lightsail_20161128.CopySnapshot",
72
- };
48
+ const headers = sharedHeaders("CopySnapshot");
73
49
  let body;
74
50
  body = JSON.stringify(se_CopySnapshotRequest(input, context));
75
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
52
  };
77
53
  export const se_CreateBucketCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "Lightsail_20161128.CreateBucket",
81
- };
54
+ const headers = sharedHeaders("CreateBucket");
82
55
  let body;
83
56
  body = JSON.stringify(se_CreateBucketRequest(input, context));
84
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
58
  };
86
59
  export const se_CreateBucketAccessKeyCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "Lightsail_20161128.CreateBucketAccessKey",
90
- };
60
+ const headers = sharedHeaders("CreateBucketAccessKey");
91
61
  let body;
92
62
  body = JSON.stringify(se_CreateBucketAccessKeyRequest(input, context));
93
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
64
  };
95
65
  export const se_CreateCertificateCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.1",
98
- "x-amz-target": "Lightsail_20161128.CreateCertificate",
99
- };
66
+ const headers = sharedHeaders("CreateCertificate");
100
67
  let body;
101
68
  body = JSON.stringify(se_CreateCertificateRequest(input, context));
102
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
70
  };
104
71
  export const se_CreateCloudFormationStackCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.1",
107
- "x-amz-target": "Lightsail_20161128.CreateCloudFormationStack",
108
- };
72
+ const headers = sharedHeaders("CreateCloudFormationStack");
109
73
  let body;
110
74
  body = JSON.stringify(se_CreateCloudFormationStackRequest(input, context));
111
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
76
  };
113
77
  export const se_CreateContactMethodCommand = async (input, context) => {
114
- const headers = {
115
- "content-type": "application/x-amz-json-1.1",
116
- "x-amz-target": "Lightsail_20161128.CreateContactMethod",
117
- };
78
+ const headers = sharedHeaders("CreateContactMethod");
118
79
  let body;
119
80
  body = JSON.stringify(se_CreateContactMethodRequest(input, context));
120
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
82
  };
122
83
  export const se_CreateContainerServiceCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.1",
125
- "x-amz-target": "Lightsail_20161128.CreateContainerService",
126
- };
84
+ const headers = sharedHeaders("CreateContainerService");
127
85
  let body;
128
86
  body = JSON.stringify(se_CreateContainerServiceRequest(input, context));
129
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
88
  };
131
89
  export const se_CreateContainerServiceDeploymentCommand = async (input, context) => {
132
- const headers = {
133
- "content-type": "application/x-amz-json-1.1",
134
- "x-amz-target": "Lightsail_20161128.CreateContainerServiceDeployment",
135
- };
90
+ const headers = sharedHeaders("CreateContainerServiceDeployment");
136
91
  let body;
137
92
  body = JSON.stringify(se_CreateContainerServiceDeploymentRequest(input, context));
138
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
94
  };
140
95
  export const se_CreateContainerServiceRegistryLoginCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "Lightsail_20161128.CreateContainerServiceRegistryLogin",
144
- };
96
+ const headers = sharedHeaders("CreateContainerServiceRegistryLogin");
145
97
  let body;
146
98
  body = JSON.stringify(se_CreateContainerServiceRegistryLoginRequest(input, context));
147
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
100
  };
149
101
  export const se_CreateDiskCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "Lightsail_20161128.CreateDisk",
153
- };
102
+ const headers = sharedHeaders("CreateDisk");
154
103
  let body;
155
104
  body = JSON.stringify(se_CreateDiskRequest(input, context));
156
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
106
  };
158
107
  export const se_CreateDiskFromSnapshotCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "Lightsail_20161128.CreateDiskFromSnapshot",
162
- };
108
+ const headers = sharedHeaders("CreateDiskFromSnapshot");
163
109
  let body;
164
110
  body = JSON.stringify(se_CreateDiskFromSnapshotRequest(input, context));
165
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
112
  };
167
113
  export const se_CreateDiskSnapshotCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-amz-json-1.1",
170
- "x-amz-target": "Lightsail_20161128.CreateDiskSnapshot",
171
- };
114
+ const headers = sharedHeaders("CreateDiskSnapshot");
172
115
  let body;
173
116
  body = JSON.stringify(se_CreateDiskSnapshotRequest(input, context));
174
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
118
  };
176
119
  export const se_CreateDistributionCommand = async (input, context) => {
177
- const headers = {
178
- "content-type": "application/x-amz-json-1.1",
179
- "x-amz-target": "Lightsail_20161128.CreateDistribution",
180
- };
120
+ const headers = sharedHeaders("CreateDistribution");
181
121
  let body;
182
122
  body = JSON.stringify(se_CreateDistributionRequest(input, context));
183
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
124
  };
185
125
  export const se_CreateDomainCommand = async (input, context) => {
186
- const headers = {
187
- "content-type": "application/x-amz-json-1.1",
188
- "x-amz-target": "Lightsail_20161128.CreateDomain",
189
- };
126
+ const headers = sharedHeaders("CreateDomain");
190
127
  let body;
191
128
  body = JSON.stringify(se_CreateDomainRequest(input, context));
192
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
193
130
  };
194
131
  export const se_CreateDomainEntryCommand = async (input, context) => {
195
- const headers = {
196
- "content-type": "application/x-amz-json-1.1",
197
- "x-amz-target": "Lightsail_20161128.CreateDomainEntry",
198
- };
132
+ const headers = sharedHeaders("CreateDomainEntry");
199
133
  let body;
200
134
  body = JSON.stringify(se_CreateDomainEntryRequest(input, context));
201
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
136
  };
203
137
  export const se_CreateGUISessionAccessDetailsCommand = async (input, context) => {
204
- const headers = {
205
- "content-type": "application/x-amz-json-1.1",
206
- "x-amz-target": "Lightsail_20161128.CreateGUISessionAccessDetails",
207
- };
138
+ const headers = sharedHeaders("CreateGUISessionAccessDetails");
208
139
  let body;
209
140
  body = JSON.stringify(se_CreateGUISessionAccessDetailsRequest(input, context));
210
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
142
  };
212
143
  export const se_CreateInstancesCommand = async (input, context) => {
213
- const headers = {
214
- "content-type": "application/x-amz-json-1.1",
215
- "x-amz-target": "Lightsail_20161128.CreateInstances",
216
- };
144
+ const headers = sharedHeaders("CreateInstances");
217
145
  let body;
218
146
  body = JSON.stringify(se_CreateInstancesRequest(input, context));
219
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
148
  };
221
149
  export const se_CreateInstancesFromSnapshotCommand = async (input, context) => {
222
- const headers = {
223
- "content-type": "application/x-amz-json-1.1",
224
- "x-amz-target": "Lightsail_20161128.CreateInstancesFromSnapshot",
225
- };
150
+ const headers = sharedHeaders("CreateInstancesFromSnapshot");
226
151
  let body;
227
152
  body = JSON.stringify(se_CreateInstancesFromSnapshotRequest(input, context));
228
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
229
154
  };
230
155
  export const se_CreateInstanceSnapshotCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.1",
233
- "x-amz-target": "Lightsail_20161128.CreateInstanceSnapshot",
234
- };
156
+ const headers = sharedHeaders("CreateInstanceSnapshot");
235
157
  let body;
236
158
  body = JSON.stringify(se_CreateInstanceSnapshotRequest(input, context));
237
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
160
  };
239
161
  export const se_CreateKeyPairCommand = async (input, context) => {
240
- const headers = {
241
- "content-type": "application/x-amz-json-1.1",
242
- "x-amz-target": "Lightsail_20161128.CreateKeyPair",
243
- };
162
+ const headers = sharedHeaders("CreateKeyPair");
244
163
  let body;
245
164
  body = JSON.stringify(se_CreateKeyPairRequest(input, context));
246
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
166
  };
248
167
  export const se_CreateLoadBalancerCommand = async (input, context) => {
249
- const headers = {
250
- "content-type": "application/x-amz-json-1.1",
251
- "x-amz-target": "Lightsail_20161128.CreateLoadBalancer",
252
- };
168
+ const headers = sharedHeaders("CreateLoadBalancer");
253
169
  let body;
254
170
  body = JSON.stringify(se_CreateLoadBalancerRequest(input, context));
255
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
172
  };
257
173
  export const se_CreateLoadBalancerTlsCertificateCommand = async (input, context) => {
258
- const headers = {
259
- "content-type": "application/x-amz-json-1.1",
260
- "x-amz-target": "Lightsail_20161128.CreateLoadBalancerTlsCertificate",
261
- };
174
+ const headers = sharedHeaders("CreateLoadBalancerTlsCertificate");
262
175
  let body;
263
176
  body = JSON.stringify(se_CreateLoadBalancerTlsCertificateRequest(input, context));
264
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
178
  };
266
179
  export const se_CreateRelationalDatabaseCommand = async (input, context) => {
267
- const headers = {
268
- "content-type": "application/x-amz-json-1.1",
269
- "x-amz-target": "Lightsail_20161128.CreateRelationalDatabase",
270
- };
180
+ const headers = sharedHeaders("CreateRelationalDatabase");
271
181
  let body;
272
182
  body = JSON.stringify(se_CreateRelationalDatabaseRequest(input, context));
273
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
184
  };
275
185
  export const se_CreateRelationalDatabaseFromSnapshotCommand = async (input, context) => {
276
- const headers = {
277
- "content-type": "application/x-amz-json-1.1",
278
- "x-amz-target": "Lightsail_20161128.CreateRelationalDatabaseFromSnapshot",
279
- };
186
+ const headers = sharedHeaders("CreateRelationalDatabaseFromSnapshot");
280
187
  let body;
281
188
  body = JSON.stringify(se_CreateRelationalDatabaseFromSnapshotRequest(input, context));
282
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
283
190
  };
284
191
  export const se_CreateRelationalDatabaseSnapshotCommand = async (input, context) => {
285
- const headers = {
286
- "content-type": "application/x-amz-json-1.1",
287
- "x-amz-target": "Lightsail_20161128.CreateRelationalDatabaseSnapshot",
288
- };
192
+ const headers = sharedHeaders("CreateRelationalDatabaseSnapshot");
289
193
  let body;
290
194
  body = JSON.stringify(se_CreateRelationalDatabaseSnapshotRequest(input, context));
291
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
196
  };
293
197
  export const se_DeleteAlarmCommand = async (input, context) => {
294
- const headers = {
295
- "content-type": "application/x-amz-json-1.1",
296
- "x-amz-target": "Lightsail_20161128.DeleteAlarm",
297
- };
198
+ const headers = sharedHeaders("DeleteAlarm");
298
199
  let body;
299
200
  body = JSON.stringify(se_DeleteAlarmRequest(input, context));
300
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
202
  };
302
203
  export const se_DeleteAutoSnapshotCommand = async (input, context) => {
303
- const headers = {
304
- "content-type": "application/x-amz-json-1.1",
305
- "x-amz-target": "Lightsail_20161128.DeleteAutoSnapshot",
306
- };
204
+ const headers = sharedHeaders("DeleteAutoSnapshot");
307
205
  let body;
308
206
  body = JSON.stringify(se_DeleteAutoSnapshotRequest(input, context));
309
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
208
  };
311
209
  export const se_DeleteBucketCommand = async (input, context) => {
312
- const headers = {
313
- "content-type": "application/x-amz-json-1.1",
314
- "x-amz-target": "Lightsail_20161128.DeleteBucket",
315
- };
210
+ const headers = sharedHeaders("DeleteBucket");
316
211
  let body;
317
212
  body = JSON.stringify(se_DeleteBucketRequest(input, context));
318
213
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
319
214
  };
320
215
  export const se_DeleteBucketAccessKeyCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-amz-json-1.1",
323
- "x-amz-target": "Lightsail_20161128.DeleteBucketAccessKey",
324
- };
216
+ const headers = sharedHeaders("DeleteBucketAccessKey");
325
217
  let body;
326
218
  body = JSON.stringify(se_DeleteBucketAccessKeyRequest(input, context));
327
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
220
  };
329
221
  export const se_DeleteCertificateCommand = async (input, context) => {
330
- const headers = {
331
- "content-type": "application/x-amz-json-1.1",
332
- "x-amz-target": "Lightsail_20161128.DeleteCertificate",
333
- };
222
+ const headers = sharedHeaders("DeleteCertificate");
334
223
  let body;
335
224
  body = JSON.stringify(se_DeleteCertificateRequest(input, context));
336
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
226
  };
338
227
  export const se_DeleteContactMethodCommand = async (input, context) => {
339
- const headers = {
340
- "content-type": "application/x-amz-json-1.1",
341
- "x-amz-target": "Lightsail_20161128.DeleteContactMethod",
342
- };
228
+ const headers = sharedHeaders("DeleteContactMethod");
343
229
  let body;
344
230
  body = JSON.stringify(se_DeleteContactMethodRequest(input, context));
345
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
232
  };
347
233
  export const se_DeleteContainerImageCommand = async (input, context) => {
348
- const headers = {
349
- "content-type": "application/x-amz-json-1.1",
350
- "x-amz-target": "Lightsail_20161128.DeleteContainerImage",
351
- };
234
+ const headers = sharedHeaders("DeleteContainerImage");
352
235
  let body;
353
236
  body = JSON.stringify(se_DeleteContainerImageRequest(input, context));
354
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
355
238
  };
356
239
  export const se_DeleteContainerServiceCommand = async (input, context) => {
357
- const headers = {
358
- "content-type": "application/x-amz-json-1.1",
359
- "x-amz-target": "Lightsail_20161128.DeleteContainerService",
360
- };
240
+ const headers = sharedHeaders("DeleteContainerService");
361
241
  let body;
362
242
  body = JSON.stringify(se_DeleteContainerServiceRequest(input, context));
363
243
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
364
244
  };
365
245
  export const se_DeleteDiskCommand = async (input, context) => {
366
- const headers = {
367
- "content-type": "application/x-amz-json-1.1",
368
- "x-amz-target": "Lightsail_20161128.DeleteDisk",
369
- };
246
+ const headers = sharedHeaders("DeleteDisk");
370
247
  let body;
371
248
  body = JSON.stringify(se_DeleteDiskRequest(input, context));
372
249
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
373
250
  };
374
251
  export const se_DeleteDiskSnapshotCommand = async (input, context) => {
375
- const headers = {
376
- "content-type": "application/x-amz-json-1.1",
377
- "x-amz-target": "Lightsail_20161128.DeleteDiskSnapshot",
378
- };
252
+ const headers = sharedHeaders("DeleteDiskSnapshot");
379
253
  let body;
380
254
  body = JSON.stringify(se_DeleteDiskSnapshotRequest(input, context));
381
255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
382
256
  };
383
257
  export const se_DeleteDistributionCommand = async (input, context) => {
384
- const headers = {
385
- "content-type": "application/x-amz-json-1.1",
386
- "x-amz-target": "Lightsail_20161128.DeleteDistribution",
387
- };
258
+ const headers = sharedHeaders("DeleteDistribution");
388
259
  let body;
389
260
  body = JSON.stringify(se_DeleteDistributionRequest(input, context));
390
261
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
391
262
  };
392
263
  export const se_DeleteDomainCommand = async (input, context) => {
393
- const headers = {
394
- "content-type": "application/x-amz-json-1.1",
395
- "x-amz-target": "Lightsail_20161128.DeleteDomain",
396
- };
264
+ const headers = sharedHeaders("DeleteDomain");
397
265
  let body;
398
266
  body = JSON.stringify(se_DeleteDomainRequest(input, context));
399
267
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
268
  };
401
269
  export const se_DeleteDomainEntryCommand = async (input, context) => {
402
- const headers = {
403
- "content-type": "application/x-amz-json-1.1",
404
- "x-amz-target": "Lightsail_20161128.DeleteDomainEntry",
405
- };
270
+ const headers = sharedHeaders("DeleteDomainEntry");
406
271
  let body;
407
272
  body = JSON.stringify(se_DeleteDomainEntryRequest(input, context));
408
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
409
274
  };
410
275
  export const se_DeleteInstanceCommand = async (input, context) => {
411
- const headers = {
412
- "content-type": "application/x-amz-json-1.1",
413
- "x-amz-target": "Lightsail_20161128.DeleteInstance",
414
- };
276
+ const headers = sharedHeaders("DeleteInstance");
415
277
  let body;
416
278
  body = JSON.stringify(se_DeleteInstanceRequest(input, context));
417
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
280
  };
419
281
  export const se_DeleteInstanceSnapshotCommand = async (input, context) => {
420
- const headers = {
421
- "content-type": "application/x-amz-json-1.1",
422
- "x-amz-target": "Lightsail_20161128.DeleteInstanceSnapshot",
423
- };
282
+ const headers = sharedHeaders("DeleteInstanceSnapshot");
424
283
  let body;
425
284
  body = JSON.stringify(se_DeleteInstanceSnapshotRequest(input, context));
426
285
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
427
286
  };
428
287
  export const se_DeleteKeyPairCommand = async (input, context) => {
429
- const headers = {
430
- "content-type": "application/x-amz-json-1.1",
431
- "x-amz-target": "Lightsail_20161128.DeleteKeyPair",
432
- };
288
+ const headers = sharedHeaders("DeleteKeyPair");
433
289
  let body;
434
290
  body = JSON.stringify(se_DeleteKeyPairRequest(input, context));
435
291
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
436
292
  };
437
293
  export const se_DeleteKnownHostKeysCommand = async (input, context) => {
438
- const headers = {
439
- "content-type": "application/x-amz-json-1.1",
440
- "x-amz-target": "Lightsail_20161128.DeleteKnownHostKeys",
441
- };
294
+ const headers = sharedHeaders("DeleteKnownHostKeys");
442
295
  let body;
443
296
  body = JSON.stringify(se_DeleteKnownHostKeysRequest(input, context));
444
297
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
445
298
  };
446
299
  export const se_DeleteLoadBalancerCommand = async (input, context) => {
447
- const headers = {
448
- "content-type": "application/x-amz-json-1.1",
449
- "x-amz-target": "Lightsail_20161128.DeleteLoadBalancer",
450
- };
300
+ const headers = sharedHeaders("DeleteLoadBalancer");
451
301
  let body;
452
302
  body = JSON.stringify(se_DeleteLoadBalancerRequest(input, context));
453
303
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
454
304
  };
455
305
  export const se_DeleteLoadBalancerTlsCertificateCommand = async (input, context) => {
456
- const headers = {
457
- "content-type": "application/x-amz-json-1.1",
458
- "x-amz-target": "Lightsail_20161128.DeleteLoadBalancerTlsCertificate",
459
- };
306
+ const headers = sharedHeaders("DeleteLoadBalancerTlsCertificate");
460
307
  let body;
461
308
  body = JSON.stringify(se_DeleteLoadBalancerTlsCertificateRequest(input, context));
462
309
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
463
310
  };
464
311
  export const se_DeleteRelationalDatabaseCommand = async (input, context) => {
465
- const headers = {
466
- "content-type": "application/x-amz-json-1.1",
467
- "x-amz-target": "Lightsail_20161128.DeleteRelationalDatabase",
468
- };
312
+ const headers = sharedHeaders("DeleteRelationalDatabase");
469
313
  let body;
470
314
  body = JSON.stringify(se_DeleteRelationalDatabaseRequest(input, context));
471
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
472
316
  };
473
317
  export const se_DeleteRelationalDatabaseSnapshotCommand = async (input, context) => {
474
- const headers = {
475
- "content-type": "application/x-amz-json-1.1",
476
- "x-amz-target": "Lightsail_20161128.DeleteRelationalDatabaseSnapshot",
477
- };
318
+ const headers = sharedHeaders("DeleteRelationalDatabaseSnapshot");
478
319
  let body;
479
320
  body = JSON.stringify(se_DeleteRelationalDatabaseSnapshotRequest(input, context));
480
321
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
481
322
  };
482
323
  export const se_DetachCertificateFromDistributionCommand = async (input, context) => {
483
- const headers = {
484
- "content-type": "application/x-amz-json-1.1",
485
- "x-amz-target": "Lightsail_20161128.DetachCertificateFromDistribution",
486
- };
324
+ const headers = sharedHeaders("DetachCertificateFromDistribution");
487
325
  let body;
488
326
  body = JSON.stringify(se_DetachCertificateFromDistributionRequest(input, context));
489
327
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
490
328
  };
491
329
  export const se_DetachDiskCommand = async (input, context) => {
492
- const headers = {
493
- "content-type": "application/x-amz-json-1.1",
494
- "x-amz-target": "Lightsail_20161128.DetachDisk",
495
- };
330
+ const headers = sharedHeaders("DetachDisk");
496
331
  let body;
497
332
  body = JSON.stringify(se_DetachDiskRequest(input, context));
498
333
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
499
334
  };
500
335
  export const se_DetachInstancesFromLoadBalancerCommand = async (input, context) => {
501
- const headers = {
502
- "content-type": "application/x-amz-json-1.1",
503
- "x-amz-target": "Lightsail_20161128.DetachInstancesFromLoadBalancer",
504
- };
336
+ const headers = sharedHeaders("DetachInstancesFromLoadBalancer");
505
337
  let body;
506
338
  body = JSON.stringify(se_DetachInstancesFromLoadBalancerRequest(input, context));
507
339
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
508
340
  };
509
341
  export const se_DetachStaticIpCommand = async (input, context) => {
510
- const headers = {
511
- "content-type": "application/x-amz-json-1.1",
512
- "x-amz-target": "Lightsail_20161128.DetachStaticIp",
513
- };
342
+ const headers = sharedHeaders("DetachStaticIp");
514
343
  let body;
515
344
  body = JSON.stringify(se_DetachStaticIpRequest(input, context));
516
345
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
517
346
  };
518
347
  export const se_DisableAddOnCommand = async (input, context) => {
519
- const headers = {
520
- "content-type": "application/x-amz-json-1.1",
521
- "x-amz-target": "Lightsail_20161128.DisableAddOn",
522
- };
348
+ const headers = sharedHeaders("DisableAddOn");
523
349
  let body;
524
350
  body = JSON.stringify(se_DisableAddOnRequest(input, context));
525
351
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
526
352
  };
527
353
  export const se_DownloadDefaultKeyPairCommand = async (input, context) => {
528
- const headers = {
529
- "content-type": "application/x-amz-json-1.1",
530
- "x-amz-target": "Lightsail_20161128.DownloadDefaultKeyPair",
531
- };
354
+ const headers = sharedHeaders("DownloadDefaultKeyPair");
532
355
  let body;
533
356
  body = JSON.stringify(se_DownloadDefaultKeyPairRequest(input, context));
534
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
535
358
  };
536
359
  export const se_EnableAddOnCommand = async (input, context) => {
537
- const headers = {
538
- "content-type": "application/x-amz-json-1.1",
539
- "x-amz-target": "Lightsail_20161128.EnableAddOn",
540
- };
360
+ const headers = sharedHeaders("EnableAddOn");
541
361
  let body;
542
362
  body = JSON.stringify(se_EnableAddOnRequest(input, context));
543
363
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
544
364
  };
545
365
  export const se_ExportSnapshotCommand = async (input, context) => {
546
- const headers = {
547
- "content-type": "application/x-amz-json-1.1",
548
- "x-amz-target": "Lightsail_20161128.ExportSnapshot",
549
- };
366
+ const headers = sharedHeaders("ExportSnapshot");
550
367
  let body;
551
368
  body = JSON.stringify(se_ExportSnapshotRequest(input, context));
552
369
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
553
370
  };
554
371
  export const se_GetActiveNamesCommand = async (input, context) => {
555
- const headers = {
556
- "content-type": "application/x-amz-json-1.1",
557
- "x-amz-target": "Lightsail_20161128.GetActiveNames",
558
- };
372
+ const headers = sharedHeaders("GetActiveNames");
559
373
  let body;
560
374
  body = JSON.stringify(se_GetActiveNamesRequest(input, context));
561
375
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
562
376
  };
563
377
  export const se_GetAlarmsCommand = async (input, context) => {
564
- const headers = {
565
- "content-type": "application/x-amz-json-1.1",
566
- "x-amz-target": "Lightsail_20161128.GetAlarms",
567
- };
378
+ const headers = sharedHeaders("GetAlarms");
568
379
  let body;
569
380
  body = JSON.stringify(se_GetAlarmsRequest(input, context));
570
381
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
571
382
  };
572
383
  export const se_GetAutoSnapshotsCommand = async (input, context) => {
573
- const headers = {
574
- "content-type": "application/x-amz-json-1.1",
575
- "x-amz-target": "Lightsail_20161128.GetAutoSnapshots",
576
- };
384
+ const headers = sharedHeaders("GetAutoSnapshots");
577
385
  let body;
578
386
  body = JSON.stringify(se_GetAutoSnapshotsRequest(input, context));
579
387
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
580
388
  };
581
389
  export const se_GetBlueprintsCommand = async (input, context) => {
582
- const headers = {
583
- "content-type": "application/x-amz-json-1.1",
584
- "x-amz-target": "Lightsail_20161128.GetBlueprints",
585
- };
390
+ const headers = sharedHeaders("GetBlueprints");
586
391
  let body;
587
392
  body = JSON.stringify(se_GetBlueprintsRequest(input, context));
588
393
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
589
394
  };
590
395
  export const se_GetBucketAccessKeysCommand = async (input, context) => {
591
- const headers = {
592
- "content-type": "application/x-amz-json-1.1",
593
- "x-amz-target": "Lightsail_20161128.GetBucketAccessKeys",
594
- };
396
+ const headers = sharedHeaders("GetBucketAccessKeys");
595
397
  let body;
596
398
  body = JSON.stringify(se_GetBucketAccessKeysRequest(input, context));
597
399
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
598
400
  };
599
401
  export const se_GetBucketBundlesCommand = async (input, context) => {
600
- const headers = {
601
- "content-type": "application/x-amz-json-1.1",
602
- "x-amz-target": "Lightsail_20161128.GetBucketBundles",
603
- };
402
+ const headers = sharedHeaders("GetBucketBundles");
604
403
  let body;
605
404
  body = JSON.stringify(se_GetBucketBundlesRequest(input, context));
606
405
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
607
406
  };
608
407
  export const se_GetBucketMetricDataCommand = async (input, context) => {
609
- const headers = {
610
- "content-type": "application/x-amz-json-1.1",
611
- "x-amz-target": "Lightsail_20161128.GetBucketMetricData",
612
- };
408
+ const headers = sharedHeaders("GetBucketMetricData");
613
409
  let body;
614
410
  body = JSON.stringify(se_GetBucketMetricDataRequest(input, context));
615
411
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
616
412
  };
617
413
  export const se_GetBucketsCommand = async (input, context) => {
618
- const headers = {
619
- "content-type": "application/x-amz-json-1.1",
620
- "x-amz-target": "Lightsail_20161128.GetBuckets",
621
- };
414
+ const headers = sharedHeaders("GetBuckets");
622
415
  let body;
623
416
  body = JSON.stringify(se_GetBucketsRequest(input, context));
624
417
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
625
418
  };
626
419
  export const se_GetBundlesCommand = async (input, context) => {
627
- const headers = {
628
- "content-type": "application/x-amz-json-1.1",
629
- "x-amz-target": "Lightsail_20161128.GetBundles",
630
- };
420
+ const headers = sharedHeaders("GetBundles");
631
421
  let body;
632
422
  body = JSON.stringify(se_GetBundlesRequest(input, context));
633
423
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
634
424
  };
635
425
  export const se_GetCertificatesCommand = async (input, context) => {
636
- const headers = {
637
- "content-type": "application/x-amz-json-1.1",
638
- "x-amz-target": "Lightsail_20161128.GetCertificates",
639
- };
426
+ const headers = sharedHeaders("GetCertificates");
640
427
  let body;
641
428
  body = JSON.stringify(se_GetCertificatesRequest(input, context));
642
429
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
643
430
  };
644
431
  export const se_GetCloudFormationStackRecordsCommand = async (input, context) => {
645
- const headers = {
646
- "content-type": "application/x-amz-json-1.1",
647
- "x-amz-target": "Lightsail_20161128.GetCloudFormationStackRecords",
648
- };
432
+ const headers = sharedHeaders("GetCloudFormationStackRecords");
649
433
  let body;
650
434
  body = JSON.stringify(se_GetCloudFormationStackRecordsRequest(input, context));
651
435
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
652
436
  };
653
437
  export const se_GetContactMethodsCommand = async (input, context) => {
654
- const headers = {
655
- "content-type": "application/x-amz-json-1.1",
656
- "x-amz-target": "Lightsail_20161128.GetContactMethods",
657
- };
438
+ const headers = sharedHeaders("GetContactMethods");
658
439
  let body;
659
440
  body = JSON.stringify(se_GetContactMethodsRequest(input, context));
660
441
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
661
442
  };
662
443
  export const se_GetContainerAPIMetadataCommand = async (input, context) => {
663
- const headers = {
664
- "content-type": "application/x-amz-json-1.1",
665
- "x-amz-target": "Lightsail_20161128.GetContainerAPIMetadata",
666
- };
444
+ const headers = sharedHeaders("GetContainerAPIMetadata");
667
445
  let body;
668
446
  body = JSON.stringify(se_GetContainerAPIMetadataRequest(input, context));
669
447
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
670
448
  };
671
449
  export const se_GetContainerImagesCommand = async (input, context) => {
672
- const headers = {
673
- "content-type": "application/x-amz-json-1.1",
674
- "x-amz-target": "Lightsail_20161128.GetContainerImages",
675
- };
450
+ const headers = sharedHeaders("GetContainerImages");
676
451
  let body;
677
452
  body = JSON.stringify(se_GetContainerImagesRequest(input, context));
678
453
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
679
454
  };
680
455
  export const se_GetContainerLogCommand = async (input, context) => {
681
- const headers = {
682
- "content-type": "application/x-amz-json-1.1",
683
- "x-amz-target": "Lightsail_20161128.GetContainerLog",
684
- };
456
+ const headers = sharedHeaders("GetContainerLog");
685
457
  let body;
686
458
  body = JSON.stringify(se_GetContainerLogRequest(input, context));
687
459
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
688
460
  };
689
461
  export const se_GetContainerServiceDeploymentsCommand = async (input, context) => {
690
- const headers = {
691
- "content-type": "application/x-amz-json-1.1",
692
- "x-amz-target": "Lightsail_20161128.GetContainerServiceDeployments",
693
- };
462
+ const headers = sharedHeaders("GetContainerServiceDeployments");
694
463
  let body;
695
464
  body = JSON.stringify(se_GetContainerServiceDeploymentsRequest(input, context));
696
465
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
697
466
  };
698
467
  export const se_GetContainerServiceMetricDataCommand = async (input, context) => {
699
- const headers = {
700
- "content-type": "application/x-amz-json-1.1",
701
- "x-amz-target": "Lightsail_20161128.GetContainerServiceMetricData",
702
- };
468
+ const headers = sharedHeaders("GetContainerServiceMetricData");
703
469
  let body;
704
470
  body = JSON.stringify(se_GetContainerServiceMetricDataRequest(input, context));
705
471
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
706
472
  };
707
473
  export const se_GetContainerServicePowersCommand = async (input, context) => {
708
- const headers = {
709
- "content-type": "application/x-amz-json-1.1",
710
- "x-amz-target": "Lightsail_20161128.GetContainerServicePowers",
711
- };
474
+ const headers = sharedHeaders("GetContainerServicePowers");
712
475
  let body;
713
476
  body = JSON.stringify(se_GetContainerServicePowersRequest(input, context));
714
477
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
715
478
  };
716
479
  export const se_GetContainerServicesCommand = async (input, context) => {
717
- const headers = {
718
- "content-type": "application/x-amz-json-1.1",
719
- "x-amz-target": "Lightsail_20161128.GetContainerServices",
720
- };
480
+ const headers = sharedHeaders("GetContainerServices");
721
481
  let body;
722
482
  body = JSON.stringify(se_GetContainerServicesRequest(input, context));
723
483
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
724
484
  };
725
485
  export const se_GetCostEstimateCommand = async (input, context) => {
726
- const headers = {
727
- "content-type": "application/x-amz-json-1.1",
728
- "x-amz-target": "Lightsail_20161128.GetCostEstimate",
729
- };
486
+ const headers = sharedHeaders("GetCostEstimate");
730
487
  let body;
731
488
  body = JSON.stringify(se_GetCostEstimateRequest(input, context));
732
489
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
733
490
  };
734
491
  export const se_GetDiskCommand = async (input, context) => {
735
- const headers = {
736
- "content-type": "application/x-amz-json-1.1",
737
- "x-amz-target": "Lightsail_20161128.GetDisk",
738
- };
492
+ const headers = sharedHeaders("GetDisk");
739
493
  let body;
740
494
  body = JSON.stringify(se_GetDiskRequest(input, context));
741
495
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
742
496
  };
743
497
  export const se_GetDisksCommand = async (input, context) => {
744
- const headers = {
745
- "content-type": "application/x-amz-json-1.1",
746
- "x-amz-target": "Lightsail_20161128.GetDisks",
747
- };
498
+ const headers = sharedHeaders("GetDisks");
748
499
  let body;
749
500
  body = JSON.stringify(se_GetDisksRequest(input, context));
750
501
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
751
502
  };
752
503
  export const se_GetDiskSnapshotCommand = async (input, context) => {
753
- const headers = {
754
- "content-type": "application/x-amz-json-1.1",
755
- "x-amz-target": "Lightsail_20161128.GetDiskSnapshot",
756
- };
504
+ const headers = sharedHeaders("GetDiskSnapshot");
757
505
  let body;
758
506
  body = JSON.stringify(se_GetDiskSnapshotRequest(input, context));
759
507
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
760
508
  };
761
509
  export const se_GetDiskSnapshotsCommand = async (input, context) => {
762
- const headers = {
763
- "content-type": "application/x-amz-json-1.1",
764
- "x-amz-target": "Lightsail_20161128.GetDiskSnapshots",
765
- };
510
+ const headers = sharedHeaders("GetDiskSnapshots");
766
511
  let body;
767
512
  body = JSON.stringify(se_GetDiskSnapshotsRequest(input, context));
768
513
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
769
514
  };
770
515
  export const se_GetDistributionBundlesCommand = async (input, context) => {
771
- const headers = {
772
- "content-type": "application/x-amz-json-1.1",
773
- "x-amz-target": "Lightsail_20161128.GetDistributionBundles",
774
- };
516
+ const headers = sharedHeaders("GetDistributionBundles");
775
517
  let body;
776
518
  body = JSON.stringify(se_GetDistributionBundlesRequest(input, context));
777
519
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
778
520
  };
779
521
  export const se_GetDistributionLatestCacheResetCommand = async (input, context) => {
780
- const headers = {
781
- "content-type": "application/x-amz-json-1.1",
782
- "x-amz-target": "Lightsail_20161128.GetDistributionLatestCacheReset",
783
- };
522
+ const headers = sharedHeaders("GetDistributionLatestCacheReset");
784
523
  let body;
785
524
  body = JSON.stringify(se_GetDistributionLatestCacheResetRequest(input, context));
786
525
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
787
526
  };
788
527
  export const se_GetDistributionMetricDataCommand = async (input, context) => {
789
- const headers = {
790
- "content-type": "application/x-amz-json-1.1",
791
- "x-amz-target": "Lightsail_20161128.GetDistributionMetricData",
792
- };
528
+ const headers = sharedHeaders("GetDistributionMetricData");
793
529
  let body;
794
530
  body = JSON.stringify(se_GetDistributionMetricDataRequest(input, context));
795
531
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
796
532
  };
797
533
  export const se_GetDistributionsCommand = async (input, context) => {
798
- const headers = {
799
- "content-type": "application/x-amz-json-1.1",
800
- "x-amz-target": "Lightsail_20161128.GetDistributions",
801
- };
534
+ const headers = sharedHeaders("GetDistributions");
802
535
  let body;
803
536
  body = JSON.stringify(se_GetDistributionsRequest(input, context));
804
537
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
805
538
  };
806
539
  export const se_GetDomainCommand = async (input, context) => {
807
- const headers = {
808
- "content-type": "application/x-amz-json-1.1",
809
- "x-amz-target": "Lightsail_20161128.GetDomain",
810
- };
540
+ const headers = sharedHeaders("GetDomain");
811
541
  let body;
812
542
  body = JSON.stringify(se_GetDomainRequest(input, context));
813
543
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
814
544
  };
815
545
  export const se_GetDomainsCommand = async (input, context) => {
816
- const headers = {
817
- "content-type": "application/x-amz-json-1.1",
818
- "x-amz-target": "Lightsail_20161128.GetDomains",
819
- };
546
+ const headers = sharedHeaders("GetDomains");
820
547
  let body;
821
548
  body = JSON.stringify(se_GetDomainsRequest(input, context));
822
549
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
823
550
  };
824
551
  export const se_GetExportSnapshotRecordsCommand = async (input, context) => {
825
- const headers = {
826
- "content-type": "application/x-amz-json-1.1",
827
- "x-amz-target": "Lightsail_20161128.GetExportSnapshotRecords",
828
- };
552
+ const headers = sharedHeaders("GetExportSnapshotRecords");
829
553
  let body;
830
554
  body = JSON.stringify(se_GetExportSnapshotRecordsRequest(input, context));
831
555
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
832
556
  };
833
557
  export const se_GetInstanceCommand = async (input, context) => {
834
- const headers = {
835
- "content-type": "application/x-amz-json-1.1",
836
- "x-amz-target": "Lightsail_20161128.GetInstance",
837
- };
558
+ const headers = sharedHeaders("GetInstance");
838
559
  let body;
839
560
  body = JSON.stringify(se_GetInstanceRequest(input, context));
840
561
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
841
562
  };
842
563
  export const se_GetInstanceAccessDetailsCommand = async (input, context) => {
843
- const headers = {
844
- "content-type": "application/x-amz-json-1.1",
845
- "x-amz-target": "Lightsail_20161128.GetInstanceAccessDetails",
846
- };
564
+ const headers = sharedHeaders("GetInstanceAccessDetails");
847
565
  let body;
848
566
  body = JSON.stringify(se_GetInstanceAccessDetailsRequest(input, context));
849
567
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
850
568
  };
851
569
  export const se_GetInstanceMetricDataCommand = async (input, context) => {
852
- const headers = {
853
- "content-type": "application/x-amz-json-1.1",
854
- "x-amz-target": "Lightsail_20161128.GetInstanceMetricData",
855
- };
570
+ const headers = sharedHeaders("GetInstanceMetricData");
856
571
  let body;
857
572
  body = JSON.stringify(se_GetInstanceMetricDataRequest(input, context));
858
573
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
859
574
  };
860
575
  export const se_GetInstancePortStatesCommand = async (input, context) => {
861
- const headers = {
862
- "content-type": "application/x-amz-json-1.1",
863
- "x-amz-target": "Lightsail_20161128.GetInstancePortStates",
864
- };
576
+ const headers = sharedHeaders("GetInstancePortStates");
865
577
  let body;
866
578
  body = JSON.stringify(se_GetInstancePortStatesRequest(input, context));
867
579
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
868
580
  };
869
581
  export const se_GetInstancesCommand = async (input, context) => {
870
- const headers = {
871
- "content-type": "application/x-amz-json-1.1",
872
- "x-amz-target": "Lightsail_20161128.GetInstances",
873
- };
582
+ const headers = sharedHeaders("GetInstances");
874
583
  let body;
875
584
  body = JSON.stringify(se_GetInstancesRequest(input, context));
876
585
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
877
586
  };
878
587
  export const se_GetInstanceSnapshotCommand = async (input, context) => {
879
- const headers = {
880
- "content-type": "application/x-amz-json-1.1",
881
- "x-amz-target": "Lightsail_20161128.GetInstanceSnapshot",
882
- };
588
+ const headers = sharedHeaders("GetInstanceSnapshot");
883
589
  let body;
884
590
  body = JSON.stringify(se_GetInstanceSnapshotRequest(input, context));
885
591
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
886
592
  };
887
593
  export const se_GetInstanceSnapshotsCommand = async (input, context) => {
888
- const headers = {
889
- "content-type": "application/x-amz-json-1.1",
890
- "x-amz-target": "Lightsail_20161128.GetInstanceSnapshots",
891
- };
594
+ const headers = sharedHeaders("GetInstanceSnapshots");
892
595
  let body;
893
596
  body = JSON.stringify(se_GetInstanceSnapshotsRequest(input, context));
894
597
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
895
598
  };
896
599
  export const se_GetInstanceStateCommand = async (input, context) => {
897
- const headers = {
898
- "content-type": "application/x-amz-json-1.1",
899
- "x-amz-target": "Lightsail_20161128.GetInstanceState",
900
- };
600
+ const headers = sharedHeaders("GetInstanceState");
901
601
  let body;
902
602
  body = JSON.stringify(se_GetInstanceStateRequest(input, context));
903
603
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
904
604
  };
905
605
  export const se_GetKeyPairCommand = async (input, context) => {
906
- const headers = {
907
- "content-type": "application/x-amz-json-1.1",
908
- "x-amz-target": "Lightsail_20161128.GetKeyPair",
909
- };
606
+ const headers = sharedHeaders("GetKeyPair");
910
607
  let body;
911
608
  body = JSON.stringify(se_GetKeyPairRequest(input, context));
912
609
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
913
610
  };
914
611
  export const se_GetKeyPairsCommand = async (input, context) => {
915
- const headers = {
916
- "content-type": "application/x-amz-json-1.1",
917
- "x-amz-target": "Lightsail_20161128.GetKeyPairs",
918
- };
612
+ const headers = sharedHeaders("GetKeyPairs");
919
613
  let body;
920
614
  body = JSON.stringify(se_GetKeyPairsRequest(input, context));
921
615
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
922
616
  };
923
617
  export const se_GetLoadBalancerCommand = async (input, context) => {
924
- const headers = {
925
- "content-type": "application/x-amz-json-1.1",
926
- "x-amz-target": "Lightsail_20161128.GetLoadBalancer",
927
- };
618
+ const headers = sharedHeaders("GetLoadBalancer");
928
619
  let body;
929
620
  body = JSON.stringify(se_GetLoadBalancerRequest(input, context));
930
621
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
931
622
  };
932
623
  export const se_GetLoadBalancerMetricDataCommand = async (input, context) => {
933
- const headers = {
934
- "content-type": "application/x-amz-json-1.1",
935
- "x-amz-target": "Lightsail_20161128.GetLoadBalancerMetricData",
936
- };
624
+ const headers = sharedHeaders("GetLoadBalancerMetricData");
937
625
  let body;
938
626
  body = JSON.stringify(se_GetLoadBalancerMetricDataRequest(input, context));
939
627
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
940
628
  };
941
629
  export const se_GetLoadBalancersCommand = async (input, context) => {
942
- const headers = {
943
- "content-type": "application/x-amz-json-1.1",
944
- "x-amz-target": "Lightsail_20161128.GetLoadBalancers",
945
- };
630
+ const headers = sharedHeaders("GetLoadBalancers");
946
631
  let body;
947
632
  body = JSON.stringify(se_GetLoadBalancersRequest(input, context));
948
633
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
949
634
  };
950
635
  export const se_GetLoadBalancerTlsCertificatesCommand = async (input, context) => {
951
- const headers = {
952
- "content-type": "application/x-amz-json-1.1",
953
- "x-amz-target": "Lightsail_20161128.GetLoadBalancerTlsCertificates",
954
- };
636
+ const headers = sharedHeaders("GetLoadBalancerTlsCertificates");
955
637
  let body;
956
638
  body = JSON.stringify(se_GetLoadBalancerTlsCertificatesRequest(input, context));
957
639
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
958
640
  };
959
641
  export const se_GetLoadBalancerTlsPoliciesCommand = async (input, context) => {
960
- const headers = {
961
- "content-type": "application/x-amz-json-1.1",
962
- "x-amz-target": "Lightsail_20161128.GetLoadBalancerTlsPolicies",
963
- };
642
+ const headers = sharedHeaders("GetLoadBalancerTlsPolicies");
964
643
  let body;
965
644
  body = JSON.stringify(se_GetLoadBalancerTlsPoliciesRequest(input, context));
966
645
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
967
646
  };
968
647
  export const se_GetOperationCommand = async (input, context) => {
969
- const headers = {
970
- "content-type": "application/x-amz-json-1.1",
971
- "x-amz-target": "Lightsail_20161128.GetOperation",
972
- };
648
+ const headers = sharedHeaders("GetOperation");
973
649
  let body;
974
650
  body = JSON.stringify(se_GetOperationRequest(input, context));
975
651
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
976
652
  };
977
653
  export const se_GetOperationsCommand = async (input, context) => {
978
- const headers = {
979
- "content-type": "application/x-amz-json-1.1",
980
- "x-amz-target": "Lightsail_20161128.GetOperations",
981
- };
654
+ const headers = sharedHeaders("GetOperations");
982
655
  let body;
983
656
  body = JSON.stringify(se_GetOperationsRequest(input, context));
984
657
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
985
658
  };
986
659
  export const se_GetOperationsForResourceCommand = async (input, context) => {
987
- const headers = {
988
- "content-type": "application/x-amz-json-1.1",
989
- "x-amz-target": "Lightsail_20161128.GetOperationsForResource",
990
- };
660
+ const headers = sharedHeaders("GetOperationsForResource");
991
661
  let body;
992
662
  body = JSON.stringify(se_GetOperationsForResourceRequest(input, context));
993
663
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
994
664
  };
995
665
  export const se_GetRegionsCommand = async (input, context) => {
996
- const headers = {
997
- "content-type": "application/x-amz-json-1.1",
998
- "x-amz-target": "Lightsail_20161128.GetRegions",
999
- };
666
+ const headers = sharedHeaders("GetRegions");
1000
667
  let body;
1001
668
  body = JSON.stringify(se_GetRegionsRequest(input, context));
1002
669
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1003
670
  };
1004
671
  export const se_GetRelationalDatabaseCommand = async (input, context) => {
1005
- const headers = {
1006
- "content-type": "application/x-amz-json-1.1",
1007
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabase",
1008
- };
672
+ const headers = sharedHeaders("GetRelationalDatabase");
1009
673
  let body;
1010
674
  body = JSON.stringify(se_GetRelationalDatabaseRequest(input, context));
1011
675
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1012
676
  };
1013
677
  export const se_GetRelationalDatabaseBlueprintsCommand = async (input, context) => {
1014
- const headers = {
1015
- "content-type": "application/x-amz-json-1.1",
1016
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabaseBlueprints",
1017
- };
678
+ const headers = sharedHeaders("GetRelationalDatabaseBlueprints");
1018
679
  let body;
1019
680
  body = JSON.stringify(se_GetRelationalDatabaseBlueprintsRequest(input, context));
1020
681
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1021
682
  };
1022
683
  export const se_GetRelationalDatabaseBundlesCommand = async (input, context) => {
1023
- const headers = {
1024
- "content-type": "application/x-amz-json-1.1",
1025
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabaseBundles",
1026
- };
684
+ const headers = sharedHeaders("GetRelationalDatabaseBundles");
1027
685
  let body;
1028
686
  body = JSON.stringify(se_GetRelationalDatabaseBundlesRequest(input, context));
1029
687
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1030
688
  };
1031
689
  export const se_GetRelationalDatabaseEventsCommand = async (input, context) => {
1032
- const headers = {
1033
- "content-type": "application/x-amz-json-1.1",
1034
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabaseEvents",
1035
- };
690
+ const headers = sharedHeaders("GetRelationalDatabaseEvents");
1036
691
  let body;
1037
692
  body = JSON.stringify(se_GetRelationalDatabaseEventsRequest(input, context));
1038
693
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1039
694
  };
1040
695
  export const se_GetRelationalDatabaseLogEventsCommand = async (input, context) => {
1041
- const headers = {
1042
- "content-type": "application/x-amz-json-1.1",
1043
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabaseLogEvents",
1044
- };
696
+ const headers = sharedHeaders("GetRelationalDatabaseLogEvents");
1045
697
  let body;
1046
698
  body = JSON.stringify(se_GetRelationalDatabaseLogEventsRequest(input, context));
1047
699
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1048
700
  };
1049
701
  export const se_GetRelationalDatabaseLogStreamsCommand = async (input, context) => {
1050
- const headers = {
1051
- "content-type": "application/x-amz-json-1.1",
1052
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabaseLogStreams",
1053
- };
702
+ const headers = sharedHeaders("GetRelationalDatabaseLogStreams");
1054
703
  let body;
1055
704
  body = JSON.stringify(se_GetRelationalDatabaseLogStreamsRequest(input, context));
1056
705
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1057
706
  };
1058
707
  export const se_GetRelationalDatabaseMasterUserPasswordCommand = async (input, context) => {
1059
- const headers = {
1060
- "content-type": "application/x-amz-json-1.1",
1061
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabaseMasterUserPassword",
1062
- };
708
+ const headers = sharedHeaders("GetRelationalDatabaseMasterUserPassword");
1063
709
  let body;
1064
710
  body = JSON.stringify(se_GetRelationalDatabaseMasterUserPasswordRequest(input, context));
1065
711
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1066
712
  };
1067
713
  export const se_GetRelationalDatabaseMetricDataCommand = async (input, context) => {
1068
- const headers = {
1069
- "content-type": "application/x-amz-json-1.1",
1070
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabaseMetricData",
1071
- };
714
+ const headers = sharedHeaders("GetRelationalDatabaseMetricData");
1072
715
  let body;
1073
716
  body = JSON.stringify(se_GetRelationalDatabaseMetricDataRequest(input, context));
1074
717
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1075
718
  };
1076
719
  export const se_GetRelationalDatabaseParametersCommand = async (input, context) => {
1077
- const headers = {
1078
- "content-type": "application/x-amz-json-1.1",
1079
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabaseParameters",
1080
- };
720
+ const headers = sharedHeaders("GetRelationalDatabaseParameters");
1081
721
  let body;
1082
722
  body = JSON.stringify(se_GetRelationalDatabaseParametersRequest(input, context));
1083
723
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1084
724
  };
1085
725
  export const se_GetRelationalDatabasesCommand = async (input, context) => {
1086
- const headers = {
1087
- "content-type": "application/x-amz-json-1.1",
1088
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabases",
1089
- };
726
+ const headers = sharedHeaders("GetRelationalDatabases");
1090
727
  let body;
1091
728
  body = JSON.stringify(se_GetRelationalDatabasesRequest(input, context));
1092
729
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1093
730
  };
1094
731
  export const se_GetRelationalDatabaseSnapshotCommand = async (input, context) => {
1095
- const headers = {
1096
- "content-type": "application/x-amz-json-1.1",
1097
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabaseSnapshot",
1098
- };
732
+ const headers = sharedHeaders("GetRelationalDatabaseSnapshot");
1099
733
  let body;
1100
734
  body = JSON.stringify(se_GetRelationalDatabaseSnapshotRequest(input, context));
1101
735
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1102
736
  };
1103
737
  export const se_GetRelationalDatabaseSnapshotsCommand = async (input, context) => {
1104
- const headers = {
1105
- "content-type": "application/x-amz-json-1.1",
1106
- "x-amz-target": "Lightsail_20161128.GetRelationalDatabaseSnapshots",
1107
- };
738
+ const headers = sharedHeaders("GetRelationalDatabaseSnapshots");
1108
739
  let body;
1109
740
  body = JSON.stringify(se_GetRelationalDatabaseSnapshotsRequest(input, context));
1110
741
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1111
742
  };
1112
743
  export const se_GetStaticIpCommand = async (input, context) => {
1113
- const headers = {
1114
- "content-type": "application/x-amz-json-1.1",
1115
- "x-amz-target": "Lightsail_20161128.GetStaticIp",
1116
- };
744
+ const headers = sharedHeaders("GetStaticIp");
1117
745
  let body;
1118
746
  body = JSON.stringify(se_GetStaticIpRequest(input, context));
1119
747
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1120
748
  };
1121
749
  export const se_GetStaticIpsCommand = async (input, context) => {
1122
- const headers = {
1123
- "content-type": "application/x-amz-json-1.1",
1124
- "x-amz-target": "Lightsail_20161128.GetStaticIps",
1125
- };
750
+ const headers = sharedHeaders("GetStaticIps");
1126
751
  let body;
1127
752
  body = JSON.stringify(se_GetStaticIpsRequest(input, context));
1128
753
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1129
754
  };
1130
755
  export const se_ImportKeyPairCommand = async (input, context) => {
1131
- const headers = {
1132
- "content-type": "application/x-amz-json-1.1",
1133
- "x-amz-target": "Lightsail_20161128.ImportKeyPair",
1134
- };
756
+ const headers = sharedHeaders("ImportKeyPair");
1135
757
  let body;
1136
758
  body = JSON.stringify(se_ImportKeyPairRequest(input, context));
1137
759
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1138
760
  };
1139
761
  export const se_IsVpcPeeredCommand = async (input, context) => {
1140
- const headers = {
1141
- "content-type": "application/x-amz-json-1.1",
1142
- "x-amz-target": "Lightsail_20161128.IsVpcPeered",
1143
- };
762
+ const headers = sharedHeaders("IsVpcPeered");
1144
763
  let body;
1145
764
  body = JSON.stringify(se_IsVpcPeeredRequest(input, context));
1146
765
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1147
766
  };
1148
767
  export const se_OpenInstancePublicPortsCommand = async (input, context) => {
1149
- const headers = {
1150
- "content-type": "application/x-amz-json-1.1",
1151
- "x-amz-target": "Lightsail_20161128.OpenInstancePublicPorts",
1152
- };
768
+ const headers = sharedHeaders("OpenInstancePublicPorts");
1153
769
  let body;
1154
770
  body = JSON.stringify(se_OpenInstancePublicPortsRequest(input, context));
1155
771
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1156
772
  };
1157
773
  export const se_PeerVpcCommand = async (input, context) => {
1158
- const headers = {
1159
- "content-type": "application/x-amz-json-1.1",
1160
- "x-amz-target": "Lightsail_20161128.PeerVpc",
1161
- };
774
+ const headers = sharedHeaders("PeerVpc");
1162
775
  let body;
1163
776
  body = JSON.stringify(se_PeerVpcRequest(input, context));
1164
777
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1165
778
  };
1166
779
  export const se_PutAlarmCommand = async (input, context) => {
1167
- const headers = {
1168
- "content-type": "application/x-amz-json-1.1",
1169
- "x-amz-target": "Lightsail_20161128.PutAlarm",
1170
- };
780
+ const headers = sharedHeaders("PutAlarm");
1171
781
  let body;
1172
782
  body = JSON.stringify(se_PutAlarmRequest(input, context));
1173
783
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1174
784
  };
1175
785
  export const se_PutInstancePublicPortsCommand = async (input, context) => {
1176
- const headers = {
1177
- "content-type": "application/x-amz-json-1.1",
1178
- "x-amz-target": "Lightsail_20161128.PutInstancePublicPorts",
1179
- };
786
+ const headers = sharedHeaders("PutInstancePublicPorts");
1180
787
  let body;
1181
788
  body = JSON.stringify(se_PutInstancePublicPortsRequest(input, context));
1182
789
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1183
790
  };
1184
791
  export const se_RebootInstanceCommand = async (input, context) => {
1185
- const headers = {
1186
- "content-type": "application/x-amz-json-1.1",
1187
- "x-amz-target": "Lightsail_20161128.RebootInstance",
1188
- };
792
+ const headers = sharedHeaders("RebootInstance");
1189
793
  let body;
1190
794
  body = JSON.stringify(se_RebootInstanceRequest(input, context));
1191
795
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1192
796
  };
1193
797
  export const se_RebootRelationalDatabaseCommand = async (input, context) => {
1194
- const headers = {
1195
- "content-type": "application/x-amz-json-1.1",
1196
- "x-amz-target": "Lightsail_20161128.RebootRelationalDatabase",
1197
- };
798
+ const headers = sharedHeaders("RebootRelationalDatabase");
1198
799
  let body;
1199
800
  body = JSON.stringify(se_RebootRelationalDatabaseRequest(input, context));
1200
801
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1201
802
  };
1202
803
  export const se_RegisterContainerImageCommand = async (input, context) => {
1203
- const headers = {
1204
- "content-type": "application/x-amz-json-1.1",
1205
- "x-amz-target": "Lightsail_20161128.RegisterContainerImage",
1206
- };
804
+ const headers = sharedHeaders("RegisterContainerImage");
1207
805
  let body;
1208
806
  body = JSON.stringify(se_RegisterContainerImageRequest(input, context));
1209
807
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1210
808
  };
1211
809
  export const se_ReleaseStaticIpCommand = async (input, context) => {
1212
- const headers = {
1213
- "content-type": "application/x-amz-json-1.1",
1214
- "x-amz-target": "Lightsail_20161128.ReleaseStaticIp",
1215
- };
810
+ const headers = sharedHeaders("ReleaseStaticIp");
1216
811
  let body;
1217
812
  body = JSON.stringify(se_ReleaseStaticIpRequest(input, context));
1218
813
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1219
814
  };
1220
815
  export const se_ResetDistributionCacheCommand = async (input, context) => {
1221
- const headers = {
1222
- "content-type": "application/x-amz-json-1.1",
1223
- "x-amz-target": "Lightsail_20161128.ResetDistributionCache",
1224
- };
816
+ const headers = sharedHeaders("ResetDistributionCache");
1225
817
  let body;
1226
818
  body = JSON.stringify(se_ResetDistributionCacheRequest(input, context));
1227
819
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1228
820
  };
1229
821
  export const se_SendContactMethodVerificationCommand = async (input, context) => {
1230
- const headers = {
1231
- "content-type": "application/x-amz-json-1.1",
1232
- "x-amz-target": "Lightsail_20161128.SendContactMethodVerification",
1233
- };
822
+ const headers = sharedHeaders("SendContactMethodVerification");
1234
823
  let body;
1235
824
  body = JSON.stringify(se_SendContactMethodVerificationRequest(input, context));
1236
825
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1237
826
  };
1238
827
  export const se_SetIpAddressTypeCommand = async (input, context) => {
1239
- const headers = {
1240
- "content-type": "application/x-amz-json-1.1",
1241
- "x-amz-target": "Lightsail_20161128.SetIpAddressType",
1242
- };
828
+ const headers = sharedHeaders("SetIpAddressType");
1243
829
  let body;
1244
830
  body = JSON.stringify(se_SetIpAddressTypeRequest(input, context));
1245
831
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1246
832
  };
1247
833
  export const se_SetResourceAccessForBucketCommand = async (input, context) => {
1248
- const headers = {
1249
- "content-type": "application/x-amz-json-1.1",
1250
- "x-amz-target": "Lightsail_20161128.SetResourceAccessForBucket",
1251
- };
834
+ const headers = sharedHeaders("SetResourceAccessForBucket");
1252
835
  let body;
1253
836
  body = JSON.stringify(se_SetResourceAccessForBucketRequest(input, context));
1254
837
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1255
838
  };
1256
839
  export const se_StartGUISessionCommand = async (input, context) => {
1257
- const headers = {
1258
- "content-type": "application/x-amz-json-1.1",
1259
- "x-amz-target": "Lightsail_20161128.StartGUISession",
1260
- };
840
+ const headers = sharedHeaders("StartGUISession");
1261
841
  let body;
1262
842
  body = JSON.stringify(se_StartGUISessionRequest(input, context));
1263
843
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1264
844
  };
1265
845
  export const se_StartInstanceCommand = async (input, context) => {
1266
- const headers = {
1267
- "content-type": "application/x-amz-json-1.1",
1268
- "x-amz-target": "Lightsail_20161128.StartInstance",
1269
- };
846
+ const headers = sharedHeaders("StartInstance");
1270
847
  let body;
1271
848
  body = JSON.stringify(se_StartInstanceRequest(input, context));
1272
849
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1273
850
  };
1274
851
  export const se_StartRelationalDatabaseCommand = async (input, context) => {
1275
- const headers = {
1276
- "content-type": "application/x-amz-json-1.1",
1277
- "x-amz-target": "Lightsail_20161128.StartRelationalDatabase",
1278
- };
852
+ const headers = sharedHeaders("StartRelationalDatabase");
1279
853
  let body;
1280
854
  body = JSON.stringify(se_StartRelationalDatabaseRequest(input, context));
1281
855
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1282
856
  };
1283
857
  export const se_StopGUISessionCommand = async (input, context) => {
1284
- const headers = {
1285
- "content-type": "application/x-amz-json-1.1",
1286
- "x-amz-target": "Lightsail_20161128.StopGUISession",
1287
- };
858
+ const headers = sharedHeaders("StopGUISession");
1288
859
  let body;
1289
860
  body = JSON.stringify(se_StopGUISessionRequest(input, context));
1290
861
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1291
862
  };
1292
863
  export const se_StopInstanceCommand = async (input, context) => {
1293
- const headers = {
1294
- "content-type": "application/x-amz-json-1.1",
1295
- "x-amz-target": "Lightsail_20161128.StopInstance",
1296
- };
864
+ const headers = sharedHeaders("StopInstance");
1297
865
  let body;
1298
866
  body = JSON.stringify(se_StopInstanceRequest(input, context));
1299
867
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1300
868
  };
1301
869
  export const se_StopRelationalDatabaseCommand = async (input, context) => {
1302
- const headers = {
1303
- "content-type": "application/x-amz-json-1.1",
1304
- "x-amz-target": "Lightsail_20161128.StopRelationalDatabase",
1305
- };
870
+ const headers = sharedHeaders("StopRelationalDatabase");
1306
871
  let body;
1307
872
  body = JSON.stringify(se_StopRelationalDatabaseRequest(input, context));
1308
873
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1309
874
  };
1310
875
  export const se_TagResourceCommand = async (input, context) => {
1311
- const headers = {
1312
- "content-type": "application/x-amz-json-1.1",
1313
- "x-amz-target": "Lightsail_20161128.TagResource",
1314
- };
876
+ const headers = sharedHeaders("TagResource");
1315
877
  let body;
1316
878
  body = JSON.stringify(se_TagResourceRequest(input, context));
1317
879
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1318
880
  };
1319
881
  export const se_TestAlarmCommand = async (input, context) => {
1320
- const headers = {
1321
- "content-type": "application/x-amz-json-1.1",
1322
- "x-amz-target": "Lightsail_20161128.TestAlarm",
1323
- };
882
+ const headers = sharedHeaders("TestAlarm");
1324
883
  let body;
1325
884
  body = JSON.stringify(se_TestAlarmRequest(input, context));
1326
885
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1327
886
  };
1328
887
  export const se_UnpeerVpcCommand = async (input, context) => {
1329
- const headers = {
1330
- "content-type": "application/x-amz-json-1.1",
1331
- "x-amz-target": "Lightsail_20161128.UnpeerVpc",
1332
- };
888
+ const headers = sharedHeaders("UnpeerVpc");
1333
889
  let body;
1334
890
  body = JSON.stringify(se_UnpeerVpcRequest(input, context));
1335
891
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1336
892
  };
1337
893
  export const se_UntagResourceCommand = async (input, context) => {
1338
- const headers = {
1339
- "content-type": "application/x-amz-json-1.1",
1340
- "x-amz-target": "Lightsail_20161128.UntagResource",
1341
- };
894
+ const headers = sharedHeaders("UntagResource");
1342
895
  let body;
1343
896
  body = JSON.stringify(se_UntagResourceRequest(input, context));
1344
897
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1345
898
  };
1346
899
  export const se_UpdateBucketCommand = async (input, context) => {
1347
- const headers = {
1348
- "content-type": "application/x-amz-json-1.1",
1349
- "x-amz-target": "Lightsail_20161128.UpdateBucket",
1350
- };
900
+ const headers = sharedHeaders("UpdateBucket");
1351
901
  let body;
1352
902
  body = JSON.stringify(se_UpdateBucketRequest(input, context));
1353
903
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1354
904
  };
1355
905
  export const se_UpdateBucketBundleCommand = async (input, context) => {
1356
- const headers = {
1357
- "content-type": "application/x-amz-json-1.1",
1358
- "x-amz-target": "Lightsail_20161128.UpdateBucketBundle",
1359
- };
906
+ const headers = sharedHeaders("UpdateBucketBundle");
1360
907
  let body;
1361
908
  body = JSON.stringify(se_UpdateBucketBundleRequest(input, context));
1362
909
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1363
910
  };
1364
911
  export const se_UpdateContainerServiceCommand = async (input, context) => {
1365
- const headers = {
1366
- "content-type": "application/x-amz-json-1.1",
1367
- "x-amz-target": "Lightsail_20161128.UpdateContainerService",
1368
- };
912
+ const headers = sharedHeaders("UpdateContainerService");
1369
913
  let body;
1370
914
  body = JSON.stringify(se_UpdateContainerServiceRequest(input, context));
1371
915
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1372
916
  };
1373
917
  export const se_UpdateDistributionCommand = async (input, context) => {
1374
- const headers = {
1375
- "content-type": "application/x-amz-json-1.1",
1376
- "x-amz-target": "Lightsail_20161128.UpdateDistribution",
1377
- };
918
+ const headers = sharedHeaders("UpdateDistribution");
1378
919
  let body;
1379
920
  body = JSON.stringify(se_UpdateDistributionRequest(input, context));
1380
921
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1381
922
  };
1382
923
  export const se_UpdateDistributionBundleCommand = async (input, context) => {
1383
- const headers = {
1384
- "content-type": "application/x-amz-json-1.1",
1385
- "x-amz-target": "Lightsail_20161128.UpdateDistributionBundle",
1386
- };
924
+ const headers = sharedHeaders("UpdateDistributionBundle");
1387
925
  let body;
1388
926
  body = JSON.stringify(se_UpdateDistributionBundleRequest(input, context));
1389
927
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1390
928
  };
1391
929
  export const se_UpdateDomainEntryCommand = async (input, context) => {
1392
- const headers = {
1393
- "content-type": "application/x-amz-json-1.1",
1394
- "x-amz-target": "Lightsail_20161128.UpdateDomainEntry",
1395
- };
930
+ const headers = sharedHeaders("UpdateDomainEntry");
1396
931
  let body;
1397
932
  body = JSON.stringify(se_UpdateDomainEntryRequest(input, context));
1398
933
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1399
934
  };
1400
935
  export const se_UpdateInstanceMetadataOptionsCommand = async (input, context) => {
1401
- const headers = {
1402
- "content-type": "application/x-amz-json-1.1",
1403
- "x-amz-target": "Lightsail_20161128.UpdateInstanceMetadataOptions",
1404
- };
936
+ const headers = sharedHeaders("UpdateInstanceMetadataOptions");
1405
937
  let body;
1406
938
  body = JSON.stringify(se_UpdateInstanceMetadataOptionsRequest(input, context));
1407
939
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1408
940
  };
1409
941
  export const se_UpdateLoadBalancerAttributeCommand = async (input, context) => {
1410
- const headers = {
1411
- "content-type": "application/x-amz-json-1.1",
1412
- "x-amz-target": "Lightsail_20161128.UpdateLoadBalancerAttribute",
1413
- };
942
+ const headers = sharedHeaders("UpdateLoadBalancerAttribute");
1414
943
  let body;
1415
944
  body = JSON.stringify(se_UpdateLoadBalancerAttributeRequest(input, context));
1416
945
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1417
946
  };
1418
947
  export const se_UpdateRelationalDatabaseCommand = async (input, context) => {
1419
- const headers = {
1420
- "content-type": "application/x-amz-json-1.1",
1421
- "x-amz-target": "Lightsail_20161128.UpdateRelationalDatabase",
1422
- };
948
+ const headers = sharedHeaders("UpdateRelationalDatabase");
1423
949
  let body;
1424
950
  body = JSON.stringify(se_UpdateRelationalDatabaseRequest(input, context));
1425
951
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1426
952
  };
1427
953
  export const se_UpdateRelationalDatabaseParametersCommand = async (input, context) => {
1428
- const headers = {
1429
- "content-type": "application/x-amz-json-1.1",
1430
- "x-amz-target": "Lightsail_20161128.UpdateRelationalDatabaseParameters",
1431
- };
954
+ const headers = sharedHeaders("UpdateRelationalDatabaseParameters");
1432
955
  let body;
1433
956
  body = JSON.stringify(se_UpdateRelationalDatabaseParametersRequest(input, context));
1434
957
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -13703,6 +13226,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
13703
13226
  }
13704
13227
  return new __HttpRequest(contents);
13705
13228
  };
13229
+ function sharedHeaders(operation) {
13230
+ return {
13231
+ "content-type": "application/x-amz-json-1.1",
13232
+ "x-amz-target": `Lightsail_20161128.${operation}`,
13233
+ };
13234
+ }
13706
13235
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
13707
13236
  if (encoded.length) {
13708
13237
  return JSON.parse(encoded);