@aws-sdk/client-ssm-quicksetup 3.891.0 → 3.894.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 (31) hide show
  1. package/dist-cjs/index.js +1214 -10
  2. package/package.json +19 -19
  3. package/dist-cjs/SSMQuickSetup.js +0 -39
  4. package/dist-cjs/SSMQuickSetupClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/CreateConfigurationManagerCommand.js +0 -27
  7. package/dist-cjs/commands/DeleteConfigurationManagerCommand.js +0 -26
  8. package/dist-cjs/commands/GetConfigurationCommand.js +0 -26
  9. package/dist-cjs/commands/GetConfigurationManagerCommand.js +0 -27
  10. package/dist-cjs/commands/GetServiceSettingsCommand.js +0 -26
  11. package/dist-cjs/commands/ListConfigurationManagersCommand.js +0 -26
  12. package/dist-cjs/commands/ListConfigurationsCommand.js +0 -26
  13. package/dist-cjs/commands/ListQuickSetupTypesCommand.js +0 -26
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -27
  15. package/dist-cjs/commands/TagResourceCommand.js +0 -27
  16. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  17. package/dist-cjs/commands/UpdateConfigurationDefinitionCommand.js +0 -26
  18. package/dist-cjs/commands/UpdateConfigurationManagerCommand.js +0 -26
  19. package/dist-cjs/commands/UpdateServiceSettingsCommand.js +0 -26
  20. package/dist-cjs/commands/index.js +0 -17
  21. package/dist-cjs/endpoint/EndpointParameters.js +0 -17
  22. package/dist-cjs/extensionConfiguration.js +0 -2
  23. package/dist-cjs/models/SSMQuickSetupServiceException.js +0 -12
  24. package/dist-cjs/models/index.js +0 -4
  25. package/dist-cjs/models/models_0.js +0 -137
  26. package/dist-cjs/pagination/Interfaces.js +0 -2
  27. package/dist-cjs/pagination/ListConfigurationManagersPaginator.js +0 -7
  28. package/dist-cjs/pagination/ListConfigurationsPaginator.js +0 -7
  29. package/dist-cjs/pagination/index.js +0 -6
  30. package/dist-cjs/protocols/Aws_restJson1.js +0 -577
  31. package/dist-cjs/runtimeExtensions.js +0 -13
@@ -1,577 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateServiceSettingsCommand = exports.de_UpdateConfigurationManagerCommand = exports.de_UpdateConfigurationDefinitionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQuickSetupTypesCommand = exports.de_ListConfigurationsCommand = exports.de_ListConfigurationManagersCommand = exports.de_GetServiceSettingsCommand = exports.de_GetConfigurationManagerCommand = exports.de_GetConfigurationCommand = exports.de_DeleteConfigurationManagerCommand = exports.de_CreateConfigurationManagerCommand = exports.se_UpdateServiceSettingsCommand = exports.se_UpdateConfigurationManagerCommand = exports.se_UpdateConfigurationDefinitionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQuickSetupTypesCommand = exports.se_ListConfigurationsCommand = exports.se_ListConfigurationManagersCommand = exports.se_GetServiceSettingsCommand = exports.se_GetConfigurationManagerCommand = exports.se_GetConfigurationCommand = exports.se_DeleteConfigurationManagerCommand = exports.se_CreateConfigurationManagerCommand = void 0;
4
- const core_1 = require("@aws-sdk/core");
5
- const core_2 = require("@smithy/core");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const models_0_1 = require("../models/models_0");
8
- const SSMQuickSetupServiceException_1 = require("../models/SSMQuickSetupServiceException");
9
- const se_CreateConfigurationManagerCommand = async (input, context) => {
10
- const b = (0, core_2.requestBuilder)(input, context);
11
- const headers = {
12
- "content-type": "application/json",
13
- };
14
- b.bp("/configurationManager");
15
- let body;
16
- body = JSON.stringify((0, smithy_client_1.take)(input, {
17
- ConfigurationDefinitions: (_) => (0, smithy_client_1._json)(_),
18
- Description: [],
19
- Name: [],
20
- Tags: (_) => (0, smithy_client_1._json)(_),
21
- }));
22
- b.m("POST").h(headers).b(body);
23
- return b.build();
24
- };
25
- exports.se_CreateConfigurationManagerCommand = se_CreateConfigurationManagerCommand;
26
- const se_DeleteConfigurationManagerCommand = async (input, context) => {
27
- const b = (0, core_2.requestBuilder)(input, context);
28
- const headers = {};
29
- b.bp("/configurationManager/{ManagerArn}");
30
- b.p("ManagerArn", () => input.ManagerArn, "{ManagerArn}", false);
31
- let body;
32
- b.m("DELETE").h(headers).b(body);
33
- return b.build();
34
- };
35
- exports.se_DeleteConfigurationManagerCommand = se_DeleteConfigurationManagerCommand;
36
- const se_GetConfigurationCommand = async (input, context) => {
37
- const b = (0, core_2.requestBuilder)(input, context);
38
- const headers = {};
39
- b.bp("/getConfiguration/{ConfigurationId}");
40
- b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
41
- let body;
42
- b.m("GET").h(headers).b(body);
43
- return b.build();
44
- };
45
- exports.se_GetConfigurationCommand = se_GetConfigurationCommand;
46
- const se_GetConfigurationManagerCommand = async (input, context) => {
47
- const b = (0, core_2.requestBuilder)(input, context);
48
- const headers = {};
49
- b.bp("/configurationManager/{ManagerArn}");
50
- b.p("ManagerArn", () => input.ManagerArn, "{ManagerArn}", false);
51
- let body;
52
- b.m("GET").h(headers).b(body);
53
- return b.build();
54
- };
55
- exports.se_GetConfigurationManagerCommand = se_GetConfigurationManagerCommand;
56
- const se_GetServiceSettingsCommand = async (input, context) => {
57
- const b = (0, core_2.requestBuilder)(input, context);
58
- const headers = {};
59
- b.bp("/serviceSettings");
60
- let body;
61
- b.m("GET").h(headers).b(body);
62
- return b.build();
63
- };
64
- exports.se_GetServiceSettingsCommand = se_GetServiceSettingsCommand;
65
- const se_ListConfigurationManagersCommand = async (input, context) => {
66
- const b = (0, core_2.requestBuilder)(input, context);
67
- const headers = {
68
- "content-type": "application/json",
69
- };
70
- b.bp("/listConfigurationManagers");
71
- let body;
72
- body = JSON.stringify((0, smithy_client_1.take)(input, {
73
- Filters: (_) => (0, smithy_client_1._json)(_),
74
- MaxItems: [],
75
- StartingToken: [],
76
- }));
77
- b.m("POST").h(headers).b(body);
78
- return b.build();
79
- };
80
- exports.se_ListConfigurationManagersCommand = se_ListConfigurationManagersCommand;
81
- const se_ListConfigurationsCommand = async (input, context) => {
82
- const b = (0, core_2.requestBuilder)(input, context);
83
- const headers = {
84
- "content-type": "application/json",
85
- };
86
- b.bp("/listConfigurations");
87
- let body;
88
- body = JSON.stringify((0, smithy_client_1.take)(input, {
89
- ConfigurationDefinitionId: [],
90
- Filters: (_) => (0, smithy_client_1._json)(_),
91
- ManagerArn: [],
92
- MaxItems: [],
93
- StartingToken: [],
94
- }));
95
- b.m("POST").h(headers).b(body);
96
- return b.build();
97
- };
98
- exports.se_ListConfigurationsCommand = se_ListConfigurationsCommand;
99
- const se_ListQuickSetupTypesCommand = async (input, context) => {
100
- const b = (0, core_2.requestBuilder)(input, context);
101
- const headers = {};
102
- b.bp("/listQuickSetupTypes");
103
- let body;
104
- b.m("GET").h(headers).b(body);
105
- return b.build();
106
- };
107
- exports.se_ListQuickSetupTypesCommand = se_ListQuickSetupTypesCommand;
108
- const se_ListTagsForResourceCommand = async (input, context) => {
109
- const b = (0, core_2.requestBuilder)(input, context);
110
- const headers = {};
111
- b.bp("/tags/{ResourceArn}");
112
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
113
- let body;
114
- b.m("GET").h(headers).b(body);
115
- return b.build();
116
- };
117
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
118
- const se_TagResourceCommand = async (input, context) => {
119
- const b = (0, core_2.requestBuilder)(input, context);
120
- const headers = {
121
- "content-type": "application/json",
122
- };
123
- b.bp("/tags/{ResourceArn}");
124
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
125
- let body;
126
- body = JSON.stringify((0, smithy_client_1.take)(input, {
127
- Tags: (_) => (0, smithy_client_1._json)(_),
128
- }));
129
- b.m("PUT").h(headers).b(body);
130
- return b.build();
131
- };
132
- exports.se_TagResourceCommand = se_TagResourceCommand;
133
- const se_UntagResourceCommand = async (input, context) => {
134
- const b = (0, core_2.requestBuilder)(input, context);
135
- const headers = {};
136
- b.bp("/tags/{ResourceArn}");
137
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
138
- const query = (0, smithy_client_1.map)({
139
- [_tK]: [(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
140
- });
141
- let body;
142
- b.m("DELETE").h(headers).q(query).b(body);
143
- return b.build();
144
- };
145
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
146
- const se_UpdateConfigurationDefinitionCommand = async (input, context) => {
147
- const b = (0, core_2.requestBuilder)(input, context);
148
- const headers = {
149
- "content-type": "application/json",
150
- };
151
- b.bp("/configurationDefinition/{ManagerArn}/{Id}");
152
- b.p("ManagerArn", () => input.ManagerArn, "{ManagerArn}", false);
153
- b.p("Id", () => input.Id, "{Id}", false);
154
- let body;
155
- body = JSON.stringify((0, smithy_client_1.take)(input, {
156
- LocalDeploymentAdministrationRoleArn: [],
157
- LocalDeploymentExecutionRoleName: [],
158
- Parameters: (_) => (0, smithy_client_1._json)(_),
159
- TypeVersion: [],
160
- }));
161
- b.m("PUT").h(headers).b(body);
162
- return b.build();
163
- };
164
- exports.se_UpdateConfigurationDefinitionCommand = se_UpdateConfigurationDefinitionCommand;
165
- const se_UpdateConfigurationManagerCommand = async (input, context) => {
166
- const b = (0, core_2.requestBuilder)(input, context);
167
- const headers = {
168
- "content-type": "application/json",
169
- };
170
- b.bp("/configurationManager/{ManagerArn}");
171
- b.p("ManagerArn", () => input.ManagerArn, "{ManagerArn}", false);
172
- let body;
173
- body = JSON.stringify((0, smithy_client_1.take)(input, {
174
- Description: [],
175
- Name: [],
176
- }));
177
- b.m("PUT").h(headers).b(body);
178
- return b.build();
179
- };
180
- exports.se_UpdateConfigurationManagerCommand = se_UpdateConfigurationManagerCommand;
181
- const se_UpdateServiceSettingsCommand = async (input, context) => {
182
- const b = (0, core_2.requestBuilder)(input, context);
183
- const headers = {
184
- "content-type": "application/json",
185
- };
186
- b.bp("/serviceSettings");
187
- let body;
188
- body = JSON.stringify((0, smithy_client_1.take)(input, {
189
- ExplorerEnablingRoleArn: [],
190
- }));
191
- b.m("PUT").h(headers).b(body);
192
- return b.build();
193
- };
194
- exports.se_UpdateServiceSettingsCommand = se_UpdateServiceSettingsCommand;
195
- const de_CreateConfigurationManagerCommand = async (output, context) => {
196
- if (output.statusCode !== 200 && output.statusCode >= 300) {
197
- return de_CommandError(output, context);
198
- }
199
- const contents = (0, smithy_client_1.map)({
200
- $metadata: deserializeMetadata(output),
201
- });
202
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
203
- const doc = (0, smithy_client_1.take)(data, {
204
- ManagerArn: smithy_client_1.expectString,
205
- });
206
- Object.assign(contents, doc);
207
- return contents;
208
- };
209
- exports.de_CreateConfigurationManagerCommand = de_CreateConfigurationManagerCommand;
210
- const de_DeleteConfigurationManagerCommand = async (output, context) => {
211
- if (output.statusCode !== 200 && output.statusCode >= 300) {
212
- return de_CommandError(output, context);
213
- }
214
- const contents = (0, smithy_client_1.map)({
215
- $metadata: deserializeMetadata(output),
216
- });
217
- await (0, smithy_client_1.collectBody)(output.body, context);
218
- return contents;
219
- };
220
- exports.de_DeleteConfigurationManagerCommand = de_DeleteConfigurationManagerCommand;
221
- const de_GetConfigurationCommand = async (output, context) => {
222
- if (output.statusCode !== 200 && output.statusCode >= 300) {
223
- return de_CommandError(output, context);
224
- }
225
- const contents = (0, smithy_client_1.map)({
226
- $metadata: deserializeMetadata(output),
227
- });
228
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
229
- const doc = (0, smithy_client_1.take)(data, {
230
- Account: smithy_client_1.expectString,
231
- ConfigurationDefinitionId: smithy_client_1.expectString,
232
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
233
- Id: smithy_client_1.expectString,
234
- LastModifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
235
- ManagerArn: smithy_client_1.expectString,
236
- Parameters: smithy_client_1._json,
237
- Region: smithy_client_1.expectString,
238
- StatusSummaries: (_) => de_StatusSummariesList(_, context),
239
- Type: smithy_client_1.expectString,
240
- TypeVersion: smithy_client_1.expectString,
241
- });
242
- Object.assign(contents, doc);
243
- return contents;
244
- };
245
- exports.de_GetConfigurationCommand = de_GetConfigurationCommand;
246
- const de_GetConfigurationManagerCommand = async (output, context) => {
247
- if (output.statusCode !== 200 && output.statusCode >= 300) {
248
- return de_CommandError(output, context);
249
- }
250
- const contents = (0, smithy_client_1.map)({
251
- $metadata: deserializeMetadata(output),
252
- });
253
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
254
- const doc = (0, smithy_client_1.take)(data, {
255
- ConfigurationDefinitions: smithy_client_1._json,
256
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
257
- Description: smithy_client_1.expectString,
258
- LastModifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
259
- ManagerArn: smithy_client_1.expectString,
260
- Name: smithy_client_1.expectString,
261
- StatusSummaries: (_) => de_StatusSummariesList(_, context),
262
- Tags: smithy_client_1._json,
263
- });
264
- Object.assign(contents, doc);
265
- return contents;
266
- };
267
- exports.de_GetConfigurationManagerCommand = de_GetConfigurationManagerCommand;
268
- const de_GetServiceSettingsCommand = async (output, context) => {
269
- if (output.statusCode !== 200 && output.statusCode >= 300) {
270
- return de_CommandError(output, context);
271
- }
272
- const contents = (0, smithy_client_1.map)({
273
- $metadata: deserializeMetadata(output),
274
- });
275
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
276
- const doc = (0, smithy_client_1.take)(data, {
277
- ServiceSettings: smithy_client_1._json,
278
- });
279
- Object.assign(contents, doc);
280
- return contents;
281
- };
282
- exports.de_GetServiceSettingsCommand = de_GetServiceSettingsCommand;
283
- const de_ListConfigurationManagersCommand = async (output, context) => {
284
- if (output.statusCode !== 200 && output.statusCode >= 300) {
285
- return de_CommandError(output, context);
286
- }
287
- const contents = (0, smithy_client_1.map)({
288
- $metadata: deserializeMetadata(output),
289
- });
290
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
291
- const doc = (0, smithy_client_1.take)(data, {
292
- ConfigurationManagersList: (_) => de_ConfigurationManagerList(_, context),
293
- NextToken: smithy_client_1.expectString,
294
- });
295
- Object.assign(contents, doc);
296
- return contents;
297
- };
298
- exports.de_ListConfigurationManagersCommand = de_ListConfigurationManagersCommand;
299
- const de_ListConfigurationsCommand = async (output, context) => {
300
- if (output.statusCode !== 200 && output.statusCode >= 300) {
301
- return de_CommandError(output, context);
302
- }
303
- const contents = (0, smithy_client_1.map)({
304
- $metadata: deserializeMetadata(output),
305
- });
306
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
307
- const doc = (0, smithy_client_1.take)(data, {
308
- ConfigurationsList: (_) => de_ConfigurationsList(_, context),
309
- NextToken: smithy_client_1.expectString,
310
- });
311
- Object.assign(contents, doc);
312
- return contents;
313
- };
314
- exports.de_ListConfigurationsCommand = de_ListConfigurationsCommand;
315
- const de_ListQuickSetupTypesCommand = async (output, context) => {
316
- if (output.statusCode !== 200 && output.statusCode >= 300) {
317
- return de_CommandError(output, context);
318
- }
319
- const contents = (0, smithy_client_1.map)({
320
- $metadata: deserializeMetadata(output),
321
- });
322
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
323
- const doc = (0, smithy_client_1.take)(data, {
324
- QuickSetupTypeList: smithy_client_1._json,
325
- });
326
- Object.assign(contents, doc);
327
- return contents;
328
- };
329
- exports.de_ListQuickSetupTypesCommand = de_ListQuickSetupTypesCommand;
330
- const de_ListTagsForResourceCommand = async (output, context) => {
331
- if (output.statusCode !== 200 && output.statusCode >= 300) {
332
- return de_CommandError(output, context);
333
- }
334
- const contents = (0, smithy_client_1.map)({
335
- $metadata: deserializeMetadata(output),
336
- });
337
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
338
- const doc = (0, smithy_client_1.take)(data, {
339
- Tags: smithy_client_1._json,
340
- });
341
- Object.assign(contents, doc);
342
- return contents;
343
- };
344
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
345
- const de_TagResourceCommand = async (output, context) => {
346
- if (output.statusCode !== 200 && output.statusCode >= 300) {
347
- return de_CommandError(output, context);
348
- }
349
- const contents = (0, smithy_client_1.map)({
350
- $metadata: deserializeMetadata(output),
351
- });
352
- await (0, smithy_client_1.collectBody)(output.body, context);
353
- return contents;
354
- };
355
- exports.de_TagResourceCommand = de_TagResourceCommand;
356
- const de_UntagResourceCommand = async (output, context) => {
357
- if (output.statusCode !== 200 && output.statusCode >= 300) {
358
- return de_CommandError(output, context);
359
- }
360
- const contents = (0, smithy_client_1.map)({
361
- $metadata: deserializeMetadata(output),
362
- });
363
- await (0, smithy_client_1.collectBody)(output.body, context);
364
- return contents;
365
- };
366
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
367
- const de_UpdateConfigurationDefinitionCommand = async (output, context) => {
368
- if (output.statusCode !== 200 && output.statusCode >= 300) {
369
- return de_CommandError(output, context);
370
- }
371
- const contents = (0, smithy_client_1.map)({
372
- $metadata: deserializeMetadata(output),
373
- });
374
- await (0, smithy_client_1.collectBody)(output.body, context);
375
- return contents;
376
- };
377
- exports.de_UpdateConfigurationDefinitionCommand = de_UpdateConfigurationDefinitionCommand;
378
- const de_UpdateConfigurationManagerCommand = async (output, context) => {
379
- if (output.statusCode !== 200 && output.statusCode >= 300) {
380
- return de_CommandError(output, context);
381
- }
382
- const contents = (0, smithy_client_1.map)({
383
- $metadata: deserializeMetadata(output),
384
- });
385
- await (0, smithy_client_1.collectBody)(output.body, context);
386
- return contents;
387
- };
388
- exports.de_UpdateConfigurationManagerCommand = de_UpdateConfigurationManagerCommand;
389
- const de_UpdateServiceSettingsCommand = async (output, context) => {
390
- if (output.statusCode !== 200 && output.statusCode >= 300) {
391
- return de_CommandError(output, context);
392
- }
393
- const contents = (0, smithy_client_1.map)({
394
- $metadata: deserializeMetadata(output),
395
- });
396
- await (0, smithy_client_1.collectBody)(output.body, context);
397
- return contents;
398
- };
399
- exports.de_UpdateServiceSettingsCommand = de_UpdateServiceSettingsCommand;
400
- const de_CommandError = async (output, context) => {
401
- const parsedOutput = {
402
- ...output,
403
- body: await (0, core_1.parseJsonErrorBody)(output.body, context),
404
- };
405
- const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
406
- switch (errorCode) {
407
- case "AccessDeniedException":
408
- case "com.amazonaws.ssmquicksetup#AccessDeniedException":
409
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
410
- case "ConflictException":
411
- case "com.amazonaws.ssmquicksetup#ConflictException":
412
- throw await de_ConflictExceptionRes(parsedOutput, context);
413
- case "InternalServerException":
414
- case "com.amazonaws.ssmquicksetup#InternalServerException":
415
- throw await de_InternalServerExceptionRes(parsedOutput, context);
416
- case "ThrottlingException":
417
- case "com.amazonaws.ssmquicksetup#ThrottlingException":
418
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
419
- case "ValidationException":
420
- case "com.amazonaws.ssmquicksetup#ValidationException":
421
- throw await de_ValidationExceptionRes(parsedOutput, context);
422
- case "ResourceNotFoundException":
423
- case "com.amazonaws.ssmquicksetup#ResourceNotFoundException":
424
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
425
- default:
426
- const parsedBody = parsedOutput.body;
427
- return throwDefaultError({
428
- output,
429
- parsedBody,
430
- errorCode,
431
- });
432
- }
433
- };
434
- const throwDefaultError = (0, smithy_client_1.withBaseException)(SSMQuickSetupServiceException_1.SSMQuickSetupServiceException);
435
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
436
- const contents = (0, smithy_client_1.map)({});
437
- const data = parsedOutput.body;
438
- const doc = (0, smithy_client_1.take)(data, {
439
- Message: smithy_client_1.expectString,
440
- });
441
- Object.assign(contents, doc);
442
- const exception = new models_0_1.AccessDeniedException({
443
- $metadata: deserializeMetadata(parsedOutput),
444
- ...contents,
445
- });
446
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
447
- };
448
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
449
- const contents = (0, smithy_client_1.map)({});
450
- const data = parsedOutput.body;
451
- const doc = (0, smithy_client_1.take)(data, {
452
- Message: smithy_client_1.expectString,
453
- });
454
- Object.assign(contents, doc);
455
- const exception = new models_0_1.ConflictException({
456
- $metadata: deserializeMetadata(parsedOutput),
457
- ...contents,
458
- });
459
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
460
- };
461
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
462
- const contents = (0, smithy_client_1.map)({});
463
- const data = parsedOutput.body;
464
- const doc = (0, smithy_client_1.take)(data, {
465
- Message: smithy_client_1.expectString,
466
- });
467
- Object.assign(contents, doc);
468
- const exception = new models_0_1.InternalServerException({
469
- $metadata: deserializeMetadata(parsedOutput),
470
- ...contents,
471
- });
472
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
473
- };
474
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
475
- const contents = (0, smithy_client_1.map)({});
476
- const data = parsedOutput.body;
477
- const doc = (0, smithy_client_1.take)(data, {
478
- Message: smithy_client_1.expectString,
479
- });
480
- Object.assign(contents, doc);
481
- const exception = new models_0_1.ResourceNotFoundException({
482
- $metadata: deserializeMetadata(parsedOutput),
483
- ...contents,
484
- });
485
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
486
- };
487
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
488
- const contents = (0, smithy_client_1.map)({});
489
- const data = parsedOutput.body;
490
- const doc = (0, smithy_client_1.take)(data, {
491
- Message: smithy_client_1.expectString,
492
- });
493
- Object.assign(contents, doc);
494
- const exception = new models_0_1.ThrottlingException({
495
- $metadata: deserializeMetadata(parsedOutput),
496
- ...contents,
497
- });
498
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
499
- };
500
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
501
- const contents = (0, smithy_client_1.map)({});
502
- const data = parsedOutput.body;
503
- const doc = (0, smithy_client_1.take)(data, {
504
- Message: smithy_client_1.expectString,
505
- });
506
- Object.assign(contents, doc);
507
- const exception = new models_0_1.ValidationException({
508
- $metadata: deserializeMetadata(parsedOutput),
509
- ...contents,
510
- });
511
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
512
- };
513
- const de_ConfigurationManagerList = (output, context) => {
514
- const retVal = (output || [])
515
- .filter((e) => e != null)
516
- .map((entry) => {
517
- return de_ConfigurationManagerSummary(entry, context);
518
- });
519
- return retVal;
520
- };
521
- const de_ConfigurationManagerSummary = (output, context) => {
522
- return (0, smithy_client_1.take)(output, {
523
- ConfigurationDefinitionSummaries: smithy_client_1._json,
524
- Description: smithy_client_1.expectString,
525
- ManagerArn: smithy_client_1.expectString,
526
- Name: smithy_client_1.expectString,
527
- StatusSummaries: (_) => de_StatusSummariesList(_, context),
528
- });
529
- };
530
- const de_ConfigurationsList = (output, context) => {
531
- const retVal = (output || [])
532
- .filter((e) => e != null)
533
- .map((entry) => {
534
- return de_ConfigurationSummary(entry, context);
535
- });
536
- return retVal;
537
- };
538
- const de_ConfigurationSummary = (output, context) => {
539
- return (0, smithy_client_1.take)(output, {
540
- Account: smithy_client_1.expectString,
541
- ConfigurationDefinitionId: smithy_client_1.expectString,
542
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
543
- FirstClassParameters: smithy_client_1._json,
544
- Id: smithy_client_1.expectString,
545
- ManagerArn: smithy_client_1.expectString,
546
- Region: smithy_client_1.expectString,
547
- StatusSummaries: (_) => de_StatusSummariesList(_, context),
548
- Type: smithy_client_1.expectString,
549
- TypeVersion: smithy_client_1.expectString,
550
- });
551
- };
552
- const de_StatusSummariesList = (output, context) => {
553
- const retVal = (output || [])
554
- .filter((e) => e != null)
555
- .map((entry) => {
556
- return de_StatusSummary(entry, context);
557
- });
558
- return retVal;
559
- };
560
- const de_StatusSummary = (output, context) => {
561
- return (0, smithy_client_1.take)(output, {
562
- LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
563
- Status: smithy_client_1.expectString,
564
- StatusDetails: smithy_client_1._json,
565
- StatusMessage: smithy_client_1.expectString,
566
- StatusType: smithy_client_1.expectString,
567
- });
568
- };
569
- const deserializeMetadata = (output) => ({
570
- httpStatusCode: output.statusCode,
571
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
572
- extendedRequestId: output.headers["x-amz-id-2"],
573
- cfId: output.headers["x-amz-cf-id"],
574
- });
575
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
576
- const _TK = "TagKeys";
577
- const _tK = "tagKeys";
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveRuntimeExtensions = void 0;
4
- const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
- const protocol_http_1 = require("@smithy/protocol-http");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
8
- const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
9
- const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
10
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
11
- return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
12
- };
13
- exports.resolveRuntimeExtensions = resolveRuntimeExtensions;