@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.
@@ -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 protocol_http_1 = require("@smithy/protocol-http");
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {};
12
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
13
- "/applications/{application}/attribute-groups/{attributeGroup}";
14
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
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
- return new protocol_http_1.HttpRequest({
18
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
21
+ const b = (0, core_1.requestBuilder)(input, context);
30
22
  const headers = {
31
23
  "content-type": "application/json",
32
24
  };
33
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
34
- "/applications/{application}/resources/{resourceType}/{resource}";
35
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
36
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
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
- return new protocol_http_1.HttpRequest({
43
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
38
+ const b = (0, core_1.requestBuilder)(input, context);
55
39
  const headers = {
56
40
  "content-type": "application/json",
57
41
  };
58
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
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
- return new protocol_http_1.HttpRequest({
67
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
55
+ const b = (0, core_1.requestBuilder)(input, context);
79
56
  const headers = {
80
57
  "content-type": "application/json",
81
58
  };
82
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups";
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
- return new protocol_http_1.HttpRequest({
92
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = (0, core_1.requestBuilder)(input, context);
104
74
  const headers = {};
105
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}";
106
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
75
+ b.bp("/applications/{application}");
76
+ b.p("application", () => input.application, "{application}", false);
107
77
  let body;
108
- return new protocol_http_1.HttpRequest({
109
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
83
+ const b = (0, core_1.requestBuilder)(input, context);
121
84
  const headers = {};
122
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}";
123
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
85
+ b.bp("/attribute-groups/{attributeGroup}");
86
+ b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
124
87
  let body;
125
- return new protocol_http_1.HttpRequest({
126
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
93
+ const b = (0, core_1.requestBuilder)(input, context);
138
94
  const headers = {};
139
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
140
- "/applications/{application}/attribute-groups/{attributeGroup}";
141
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
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
- return new protocol_http_1.HttpRequest({
145
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
104
+ const b = (0, core_1.requestBuilder)(input, context);
157
105
  const headers = {};
158
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
159
- "/applications/{application}/resources/{resourceType}/{resource}";
160
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
161
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
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
- return new protocol_http_1.HttpRequest({
165
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
116
+ const b = (0, core_1.requestBuilder)(input, context);
177
117
  const headers = {};
178
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}";
179
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
118
+ b.bp("/applications/{application}");
119
+ b.p("application", () => input.application, "{application}", false);
180
120
  let body;
181
- return new protocol_http_1.HttpRequest({
182
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
126
+ const b = (0, core_1.requestBuilder)(input, context);
194
127
  const headers = {};
195
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
196
- "/applications/{application}/resources/{resourceType}/{resource}";
197
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
198
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
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
- nextToken: [, input.nextToken],
202
- resourceTagStatus: [
203
- () => input.resourceTagStatus !== void 0,
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
- return new protocol_http_1.HttpRequest({
210
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
143
+ const b = (0, core_1.requestBuilder)(input, context);
223
144
  const headers = {};
224
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}";
225
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
145
+ b.bp("/attribute-groups/{attributeGroup}");
146
+ b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
226
147
  let body;
227
- return new protocol_http_1.HttpRequest({
228
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
+ const b = (0, core_1.requestBuilder)(input, context);
240
154
  const headers = {
241
155
  "content-type": "application/json",
242
156
  };
243
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
157
+ b.bp("/configuration");
244
158
  let body;
245
159
  body = "";
246
- return new protocol_http_1.HttpRequest({
247
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
165
+ const b = (0, core_1.requestBuilder)(input, context);
259
166
  const headers = {};
260
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
167
+ b.bp("/applications");
261
168
  const query = (0, smithy_client_1.map)({
262
- nextToken: [, input.nextToken],
263
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
169
+ [_nT]: [, input[_nT]],
170
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
264
171
  });
265
172
  let body;
266
- return new protocol_http_1.HttpRequest({
267
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
178
+ const b = (0, core_1.requestBuilder)(input, context);
280
179
  const headers = {};
281
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
282
- "/applications/{application}/attribute-groups";
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
- nextToken: [, input.nextToken],
286
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
183
+ [_nT]: [, input[_nT]],
184
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
287
185
  });
288
186
  let body;
289
- return new protocol_http_1.HttpRequest({
290
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
192
+ const b = (0, core_1.requestBuilder)(input, context);
303
193
  const headers = {};
304
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}/resources";
305
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
194
+ b.bp("/applications/{application}/resources");
195
+ b.p("application", () => input.application, "{application}", false);
306
196
  const query = (0, smithy_client_1.map)({
307
- nextToken: [, input.nextToken],
308
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
197
+ [_nT]: [, input[_nT]],
198
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
309
199
  });
310
200
  let body;
311
- return new protocol_http_1.HttpRequest({
312
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
206
+ const b = (0, core_1.requestBuilder)(input, context);
325
207
  const headers = {};
326
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups";
208
+ b.bp("/attribute-groups");
327
209
  const query = (0, smithy_client_1.map)({
328
- nextToken: [, input.nextToken],
329
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
210
+ [_nT]: [, input[_nT]],
211
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
330
212
  });
331
213
  let body;
332
- return new protocol_http_1.HttpRequest({
333
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
219
+ const b = (0, core_1.requestBuilder)(input, context);
346
220
  const headers = {};
347
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
348
- "/applications/{application}/attribute-group-details";
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
- nextToken: [, input.nextToken],
352
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
224
+ [_nT]: [, input[_nT]],
225
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
353
226
  });
354
227
  let body;
355
- return new protocol_http_1.HttpRequest({
356
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
233
+ const b = (0, core_1.requestBuilder)(input, context);
369
234
  const headers = {};
370
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
371
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
235
+ b.bp("/tags/{resourceArn}");
236
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
372
237
  let body;
373
- return new protocol_http_1.HttpRequest({
374
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
243
+ const b = (0, core_1.requestBuilder)(input, context);
386
244
  const headers = {
387
245
  "content-type": "application/json",
388
246
  };
389
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
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
- return new protocol_http_1.HttpRequest({
395
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
257
+ const b = (0, core_1.requestBuilder)(input, context);
407
258
  const headers = {};
408
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sync/{resourceType}/{resource}";
409
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
410
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
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
- return new protocol_http_1.HttpRequest({
413
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
268
+ const b = (0, core_1.requestBuilder)(input, context);
425
269
  const headers = {
426
270
  "content-type": "application/json",
427
271
  };
428
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
429
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
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
- return new protocol_http_1.HttpRequest({
435
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
283
+ const b = (0, core_1.requestBuilder)(input, context);
447
284
  const headers = {};
448
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
449
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
285
+ b.bp("/tags/{resourceArn}");
286
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
450
287
  const query = (0, smithy_client_1.map)({
451
- tagKeys: [
288
+ [_tK]: [
452
289
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
453
- () => (input.tagKeys || []).map((_entry) => _entry),
290
+ () => (input[_tK] || []).map((_entry) => _entry),
454
291
  ],
455
292
  });
456
293
  let body;
457
- return new protocol_http_1.HttpRequest({
458
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
299
+ const b = (0, core_1.requestBuilder)(input, context);
471
300
  const headers = {
472
301
  "content-type": "application/json",
473
302
  };
474
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}";
475
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
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
- return new protocol_http_1.HttpRequest({
482
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
315
+ const b = (0, core_1.requestBuilder)(input, context);
494
316
  const headers = {
495
317
  "content-type": "application/json",
496
318
  };
497
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}";
498
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
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
- return new protocol_http_1.HttpRequest({
506
- protocol,
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);