@aws-sdk/client-cloudcontrol 3.927.0 → 3.928.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist-cjs/index.js +593 -747
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/CloudControlClient.js +2 -0
  4. package/dist-es/commands/CancelResourceRequestCommand.js +3 -10
  5. package/dist-es/commands/CreateResourceCommand.js +3 -10
  6. package/dist-es/commands/DeleteResourceCommand.js +3 -10
  7. package/dist-es/commands/GetResourceCommand.js +3 -10
  8. package/dist-es/commands/GetResourceRequestStatusCommand.js +3 -10
  9. package/dist-es/commands/ListResourceRequestsCommand.js +3 -10
  10. package/dist-es/commands/ListResourcesCommand.js +3 -10
  11. package/dist-es/commands/UpdateResourceCommand.js +3 -10
  12. package/dist-es/models/models_0.js +0 -59
  13. package/dist-es/runtimeConfig.shared.js +7 -0
  14. package/dist-es/schemas/schemas_0.js +514 -0
  15. package/dist-types/CloudControlClient.d.ts +10 -1
  16. package/dist-types/models/models_0.d.ts +0 -52
  17. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  18. package/dist-types/runtimeConfig.d.ts +1 -0
  19. package/dist-types/runtimeConfig.native.d.ts +1 -0
  20. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  21. package/dist-types/schemas/schemas_0.d.ts +58 -0
  22. package/dist-types/ts3.4/CloudControlClient.d.ts +4 -0
  23. package/dist-types/ts3.4/models/models_0.d.ts +0 -39
  24. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  26. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  27. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  28. package/dist-types/ts3.4/schemas/schemas_0.d.ts +64 -0
  29. package/package.json +5 -6
  30. package/dist-es/protocols/Aws_json1_0.js +0 -561
  31. package/dist-types/protocols/Aws_json1_0.d.ts +0 -74
  32. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -101
@@ -1,561 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { CloudControlServiceException as __BaseException } from "../models/CloudControlServiceException";
6
- import { AlreadyExistsException, ClientTokenConflictException, ConcurrentModificationException, ConcurrentOperationException, GeneralServiceException, HandlerFailureException, HandlerInternalFailureException, InvalidCredentialsException, InvalidRequestException, NetworkFailureException, NotStabilizedException, NotUpdatableException, PrivateTypeException, RequestTokenNotFoundException, ResourceConflictException, ResourceNotFoundException, ServiceInternalErrorException, ServiceLimitExceededException, ThrottlingException, TypeNotFoundException, UnsupportedActionException, } from "../models/models_0";
7
- export const se_CancelResourceRequestCommand = async (input, context) => {
8
- const headers = sharedHeaders("CancelResourceRequest");
9
- let body;
10
- body = JSON.stringify(_json(input));
11
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
12
- };
13
- export const se_CreateResourceCommand = async (input, context) => {
14
- const headers = sharedHeaders("CreateResource");
15
- let body;
16
- body = JSON.stringify(se_CreateResourceInput(input, context));
17
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
- };
19
- export const se_DeleteResourceCommand = async (input, context) => {
20
- const headers = sharedHeaders("DeleteResource");
21
- let body;
22
- body = JSON.stringify(se_DeleteResourceInput(input, context));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- export const se_GetResourceCommand = async (input, context) => {
26
- const headers = sharedHeaders("GetResource");
27
- let body;
28
- body = JSON.stringify(_json(input));
29
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
- };
31
- export const se_GetResourceRequestStatusCommand = async (input, context) => {
32
- const headers = sharedHeaders("GetResourceRequestStatus");
33
- let body;
34
- body = JSON.stringify(_json(input));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- export const se_ListResourceRequestsCommand = async (input, context) => {
38
- const headers = sharedHeaders("ListResourceRequests");
39
- let body;
40
- body = JSON.stringify(_json(input));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- export const se_ListResourcesCommand = async (input, context) => {
44
- const headers = sharedHeaders("ListResources");
45
- let body;
46
- body = JSON.stringify(_json(input));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- export const se_UpdateResourceCommand = async (input, context) => {
50
- const headers = sharedHeaders("UpdateResource");
51
- let body;
52
- body = JSON.stringify(se_UpdateResourceInput(input, context));
53
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
- };
55
- export const de_CancelResourceRequestCommand = async (output, context) => {
56
- if (output.statusCode >= 300) {
57
- return de_CommandError(output, context);
58
- }
59
- const data = await parseBody(output.body, context);
60
- let contents = {};
61
- contents = de_CancelResourceRequestOutput(data, context);
62
- const response = {
63
- $metadata: deserializeMetadata(output),
64
- ...contents,
65
- };
66
- return response;
67
- };
68
- export const de_CreateResourceCommand = async (output, context) => {
69
- if (output.statusCode >= 300) {
70
- return de_CommandError(output, context);
71
- }
72
- const data = await parseBody(output.body, context);
73
- let contents = {};
74
- contents = de_CreateResourceOutput(data, context);
75
- const response = {
76
- $metadata: deserializeMetadata(output),
77
- ...contents,
78
- };
79
- return response;
80
- };
81
- export const de_DeleteResourceCommand = async (output, context) => {
82
- if (output.statusCode >= 300) {
83
- return de_CommandError(output, context);
84
- }
85
- const data = await parseBody(output.body, context);
86
- let contents = {};
87
- contents = de_DeleteResourceOutput(data, context);
88
- const response = {
89
- $metadata: deserializeMetadata(output),
90
- ...contents,
91
- };
92
- return response;
93
- };
94
- export const de_GetResourceCommand = async (output, context) => {
95
- if (output.statusCode >= 300) {
96
- return de_CommandError(output, context);
97
- }
98
- const data = await parseBody(output.body, context);
99
- let contents = {};
100
- contents = _json(data);
101
- const response = {
102
- $metadata: deserializeMetadata(output),
103
- ...contents,
104
- };
105
- return response;
106
- };
107
- export const de_GetResourceRequestStatusCommand = async (output, context) => {
108
- if (output.statusCode >= 300) {
109
- return de_CommandError(output, context);
110
- }
111
- const data = await parseBody(output.body, context);
112
- let contents = {};
113
- contents = de_GetResourceRequestStatusOutput(data, context);
114
- const response = {
115
- $metadata: deserializeMetadata(output),
116
- ...contents,
117
- };
118
- return response;
119
- };
120
- export const de_ListResourceRequestsCommand = async (output, context) => {
121
- if (output.statusCode >= 300) {
122
- return de_CommandError(output, context);
123
- }
124
- const data = await parseBody(output.body, context);
125
- let contents = {};
126
- contents = de_ListResourceRequestsOutput(data, context);
127
- const response = {
128
- $metadata: deserializeMetadata(output),
129
- ...contents,
130
- };
131
- return response;
132
- };
133
- export const de_ListResourcesCommand = async (output, context) => {
134
- if (output.statusCode >= 300) {
135
- return de_CommandError(output, context);
136
- }
137
- const data = await parseBody(output.body, context);
138
- let contents = {};
139
- contents = _json(data);
140
- const response = {
141
- $metadata: deserializeMetadata(output),
142
- ...contents,
143
- };
144
- return response;
145
- };
146
- export const de_UpdateResourceCommand = async (output, context) => {
147
- if (output.statusCode >= 300) {
148
- return de_CommandError(output, context);
149
- }
150
- const data = await parseBody(output.body, context);
151
- let contents = {};
152
- contents = de_UpdateResourceOutput(data, context);
153
- const response = {
154
- $metadata: deserializeMetadata(output),
155
- ...contents,
156
- };
157
- return response;
158
- };
159
- const de_CommandError = async (output, context) => {
160
- const parsedOutput = {
161
- ...output,
162
- body: await parseErrorBody(output.body, context),
163
- };
164
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
165
- switch (errorCode) {
166
- case "ConcurrentModificationException":
167
- case "com.amazonaws.cloudcontrol#ConcurrentModificationException":
168
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
169
- case "RequestTokenNotFoundException":
170
- case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
171
- throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
172
- case "AlreadyExistsException":
173
- case "com.amazonaws.cloudcontrol#AlreadyExistsException":
174
- throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
175
- case "ClientTokenConflictException":
176
- case "com.amazonaws.cloudcontrol#ClientTokenConflictException":
177
- throw await de_ClientTokenConflictExceptionRes(parsedOutput, context);
178
- case "ConcurrentOperationException":
179
- case "com.amazonaws.cloudcontrol#ConcurrentOperationException":
180
- throw await de_ConcurrentOperationExceptionRes(parsedOutput, context);
181
- case "GeneralServiceException":
182
- case "com.amazonaws.cloudcontrol#GeneralServiceException":
183
- throw await de_GeneralServiceExceptionRes(parsedOutput, context);
184
- case "HandlerFailureException":
185
- case "com.amazonaws.cloudcontrol#HandlerFailureException":
186
- throw await de_HandlerFailureExceptionRes(parsedOutput, context);
187
- case "HandlerInternalFailureException":
188
- case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
189
- throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
190
- case "InvalidCredentialsException":
191
- case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
192
- throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
193
- case "InvalidRequestException":
194
- case "com.amazonaws.cloudcontrol#InvalidRequestException":
195
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
196
- case "NetworkFailureException":
197
- case "com.amazonaws.cloudcontrol#NetworkFailureException":
198
- throw await de_NetworkFailureExceptionRes(parsedOutput, context);
199
- case "NotStabilizedException":
200
- case "com.amazonaws.cloudcontrol#NotStabilizedException":
201
- throw await de_NotStabilizedExceptionRes(parsedOutput, context);
202
- case "NotUpdatableException":
203
- case "com.amazonaws.cloudcontrol#NotUpdatableException":
204
- throw await de_NotUpdatableExceptionRes(parsedOutput, context);
205
- case "PrivateTypeException":
206
- case "com.amazonaws.cloudcontrol#PrivateTypeException":
207
- throw await de_PrivateTypeExceptionRes(parsedOutput, context);
208
- case "ResourceConflictException":
209
- case "com.amazonaws.cloudcontrol#ResourceConflictException":
210
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
211
- case "ResourceNotFoundException":
212
- case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
213
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
214
- case "ServiceInternalErrorException":
215
- case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
216
- throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
217
- case "ServiceLimitExceededException":
218
- case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
219
- throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
220
- case "ThrottlingException":
221
- case "com.amazonaws.cloudcontrol#ThrottlingException":
222
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
223
- case "TypeNotFoundException":
224
- case "com.amazonaws.cloudcontrol#TypeNotFoundException":
225
- throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
226
- case "UnsupportedActionException":
227
- case "com.amazonaws.cloudcontrol#UnsupportedActionException":
228
- throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
229
- default:
230
- const parsedBody = parsedOutput.body;
231
- return throwDefaultError({
232
- output,
233
- parsedBody,
234
- errorCode,
235
- });
236
- }
237
- };
238
- const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
239
- const body = parsedOutput.body;
240
- const deserialized = _json(body);
241
- const exception = new AlreadyExistsException({
242
- $metadata: deserializeMetadata(parsedOutput),
243
- ...deserialized,
244
- });
245
- return __decorateServiceException(exception, body);
246
- };
247
- const de_ClientTokenConflictExceptionRes = async (parsedOutput, context) => {
248
- const body = parsedOutput.body;
249
- const deserialized = _json(body);
250
- const exception = new ClientTokenConflictException({
251
- $metadata: deserializeMetadata(parsedOutput),
252
- ...deserialized,
253
- });
254
- return __decorateServiceException(exception, body);
255
- };
256
- const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
257
- const body = parsedOutput.body;
258
- const deserialized = _json(body);
259
- const exception = new ConcurrentModificationException({
260
- $metadata: deserializeMetadata(parsedOutput),
261
- ...deserialized,
262
- });
263
- return __decorateServiceException(exception, body);
264
- };
265
- const de_ConcurrentOperationExceptionRes = async (parsedOutput, context) => {
266
- const body = parsedOutput.body;
267
- const deserialized = _json(body);
268
- const exception = new ConcurrentOperationException({
269
- $metadata: deserializeMetadata(parsedOutput),
270
- ...deserialized,
271
- });
272
- return __decorateServiceException(exception, body);
273
- };
274
- const de_GeneralServiceExceptionRes = async (parsedOutput, context) => {
275
- const body = parsedOutput.body;
276
- const deserialized = _json(body);
277
- const exception = new GeneralServiceException({
278
- $metadata: deserializeMetadata(parsedOutput),
279
- ...deserialized,
280
- });
281
- return __decorateServiceException(exception, body);
282
- };
283
- const de_HandlerFailureExceptionRes = async (parsedOutput, context) => {
284
- const body = parsedOutput.body;
285
- const deserialized = _json(body);
286
- const exception = new HandlerFailureException({
287
- $metadata: deserializeMetadata(parsedOutput),
288
- ...deserialized,
289
- });
290
- return __decorateServiceException(exception, body);
291
- };
292
- const de_HandlerInternalFailureExceptionRes = async (parsedOutput, context) => {
293
- const body = parsedOutput.body;
294
- const deserialized = _json(body);
295
- const exception = new HandlerInternalFailureException({
296
- $metadata: deserializeMetadata(parsedOutput),
297
- ...deserialized,
298
- });
299
- return __decorateServiceException(exception, body);
300
- };
301
- const de_InvalidCredentialsExceptionRes = async (parsedOutput, context) => {
302
- const body = parsedOutput.body;
303
- const deserialized = _json(body);
304
- const exception = new InvalidCredentialsException({
305
- $metadata: deserializeMetadata(parsedOutput),
306
- ...deserialized,
307
- });
308
- return __decorateServiceException(exception, body);
309
- };
310
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
311
- const body = parsedOutput.body;
312
- const deserialized = _json(body);
313
- const exception = new InvalidRequestException({
314
- $metadata: deserializeMetadata(parsedOutput),
315
- ...deserialized,
316
- });
317
- return __decorateServiceException(exception, body);
318
- };
319
- const de_NetworkFailureExceptionRes = async (parsedOutput, context) => {
320
- const body = parsedOutput.body;
321
- const deserialized = _json(body);
322
- const exception = new NetworkFailureException({
323
- $metadata: deserializeMetadata(parsedOutput),
324
- ...deserialized,
325
- });
326
- return __decorateServiceException(exception, body);
327
- };
328
- const de_NotStabilizedExceptionRes = async (parsedOutput, context) => {
329
- const body = parsedOutput.body;
330
- const deserialized = _json(body);
331
- const exception = new NotStabilizedException({
332
- $metadata: deserializeMetadata(parsedOutput),
333
- ...deserialized,
334
- });
335
- return __decorateServiceException(exception, body);
336
- };
337
- const de_NotUpdatableExceptionRes = async (parsedOutput, context) => {
338
- const body = parsedOutput.body;
339
- const deserialized = _json(body);
340
- const exception = new NotUpdatableException({
341
- $metadata: deserializeMetadata(parsedOutput),
342
- ...deserialized,
343
- });
344
- return __decorateServiceException(exception, body);
345
- };
346
- const de_PrivateTypeExceptionRes = async (parsedOutput, context) => {
347
- const body = parsedOutput.body;
348
- const deserialized = _json(body);
349
- const exception = new PrivateTypeException({
350
- $metadata: deserializeMetadata(parsedOutput),
351
- ...deserialized,
352
- });
353
- return __decorateServiceException(exception, body);
354
- };
355
- const de_RequestTokenNotFoundExceptionRes = async (parsedOutput, context) => {
356
- const body = parsedOutput.body;
357
- const deserialized = _json(body);
358
- const exception = new RequestTokenNotFoundException({
359
- $metadata: deserializeMetadata(parsedOutput),
360
- ...deserialized,
361
- });
362
- return __decorateServiceException(exception, body);
363
- };
364
- const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
365
- const body = parsedOutput.body;
366
- const deserialized = _json(body);
367
- const exception = new ResourceConflictException({
368
- $metadata: deserializeMetadata(parsedOutput),
369
- ...deserialized,
370
- });
371
- return __decorateServiceException(exception, body);
372
- };
373
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
374
- const body = parsedOutput.body;
375
- const deserialized = _json(body);
376
- const exception = new ResourceNotFoundException({
377
- $metadata: deserializeMetadata(parsedOutput),
378
- ...deserialized,
379
- });
380
- return __decorateServiceException(exception, body);
381
- };
382
- const de_ServiceInternalErrorExceptionRes = async (parsedOutput, context) => {
383
- const body = parsedOutput.body;
384
- const deserialized = _json(body);
385
- const exception = new ServiceInternalErrorException({
386
- $metadata: deserializeMetadata(parsedOutput),
387
- ...deserialized,
388
- });
389
- return __decorateServiceException(exception, body);
390
- };
391
- const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
392
- const body = parsedOutput.body;
393
- const deserialized = _json(body);
394
- const exception = new ServiceLimitExceededException({
395
- $metadata: deserializeMetadata(parsedOutput),
396
- ...deserialized,
397
- });
398
- return __decorateServiceException(exception, body);
399
- };
400
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
401
- const body = parsedOutput.body;
402
- const deserialized = _json(body);
403
- const exception = new ThrottlingException({
404
- $metadata: deserializeMetadata(parsedOutput),
405
- ...deserialized,
406
- });
407
- return __decorateServiceException(exception, body);
408
- };
409
- const de_TypeNotFoundExceptionRes = async (parsedOutput, context) => {
410
- const body = parsedOutput.body;
411
- const deserialized = _json(body);
412
- const exception = new TypeNotFoundException({
413
- $metadata: deserializeMetadata(parsedOutput),
414
- ...deserialized,
415
- });
416
- return __decorateServiceException(exception, body);
417
- };
418
- const de_UnsupportedActionExceptionRes = async (parsedOutput, context) => {
419
- const body = parsedOutput.body;
420
- const deserialized = _json(body);
421
- const exception = new UnsupportedActionException({
422
- $metadata: deserializeMetadata(parsedOutput),
423
- ...deserialized,
424
- });
425
- return __decorateServiceException(exception, body);
426
- };
427
- const se_CreateResourceInput = (input, context) => {
428
- return take(input, {
429
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
430
- DesiredState: [],
431
- RoleArn: [],
432
- TypeName: [],
433
- TypeVersionId: [],
434
- });
435
- };
436
- const se_DeleteResourceInput = (input, context) => {
437
- return take(input, {
438
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
439
- Identifier: [],
440
- RoleArn: [],
441
- TypeName: [],
442
- TypeVersionId: [],
443
- });
444
- };
445
- const se_UpdateResourceInput = (input, context) => {
446
- return take(input, {
447
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
448
- Identifier: [],
449
- PatchDocument: [],
450
- RoleArn: [],
451
- TypeName: [],
452
- TypeVersionId: [],
453
- });
454
- };
455
- const de_CancelResourceRequestOutput = (output, context) => {
456
- return take(output, {
457
- ProgressEvent: (_) => de_ProgressEvent(_, context),
458
- });
459
- };
460
- const de_CreateResourceOutput = (output, context) => {
461
- return take(output, {
462
- ProgressEvent: (_) => de_ProgressEvent(_, context),
463
- });
464
- };
465
- const de_DeleteResourceOutput = (output, context) => {
466
- return take(output, {
467
- ProgressEvent: (_) => de_ProgressEvent(_, context),
468
- });
469
- };
470
- const de_GetResourceRequestStatusOutput = (output, context) => {
471
- return take(output, {
472
- HooksProgressEvent: (_) => de_HooksProgressEvent(_, context),
473
- ProgressEvent: (_) => de_ProgressEvent(_, context),
474
- });
475
- };
476
- const de_HookProgressEvent = (output, context) => {
477
- return take(output, {
478
- FailureMode: __expectString,
479
- HookEventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
480
- HookStatus: __expectString,
481
- HookStatusMessage: __expectString,
482
- HookTypeArn: __expectString,
483
- HookTypeName: __expectString,
484
- HookTypeVersionId: __expectString,
485
- InvocationPoint: __expectString,
486
- });
487
- };
488
- const de_HooksProgressEvent = (output, context) => {
489
- const retVal = (output || [])
490
- .filter((e) => e != null)
491
- .map((entry) => {
492
- return de_HookProgressEvent(entry, context);
493
- });
494
- return retVal;
495
- };
496
- const de_ListResourceRequestsOutput = (output, context) => {
497
- return take(output, {
498
- NextToken: __expectString,
499
- ResourceRequestStatusSummaries: (_) => de_ResourceRequestStatusSummaries(_, context),
500
- });
501
- };
502
- const de_ProgressEvent = (output, context) => {
503
- return take(output, {
504
- ErrorCode: __expectString,
505
- EventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
506
- HooksRequestToken: __expectString,
507
- Identifier: __expectString,
508
- Operation: __expectString,
509
- OperationStatus: __expectString,
510
- RequestToken: __expectString,
511
- ResourceModel: __expectString,
512
- RetryAfter: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
513
- StatusMessage: __expectString,
514
- TypeName: __expectString,
515
- });
516
- };
517
- const de_ResourceRequestStatusSummaries = (output, context) => {
518
- const retVal = (output || [])
519
- .filter((e) => e != null)
520
- .map((entry) => {
521
- return de_ProgressEvent(entry, context);
522
- });
523
- return retVal;
524
- };
525
- const de_UpdateResourceOutput = (output, context) => {
526
- return take(output, {
527
- ProgressEvent: (_) => de_ProgressEvent(_, context),
528
- });
529
- };
530
- const deserializeMetadata = (output) => ({
531
- httpStatusCode: output.statusCode,
532
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
533
- extendedRequestId: output.headers["x-amz-id-2"],
534
- cfId: output.headers["x-amz-cf-id"],
535
- });
536
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
537
- const throwDefaultError = withBaseException(__BaseException);
538
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
539
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
540
- const contents = {
541
- protocol,
542
- hostname,
543
- port,
544
- method: "POST",
545
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
546
- headers,
547
- };
548
- if (resolvedHostname !== undefined) {
549
- contents.hostname = resolvedHostname;
550
- }
551
- if (body !== undefined) {
552
- contents.body = body;
553
- }
554
- return new __HttpRequest(contents);
555
- };
556
- function sharedHeaders(operation) {
557
- return {
558
- "content-type": "application/x-amz-json-1.0",
559
- "x-amz-target": `CloudApiService.${operation}`,
560
- };
561
- }
@@ -1,74 +0,0 @@
1
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
3
- import { CancelResourceRequestCommandInput, CancelResourceRequestCommandOutput } from "../commands/CancelResourceRequestCommand";
4
- import { CreateResourceCommandInput, CreateResourceCommandOutput } from "../commands/CreateResourceCommand";
5
- import { DeleteResourceCommandInput, DeleteResourceCommandOutput } from "../commands/DeleteResourceCommand";
6
- import { GetResourceCommandInput, GetResourceCommandOutput } from "../commands/GetResourceCommand";
7
- import { GetResourceRequestStatusCommandInput, GetResourceRequestStatusCommandOutput } from "../commands/GetResourceRequestStatusCommand";
8
- import { ListResourceRequestsCommandInput, ListResourceRequestsCommandOutput } from "../commands/ListResourceRequestsCommand";
9
- import { ListResourcesCommandInput, ListResourcesCommandOutput } from "../commands/ListResourcesCommand";
10
- import { UpdateResourceCommandInput, UpdateResourceCommandOutput } from "../commands/UpdateResourceCommand";
11
- /**
12
- * serializeAws_json1_0CancelResourceRequestCommand
13
- */
14
- export declare const se_CancelResourceRequestCommand: (input: CancelResourceRequestCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
- /**
16
- * serializeAws_json1_0CreateResourceCommand
17
- */
18
- export declare const se_CreateResourceCommand: (input: CreateResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
- /**
20
- * serializeAws_json1_0DeleteResourceCommand
21
- */
22
- export declare const se_DeleteResourceCommand: (input: DeleteResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
- /**
24
- * serializeAws_json1_0GetResourceCommand
25
- */
26
- export declare const se_GetResourceCommand: (input: GetResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
27
- /**
28
- * serializeAws_json1_0GetResourceRequestStatusCommand
29
- */
30
- export declare const se_GetResourceRequestStatusCommand: (input: GetResourceRequestStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
31
- /**
32
- * serializeAws_json1_0ListResourceRequestsCommand
33
- */
34
- export declare const se_ListResourceRequestsCommand: (input: ListResourceRequestsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
35
- /**
36
- * serializeAws_json1_0ListResourcesCommand
37
- */
38
- export declare const se_ListResourcesCommand: (input: ListResourcesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
39
- /**
40
- * serializeAws_json1_0UpdateResourceCommand
41
- */
42
- export declare const se_UpdateResourceCommand: (input: UpdateResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
43
- /**
44
- * deserializeAws_json1_0CancelResourceRequestCommand
45
- */
46
- export declare const de_CancelResourceRequestCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CancelResourceRequestCommandOutput>;
47
- /**
48
- * deserializeAws_json1_0CreateResourceCommand
49
- */
50
- export declare const de_CreateResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateResourceCommandOutput>;
51
- /**
52
- * deserializeAws_json1_0DeleteResourceCommand
53
- */
54
- export declare const de_DeleteResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteResourceCommandOutput>;
55
- /**
56
- * deserializeAws_json1_0GetResourceCommand
57
- */
58
- export declare const de_GetResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetResourceCommandOutput>;
59
- /**
60
- * deserializeAws_json1_0GetResourceRequestStatusCommand
61
- */
62
- export declare const de_GetResourceRequestStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetResourceRequestStatusCommandOutput>;
63
- /**
64
- * deserializeAws_json1_0ListResourceRequestsCommand
65
- */
66
- export declare const de_ListResourceRequestsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListResourceRequestsCommandOutput>;
67
- /**
68
- * deserializeAws_json1_0ListResourcesCommand
69
- */
70
- export declare const de_ListResourcesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListResourcesCommandOutput>;
71
- /**
72
- * deserializeAws_json1_0UpdateResourceCommand
73
- */
74
- export declare const de_UpdateResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateResourceCommandOutput>;