@aws-sdk/client-service-catalog-appregistry 3.474.0 → 3.477.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/protocols/Aws_restJson1.js +143 -324
- package/dist-es/protocols/Aws_restJson1.js +144 -325
- package/package.json +5 -4
|
@@ -1,61 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const ServiceCatalogAppRegistryServiceException_1 = require("../models/ServiceCatalogAppRegistryServiceException");
|
|
9
9
|
const se_AssociateAttributeGroupCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
12
|
+
b.bp("/applications/{application}/attribute-groups/{attributeGroup}");
|
|
13
|
+
b.p("application", () => input.application, "{application}", false);
|
|
14
|
+
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
16
15
|
let body;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
hostname,
|
|
20
|
-
port,
|
|
21
|
-
method: "PUT",
|
|
22
|
-
headers,
|
|
23
|
-
path: resolvedPath,
|
|
24
|
-
body,
|
|
25
|
-
});
|
|
16
|
+
b.m("PUT").h(headers).b(body);
|
|
17
|
+
return b.build();
|
|
26
18
|
};
|
|
27
19
|
exports.se_AssociateAttributeGroupCommand = se_AssociateAttributeGroupCommand;
|
|
28
20
|
const se_AssociateResourceCommand = async (input, context) => {
|
|
29
|
-
const
|
|
21
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
30
22
|
const headers = {
|
|
31
23
|
"content-type": "application/json",
|
|
32
24
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
|
|
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);
|
|
38
29
|
let body;
|
|
39
30
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
40
31
|
options: (_) => (0, smithy_client_1._json)(_),
|
|
41
32
|
}));
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
hostname,
|
|
45
|
-
port,
|
|
46
|
-
method: "PUT",
|
|
47
|
-
headers,
|
|
48
|
-
path: resolvedPath,
|
|
49
|
-
body,
|
|
50
|
-
});
|
|
33
|
+
b.m("PUT").h(headers).b(body);
|
|
34
|
+
return b.build();
|
|
51
35
|
};
|
|
52
36
|
exports.se_AssociateResourceCommand = se_AssociateResourceCommand;
|
|
53
37
|
const se_CreateApplicationCommand = async (input, context) => {
|
|
54
|
-
const
|
|
38
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
55
39
|
const headers = {
|
|
56
40
|
"content-type": "application/json",
|
|
57
41
|
};
|
|
58
|
-
|
|
42
|
+
b.bp("/applications");
|
|
59
43
|
let body;
|
|
60
44
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
61
45
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -63,23 +47,16 @@ const se_CreateApplicationCommand = async (input, context) => {
|
|
|
63
47
|
name: [],
|
|
64
48
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
65
49
|
}));
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
hostname,
|
|
69
|
-
port,
|
|
70
|
-
method: "POST",
|
|
71
|
-
headers,
|
|
72
|
-
path: resolvedPath,
|
|
73
|
-
body,
|
|
74
|
-
});
|
|
50
|
+
b.m("POST").h(headers).b(body);
|
|
51
|
+
return b.build();
|
|
75
52
|
};
|
|
76
53
|
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
77
54
|
const se_CreateAttributeGroupCommand = async (input, context) => {
|
|
78
|
-
const
|
|
55
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
79
56
|
const headers = {
|
|
80
57
|
"content-type": "application/json",
|
|
81
58
|
};
|
|
82
|
-
|
|
59
|
+
b.bp("/attribute-groups");
|
|
83
60
|
let body;
|
|
84
61
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
85
62
|
attributes: [],
|
|
@@ -88,429 +65,267 @@ const se_CreateAttributeGroupCommand = async (input, context) => {
|
|
|
88
65
|
name: [],
|
|
89
66
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
90
67
|
}));
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
hostname,
|
|
94
|
-
port,
|
|
95
|
-
method: "POST",
|
|
96
|
-
headers,
|
|
97
|
-
path: resolvedPath,
|
|
98
|
-
body,
|
|
99
|
-
});
|
|
68
|
+
b.m("POST").h(headers).b(body);
|
|
69
|
+
return b.build();
|
|
100
70
|
};
|
|
101
71
|
exports.se_CreateAttributeGroupCommand = se_CreateAttributeGroupCommand;
|
|
102
72
|
const se_DeleteApplicationCommand = async (input, context) => {
|
|
103
|
-
const
|
|
73
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
104
74
|
const headers = {};
|
|
105
|
-
|
|
106
|
-
|
|
75
|
+
b.bp("/applications/{application}");
|
|
76
|
+
b.p("application", () => input.application, "{application}", false);
|
|
107
77
|
let body;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
hostname,
|
|
111
|
-
port,
|
|
112
|
-
method: "DELETE",
|
|
113
|
-
headers,
|
|
114
|
-
path: resolvedPath,
|
|
115
|
-
body,
|
|
116
|
-
});
|
|
78
|
+
b.m("DELETE").h(headers).b(body);
|
|
79
|
+
return b.build();
|
|
117
80
|
};
|
|
118
81
|
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
119
82
|
const se_DeleteAttributeGroupCommand = async (input, context) => {
|
|
120
|
-
const
|
|
83
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
121
84
|
const headers = {};
|
|
122
|
-
|
|
123
|
-
|
|
85
|
+
b.bp("/attribute-groups/{attributeGroup}");
|
|
86
|
+
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
124
87
|
let body;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
hostname,
|
|
128
|
-
port,
|
|
129
|
-
method: "DELETE",
|
|
130
|
-
headers,
|
|
131
|
-
path: resolvedPath,
|
|
132
|
-
body,
|
|
133
|
-
});
|
|
88
|
+
b.m("DELETE").h(headers).b(body);
|
|
89
|
+
return b.build();
|
|
134
90
|
};
|
|
135
91
|
exports.se_DeleteAttributeGroupCommand = se_DeleteAttributeGroupCommand;
|
|
136
92
|
const se_DisassociateAttributeGroupCommand = async (input, context) => {
|
|
137
|
-
const
|
|
93
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
138
94
|
const headers = {};
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
95
|
+
b.bp("/applications/{application}/attribute-groups/{attributeGroup}");
|
|
96
|
+
b.p("application", () => input.application, "{application}", false);
|
|
97
|
+
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
143
98
|
let body;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
hostname,
|
|
147
|
-
port,
|
|
148
|
-
method: "DELETE",
|
|
149
|
-
headers,
|
|
150
|
-
path: resolvedPath,
|
|
151
|
-
body,
|
|
152
|
-
});
|
|
99
|
+
b.m("DELETE").h(headers).b(body);
|
|
100
|
+
return b.build();
|
|
153
101
|
};
|
|
154
102
|
exports.se_DisassociateAttributeGroupCommand = se_DisassociateAttributeGroupCommand;
|
|
155
103
|
const se_DisassociateResourceCommand = async (input, context) => {
|
|
156
|
-
const
|
|
104
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
157
105
|
const headers = {};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
|
|
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);
|
|
163
110
|
let body;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
hostname,
|
|
167
|
-
port,
|
|
168
|
-
method: "DELETE",
|
|
169
|
-
headers,
|
|
170
|
-
path: resolvedPath,
|
|
171
|
-
body,
|
|
172
|
-
});
|
|
111
|
+
b.m("DELETE").h(headers).b(body);
|
|
112
|
+
return b.build();
|
|
173
113
|
};
|
|
174
114
|
exports.se_DisassociateResourceCommand = se_DisassociateResourceCommand;
|
|
175
115
|
const se_GetApplicationCommand = async (input, context) => {
|
|
176
|
-
const
|
|
116
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
177
117
|
const headers = {};
|
|
178
|
-
|
|
179
|
-
|
|
118
|
+
b.bp("/applications/{application}");
|
|
119
|
+
b.p("application", () => input.application, "{application}", false);
|
|
180
120
|
let body;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
hostname,
|
|
184
|
-
port,
|
|
185
|
-
method: "GET",
|
|
186
|
-
headers,
|
|
187
|
-
path: resolvedPath,
|
|
188
|
-
body,
|
|
189
|
-
});
|
|
121
|
+
b.m("GET").h(headers).b(body);
|
|
122
|
+
return b.build();
|
|
190
123
|
};
|
|
191
124
|
exports.se_GetApplicationCommand = se_GetApplicationCommand;
|
|
192
125
|
const se_GetAssociatedResourceCommand = async (input, context) => {
|
|
193
|
-
const
|
|
126
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
194
127
|
const headers = {};
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
|
|
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);
|
|
200
132
|
const query = (0, smithy_client_1.map)({
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
() => (input.resourceTagStatus || []).map((_entry) => _entry),
|
|
205
|
-
],
|
|
206
|
-
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
133
|
+
[_nT]: [, input[_nT]],
|
|
134
|
+
[_rTS]: [() => input.resourceTagStatus !== void 0, () => (input[_rTS] || []).map((_entry) => _entry)],
|
|
135
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
207
136
|
});
|
|
208
137
|
let body;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
hostname,
|
|
212
|
-
port,
|
|
213
|
-
method: "GET",
|
|
214
|
-
headers,
|
|
215
|
-
path: resolvedPath,
|
|
216
|
-
query,
|
|
217
|
-
body,
|
|
218
|
-
});
|
|
138
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
139
|
+
return b.build();
|
|
219
140
|
};
|
|
220
141
|
exports.se_GetAssociatedResourceCommand = se_GetAssociatedResourceCommand;
|
|
221
142
|
const se_GetAttributeGroupCommand = async (input, context) => {
|
|
222
|
-
const
|
|
143
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
223
144
|
const headers = {};
|
|
224
|
-
|
|
225
|
-
|
|
145
|
+
b.bp("/attribute-groups/{attributeGroup}");
|
|
146
|
+
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
226
147
|
let body;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
hostname,
|
|
230
|
-
port,
|
|
231
|
-
method: "GET",
|
|
232
|
-
headers,
|
|
233
|
-
path: resolvedPath,
|
|
234
|
-
body,
|
|
235
|
-
});
|
|
148
|
+
b.m("GET").h(headers).b(body);
|
|
149
|
+
return b.build();
|
|
236
150
|
};
|
|
237
151
|
exports.se_GetAttributeGroupCommand = se_GetAttributeGroupCommand;
|
|
238
152
|
const se_GetConfigurationCommand = async (input, context) => {
|
|
239
|
-
const
|
|
153
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
240
154
|
const headers = {
|
|
241
155
|
"content-type": "application/json",
|
|
242
156
|
};
|
|
243
|
-
|
|
157
|
+
b.bp("/configuration");
|
|
244
158
|
let body;
|
|
245
159
|
body = "";
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
hostname,
|
|
249
|
-
port,
|
|
250
|
-
method: "GET",
|
|
251
|
-
headers,
|
|
252
|
-
path: resolvedPath,
|
|
253
|
-
body,
|
|
254
|
-
});
|
|
160
|
+
b.m("GET").h(headers).b(body);
|
|
161
|
+
return b.build();
|
|
255
162
|
};
|
|
256
163
|
exports.se_GetConfigurationCommand = se_GetConfigurationCommand;
|
|
257
164
|
const se_ListApplicationsCommand = async (input, context) => {
|
|
258
|
-
const
|
|
165
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
259
166
|
const headers = {};
|
|
260
|
-
|
|
167
|
+
b.bp("/applications");
|
|
261
168
|
const query = (0, smithy_client_1.map)({
|
|
262
|
-
|
|
263
|
-
|
|
169
|
+
[_nT]: [, input[_nT]],
|
|
170
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
264
171
|
});
|
|
265
172
|
let body;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
hostname,
|
|
269
|
-
port,
|
|
270
|
-
method: "GET",
|
|
271
|
-
headers,
|
|
272
|
-
path: resolvedPath,
|
|
273
|
-
query,
|
|
274
|
-
body,
|
|
275
|
-
});
|
|
173
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
174
|
+
return b.build();
|
|
276
175
|
};
|
|
277
176
|
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
278
177
|
const se_ListAssociatedAttributeGroupsCommand = async (input, context) => {
|
|
279
|
-
const
|
|
178
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
280
179
|
const headers = {};
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
180
|
+
b.bp("/applications/{application}/attribute-groups");
|
|
181
|
+
b.p("application", () => input.application, "{application}", false);
|
|
284
182
|
const query = (0, smithy_client_1.map)({
|
|
285
|
-
|
|
286
|
-
|
|
183
|
+
[_nT]: [, input[_nT]],
|
|
184
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
287
185
|
});
|
|
288
186
|
let body;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
hostname,
|
|
292
|
-
port,
|
|
293
|
-
method: "GET",
|
|
294
|
-
headers,
|
|
295
|
-
path: resolvedPath,
|
|
296
|
-
query,
|
|
297
|
-
body,
|
|
298
|
-
});
|
|
187
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
188
|
+
return b.build();
|
|
299
189
|
};
|
|
300
190
|
exports.se_ListAssociatedAttributeGroupsCommand = se_ListAssociatedAttributeGroupsCommand;
|
|
301
191
|
const se_ListAssociatedResourcesCommand = async (input, context) => {
|
|
302
|
-
const
|
|
192
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
303
193
|
const headers = {};
|
|
304
|
-
|
|
305
|
-
|
|
194
|
+
b.bp("/applications/{application}/resources");
|
|
195
|
+
b.p("application", () => input.application, "{application}", false);
|
|
306
196
|
const query = (0, smithy_client_1.map)({
|
|
307
|
-
|
|
308
|
-
|
|
197
|
+
[_nT]: [, input[_nT]],
|
|
198
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
309
199
|
});
|
|
310
200
|
let body;
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
hostname,
|
|
314
|
-
port,
|
|
315
|
-
method: "GET",
|
|
316
|
-
headers,
|
|
317
|
-
path: resolvedPath,
|
|
318
|
-
query,
|
|
319
|
-
body,
|
|
320
|
-
});
|
|
201
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
202
|
+
return b.build();
|
|
321
203
|
};
|
|
322
204
|
exports.se_ListAssociatedResourcesCommand = se_ListAssociatedResourcesCommand;
|
|
323
205
|
const se_ListAttributeGroupsCommand = async (input, context) => {
|
|
324
|
-
const
|
|
206
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
325
207
|
const headers = {};
|
|
326
|
-
|
|
208
|
+
b.bp("/attribute-groups");
|
|
327
209
|
const query = (0, smithy_client_1.map)({
|
|
328
|
-
|
|
329
|
-
|
|
210
|
+
[_nT]: [, input[_nT]],
|
|
211
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
330
212
|
});
|
|
331
213
|
let body;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
hostname,
|
|
335
|
-
port,
|
|
336
|
-
method: "GET",
|
|
337
|
-
headers,
|
|
338
|
-
path: resolvedPath,
|
|
339
|
-
query,
|
|
340
|
-
body,
|
|
341
|
-
});
|
|
214
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
215
|
+
return b.build();
|
|
342
216
|
};
|
|
343
217
|
exports.se_ListAttributeGroupsCommand = se_ListAttributeGroupsCommand;
|
|
344
218
|
const se_ListAttributeGroupsForApplicationCommand = async (input, context) => {
|
|
345
|
-
const
|
|
219
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
346
220
|
const headers = {};
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
221
|
+
b.bp("/applications/{application}/attribute-group-details");
|
|
222
|
+
b.p("application", () => input.application, "{application}", false);
|
|
350
223
|
const query = (0, smithy_client_1.map)({
|
|
351
|
-
|
|
352
|
-
|
|
224
|
+
[_nT]: [, input[_nT]],
|
|
225
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
353
226
|
});
|
|
354
227
|
let body;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
hostname,
|
|
358
|
-
port,
|
|
359
|
-
method: "GET",
|
|
360
|
-
headers,
|
|
361
|
-
path: resolvedPath,
|
|
362
|
-
query,
|
|
363
|
-
body,
|
|
364
|
-
});
|
|
228
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
229
|
+
return b.build();
|
|
365
230
|
};
|
|
366
231
|
exports.se_ListAttributeGroupsForApplicationCommand = se_ListAttributeGroupsForApplicationCommand;
|
|
367
232
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
368
|
-
const
|
|
233
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
369
234
|
const headers = {};
|
|
370
|
-
|
|
371
|
-
|
|
235
|
+
b.bp("/tags/{resourceArn}");
|
|
236
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
372
237
|
let body;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
hostname,
|
|
376
|
-
port,
|
|
377
|
-
method: "GET",
|
|
378
|
-
headers,
|
|
379
|
-
path: resolvedPath,
|
|
380
|
-
body,
|
|
381
|
-
});
|
|
238
|
+
b.m("GET").h(headers).b(body);
|
|
239
|
+
return b.build();
|
|
382
240
|
};
|
|
383
241
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
384
242
|
const se_PutConfigurationCommand = async (input, context) => {
|
|
385
|
-
const
|
|
243
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
386
244
|
const headers = {
|
|
387
245
|
"content-type": "application/json",
|
|
388
246
|
};
|
|
389
|
-
|
|
247
|
+
b.bp("/configuration");
|
|
390
248
|
let body;
|
|
391
249
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
392
250
|
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
393
251
|
}));
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
hostname,
|
|
397
|
-
port,
|
|
398
|
-
method: "PUT",
|
|
399
|
-
headers,
|
|
400
|
-
path: resolvedPath,
|
|
401
|
-
body,
|
|
402
|
-
});
|
|
252
|
+
b.m("PUT").h(headers).b(body);
|
|
253
|
+
return b.build();
|
|
403
254
|
};
|
|
404
255
|
exports.se_PutConfigurationCommand = se_PutConfigurationCommand;
|
|
405
256
|
const se_SyncResourceCommand = async (input, context) => {
|
|
406
|
-
const
|
|
257
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
407
258
|
const headers = {};
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
259
|
+
b.bp("/sync/{resourceType}/{resource}");
|
|
260
|
+
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
261
|
+
b.p("resource", () => input.resource, "{resource}", false);
|
|
411
262
|
let body;
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
hostname,
|
|
415
|
-
port,
|
|
416
|
-
method: "POST",
|
|
417
|
-
headers,
|
|
418
|
-
path: resolvedPath,
|
|
419
|
-
body,
|
|
420
|
-
});
|
|
263
|
+
b.m("POST").h(headers).b(body);
|
|
264
|
+
return b.build();
|
|
421
265
|
};
|
|
422
266
|
exports.se_SyncResourceCommand = se_SyncResourceCommand;
|
|
423
267
|
const se_TagResourceCommand = async (input, context) => {
|
|
424
|
-
const
|
|
268
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
425
269
|
const headers = {
|
|
426
270
|
"content-type": "application/json",
|
|
427
271
|
};
|
|
428
|
-
|
|
429
|
-
|
|
272
|
+
b.bp("/tags/{resourceArn}");
|
|
273
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
430
274
|
let body;
|
|
431
275
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
432
276
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
433
277
|
}));
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
hostname,
|
|
437
|
-
port,
|
|
438
|
-
method: "POST",
|
|
439
|
-
headers,
|
|
440
|
-
path: resolvedPath,
|
|
441
|
-
body,
|
|
442
|
-
});
|
|
278
|
+
b.m("POST").h(headers).b(body);
|
|
279
|
+
return b.build();
|
|
443
280
|
};
|
|
444
281
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
445
282
|
const se_UntagResourceCommand = async (input, context) => {
|
|
446
|
-
const
|
|
283
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
447
284
|
const headers = {};
|
|
448
|
-
|
|
449
|
-
|
|
285
|
+
b.bp("/tags/{resourceArn}");
|
|
286
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
450
287
|
const query = (0, smithy_client_1.map)({
|
|
451
|
-
|
|
288
|
+
[_tK]: [
|
|
452
289
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
453
|
-
() => (input
|
|
290
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
454
291
|
],
|
|
455
292
|
});
|
|
456
293
|
let body;
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
hostname,
|
|
460
|
-
port,
|
|
461
|
-
method: "DELETE",
|
|
462
|
-
headers,
|
|
463
|
-
path: resolvedPath,
|
|
464
|
-
query,
|
|
465
|
-
body,
|
|
466
|
-
});
|
|
294
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
295
|
+
return b.build();
|
|
467
296
|
};
|
|
468
297
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
469
298
|
const se_UpdateApplicationCommand = async (input, context) => {
|
|
470
|
-
const
|
|
299
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
471
300
|
const headers = {
|
|
472
301
|
"content-type": "application/json",
|
|
473
302
|
};
|
|
474
|
-
|
|
475
|
-
|
|
303
|
+
b.bp("/applications/{application}");
|
|
304
|
+
b.p("application", () => input.application, "{application}", false);
|
|
476
305
|
let body;
|
|
477
306
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
478
307
|
description: [],
|
|
479
308
|
name: [],
|
|
480
309
|
}));
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
hostname,
|
|
484
|
-
port,
|
|
485
|
-
method: "PATCH",
|
|
486
|
-
headers,
|
|
487
|
-
path: resolvedPath,
|
|
488
|
-
body,
|
|
489
|
-
});
|
|
310
|
+
b.m("PATCH").h(headers).b(body);
|
|
311
|
+
return b.build();
|
|
490
312
|
};
|
|
491
313
|
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
492
314
|
const se_UpdateAttributeGroupCommand = async (input, context) => {
|
|
493
|
-
const
|
|
315
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
494
316
|
const headers = {
|
|
495
317
|
"content-type": "application/json",
|
|
496
318
|
};
|
|
497
|
-
|
|
498
|
-
|
|
319
|
+
b.bp("/attribute-groups/{attributeGroup}");
|
|
320
|
+
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
499
321
|
let body;
|
|
500
322
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
501
323
|
attributes: [],
|
|
502
324
|
description: [],
|
|
503
325
|
name: [],
|
|
504
326
|
}));
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
hostname,
|
|
508
|
-
port,
|
|
509
|
-
method: "PATCH",
|
|
510
|
-
headers,
|
|
511
|
-
path: resolvedPath,
|
|
512
|
-
body,
|
|
513
|
-
});
|
|
327
|
+
b.m("PATCH").h(headers).b(body);
|
|
328
|
+
return b.build();
|
|
514
329
|
};
|
|
515
330
|
exports.se_UpdateAttributeGroupCommand = se_UpdateAttributeGroupCommand;
|
|
516
331
|
const de_AssociateAttributeGroupCommand = async (output, context) => {
|
|
@@ -1688,6 +1503,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1688
1503
|
value !== "" &&
|
|
1689
1504
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1690
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";
|
|
1691
1510
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1692
1511
|
if (encoded.length) {
|
|
1693
1512
|
return JSON.parse(encoded);
|