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