@aws-sdk/client-service-catalog-appregistry 3.490.0 → 3.495.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/ServiceCatalogAppRegistry.js +1 -59
- package/dist-cjs/ServiceCatalogAppRegistryClient.js +1 -43
- package/dist-cjs/commands/AssociateAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/AssociateResourceCommand.js +1 -28
- package/dist-cjs/commands/CreateApplicationCommand.js +1 -28
- package/dist-cjs/commands/CreateAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
- package/dist-cjs/commands/DeleteAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/DisassociateAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/DisassociateResourceCommand.js +1 -28
- package/dist-cjs/commands/GetApplicationCommand.js +1 -28
- package/dist-cjs/commands/GetAssociatedResourceCommand.js +1 -28
- package/dist-cjs/commands/GetAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/GetConfigurationCommand.js +1 -28
- package/dist-cjs/commands/ListApplicationsCommand.js +1 -28
- package/dist-cjs/commands/ListAssociatedAttributeGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListAssociatedResourcesCommand.js +1 -28
- package/dist-cjs/commands/ListAttributeGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListAttributeGroupsForApplicationCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutConfigurationCommand.js +1 -28
- package/dist-cjs/commands/SyncResourceCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateApplicationCommand.js +1 -28
- package/dist-cjs/commands/UpdateAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -27
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2326 -11
- package/dist-cjs/models/ServiceCatalogAppRegistryServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -114
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAssociatedAttributeGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAssociatedResourcesPaginator.js +1 -7
- package/dist-cjs/pagination/ListAttributeGroupsForApplicationPaginator.js +1 -7
- package/dist-cjs/pagination/ListAttributeGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -9
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1549
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1549 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateAttributeGroupCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SyncResourceCommand = exports.de_PutConfigurationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListAttributeGroupsForApplicationCommand = exports.de_ListAttributeGroupsCommand = exports.de_ListAssociatedResourcesCommand = exports.de_ListAssociatedAttributeGroupsCommand = exports.de_ListApplicationsCommand = exports.de_GetConfigurationCommand = exports.de_GetAttributeGroupCommand = exports.de_GetAssociatedResourceCommand = exports.de_GetApplicationCommand = exports.de_DisassociateResourceCommand = exports.de_DisassociateAttributeGroupCommand = exports.de_DeleteAttributeGroupCommand = exports.de_DeleteApplicationCommand = exports.de_CreateAttributeGroupCommand = exports.de_CreateApplicationCommand = exports.de_AssociateResourceCommand = exports.de_AssociateAttributeGroupCommand = exports.se_UpdateAttributeGroupCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SyncResourceCommand = exports.se_PutConfigurationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListAttributeGroupsForApplicationCommand = exports.se_ListAttributeGroupsCommand = exports.se_ListAssociatedResourcesCommand = exports.se_ListAssociatedAttributeGroupsCommand = exports.se_ListApplicationsCommand = exports.se_GetConfigurationCommand = exports.se_GetAttributeGroupCommand = exports.se_GetAssociatedResourceCommand = exports.se_GetApplicationCommand = exports.se_DisassociateResourceCommand = exports.se_DisassociateAttributeGroupCommand = exports.se_DeleteAttributeGroupCommand = exports.se_DeleteApplicationCommand = exports.se_CreateAttributeGroupCommand = exports.se_CreateApplicationCommand = exports.se_AssociateResourceCommand = exports.se_AssociateAttributeGroupCommand = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const uuid_1 = require("uuid");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const ServiceCatalogAppRegistryServiceException_1 = require("../models/ServiceCatalogAppRegistryServiceException");
|
|
9
|
-
const se_AssociateAttributeGroupCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {};
|
|
12
|
-
b.bp("/applications/{application}/attribute-groups/{attributeGroup}");
|
|
13
|
-
b.p("application", () => input.application, "{application}", false);
|
|
14
|
-
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
15
|
-
let body;
|
|
16
|
-
b.m("PUT").h(headers).b(body);
|
|
17
|
-
return b.build();
|
|
18
|
-
};
|
|
19
|
-
exports.se_AssociateAttributeGroupCommand = se_AssociateAttributeGroupCommand;
|
|
20
|
-
const se_AssociateResourceCommand = async (input, context) => {
|
|
21
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
22
|
-
const headers = {
|
|
23
|
-
"content-type": "application/json",
|
|
24
|
-
};
|
|
25
|
-
b.bp("/applications/{application}/resources/{resourceType}/{resource}");
|
|
26
|
-
b.p("application", () => input.application, "{application}", false);
|
|
27
|
-
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
28
|
-
b.p("resource", () => input.resource, "{resource}", false);
|
|
29
|
-
let body;
|
|
30
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
31
|
-
options: (_) => (0, smithy_client_1._json)(_),
|
|
32
|
-
}));
|
|
33
|
-
b.m("PUT").h(headers).b(body);
|
|
34
|
-
return b.build();
|
|
35
|
-
};
|
|
36
|
-
exports.se_AssociateResourceCommand = se_AssociateResourceCommand;
|
|
37
|
-
const se_CreateApplicationCommand = async (input, context) => {
|
|
38
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
39
|
-
const headers = {
|
|
40
|
-
"content-type": "application/json",
|
|
41
|
-
};
|
|
42
|
-
b.bp("/applications");
|
|
43
|
-
let body;
|
|
44
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
45
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
46
|
-
description: [],
|
|
47
|
-
name: [],
|
|
48
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
49
|
-
}));
|
|
50
|
-
b.m("POST").h(headers).b(body);
|
|
51
|
-
return b.build();
|
|
52
|
-
};
|
|
53
|
-
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
54
|
-
const se_CreateAttributeGroupCommand = async (input, context) => {
|
|
55
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
56
|
-
const headers = {
|
|
57
|
-
"content-type": "application/json",
|
|
58
|
-
};
|
|
59
|
-
b.bp("/attribute-groups");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
62
|
-
attributes: [],
|
|
63
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
64
|
-
description: [],
|
|
65
|
-
name: [],
|
|
66
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
67
|
-
}));
|
|
68
|
-
b.m("POST").h(headers).b(body);
|
|
69
|
-
return b.build();
|
|
70
|
-
};
|
|
71
|
-
exports.se_CreateAttributeGroupCommand = se_CreateAttributeGroupCommand;
|
|
72
|
-
const se_DeleteApplicationCommand = async (input, context) => {
|
|
73
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
74
|
-
const headers = {};
|
|
75
|
-
b.bp("/applications/{application}");
|
|
76
|
-
b.p("application", () => input.application, "{application}", false);
|
|
77
|
-
let body;
|
|
78
|
-
b.m("DELETE").h(headers).b(body);
|
|
79
|
-
return b.build();
|
|
80
|
-
};
|
|
81
|
-
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
82
|
-
const se_DeleteAttributeGroupCommand = async (input, context) => {
|
|
83
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
84
|
-
const headers = {};
|
|
85
|
-
b.bp("/attribute-groups/{attributeGroup}");
|
|
86
|
-
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
87
|
-
let body;
|
|
88
|
-
b.m("DELETE").h(headers).b(body);
|
|
89
|
-
return b.build();
|
|
90
|
-
};
|
|
91
|
-
exports.se_DeleteAttributeGroupCommand = se_DeleteAttributeGroupCommand;
|
|
92
|
-
const se_DisassociateAttributeGroupCommand = async (input, context) => {
|
|
93
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
94
|
-
const headers = {};
|
|
95
|
-
b.bp("/applications/{application}/attribute-groups/{attributeGroup}");
|
|
96
|
-
b.p("application", () => input.application, "{application}", false);
|
|
97
|
-
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
98
|
-
let body;
|
|
99
|
-
b.m("DELETE").h(headers).b(body);
|
|
100
|
-
return b.build();
|
|
101
|
-
};
|
|
102
|
-
exports.se_DisassociateAttributeGroupCommand = se_DisassociateAttributeGroupCommand;
|
|
103
|
-
const se_DisassociateResourceCommand = async (input, context) => {
|
|
104
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
105
|
-
const headers = {};
|
|
106
|
-
b.bp("/applications/{application}/resources/{resourceType}/{resource}");
|
|
107
|
-
b.p("application", () => input.application, "{application}", false);
|
|
108
|
-
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
109
|
-
b.p("resource", () => input.resource, "{resource}", false);
|
|
110
|
-
let body;
|
|
111
|
-
b.m("DELETE").h(headers).b(body);
|
|
112
|
-
return b.build();
|
|
113
|
-
};
|
|
114
|
-
exports.se_DisassociateResourceCommand = se_DisassociateResourceCommand;
|
|
115
|
-
const se_GetApplicationCommand = async (input, context) => {
|
|
116
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
117
|
-
const headers = {};
|
|
118
|
-
b.bp("/applications/{application}");
|
|
119
|
-
b.p("application", () => input.application, "{application}", false);
|
|
120
|
-
let body;
|
|
121
|
-
b.m("GET").h(headers).b(body);
|
|
122
|
-
return b.build();
|
|
123
|
-
};
|
|
124
|
-
exports.se_GetApplicationCommand = se_GetApplicationCommand;
|
|
125
|
-
const se_GetAssociatedResourceCommand = async (input, context) => {
|
|
126
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
127
|
-
const headers = {};
|
|
128
|
-
b.bp("/applications/{application}/resources/{resourceType}/{resource}");
|
|
129
|
-
b.p("application", () => input.application, "{application}", false);
|
|
130
|
-
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
131
|
-
b.p("resource", () => input.resource, "{resource}", false);
|
|
132
|
-
const query = (0, smithy_client_1.map)({
|
|
133
|
-
[_nT]: [, input[_nT]],
|
|
134
|
-
[_rTS]: [() => input.resourceTagStatus !== void 0, () => (input[_rTS] || []).map((_entry) => _entry)],
|
|
135
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
136
|
-
});
|
|
137
|
-
let body;
|
|
138
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
139
|
-
return b.build();
|
|
140
|
-
};
|
|
141
|
-
exports.se_GetAssociatedResourceCommand = se_GetAssociatedResourceCommand;
|
|
142
|
-
const se_GetAttributeGroupCommand = async (input, context) => {
|
|
143
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
144
|
-
const headers = {};
|
|
145
|
-
b.bp("/attribute-groups/{attributeGroup}");
|
|
146
|
-
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
147
|
-
let body;
|
|
148
|
-
b.m("GET").h(headers).b(body);
|
|
149
|
-
return b.build();
|
|
150
|
-
};
|
|
151
|
-
exports.se_GetAttributeGroupCommand = se_GetAttributeGroupCommand;
|
|
152
|
-
const se_GetConfigurationCommand = async (input, context) => {
|
|
153
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
154
|
-
const headers = {
|
|
155
|
-
"content-type": "application/json",
|
|
156
|
-
};
|
|
157
|
-
b.bp("/configuration");
|
|
158
|
-
let body;
|
|
159
|
-
body = "";
|
|
160
|
-
b.m("GET").h(headers).b(body);
|
|
161
|
-
return b.build();
|
|
162
|
-
};
|
|
163
|
-
exports.se_GetConfigurationCommand = se_GetConfigurationCommand;
|
|
164
|
-
const se_ListApplicationsCommand = async (input, context) => {
|
|
165
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
166
|
-
const headers = {};
|
|
167
|
-
b.bp("/applications");
|
|
168
|
-
const query = (0, smithy_client_1.map)({
|
|
169
|
-
[_nT]: [, input[_nT]],
|
|
170
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
171
|
-
});
|
|
172
|
-
let body;
|
|
173
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
174
|
-
return b.build();
|
|
175
|
-
};
|
|
176
|
-
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
177
|
-
const se_ListAssociatedAttributeGroupsCommand = async (input, context) => {
|
|
178
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
179
|
-
const headers = {};
|
|
180
|
-
b.bp("/applications/{application}/attribute-groups");
|
|
181
|
-
b.p("application", () => input.application, "{application}", false);
|
|
182
|
-
const query = (0, smithy_client_1.map)({
|
|
183
|
-
[_nT]: [, input[_nT]],
|
|
184
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
185
|
-
});
|
|
186
|
-
let body;
|
|
187
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
188
|
-
return b.build();
|
|
189
|
-
};
|
|
190
|
-
exports.se_ListAssociatedAttributeGroupsCommand = se_ListAssociatedAttributeGroupsCommand;
|
|
191
|
-
const se_ListAssociatedResourcesCommand = async (input, context) => {
|
|
192
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
193
|
-
const headers = {};
|
|
194
|
-
b.bp("/applications/{application}/resources");
|
|
195
|
-
b.p("application", () => input.application, "{application}", false);
|
|
196
|
-
const query = (0, smithy_client_1.map)({
|
|
197
|
-
[_nT]: [, input[_nT]],
|
|
198
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
199
|
-
});
|
|
200
|
-
let body;
|
|
201
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
202
|
-
return b.build();
|
|
203
|
-
};
|
|
204
|
-
exports.se_ListAssociatedResourcesCommand = se_ListAssociatedResourcesCommand;
|
|
205
|
-
const se_ListAttributeGroupsCommand = async (input, context) => {
|
|
206
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
207
|
-
const headers = {};
|
|
208
|
-
b.bp("/attribute-groups");
|
|
209
|
-
const query = (0, smithy_client_1.map)({
|
|
210
|
-
[_nT]: [, input[_nT]],
|
|
211
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
212
|
-
});
|
|
213
|
-
let body;
|
|
214
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
215
|
-
return b.build();
|
|
216
|
-
};
|
|
217
|
-
exports.se_ListAttributeGroupsCommand = se_ListAttributeGroupsCommand;
|
|
218
|
-
const se_ListAttributeGroupsForApplicationCommand = async (input, context) => {
|
|
219
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
220
|
-
const headers = {};
|
|
221
|
-
b.bp("/applications/{application}/attribute-group-details");
|
|
222
|
-
b.p("application", () => input.application, "{application}", false);
|
|
223
|
-
const query = (0, smithy_client_1.map)({
|
|
224
|
-
[_nT]: [, input[_nT]],
|
|
225
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
226
|
-
});
|
|
227
|
-
let body;
|
|
228
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
229
|
-
return b.build();
|
|
230
|
-
};
|
|
231
|
-
exports.se_ListAttributeGroupsForApplicationCommand = se_ListAttributeGroupsForApplicationCommand;
|
|
232
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
233
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
234
|
-
const headers = {};
|
|
235
|
-
b.bp("/tags/{resourceArn}");
|
|
236
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
237
|
-
let body;
|
|
238
|
-
b.m("GET").h(headers).b(body);
|
|
239
|
-
return b.build();
|
|
240
|
-
};
|
|
241
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
242
|
-
const se_PutConfigurationCommand = async (input, context) => {
|
|
243
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
244
|
-
const headers = {
|
|
245
|
-
"content-type": "application/json",
|
|
246
|
-
};
|
|
247
|
-
b.bp("/configuration");
|
|
248
|
-
let body;
|
|
249
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
250
|
-
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
251
|
-
}));
|
|
252
|
-
b.m("PUT").h(headers).b(body);
|
|
253
|
-
return b.build();
|
|
254
|
-
};
|
|
255
|
-
exports.se_PutConfigurationCommand = se_PutConfigurationCommand;
|
|
256
|
-
const se_SyncResourceCommand = async (input, context) => {
|
|
257
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
258
|
-
const headers = {};
|
|
259
|
-
b.bp("/sync/{resourceType}/{resource}");
|
|
260
|
-
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
261
|
-
b.p("resource", () => input.resource, "{resource}", false);
|
|
262
|
-
let body;
|
|
263
|
-
b.m("POST").h(headers).b(body);
|
|
264
|
-
return b.build();
|
|
265
|
-
};
|
|
266
|
-
exports.se_SyncResourceCommand = se_SyncResourceCommand;
|
|
267
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
268
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
269
|
-
const headers = {
|
|
270
|
-
"content-type": "application/json",
|
|
271
|
-
};
|
|
272
|
-
b.bp("/tags/{resourceArn}");
|
|
273
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
274
|
-
let body;
|
|
275
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
276
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
277
|
-
}));
|
|
278
|
-
b.m("POST").h(headers).b(body);
|
|
279
|
-
return b.build();
|
|
280
|
-
};
|
|
281
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
282
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
283
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
284
|
-
const headers = {};
|
|
285
|
-
b.bp("/tags/{resourceArn}");
|
|
286
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
287
|
-
const query = (0, smithy_client_1.map)({
|
|
288
|
-
[_tK]: [
|
|
289
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
290
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
291
|
-
],
|
|
292
|
-
});
|
|
293
|
-
let body;
|
|
294
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
295
|
-
return b.build();
|
|
296
|
-
};
|
|
297
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
298
|
-
const se_UpdateApplicationCommand = async (input, context) => {
|
|
299
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
300
|
-
const headers = {
|
|
301
|
-
"content-type": "application/json",
|
|
302
|
-
};
|
|
303
|
-
b.bp("/applications/{application}");
|
|
304
|
-
b.p("application", () => input.application, "{application}", false);
|
|
305
|
-
let body;
|
|
306
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
307
|
-
description: [],
|
|
308
|
-
name: [],
|
|
309
|
-
}));
|
|
310
|
-
b.m("PATCH").h(headers).b(body);
|
|
311
|
-
return b.build();
|
|
312
|
-
};
|
|
313
|
-
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
314
|
-
const se_UpdateAttributeGroupCommand = async (input, context) => {
|
|
315
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
316
|
-
const headers = {
|
|
317
|
-
"content-type": "application/json",
|
|
318
|
-
};
|
|
319
|
-
b.bp("/attribute-groups/{attributeGroup}");
|
|
320
|
-
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
323
|
-
attributes: [],
|
|
324
|
-
description: [],
|
|
325
|
-
name: [],
|
|
326
|
-
}));
|
|
327
|
-
b.m("PATCH").h(headers).b(body);
|
|
328
|
-
return b.build();
|
|
329
|
-
};
|
|
330
|
-
exports.se_UpdateAttributeGroupCommand = se_UpdateAttributeGroupCommand;
|
|
331
|
-
const de_AssociateAttributeGroupCommand = async (output, context) => {
|
|
332
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
333
|
-
return de_AssociateAttributeGroupCommandError(output, context);
|
|
334
|
-
}
|
|
335
|
-
const contents = (0, smithy_client_1.map)({
|
|
336
|
-
$metadata: deserializeMetadata(output),
|
|
337
|
-
});
|
|
338
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
339
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
340
|
-
applicationArn: smithy_client_1.expectString,
|
|
341
|
-
attributeGroupArn: smithy_client_1.expectString,
|
|
342
|
-
});
|
|
343
|
-
Object.assign(contents, doc);
|
|
344
|
-
return contents;
|
|
345
|
-
};
|
|
346
|
-
exports.de_AssociateAttributeGroupCommand = de_AssociateAttributeGroupCommand;
|
|
347
|
-
const de_AssociateAttributeGroupCommandError = async (output, context) => {
|
|
348
|
-
const parsedOutput = {
|
|
349
|
-
...output,
|
|
350
|
-
body: await parseErrorBody(output.body, context),
|
|
351
|
-
};
|
|
352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
353
|
-
switch (errorCode) {
|
|
354
|
-
case "ConflictException":
|
|
355
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
356
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
357
|
-
case "InternalServerException":
|
|
358
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
359
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
360
|
-
case "ResourceNotFoundException":
|
|
361
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
362
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
363
|
-
case "ServiceQuotaExceededException":
|
|
364
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
365
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
366
|
-
case "ValidationException":
|
|
367
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
368
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
369
|
-
default:
|
|
370
|
-
const parsedBody = parsedOutput.body;
|
|
371
|
-
return throwDefaultError({
|
|
372
|
-
output,
|
|
373
|
-
parsedBody,
|
|
374
|
-
errorCode,
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
const de_AssociateResourceCommand = async (output, context) => {
|
|
379
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
380
|
-
return de_AssociateResourceCommandError(output, context);
|
|
381
|
-
}
|
|
382
|
-
const contents = (0, smithy_client_1.map)({
|
|
383
|
-
$metadata: deserializeMetadata(output),
|
|
384
|
-
});
|
|
385
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
386
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
387
|
-
applicationArn: smithy_client_1.expectString,
|
|
388
|
-
options: smithy_client_1._json,
|
|
389
|
-
resourceArn: smithy_client_1.expectString,
|
|
390
|
-
});
|
|
391
|
-
Object.assign(contents, doc);
|
|
392
|
-
return contents;
|
|
393
|
-
};
|
|
394
|
-
exports.de_AssociateResourceCommand = de_AssociateResourceCommand;
|
|
395
|
-
const de_AssociateResourceCommandError = async (output, context) => {
|
|
396
|
-
const parsedOutput = {
|
|
397
|
-
...output,
|
|
398
|
-
body: await parseErrorBody(output.body, context),
|
|
399
|
-
};
|
|
400
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
401
|
-
switch (errorCode) {
|
|
402
|
-
case "ConflictException":
|
|
403
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
404
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
405
|
-
case "InternalServerException":
|
|
406
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
407
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
408
|
-
case "ResourceNotFoundException":
|
|
409
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
410
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
411
|
-
case "ServiceQuotaExceededException":
|
|
412
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
413
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
414
|
-
case "ThrottlingException":
|
|
415
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
416
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
417
|
-
case "ValidationException":
|
|
418
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
419
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
420
|
-
default:
|
|
421
|
-
const parsedBody = parsedOutput.body;
|
|
422
|
-
return throwDefaultError({
|
|
423
|
-
output,
|
|
424
|
-
parsedBody,
|
|
425
|
-
errorCode,
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
const de_CreateApplicationCommand = async (output, context) => {
|
|
430
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
431
|
-
return de_CreateApplicationCommandError(output, context);
|
|
432
|
-
}
|
|
433
|
-
const contents = (0, smithy_client_1.map)({
|
|
434
|
-
$metadata: deserializeMetadata(output),
|
|
435
|
-
});
|
|
436
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
437
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
438
|
-
application: (_) => de_Application(_, context),
|
|
439
|
-
});
|
|
440
|
-
Object.assign(contents, doc);
|
|
441
|
-
return contents;
|
|
442
|
-
};
|
|
443
|
-
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
444
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
445
|
-
const parsedOutput = {
|
|
446
|
-
...output,
|
|
447
|
-
body: await parseErrorBody(output.body, context),
|
|
448
|
-
};
|
|
449
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
450
|
-
switch (errorCode) {
|
|
451
|
-
case "ConflictException":
|
|
452
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
453
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
454
|
-
case "InternalServerException":
|
|
455
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
456
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
457
|
-
case "ServiceQuotaExceededException":
|
|
458
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
459
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
460
|
-
case "ThrottlingException":
|
|
461
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
462
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ValidationException":
|
|
464
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
465
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
466
|
-
default:
|
|
467
|
-
const parsedBody = parsedOutput.body;
|
|
468
|
-
return throwDefaultError({
|
|
469
|
-
output,
|
|
470
|
-
parsedBody,
|
|
471
|
-
errorCode,
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
|
-
const de_CreateAttributeGroupCommand = async (output, context) => {
|
|
476
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
477
|
-
return de_CreateAttributeGroupCommandError(output, context);
|
|
478
|
-
}
|
|
479
|
-
const contents = (0, smithy_client_1.map)({
|
|
480
|
-
$metadata: deserializeMetadata(output),
|
|
481
|
-
});
|
|
482
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
483
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
484
|
-
attributeGroup: (_) => de_AttributeGroup(_, context),
|
|
485
|
-
});
|
|
486
|
-
Object.assign(contents, doc);
|
|
487
|
-
return contents;
|
|
488
|
-
};
|
|
489
|
-
exports.de_CreateAttributeGroupCommand = de_CreateAttributeGroupCommand;
|
|
490
|
-
const de_CreateAttributeGroupCommandError = async (output, context) => {
|
|
491
|
-
const parsedOutput = {
|
|
492
|
-
...output,
|
|
493
|
-
body: await parseErrorBody(output.body, context),
|
|
494
|
-
};
|
|
495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
496
|
-
switch (errorCode) {
|
|
497
|
-
case "ConflictException":
|
|
498
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
499
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
500
|
-
case "InternalServerException":
|
|
501
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
502
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
503
|
-
case "ServiceQuotaExceededException":
|
|
504
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
505
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
506
|
-
case "ValidationException":
|
|
507
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
508
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
509
|
-
default:
|
|
510
|
-
const parsedBody = parsedOutput.body;
|
|
511
|
-
return throwDefaultError({
|
|
512
|
-
output,
|
|
513
|
-
parsedBody,
|
|
514
|
-
errorCode,
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
const de_DeleteApplicationCommand = async (output, context) => {
|
|
519
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
520
|
-
return de_DeleteApplicationCommandError(output, context);
|
|
521
|
-
}
|
|
522
|
-
const contents = (0, smithy_client_1.map)({
|
|
523
|
-
$metadata: deserializeMetadata(output),
|
|
524
|
-
});
|
|
525
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
526
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
527
|
-
application: (_) => de_ApplicationSummary(_, context),
|
|
528
|
-
});
|
|
529
|
-
Object.assign(contents, doc);
|
|
530
|
-
return contents;
|
|
531
|
-
};
|
|
532
|
-
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
533
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
534
|
-
const parsedOutput = {
|
|
535
|
-
...output,
|
|
536
|
-
body: await parseErrorBody(output.body, context),
|
|
537
|
-
};
|
|
538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
|
-
switch (errorCode) {
|
|
540
|
-
case "InternalServerException":
|
|
541
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
542
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ResourceNotFoundException":
|
|
544
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ValidationException":
|
|
547
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
548
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
549
|
-
default:
|
|
550
|
-
const parsedBody = parsedOutput.body;
|
|
551
|
-
return throwDefaultError({
|
|
552
|
-
output,
|
|
553
|
-
parsedBody,
|
|
554
|
-
errorCode,
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
|
-
const de_DeleteAttributeGroupCommand = async (output, context) => {
|
|
559
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
560
|
-
return de_DeleteAttributeGroupCommandError(output, context);
|
|
561
|
-
}
|
|
562
|
-
const contents = (0, smithy_client_1.map)({
|
|
563
|
-
$metadata: deserializeMetadata(output),
|
|
564
|
-
});
|
|
565
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
566
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
567
|
-
attributeGroup: (_) => de_AttributeGroupSummary(_, context),
|
|
568
|
-
});
|
|
569
|
-
Object.assign(contents, doc);
|
|
570
|
-
return contents;
|
|
571
|
-
};
|
|
572
|
-
exports.de_DeleteAttributeGroupCommand = de_DeleteAttributeGroupCommand;
|
|
573
|
-
const de_DeleteAttributeGroupCommandError = async (output, context) => {
|
|
574
|
-
const parsedOutput = {
|
|
575
|
-
...output,
|
|
576
|
-
body: await parseErrorBody(output.body, context),
|
|
577
|
-
};
|
|
578
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
579
|
-
switch (errorCode) {
|
|
580
|
-
case "InternalServerException":
|
|
581
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
582
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
583
|
-
case "ResourceNotFoundException":
|
|
584
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
585
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
586
|
-
case "ValidationException":
|
|
587
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
588
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
589
|
-
default:
|
|
590
|
-
const parsedBody = parsedOutput.body;
|
|
591
|
-
return throwDefaultError({
|
|
592
|
-
output,
|
|
593
|
-
parsedBody,
|
|
594
|
-
errorCode,
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
};
|
|
598
|
-
const de_DisassociateAttributeGroupCommand = async (output, context) => {
|
|
599
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
600
|
-
return de_DisassociateAttributeGroupCommandError(output, context);
|
|
601
|
-
}
|
|
602
|
-
const contents = (0, smithy_client_1.map)({
|
|
603
|
-
$metadata: deserializeMetadata(output),
|
|
604
|
-
});
|
|
605
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
606
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
607
|
-
applicationArn: smithy_client_1.expectString,
|
|
608
|
-
attributeGroupArn: smithy_client_1.expectString,
|
|
609
|
-
});
|
|
610
|
-
Object.assign(contents, doc);
|
|
611
|
-
return contents;
|
|
612
|
-
};
|
|
613
|
-
exports.de_DisassociateAttributeGroupCommand = de_DisassociateAttributeGroupCommand;
|
|
614
|
-
const de_DisassociateAttributeGroupCommandError = async (output, context) => {
|
|
615
|
-
const parsedOutput = {
|
|
616
|
-
...output,
|
|
617
|
-
body: await parseErrorBody(output.body, context),
|
|
618
|
-
};
|
|
619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
|
-
switch (errorCode) {
|
|
621
|
-
case "InternalServerException":
|
|
622
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
623
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
624
|
-
case "ResourceNotFoundException":
|
|
625
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
626
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
627
|
-
case "ValidationException":
|
|
628
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
629
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
630
|
-
default:
|
|
631
|
-
const parsedBody = parsedOutput.body;
|
|
632
|
-
return throwDefaultError({
|
|
633
|
-
output,
|
|
634
|
-
parsedBody,
|
|
635
|
-
errorCode,
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
const de_DisassociateResourceCommand = async (output, context) => {
|
|
640
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
|
-
return de_DisassociateResourceCommandError(output, context);
|
|
642
|
-
}
|
|
643
|
-
const contents = (0, smithy_client_1.map)({
|
|
644
|
-
$metadata: deserializeMetadata(output),
|
|
645
|
-
});
|
|
646
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
647
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
648
|
-
applicationArn: smithy_client_1.expectString,
|
|
649
|
-
resourceArn: smithy_client_1.expectString,
|
|
650
|
-
});
|
|
651
|
-
Object.assign(contents, doc);
|
|
652
|
-
return contents;
|
|
653
|
-
};
|
|
654
|
-
exports.de_DisassociateResourceCommand = de_DisassociateResourceCommand;
|
|
655
|
-
const de_DisassociateResourceCommandError = async (output, context) => {
|
|
656
|
-
const parsedOutput = {
|
|
657
|
-
...output,
|
|
658
|
-
body: await parseErrorBody(output.body, context),
|
|
659
|
-
};
|
|
660
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
661
|
-
switch (errorCode) {
|
|
662
|
-
case "InternalServerException":
|
|
663
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
664
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
665
|
-
case "ResourceNotFoundException":
|
|
666
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
667
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ThrottlingException":
|
|
669
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
670
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
671
|
-
case "ValidationException":
|
|
672
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
673
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
674
|
-
default:
|
|
675
|
-
const parsedBody = parsedOutput.body;
|
|
676
|
-
return throwDefaultError({
|
|
677
|
-
output,
|
|
678
|
-
parsedBody,
|
|
679
|
-
errorCode,
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
};
|
|
683
|
-
const de_GetApplicationCommand = async (output, context) => {
|
|
684
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
685
|
-
return de_GetApplicationCommandError(output, context);
|
|
686
|
-
}
|
|
687
|
-
const contents = (0, smithy_client_1.map)({
|
|
688
|
-
$metadata: deserializeMetadata(output),
|
|
689
|
-
});
|
|
690
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
691
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
692
|
-
applicationTag: smithy_client_1._json,
|
|
693
|
-
arn: smithy_client_1.expectString,
|
|
694
|
-
associatedResourceCount: smithy_client_1.expectInt32,
|
|
695
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
696
|
-
description: smithy_client_1.expectString,
|
|
697
|
-
id: smithy_client_1.expectString,
|
|
698
|
-
integrations: smithy_client_1._json,
|
|
699
|
-
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
700
|
-
name: smithy_client_1.expectString,
|
|
701
|
-
tags: smithy_client_1._json,
|
|
702
|
-
});
|
|
703
|
-
Object.assign(contents, doc);
|
|
704
|
-
return contents;
|
|
705
|
-
};
|
|
706
|
-
exports.de_GetApplicationCommand = de_GetApplicationCommand;
|
|
707
|
-
const de_GetApplicationCommandError = async (output, context) => {
|
|
708
|
-
const parsedOutput = {
|
|
709
|
-
...output,
|
|
710
|
-
body: await parseErrorBody(output.body, context),
|
|
711
|
-
};
|
|
712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
713
|
-
switch (errorCode) {
|
|
714
|
-
case "ConflictException":
|
|
715
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
716
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
717
|
-
case "InternalServerException":
|
|
718
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
719
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
720
|
-
case "ResourceNotFoundException":
|
|
721
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
722
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
723
|
-
case "ValidationException":
|
|
724
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
725
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
726
|
-
default:
|
|
727
|
-
const parsedBody = parsedOutput.body;
|
|
728
|
-
return throwDefaultError({
|
|
729
|
-
output,
|
|
730
|
-
parsedBody,
|
|
731
|
-
errorCode,
|
|
732
|
-
});
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
|
-
const de_GetAssociatedResourceCommand = async (output, context) => {
|
|
736
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
-
return de_GetAssociatedResourceCommandError(output, context);
|
|
738
|
-
}
|
|
739
|
-
const contents = (0, smithy_client_1.map)({
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
});
|
|
742
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
743
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
744
|
-
applicationTagResult: smithy_client_1._json,
|
|
745
|
-
options: smithy_client_1._json,
|
|
746
|
-
resource: (_) => de_Resource(_, context),
|
|
747
|
-
});
|
|
748
|
-
Object.assign(contents, doc);
|
|
749
|
-
return contents;
|
|
750
|
-
};
|
|
751
|
-
exports.de_GetAssociatedResourceCommand = de_GetAssociatedResourceCommand;
|
|
752
|
-
const de_GetAssociatedResourceCommandError = async (output, context) => {
|
|
753
|
-
const parsedOutput = {
|
|
754
|
-
...output,
|
|
755
|
-
body: await parseErrorBody(output.body, context),
|
|
756
|
-
};
|
|
757
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
|
-
switch (errorCode) {
|
|
759
|
-
case "InternalServerException":
|
|
760
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
761
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ResourceNotFoundException":
|
|
763
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
765
|
-
case "ValidationException":
|
|
766
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
767
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
768
|
-
default:
|
|
769
|
-
const parsedBody = parsedOutput.body;
|
|
770
|
-
return throwDefaultError({
|
|
771
|
-
output,
|
|
772
|
-
parsedBody,
|
|
773
|
-
errorCode,
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
|
-
const de_GetAttributeGroupCommand = async (output, context) => {
|
|
778
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
779
|
-
return de_GetAttributeGroupCommandError(output, context);
|
|
780
|
-
}
|
|
781
|
-
const contents = (0, smithy_client_1.map)({
|
|
782
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
-
});
|
|
784
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
785
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
786
|
-
arn: smithy_client_1.expectString,
|
|
787
|
-
attributes: smithy_client_1.expectString,
|
|
788
|
-
createdBy: smithy_client_1.expectString,
|
|
789
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
790
|
-
description: smithy_client_1.expectString,
|
|
791
|
-
id: smithy_client_1.expectString,
|
|
792
|
-
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
793
|
-
name: smithy_client_1.expectString,
|
|
794
|
-
tags: smithy_client_1._json,
|
|
795
|
-
});
|
|
796
|
-
Object.assign(contents, doc);
|
|
797
|
-
return contents;
|
|
798
|
-
};
|
|
799
|
-
exports.de_GetAttributeGroupCommand = de_GetAttributeGroupCommand;
|
|
800
|
-
const de_GetAttributeGroupCommandError = async (output, context) => {
|
|
801
|
-
const parsedOutput = {
|
|
802
|
-
...output,
|
|
803
|
-
body: await parseErrorBody(output.body, context),
|
|
804
|
-
};
|
|
805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
806
|
-
switch (errorCode) {
|
|
807
|
-
case "ConflictException":
|
|
808
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
809
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
810
|
-
case "InternalServerException":
|
|
811
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
812
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
813
|
-
case "ResourceNotFoundException":
|
|
814
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
815
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
816
|
-
case "ValidationException":
|
|
817
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
818
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
819
|
-
default:
|
|
820
|
-
const parsedBody = parsedOutput.body;
|
|
821
|
-
return throwDefaultError({
|
|
822
|
-
output,
|
|
823
|
-
parsedBody,
|
|
824
|
-
errorCode,
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
|
-
};
|
|
828
|
-
const de_GetConfigurationCommand = async (output, context) => {
|
|
829
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
830
|
-
return de_GetConfigurationCommandError(output, context);
|
|
831
|
-
}
|
|
832
|
-
const contents = (0, smithy_client_1.map)({
|
|
833
|
-
$metadata: deserializeMetadata(output),
|
|
834
|
-
});
|
|
835
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
836
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
837
|
-
configuration: smithy_client_1._json,
|
|
838
|
-
});
|
|
839
|
-
Object.assign(contents, doc);
|
|
840
|
-
return contents;
|
|
841
|
-
};
|
|
842
|
-
exports.de_GetConfigurationCommand = de_GetConfigurationCommand;
|
|
843
|
-
const de_GetConfigurationCommandError = async (output, context) => {
|
|
844
|
-
const parsedOutput = {
|
|
845
|
-
...output,
|
|
846
|
-
body: await parseErrorBody(output.body, context),
|
|
847
|
-
};
|
|
848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
|
-
switch (errorCode) {
|
|
850
|
-
case "InternalServerException":
|
|
851
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
852
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
853
|
-
default:
|
|
854
|
-
const parsedBody = parsedOutput.body;
|
|
855
|
-
return throwDefaultError({
|
|
856
|
-
output,
|
|
857
|
-
parsedBody,
|
|
858
|
-
errorCode,
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
};
|
|
862
|
-
const de_ListApplicationsCommand = async (output, context) => {
|
|
863
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
864
|
-
return de_ListApplicationsCommandError(output, context);
|
|
865
|
-
}
|
|
866
|
-
const contents = (0, smithy_client_1.map)({
|
|
867
|
-
$metadata: deserializeMetadata(output),
|
|
868
|
-
});
|
|
869
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
870
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
871
|
-
applications: (_) => de_ApplicationSummaries(_, context),
|
|
872
|
-
nextToken: smithy_client_1.expectString,
|
|
873
|
-
});
|
|
874
|
-
Object.assign(contents, doc);
|
|
875
|
-
return contents;
|
|
876
|
-
};
|
|
877
|
-
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
878
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
879
|
-
const parsedOutput = {
|
|
880
|
-
...output,
|
|
881
|
-
body: await parseErrorBody(output.body, context),
|
|
882
|
-
};
|
|
883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
|
-
switch (errorCode) {
|
|
885
|
-
case "InternalServerException":
|
|
886
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
887
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ValidationException":
|
|
889
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
890
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
891
|
-
default:
|
|
892
|
-
const parsedBody = parsedOutput.body;
|
|
893
|
-
return throwDefaultError({
|
|
894
|
-
output,
|
|
895
|
-
parsedBody,
|
|
896
|
-
errorCode,
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
|
-
const de_ListAssociatedAttributeGroupsCommand = async (output, context) => {
|
|
901
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
902
|
-
return de_ListAssociatedAttributeGroupsCommandError(output, context);
|
|
903
|
-
}
|
|
904
|
-
const contents = (0, smithy_client_1.map)({
|
|
905
|
-
$metadata: deserializeMetadata(output),
|
|
906
|
-
});
|
|
907
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
908
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
909
|
-
attributeGroups: smithy_client_1._json,
|
|
910
|
-
nextToken: smithy_client_1.expectString,
|
|
911
|
-
});
|
|
912
|
-
Object.assign(contents, doc);
|
|
913
|
-
return contents;
|
|
914
|
-
};
|
|
915
|
-
exports.de_ListAssociatedAttributeGroupsCommand = de_ListAssociatedAttributeGroupsCommand;
|
|
916
|
-
const de_ListAssociatedAttributeGroupsCommandError = async (output, context) => {
|
|
917
|
-
const parsedOutput = {
|
|
918
|
-
...output,
|
|
919
|
-
body: await parseErrorBody(output.body, context),
|
|
920
|
-
};
|
|
921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
|
-
switch (errorCode) {
|
|
923
|
-
case "InternalServerException":
|
|
924
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
925
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
926
|
-
case "ResourceNotFoundException":
|
|
927
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
928
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ValidationException":
|
|
930
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
931
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
932
|
-
default:
|
|
933
|
-
const parsedBody = parsedOutput.body;
|
|
934
|
-
return throwDefaultError({
|
|
935
|
-
output,
|
|
936
|
-
parsedBody,
|
|
937
|
-
errorCode,
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
};
|
|
941
|
-
const de_ListAssociatedResourcesCommand = async (output, context) => {
|
|
942
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
943
|
-
return de_ListAssociatedResourcesCommandError(output, context);
|
|
944
|
-
}
|
|
945
|
-
const contents = (0, smithy_client_1.map)({
|
|
946
|
-
$metadata: deserializeMetadata(output),
|
|
947
|
-
});
|
|
948
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
949
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
950
|
-
nextToken: smithy_client_1.expectString,
|
|
951
|
-
resources: smithy_client_1._json,
|
|
952
|
-
});
|
|
953
|
-
Object.assign(contents, doc);
|
|
954
|
-
return contents;
|
|
955
|
-
};
|
|
956
|
-
exports.de_ListAssociatedResourcesCommand = de_ListAssociatedResourcesCommand;
|
|
957
|
-
const de_ListAssociatedResourcesCommandError = async (output, context) => {
|
|
958
|
-
const parsedOutput = {
|
|
959
|
-
...output,
|
|
960
|
-
body: await parseErrorBody(output.body, context),
|
|
961
|
-
};
|
|
962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
|
-
switch (errorCode) {
|
|
964
|
-
case "InternalServerException":
|
|
965
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
966
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ResourceNotFoundException":
|
|
968
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
969
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ValidationException":
|
|
971
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
972
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
973
|
-
default:
|
|
974
|
-
const parsedBody = parsedOutput.body;
|
|
975
|
-
return throwDefaultError({
|
|
976
|
-
output,
|
|
977
|
-
parsedBody,
|
|
978
|
-
errorCode,
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
const de_ListAttributeGroupsCommand = async (output, context) => {
|
|
983
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
-
return de_ListAttributeGroupsCommandError(output, context);
|
|
985
|
-
}
|
|
986
|
-
const contents = (0, smithy_client_1.map)({
|
|
987
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
-
});
|
|
989
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
990
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
991
|
-
attributeGroups: (_) => de_AttributeGroupSummaries(_, context),
|
|
992
|
-
nextToken: smithy_client_1.expectString,
|
|
993
|
-
});
|
|
994
|
-
Object.assign(contents, doc);
|
|
995
|
-
return contents;
|
|
996
|
-
};
|
|
997
|
-
exports.de_ListAttributeGroupsCommand = de_ListAttributeGroupsCommand;
|
|
998
|
-
const de_ListAttributeGroupsCommandError = async (output, context) => {
|
|
999
|
-
const parsedOutput = {
|
|
1000
|
-
...output,
|
|
1001
|
-
body: await parseErrorBody(output.body, context),
|
|
1002
|
-
};
|
|
1003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
-
switch (errorCode) {
|
|
1005
|
-
case "InternalServerException":
|
|
1006
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1007
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ValidationException":
|
|
1009
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1010
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1011
|
-
default:
|
|
1012
|
-
const parsedBody = parsedOutput.body;
|
|
1013
|
-
return throwDefaultError({
|
|
1014
|
-
output,
|
|
1015
|
-
parsedBody,
|
|
1016
|
-
errorCode,
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
};
|
|
1020
|
-
const de_ListAttributeGroupsForApplicationCommand = async (output, context) => {
|
|
1021
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1022
|
-
return de_ListAttributeGroupsForApplicationCommandError(output, context);
|
|
1023
|
-
}
|
|
1024
|
-
const contents = (0, smithy_client_1.map)({
|
|
1025
|
-
$metadata: deserializeMetadata(output),
|
|
1026
|
-
});
|
|
1027
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1028
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1029
|
-
attributeGroupsDetails: smithy_client_1._json,
|
|
1030
|
-
nextToken: smithy_client_1.expectString,
|
|
1031
|
-
});
|
|
1032
|
-
Object.assign(contents, doc);
|
|
1033
|
-
return contents;
|
|
1034
|
-
};
|
|
1035
|
-
exports.de_ListAttributeGroupsForApplicationCommand = de_ListAttributeGroupsForApplicationCommand;
|
|
1036
|
-
const de_ListAttributeGroupsForApplicationCommandError = async (output, context) => {
|
|
1037
|
-
const parsedOutput = {
|
|
1038
|
-
...output,
|
|
1039
|
-
body: await parseErrorBody(output.body, context),
|
|
1040
|
-
};
|
|
1041
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
|
-
switch (errorCode) {
|
|
1043
|
-
case "InternalServerException":
|
|
1044
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1045
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "ResourceNotFoundException":
|
|
1047
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1048
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "ValidationException":
|
|
1050
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1051
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1052
|
-
default:
|
|
1053
|
-
const parsedBody = parsedOutput.body;
|
|
1054
|
-
return throwDefaultError({
|
|
1055
|
-
output,
|
|
1056
|
-
parsedBody,
|
|
1057
|
-
errorCode,
|
|
1058
|
-
});
|
|
1059
|
-
}
|
|
1060
|
-
};
|
|
1061
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1062
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1063
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1064
|
-
}
|
|
1065
|
-
const contents = (0, smithy_client_1.map)({
|
|
1066
|
-
$metadata: deserializeMetadata(output),
|
|
1067
|
-
});
|
|
1068
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1069
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1070
|
-
tags: smithy_client_1._json,
|
|
1071
|
-
});
|
|
1072
|
-
Object.assign(contents, doc);
|
|
1073
|
-
return contents;
|
|
1074
|
-
};
|
|
1075
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1076
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1077
|
-
const parsedOutput = {
|
|
1078
|
-
...output,
|
|
1079
|
-
body: await parseErrorBody(output.body, context),
|
|
1080
|
-
};
|
|
1081
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1082
|
-
switch (errorCode) {
|
|
1083
|
-
case "InternalServerException":
|
|
1084
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1085
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "ResourceNotFoundException":
|
|
1087
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1088
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1089
|
-
case "ValidationException":
|
|
1090
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1091
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1092
|
-
default:
|
|
1093
|
-
const parsedBody = parsedOutput.body;
|
|
1094
|
-
return throwDefaultError({
|
|
1095
|
-
output,
|
|
1096
|
-
parsedBody,
|
|
1097
|
-
errorCode,
|
|
1098
|
-
});
|
|
1099
|
-
}
|
|
1100
|
-
};
|
|
1101
|
-
const de_PutConfigurationCommand = async (output, context) => {
|
|
1102
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1103
|
-
return de_PutConfigurationCommandError(output, context);
|
|
1104
|
-
}
|
|
1105
|
-
const contents = (0, smithy_client_1.map)({
|
|
1106
|
-
$metadata: deserializeMetadata(output),
|
|
1107
|
-
});
|
|
1108
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1109
|
-
return contents;
|
|
1110
|
-
};
|
|
1111
|
-
exports.de_PutConfigurationCommand = de_PutConfigurationCommand;
|
|
1112
|
-
const de_PutConfigurationCommandError = async (output, context) => {
|
|
1113
|
-
const parsedOutput = {
|
|
1114
|
-
...output,
|
|
1115
|
-
body: await parseErrorBody(output.body, context),
|
|
1116
|
-
};
|
|
1117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
|
-
switch (errorCode) {
|
|
1119
|
-
case "ConflictException":
|
|
1120
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1121
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "InternalServerException":
|
|
1123
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1124
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "ValidationException":
|
|
1126
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1127
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1128
|
-
default:
|
|
1129
|
-
const parsedBody = parsedOutput.body;
|
|
1130
|
-
return throwDefaultError({
|
|
1131
|
-
output,
|
|
1132
|
-
parsedBody,
|
|
1133
|
-
errorCode,
|
|
1134
|
-
});
|
|
1135
|
-
}
|
|
1136
|
-
};
|
|
1137
|
-
const de_SyncResourceCommand = async (output, context) => {
|
|
1138
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1139
|
-
return de_SyncResourceCommandError(output, context);
|
|
1140
|
-
}
|
|
1141
|
-
const contents = (0, smithy_client_1.map)({
|
|
1142
|
-
$metadata: deserializeMetadata(output),
|
|
1143
|
-
});
|
|
1144
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1145
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1146
|
-
actionTaken: smithy_client_1.expectString,
|
|
1147
|
-
applicationArn: smithy_client_1.expectString,
|
|
1148
|
-
resourceArn: smithy_client_1.expectString,
|
|
1149
|
-
});
|
|
1150
|
-
Object.assign(contents, doc);
|
|
1151
|
-
return contents;
|
|
1152
|
-
};
|
|
1153
|
-
exports.de_SyncResourceCommand = de_SyncResourceCommand;
|
|
1154
|
-
const de_SyncResourceCommandError = async (output, context) => {
|
|
1155
|
-
const parsedOutput = {
|
|
1156
|
-
...output,
|
|
1157
|
-
body: await parseErrorBody(output.body, context),
|
|
1158
|
-
};
|
|
1159
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1160
|
-
switch (errorCode) {
|
|
1161
|
-
case "ConflictException":
|
|
1162
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1163
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "InternalServerException":
|
|
1165
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1166
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "ResourceNotFoundException":
|
|
1168
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1169
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ThrottlingException":
|
|
1171
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1172
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "ValidationException":
|
|
1174
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1175
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1176
|
-
default:
|
|
1177
|
-
const parsedBody = parsedOutput.body;
|
|
1178
|
-
return throwDefaultError({
|
|
1179
|
-
output,
|
|
1180
|
-
parsedBody,
|
|
1181
|
-
errorCode,
|
|
1182
|
-
});
|
|
1183
|
-
}
|
|
1184
|
-
};
|
|
1185
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1186
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1187
|
-
return de_TagResourceCommandError(output, context);
|
|
1188
|
-
}
|
|
1189
|
-
const contents = (0, smithy_client_1.map)({
|
|
1190
|
-
$metadata: deserializeMetadata(output),
|
|
1191
|
-
});
|
|
1192
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1193
|
-
return contents;
|
|
1194
|
-
};
|
|
1195
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1196
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1197
|
-
const parsedOutput = {
|
|
1198
|
-
...output,
|
|
1199
|
-
body: await parseErrorBody(output.body, context),
|
|
1200
|
-
};
|
|
1201
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
|
-
switch (errorCode) {
|
|
1203
|
-
case "InternalServerException":
|
|
1204
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1205
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ResourceNotFoundException":
|
|
1207
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1208
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ValidationException":
|
|
1210
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1211
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1212
|
-
default:
|
|
1213
|
-
const parsedBody = parsedOutput.body;
|
|
1214
|
-
return throwDefaultError({
|
|
1215
|
-
output,
|
|
1216
|
-
parsedBody,
|
|
1217
|
-
errorCode,
|
|
1218
|
-
});
|
|
1219
|
-
}
|
|
1220
|
-
};
|
|
1221
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1222
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1223
|
-
return de_UntagResourceCommandError(output, context);
|
|
1224
|
-
}
|
|
1225
|
-
const contents = (0, smithy_client_1.map)({
|
|
1226
|
-
$metadata: deserializeMetadata(output),
|
|
1227
|
-
});
|
|
1228
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1229
|
-
return contents;
|
|
1230
|
-
};
|
|
1231
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1232
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1233
|
-
const parsedOutput = {
|
|
1234
|
-
...output,
|
|
1235
|
-
body: await parseErrorBody(output.body, context),
|
|
1236
|
-
};
|
|
1237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
|
-
switch (errorCode) {
|
|
1239
|
-
case "InternalServerException":
|
|
1240
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1241
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ResourceNotFoundException":
|
|
1243
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1244
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "ValidationException":
|
|
1246
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1247
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1248
|
-
default:
|
|
1249
|
-
const parsedBody = parsedOutput.body;
|
|
1250
|
-
return throwDefaultError({
|
|
1251
|
-
output,
|
|
1252
|
-
parsedBody,
|
|
1253
|
-
errorCode,
|
|
1254
|
-
});
|
|
1255
|
-
}
|
|
1256
|
-
};
|
|
1257
|
-
const de_UpdateApplicationCommand = async (output, context) => {
|
|
1258
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1259
|
-
return de_UpdateApplicationCommandError(output, context);
|
|
1260
|
-
}
|
|
1261
|
-
const contents = (0, smithy_client_1.map)({
|
|
1262
|
-
$metadata: deserializeMetadata(output),
|
|
1263
|
-
});
|
|
1264
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1265
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1266
|
-
application: (_) => de_Application(_, context),
|
|
1267
|
-
});
|
|
1268
|
-
Object.assign(contents, doc);
|
|
1269
|
-
return contents;
|
|
1270
|
-
};
|
|
1271
|
-
exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
|
|
1272
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1273
|
-
const parsedOutput = {
|
|
1274
|
-
...output,
|
|
1275
|
-
body: await parseErrorBody(output.body, context),
|
|
1276
|
-
};
|
|
1277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
|
-
switch (errorCode) {
|
|
1279
|
-
case "ConflictException":
|
|
1280
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1281
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "InternalServerException":
|
|
1283
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1284
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "ResourceNotFoundException":
|
|
1286
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1287
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "ThrottlingException":
|
|
1289
|
-
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1290
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "ValidationException":
|
|
1292
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1293
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1294
|
-
default:
|
|
1295
|
-
const parsedBody = parsedOutput.body;
|
|
1296
|
-
return throwDefaultError({
|
|
1297
|
-
output,
|
|
1298
|
-
parsedBody,
|
|
1299
|
-
errorCode,
|
|
1300
|
-
});
|
|
1301
|
-
}
|
|
1302
|
-
};
|
|
1303
|
-
const de_UpdateAttributeGroupCommand = async (output, context) => {
|
|
1304
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1305
|
-
return de_UpdateAttributeGroupCommandError(output, context);
|
|
1306
|
-
}
|
|
1307
|
-
const contents = (0, smithy_client_1.map)({
|
|
1308
|
-
$metadata: deserializeMetadata(output),
|
|
1309
|
-
});
|
|
1310
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1311
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1312
|
-
attributeGroup: (_) => de_AttributeGroup(_, context),
|
|
1313
|
-
});
|
|
1314
|
-
Object.assign(contents, doc);
|
|
1315
|
-
return contents;
|
|
1316
|
-
};
|
|
1317
|
-
exports.de_UpdateAttributeGroupCommand = de_UpdateAttributeGroupCommand;
|
|
1318
|
-
const de_UpdateAttributeGroupCommandError = async (output, context) => {
|
|
1319
|
-
const parsedOutput = {
|
|
1320
|
-
...output,
|
|
1321
|
-
body: await parseErrorBody(output.body, context),
|
|
1322
|
-
};
|
|
1323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
|
-
switch (errorCode) {
|
|
1325
|
-
case "ConflictException":
|
|
1326
|
-
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1327
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "InternalServerException":
|
|
1329
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1330
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ResourceNotFoundException":
|
|
1332
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1333
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "ValidationException":
|
|
1335
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1336
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1337
|
-
default:
|
|
1338
|
-
const parsedBody = parsedOutput.body;
|
|
1339
|
-
return throwDefaultError({
|
|
1340
|
-
output,
|
|
1341
|
-
parsedBody,
|
|
1342
|
-
errorCode,
|
|
1343
|
-
});
|
|
1344
|
-
}
|
|
1345
|
-
};
|
|
1346
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException);
|
|
1347
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1348
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1349
|
-
const data = parsedOutput.body;
|
|
1350
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1351
|
-
message: smithy_client_1.expectString,
|
|
1352
|
-
});
|
|
1353
|
-
Object.assign(contents, doc);
|
|
1354
|
-
const exception = new models_0_1.ConflictException({
|
|
1355
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1356
|
-
...contents,
|
|
1357
|
-
});
|
|
1358
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1359
|
-
};
|
|
1360
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1361
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1362
|
-
const data = parsedOutput.body;
|
|
1363
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1364
|
-
message: smithy_client_1.expectString,
|
|
1365
|
-
});
|
|
1366
|
-
Object.assign(contents, doc);
|
|
1367
|
-
const exception = new models_0_1.InternalServerException({
|
|
1368
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1369
|
-
...contents,
|
|
1370
|
-
});
|
|
1371
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1372
|
-
};
|
|
1373
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1374
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1375
|
-
const data = parsedOutput.body;
|
|
1376
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1377
|
-
message: smithy_client_1.expectString,
|
|
1378
|
-
});
|
|
1379
|
-
Object.assign(contents, doc);
|
|
1380
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1381
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1382
|
-
...contents,
|
|
1383
|
-
});
|
|
1384
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1385
|
-
};
|
|
1386
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1387
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1388
|
-
const data = parsedOutput.body;
|
|
1389
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1390
|
-
message: smithy_client_1.expectString,
|
|
1391
|
-
});
|
|
1392
|
-
Object.assign(contents, doc);
|
|
1393
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1394
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1395
|
-
...contents,
|
|
1396
|
-
});
|
|
1397
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1398
|
-
};
|
|
1399
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1400
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1401
|
-
const data = parsedOutput.body;
|
|
1402
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1403
|
-
message: smithy_client_1.expectString,
|
|
1404
|
-
serviceCode: smithy_client_1.expectString,
|
|
1405
|
-
});
|
|
1406
|
-
Object.assign(contents, doc);
|
|
1407
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1408
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1409
|
-
...contents,
|
|
1410
|
-
});
|
|
1411
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1412
|
-
};
|
|
1413
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1414
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1415
|
-
const data = parsedOutput.body;
|
|
1416
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1417
|
-
message: smithy_client_1.expectString,
|
|
1418
|
-
});
|
|
1419
|
-
Object.assign(contents, doc);
|
|
1420
|
-
const exception = new models_0_1.ValidationException({
|
|
1421
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1422
|
-
...contents,
|
|
1423
|
-
});
|
|
1424
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1425
|
-
};
|
|
1426
|
-
const de_Application = (output, context) => {
|
|
1427
|
-
return (0, smithy_client_1.take)(output, {
|
|
1428
|
-
applicationTag: smithy_client_1._json,
|
|
1429
|
-
arn: smithy_client_1.expectString,
|
|
1430
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1431
|
-
description: smithy_client_1.expectString,
|
|
1432
|
-
id: smithy_client_1.expectString,
|
|
1433
|
-
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1434
|
-
name: smithy_client_1.expectString,
|
|
1435
|
-
tags: smithy_client_1._json,
|
|
1436
|
-
});
|
|
1437
|
-
};
|
|
1438
|
-
const de_ApplicationSummaries = (output, context) => {
|
|
1439
|
-
const retVal = (output || [])
|
|
1440
|
-
.filter((e) => e != null)
|
|
1441
|
-
.map((entry) => {
|
|
1442
|
-
return de_ApplicationSummary(entry, context);
|
|
1443
|
-
});
|
|
1444
|
-
return retVal;
|
|
1445
|
-
};
|
|
1446
|
-
const de_ApplicationSummary = (output, context) => {
|
|
1447
|
-
return (0, smithy_client_1.take)(output, {
|
|
1448
|
-
arn: smithy_client_1.expectString,
|
|
1449
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1450
|
-
description: smithy_client_1.expectString,
|
|
1451
|
-
id: smithy_client_1.expectString,
|
|
1452
|
-
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1453
|
-
name: smithy_client_1.expectString,
|
|
1454
|
-
});
|
|
1455
|
-
};
|
|
1456
|
-
const de_AttributeGroup = (output, context) => {
|
|
1457
|
-
return (0, smithy_client_1.take)(output, {
|
|
1458
|
-
arn: smithy_client_1.expectString,
|
|
1459
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1460
|
-
description: smithy_client_1.expectString,
|
|
1461
|
-
id: smithy_client_1.expectString,
|
|
1462
|
-
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1463
|
-
name: smithy_client_1.expectString,
|
|
1464
|
-
tags: smithy_client_1._json,
|
|
1465
|
-
});
|
|
1466
|
-
};
|
|
1467
|
-
const de_AttributeGroupSummaries = (output, context) => {
|
|
1468
|
-
const retVal = (output || [])
|
|
1469
|
-
.filter((e) => e != null)
|
|
1470
|
-
.map((entry) => {
|
|
1471
|
-
return de_AttributeGroupSummary(entry, context);
|
|
1472
|
-
});
|
|
1473
|
-
return retVal;
|
|
1474
|
-
};
|
|
1475
|
-
const de_AttributeGroupSummary = (output, context) => {
|
|
1476
|
-
return (0, smithy_client_1.take)(output, {
|
|
1477
|
-
arn: smithy_client_1.expectString,
|
|
1478
|
-
createdBy: smithy_client_1.expectString,
|
|
1479
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1480
|
-
description: smithy_client_1.expectString,
|
|
1481
|
-
id: smithy_client_1.expectString,
|
|
1482
|
-
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1483
|
-
name: smithy_client_1.expectString,
|
|
1484
|
-
});
|
|
1485
|
-
};
|
|
1486
|
-
const de_Resource = (output, context) => {
|
|
1487
|
-
return (0, smithy_client_1.take)(output, {
|
|
1488
|
-
arn: smithy_client_1.expectString,
|
|
1489
|
-
associationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1490
|
-
integrations: smithy_client_1._json,
|
|
1491
|
-
name: smithy_client_1.expectString,
|
|
1492
|
-
});
|
|
1493
|
-
};
|
|
1494
|
-
const deserializeMetadata = (output) => ({
|
|
1495
|
-
httpStatusCode: output.statusCode,
|
|
1496
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1497
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1498
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1499
|
-
});
|
|
1500
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1501
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1502
|
-
value !== null &&
|
|
1503
|
-
value !== "" &&
|
|
1504
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1505
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1506
|
-
const _mR = "maxResults";
|
|
1507
|
-
const _nT = "nextToken";
|
|
1508
|
-
const _rTS = "resourceTagStatus";
|
|
1509
|
-
const _tK = "tagKeys";
|
|
1510
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1511
|
-
if (encoded.length) {
|
|
1512
|
-
return JSON.parse(encoded);
|
|
1513
|
-
}
|
|
1514
|
-
return {};
|
|
1515
|
-
});
|
|
1516
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1517
|
-
const value = await parseBody(errorBody, context);
|
|
1518
|
-
value.message = value.message ?? value.Message;
|
|
1519
|
-
return value;
|
|
1520
|
-
};
|
|
1521
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1522
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1523
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1524
|
-
let cleanValue = rawValue;
|
|
1525
|
-
if (typeof cleanValue === "number") {
|
|
1526
|
-
cleanValue = cleanValue.toString();
|
|
1527
|
-
}
|
|
1528
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1529
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1530
|
-
}
|
|
1531
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1532
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1533
|
-
}
|
|
1534
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1535
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1536
|
-
}
|
|
1537
|
-
return cleanValue;
|
|
1538
|
-
};
|
|
1539
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1540
|
-
if (headerKey !== undefined) {
|
|
1541
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1542
|
-
}
|
|
1543
|
-
if (data.code !== undefined) {
|
|
1544
|
-
return sanitizeErrorCode(data.code);
|
|
1545
|
-
}
|
|
1546
|
-
if (data["__type"] !== undefined) {
|
|
1547
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1548
|
-
}
|
|
1549
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|