@aws-sdk/client-appconfig 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,38 +1,30 @@
1
1
  import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { requestBuilder as rb } from "@smithy/core";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { AppConfigServiceException as __BaseException } from "../models/AppConfigServiceException";
5
5
  import { BadRequestException, ConflictException, InternalServerException, PayloadTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, } from "../models/models_0";
6
6
  export const se_CreateApplicationCommand = async (input, context) => {
7
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
+ const b = rb(input, context);
8
8
  const headers = {
9
9
  "content-type": "application/json",
10
10
  };
11
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
11
+ b.bp("/applications");
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
14
  Description: [],
15
15
  Name: [],
16
16
  Tags: (_) => _json(_),
17
17
  }));
18
- return new __HttpRequest({
19
- protocol,
20
- hostname,
21
- port,
22
- method: "POST",
23
- headers,
24
- path: resolvedPath,
25
- body,
26
- });
18
+ b.m("POST").h(headers).b(body);
19
+ return b.build();
27
20
  };
28
21
  export const se_CreateConfigurationProfileCommand = async (input, context) => {
29
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
22
+ const b = rb(input, context);
30
23
  const headers = {
31
24
  "content-type": "application/json",
32
25
  };
33
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
34
- "/applications/{ApplicationId}/configurationprofiles";
35
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
26
+ b.bp("/applications/{ApplicationId}/configurationprofiles");
27
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
36
28
  let body;
37
29
  body = JSON.stringify(take(input, {
38
30
  Description: [],
@@ -44,22 +36,15 @@ export const se_CreateConfigurationProfileCommand = async (input, context) => {
44
36
  Type: [],
45
37
  Validators: (_) => _json(_),
46
38
  }));
47
- return new __HttpRequest({
48
- protocol,
49
- hostname,
50
- port,
51
- method: "POST",
52
- headers,
53
- path: resolvedPath,
54
- body,
55
- });
39
+ b.m("POST").h(headers).b(body);
40
+ return b.build();
56
41
  };
57
42
  export const se_CreateDeploymentStrategyCommand = async (input, context) => {
58
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
43
+ const b = rb(input, context);
59
44
  const headers = {
60
45
  "content-type": "application/json",
61
46
  };
62
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deploymentstrategies";
47
+ b.bp("/deploymentstrategies");
63
48
  let body;
64
49
  body = JSON.stringify(take(input, {
65
50
  DeploymentDurationInMinutes: [],
@@ -71,24 +56,16 @@ export const se_CreateDeploymentStrategyCommand = async (input, context) => {
71
56
  ReplicateTo: [],
72
57
  Tags: (_) => _json(_),
73
58
  }));
74
- return new __HttpRequest({
75
- protocol,
76
- hostname,
77
- port,
78
- method: "POST",
79
- headers,
80
- path: resolvedPath,
81
- body,
82
- });
59
+ b.m("POST").h(headers).b(body);
60
+ return b.build();
83
61
  };
84
62
  export const se_CreateEnvironmentCommand = async (input, context) => {
85
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
63
+ const b = rb(input, context);
86
64
  const headers = {
87
65
  "content-type": "application/json",
88
66
  };
89
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
90
- "/applications/{ApplicationId}/environments";
91
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
67
+ b.bp("/applications/{ApplicationId}/environments");
68
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
92
69
  let body;
93
70
  body = JSON.stringify(take(input, {
94
71
  Description: [],
@@ -96,26 +73,16 @@ export const se_CreateEnvironmentCommand = async (input, context) => {
96
73
  Name: [],
97
74
  Tags: (_) => _json(_),
98
75
  }));
99
- return new __HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "POST",
104
- headers,
105
- path: resolvedPath,
106
- body,
107
- });
76
+ b.m("POST").h(headers).b(body);
77
+ return b.build();
108
78
  };
109
79
  export const se_CreateExtensionCommand = async (input, context) => {
110
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
80
+ const b = rb(input, context);
111
81
  const headers = map({}, isSerializableHeaderValue, {
112
82
  "content-type": "application/json",
113
- "latest-version-number": [
114
- () => isSerializableHeaderValue(input.LatestVersionNumber),
115
- () => input.LatestVersionNumber.toString(),
116
- ],
83
+ [_lvn]: [() => isSerializableHeaderValue(input[_LVN]), () => input[_LVN].toString()],
117
84
  });
118
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions";
85
+ b.bp("/extensions");
119
86
  let body;
120
87
  body = JSON.stringify(take(input, {
121
88
  Actions: (_) => _json(_),
@@ -124,22 +91,15 @@ export const se_CreateExtensionCommand = async (input, context) => {
124
91
  Parameters: (_) => _json(_),
125
92
  Tags: (_) => _json(_),
126
93
  }));
127
- return new __HttpRequest({
128
- protocol,
129
- hostname,
130
- port,
131
- method: "POST",
132
- headers,
133
- path: resolvedPath,
134
- body,
135
- });
94
+ b.m("POST").h(headers).b(body);
95
+ return b.build();
136
96
  };
137
97
  export const se_CreateExtensionAssociationCommand = async (input, context) => {
138
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
98
+ const b = rb(input, context);
139
99
  const headers = {
140
100
  "content-type": "application/json",
141
101
  };
142
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensionassociations";
102
+ b.bp("/extensionassociations");
143
103
  let body;
144
104
  body = JSON.stringify(take(input, {
145
105
  ExtensionIdentifier: [],
@@ -148,542 +108,318 @@ export const se_CreateExtensionAssociationCommand = async (input, context) => {
148
108
  ResourceIdentifier: [],
149
109
  Tags: (_) => _json(_),
150
110
  }));
151
- return new __HttpRequest({
152
- protocol,
153
- hostname,
154
- port,
155
- method: "POST",
156
- headers,
157
- path: resolvedPath,
158
- body,
159
- });
111
+ b.m("POST").h(headers).b(body);
112
+ return b.build();
160
113
  };
161
114
  export const se_CreateHostedConfigurationVersionCommand = async (input, context) => {
162
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
115
+ const b = rb(input, context);
163
116
  const headers = map({}, isSerializableHeaderValue, {
164
- "content-type": input.ContentType || "application/octet-stream",
165
- description: input.Description,
166
- "latest-version-number": [
167
- () => isSerializableHeaderValue(input.LatestVersionNumber),
168
- () => input.LatestVersionNumber.toString(),
169
- ],
170
- versionlabel: input.VersionLabel,
171
- });
172
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
173
- "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions";
174
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
175
- resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
117
+ [_ct]: input[_CT] || "application/octet-stream",
118
+ [_d]: input[_D],
119
+ [_lvn]: [() => isSerializableHeaderValue(input[_LVN]), () => input[_LVN].toString()],
120
+ [_v]: input[_VL],
121
+ });
122
+ b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions");
123
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
124
+ b.p("ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
176
125
  let body;
177
126
  if (input.Content !== undefined) {
178
127
  body = input.Content;
179
128
  }
180
- return new __HttpRequest({
181
- protocol,
182
- hostname,
183
- port,
184
- method: "POST",
185
- headers,
186
- path: resolvedPath,
187
- body,
188
- });
129
+ b.m("POST").h(headers).b(body);
130
+ return b.build();
189
131
  };
190
132
  export const se_DeleteApplicationCommand = async (input, context) => {
191
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
133
+ const b = rb(input, context);
192
134
  const headers = {};
193
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}";
194
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
135
+ b.bp("/applications/{ApplicationId}");
136
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
195
137
  let body;
196
- return new __HttpRequest({
197
- protocol,
198
- hostname,
199
- port,
200
- method: "DELETE",
201
- headers,
202
- path: resolvedPath,
203
- body,
204
- });
138
+ b.m("DELETE").h(headers).b(body);
139
+ return b.build();
205
140
  };
206
141
  export const se_DeleteConfigurationProfileCommand = async (input, context) => {
207
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
142
+ const b = rb(input, context);
208
143
  const headers = {};
209
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
210
- "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}";
211
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
212
- resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
144
+ b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}");
145
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
146
+ b.p("ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
213
147
  let body;
214
- return new __HttpRequest({
215
- protocol,
216
- hostname,
217
- port,
218
- method: "DELETE",
219
- headers,
220
- path: resolvedPath,
221
- body,
222
- });
148
+ b.m("DELETE").h(headers).b(body);
149
+ return b.build();
223
150
  };
224
151
  export const se_DeleteDeploymentStrategyCommand = async (input, context) => {
225
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
152
+ const b = rb(input, context);
226
153
  const headers = {};
227
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
228
- "/deployementstrategies/{DeploymentStrategyId}";
229
- resolvedPath = __resolvedPath(resolvedPath, input, "DeploymentStrategyId", () => input.DeploymentStrategyId, "{DeploymentStrategyId}", false);
154
+ b.bp("/deployementstrategies/{DeploymentStrategyId}");
155
+ b.p("DeploymentStrategyId", () => input.DeploymentStrategyId, "{DeploymentStrategyId}", false);
230
156
  let body;
231
- return new __HttpRequest({
232
- protocol,
233
- hostname,
234
- port,
235
- method: "DELETE",
236
- headers,
237
- path: resolvedPath,
238
- body,
239
- });
157
+ b.m("DELETE").h(headers).b(body);
158
+ return b.build();
240
159
  };
241
160
  export const se_DeleteEnvironmentCommand = async (input, context) => {
242
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
161
+ const b = rb(input, context);
243
162
  const headers = {};
244
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
245
- "/applications/{ApplicationId}/environments/{EnvironmentId}";
246
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
247
- resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
163
+ b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}");
164
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
165
+ b.p("EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
248
166
  let body;
249
- return new __HttpRequest({
250
- protocol,
251
- hostname,
252
- port,
253
- method: "DELETE",
254
- headers,
255
- path: resolvedPath,
256
- body,
257
- });
167
+ b.m("DELETE").h(headers).b(body);
168
+ return b.build();
258
169
  };
259
170
  export const se_DeleteExtensionCommand = async (input, context) => {
260
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
171
+ const b = rb(input, context);
261
172
  const headers = {};
262
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}";
263
- resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionIdentifier", () => input.ExtensionIdentifier, "{ExtensionIdentifier}", false);
173
+ b.bp("/extensions/{ExtensionIdentifier}");
174
+ b.p("ExtensionIdentifier", () => input.ExtensionIdentifier, "{ExtensionIdentifier}", false);
264
175
  const query = map({
265
- version: [() => input.VersionNumber !== void 0, () => input.VersionNumber.toString()],
176
+ [_ve]: [() => input.VersionNumber !== void 0, () => input[_VN].toString()],
266
177
  });
267
178
  let body;
268
- return new __HttpRequest({
269
- protocol,
270
- hostname,
271
- port,
272
- method: "DELETE",
273
- headers,
274
- path: resolvedPath,
275
- query,
276
- body,
277
- });
179
+ b.m("DELETE").h(headers).q(query).b(body);
180
+ return b.build();
278
181
  };
279
182
  export const se_DeleteExtensionAssociationCommand = async (input, context) => {
280
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
183
+ const b = rb(input, context);
281
184
  const headers = {};
282
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
283
- "/extensionassociations/{ExtensionAssociationId}";
284
- resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionAssociationId", () => input.ExtensionAssociationId, "{ExtensionAssociationId}", false);
185
+ b.bp("/extensionassociations/{ExtensionAssociationId}");
186
+ b.p("ExtensionAssociationId", () => input.ExtensionAssociationId, "{ExtensionAssociationId}", false);
285
187
  let body;
286
- return new __HttpRequest({
287
- protocol,
288
- hostname,
289
- port,
290
- method: "DELETE",
291
- headers,
292
- path: resolvedPath,
293
- body,
294
- });
188
+ b.m("DELETE").h(headers).b(body);
189
+ return b.build();
295
190
  };
296
191
  export const se_DeleteHostedConfigurationVersionCommand = async (input, context) => {
297
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
192
+ const b = rb(input, context);
298
193
  const headers = {};
299
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
300
- "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}";
301
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
302
- resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
303
- resolvedPath = __resolvedPath(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
194
+ b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}");
195
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
196
+ b.p("ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
197
+ b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
304
198
  let body;
305
- return new __HttpRequest({
306
- protocol,
307
- hostname,
308
- port,
309
- method: "DELETE",
310
- headers,
311
- path: resolvedPath,
312
- body,
313
- });
199
+ b.m("DELETE").h(headers).b(body);
200
+ return b.build();
314
201
  };
315
202
  export const se_GetApplicationCommand = async (input, context) => {
316
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
203
+ const b = rb(input, context);
317
204
  const headers = {};
318
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}";
319
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
205
+ b.bp("/applications/{ApplicationId}");
206
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
320
207
  let body;
321
- return new __HttpRequest({
322
- protocol,
323
- hostname,
324
- port,
325
- method: "GET",
326
- headers,
327
- path: resolvedPath,
328
- body,
329
- });
208
+ b.m("GET").h(headers).b(body);
209
+ return b.build();
330
210
  };
331
211
  export const se_GetConfigurationCommand = async (input, context) => {
332
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
212
+ const b = rb(input, context);
333
213
  const headers = {};
334
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
335
- "/applications/{Application}/environments/{Environment}/configurations/{Configuration}";
336
- resolvedPath = __resolvedPath(resolvedPath, input, "Application", () => input.Application, "{Application}", false);
337
- resolvedPath = __resolvedPath(resolvedPath, input, "Environment", () => input.Environment, "{Environment}", false);
338
- resolvedPath = __resolvedPath(resolvedPath, input, "Configuration", () => input.Configuration, "{Configuration}", false);
214
+ b.bp("/applications/{Application}/environments/{Environment}/configurations/{Configuration}");
215
+ b.p("Application", () => input.Application, "{Application}", false);
216
+ b.p("Environment", () => input.Environment, "{Environment}", false);
217
+ b.p("Configuration", () => input.Configuration, "{Configuration}", false);
339
218
  const query = map({
340
- client_id: [, __expectNonNull(input.ClientId, `ClientId`)],
341
- client_configuration_version: [, input.ClientConfigurationVersion],
219
+ [_ci]: [, __expectNonNull(input[_CI], `ClientId`)],
220
+ [_ccv]: [, input[_CCV]],
342
221
  });
343
222
  let body;
344
- return new __HttpRequest({
345
- protocol,
346
- hostname,
347
- port,
348
- method: "GET",
349
- headers,
350
- path: resolvedPath,
351
- query,
352
- body,
353
- });
223
+ b.m("GET").h(headers).q(query).b(body);
224
+ return b.build();
354
225
  };
355
226
  export const se_GetConfigurationProfileCommand = async (input, context) => {
356
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
227
+ const b = rb(input, context);
357
228
  const headers = {};
358
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
359
- "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}";
360
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
361
- resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
229
+ b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}");
230
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
231
+ b.p("ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
362
232
  let body;
363
- return new __HttpRequest({
364
- protocol,
365
- hostname,
366
- port,
367
- method: "GET",
368
- headers,
369
- path: resolvedPath,
370
- body,
371
- });
233
+ b.m("GET").h(headers).b(body);
234
+ return b.build();
372
235
  };
373
236
  export const se_GetDeploymentCommand = async (input, context) => {
374
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
237
+ const b = rb(input, context);
375
238
  const headers = {};
376
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
377
- "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}";
378
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
379
- resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
380
- resolvedPath = __resolvedPath(resolvedPath, input, "DeploymentNumber", () => input.DeploymentNumber.toString(), "{DeploymentNumber}", false);
239
+ b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}");
240
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
241
+ b.p("EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
242
+ b.p("DeploymentNumber", () => input.DeploymentNumber.toString(), "{DeploymentNumber}", false);
381
243
  let body;
382
- return new __HttpRequest({
383
- protocol,
384
- hostname,
385
- port,
386
- method: "GET",
387
- headers,
388
- path: resolvedPath,
389
- body,
390
- });
244
+ b.m("GET").h(headers).b(body);
245
+ return b.build();
391
246
  };
392
247
  export const se_GetDeploymentStrategyCommand = async (input, context) => {
393
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
248
+ const b = rb(input, context);
394
249
  const headers = {};
395
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
396
- "/deploymentstrategies/{DeploymentStrategyId}";
397
- resolvedPath = __resolvedPath(resolvedPath, input, "DeploymentStrategyId", () => input.DeploymentStrategyId, "{DeploymentStrategyId}", false);
250
+ b.bp("/deploymentstrategies/{DeploymentStrategyId}");
251
+ b.p("DeploymentStrategyId", () => input.DeploymentStrategyId, "{DeploymentStrategyId}", false);
398
252
  let body;
399
- return new __HttpRequest({
400
- protocol,
401
- hostname,
402
- port,
403
- method: "GET",
404
- headers,
405
- path: resolvedPath,
406
- body,
407
- });
253
+ b.m("GET").h(headers).b(body);
254
+ return b.build();
408
255
  };
409
256
  export const se_GetEnvironmentCommand = async (input, context) => {
410
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
257
+ const b = rb(input, context);
411
258
  const headers = {};
412
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
413
- "/applications/{ApplicationId}/environments/{EnvironmentId}";
414
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
415
- resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
259
+ b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}");
260
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
261
+ b.p("EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
416
262
  let body;
417
- return new __HttpRequest({
418
- protocol,
419
- hostname,
420
- port,
421
- method: "GET",
422
- headers,
423
- path: resolvedPath,
424
- body,
425
- });
263
+ b.m("GET").h(headers).b(body);
264
+ return b.build();
426
265
  };
427
266
  export const se_GetExtensionCommand = async (input, context) => {
428
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
+ const b = rb(input, context);
429
268
  const headers = {};
430
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}";
431
- resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionIdentifier", () => input.ExtensionIdentifier, "{ExtensionIdentifier}", false);
269
+ b.bp("/extensions/{ExtensionIdentifier}");
270
+ b.p("ExtensionIdentifier", () => input.ExtensionIdentifier, "{ExtensionIdentifier}", false);
432
271
  const query = map({
433
- version_number: [() => input.VersionNumber !== void 0, () => input.VersionNumber.toString()],
272
+ [_vn]: [() => input.VersionNumber !== void 0, () => input[_VN].toString()],
434
273
  });
435
274
  let body;
436
- return new __HttpRequest({
437
- protocol,
438
- hostname,
439
- port,
440
- method: "GET",
441
- headers,
442
- path: resolvedPath,
443
- query,
444
- body,
445
- });
275
+ b.m("GET").h(headers).q(query).b(body);
276
+ return b.build();
446
277
  };
447
278
  export const se_GetExtensionAssociationCommand = async (input, context) => {
448
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
279
+ const b = rb(input, context);
449
280
  const headers = {};
450
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
451
- "/extensionassociations/{ExtensionAssociationId}";
452
- resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionAssociationId", () => input.ExtensionAssociationId, "{ExtensionAssociationId}", false);
281
+ b.bp("/extensionassociations/{ExtensionAssociationId}");
282
+ b.p("ExtensionAssociationId", () => input.ExtensionAssociationId, "{ExtensionAssociationId}", false);
453
283
  let body;
454
- return new __HttpRequest({
455
- protocol,
456
- hostname,
457
- port,
458
- method: "GET",
459
- headers,
460
- path: resolvedPath,
461
- body,
462
- });
284
+ b.m("GET").h(headers).b(body);
285
+ return b.build();
463
286
  };
464
287
  export const se_GetHostedConfigurationVersionCommand = async (input, context) => {
465
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
288
+ const b = rb(input, context);
466
289
  const headers = {};
467
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
468
- "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}";
469
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
470
- resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
471
- resolvedPath = __resolvedPath(resolvedPath, input, "VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
290
+ b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}");
291
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
292
+ b.p("ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
293
+ b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
472
294
  let body;
473
- return new __HttpRequest({
474
- protocol,
475
- hostname,
476
- port,
477
- method: "GET",
478
- headers,
479
- path: resolvedPath,
480
- body,
481
- });
295
+ b.m("GET").h(headers).b(body);
296
+ return b.build();
482
297
  };
483
298
  export const se_ListApplicationsCommand = async (input, context) => {
484
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
299
+ const b = rb(input, context);
485
300
  const headers = {};
486
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
301
+ b.bp("/applications");
487
302
  const query = map({
488
- max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
489
- next_token: [, input.NextToken],
303
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
304
+ [_nt]: [, input[_NT]],
490
305
  });
491
306
  let body;
492
- return new __HttpRequest({
493
- protocol,
494
- hostname,
495
- port,
496
- method: "GET",
497
- headers,
498
- path: resolvedPath,
499
- query,
500
- body,
501
- });
307
+ b.m("GET").h(headers).q(query).b(body);
308
+ return b.build();
502
309
  };
503
310
  export const se_ListConfigurationProfilesCommand = async (input, context) => {
504
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
311
+ const b = rb(input, context);
505
312
  const headers = {};
506
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
507
- "/applications/{ApplicationId}/configurationprofiles";
508
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
313
+ b.bp("/applications/{ApplicationId}/configurationprofiles");
314
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
509
315
  const query = map({
510
- max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
511
- next_token: [, input.NextToken],
512
- type: [, input.Type],
316
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
317
+ [_nt]: [, input[_NT]],
318
+ [_t]: [, input[_T]],
513
319
  });
514
320
  let body;
515
- return new __HttpRequest({
516
- protocol,
517
- hostname,
518
- port,
519
- method: "GET",
520
- headers,
521
- path: resolvedPath,
522
- query,
523
- body,
524
- });
321
+ b.m("GET").h(headers).q(query).b(body);
322
+ return b.build();
525
323
  };
526
324
  export const se_ListDeploymentsCommand = async (input, context) => {
527
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
325
+ const b = rb(input, context);
528
326
  const headers = {};
529
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
530
- "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments";
531
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
532
- resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
327
+ b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}/deployments");
328
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
329
+ b.p("EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
533
330
  const query = map({
534
- max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
535
- next_token: [, input.NextToken],
331
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
332
+ [_nt]: [, input[_NT]],
536
333
  });
537
334
  let body;
538
- return new __HttpRequest({
539
- protocol,
540
- hostname,
541
- port,
542
- method: "GET",
543
- headers,
544
- path: resolvedPath,
545
- query,
546
- body,
547
- });
335
+ b.m("GET").h(headers).q(query).b(body);
336
+ return b.build();
548
337
  };
549
338
  export const se_ListDeploymentStrategiesCommand = async (input, context) => {
550
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
339
+ const b = rb(input, context);
551
340
  const headers = {};
552
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deploymentstrategies";
341
+ b.bp("/deploymentstrategies");
553
342
  const query = map({
554
- max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
555
- next_token: [, input.NextToken],
343
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
344
+ [_nt]: [, input[_NT]],
556
345
  });
557
346
  let body;
558
- return new __HttpRequest({
559
- protocol,
560
- hostname,
561
- port,
562
- method: "GET",
563
- headers,
564
- path: resolvedPath,
565
- query,
566
- body,
567
- });
347
+ b.m("GET").h(headers).q(query).b(body);
348
+ return b.build();
568
349
  };
569
350
  export const se_ListEnvironmentsCommand = async (input, context) => {
570
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
351
+ const b = rb(input, context);
571
352
  const headers = {};
572
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
573
- "/applications/{ApplicationId}/environments";
574
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
353
+ b.bp("/applications/{ApplicationId}/environments");
354
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
575
355
  const query = map({
576
- max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
577
- next_token: [, input.NextToken],
356
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
357
+ [_nt]: [, input[_NT]],
578
358
  });
579
359
  let body;
580
- return new __HttpRequest({
581
- protocol,
582
- hostname,
583
- port,
584
- method: "GET",
585
- headers,
586
- path: resolvedPath,
587
- query,
588
- body,
589
- });
360
+ b.m("GET").h(headers).q(query).b(body);
361
+ return b.build();
590
362
  };
591
363
  export const se_ListExtensionAssociationsCommand = async (input, context) => {
592
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
364
+ const b = rb(input, context);
593
365
  const headers = {};
594
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensionassociations";
366
+ b.bp("/extensionassociations");
595
367
  const query = map({
596
- resource_identifier: [, input.ResourceIdentifier],
597
- extension_identifier: [, input.ExtensionIdentifier],
598
- extension_version_number: [
599
- () => input.ExtensionVersionNumber !== void 0,
600
- () => input.ExtensionVersionNumber.toString(),
601
- ],
602
- max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
603
- next_token: [, input.NextToken],
368
+ [_ri]: [, input[_RI]],
369
+ [_ei]: [, input[_EI]],
370
+ [_evn]: [() => input.ExtensionVersionNumber !== void 0, () => input[_EVN].toString()],
371
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
372
+ [_nt]: [, input[_NT]],
604
373
  });
605
374
  let body;
606
- return new __HttpRequest({
607
- protocol,
608
- hostname,
609
- port,
610
- method: "GET",
611
- headers,
612
- path: resolvedPath,
613
- query,
614
- body,
615
- });
375
+ b.m("GET").h(headers).q(query).b(body);
376
+ return b.build();
616
377
  };
617
378
  export const se_ListExtensionsCommand = async (input, context) => {
618
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
379
+ const b = rb(input, context);
619
380
  const headers = {};
620
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions";
381
+ b.bp("/extensions");
621
382
  const query = map({
622
- max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
623
- next_token: [, input.NextToken],
624
- name: [, input.Name],
383
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
384
+ [_nt]: [, input[_NT]],
385
+ [_n]: [, input[_N]],
625
386
  });
626
387
  let body;
627
- return new __HttpRequest({
628
- protocol,
629
- hostname,
630
- port,
631
- method: "GET",
632
- headers,
633
- path: resolvedPath,
634
- query,
635
- body,
636
- });
388
+ b.m("GET").h(headers).q(query).b(body);
389
+ return b.build();
637
390
  };
638
391
  export const se_ListHostedConfigurationVersionsCommand = async (input, context) => {
639
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
392
+ const b = rb(input, context);
640
393
  const headers = {};
641
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
642
- "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions";
643
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
644
- resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
394
+ b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions");
395
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
396
+ b.p("ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
645
397
  const query = map({
646
- max_results: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
647
- next_token: [, input.NextToken],
648
- version_label: [, input.VersionLabel],
398
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
399
+ [_nt]: [, input[_NT]],
400
+ [_vl]: [, input[_VL]],
649
401
  });
650
402
  let body;
651
- return new __HttpRequest({
652
- protocol,
653
- hostname,
654
- port,
655
- method: "GET",
656
- headers,
657
- path: resolvedPath,
658
- query,
659
- body,
660
- });
403
+ b.m("GET").h(headers).q(query).b(body);
404
+ return b.build();
661
405
  };
662
406
  export const se_ListTagsForResourceCommand = async (input, context) => {
663
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
407
+ const b = rb(input, context);
664
408
  const headers = {};
665
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
666
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
409
+ b.bp("/tags/{ResourceArn}");
410
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
667
411
  let body;
668
- return new __HttpRequest({
669
- protocol,
670
- hostname,
671
- port,
672
- method: "GET",
673
- headers,
674
- path: resolvedPath,
675
- body,
676
- });
412
+ b.m("GET").h(headers).b(body);
413
+ return b.build();
677
414
  };
678
415
  export const se_StartDeploymentCommand = async (input, context) => {
679
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
416
+ const b = rb(input, context);
680
417
  const headers = {
681
418
  "content-type": "application/json",
682
419
  };
683
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
684
- "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments";
685
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
686
- resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
420
+ b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}/deployments");
421
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
422
+ b.p("EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
687
423
  let body;
688
424
  body = JSON.stringify(take(input, {
689
425
  ConfigurationProfileId: [],
@@ -693,110 +429,72 @@ export const se_StartDeploymentCommand = async (input, context) => {
693
429
  KmsKeyIdentifier: [],
694
430
  Tags: (_) => _json(_),
695
431
  }));
696
- return new __HttpRequest({
697
- protocol,
698
- hostname,
699
- port,
700
- method: "POST",
701
- headers,
702
- path: resolvedPath,
703
- body,
704
- });
432
+ b.m("POST").h(headers).b(body);
433
+ return b.build();
705
434
  };
706
435
  export const se_StopDeploymentCommand = async (input, context) => {
707
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
436
+ const b = rb(input, context);
708
437
  const headers = {};
709
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
710
- "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}";
711
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
712
- resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
713
- resolvedPath = __resolvedPath(resolvedPath, input, "DeploymentNumber", () => input.DeploymentNumber.toString(), "{DeploymentNumber}", false);
438
+ b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}");
439
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
440
+ b.p("EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
441
+ b.p("DeploymentNumber", () => input.DeploymentNumber.toString(), "{DeploymentNumber}", false);
714
442
  let body;
715
- return new __HttpRequest({
716
- protocol,
717
- hostname,
718
- port,
719
- method: "DELETE",
720
- headers,
721
- path: resolvedPath,
722
- body,
723
- });
443
+ b.m("DELETE").h(headers).b(body);
444
+ return b.build();
724
445
  };
725
446
  export const se_TagResourceCommand = async (input, context) => {
726
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
447
+ const b = rb(input, context);
727
448
  const headers = {
728
449
  "content-type": "application/json",
729
450
  };
730
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
731
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
451
+ b.bp("/tags/{ResourceArn}");
452
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
732
453
  let body;
733
454
  body = JSON.stringify(take(input, {
734
455
  Tags: (_) => _json(_),
735
456
  }));
736
- return new __HttpRequest({
737
- protocol,
738
- hostname,
739
- port,
740
- method: "POST",
741
- headers,
742
- path: resolvedPath,
743
- body,
744
- });
457
+ b.m("POST").h(headers).b(body);
458
+ return b.build();
745
459
  };
746
460
  export const se_UntagResourceCommand = async (input, context) => {
747
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
461
+ const b = rb(input, context);
748
462
  const headers = {};
749
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
750
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
463
+ b.bp("/tags/{ResourceArn}");
464
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
751
465
  const query = map({
752
- tagKeys: [
466
+ [_tK]: [
753
467
  __expectNonNull(input.TagKeys, `TagKeys`) != null,
754
- () => (input.TagKeys || []).map((_entry) => _entry),
468
+ () => (input[_TK] || []).map((_entry) => _entry),
755
469
  ],
756
470
  });
757
471
  let body;
758
- return new __HttpRequest({
759
- protocol,
760
- hostname,
761
- port,
762
- method: "DELETE",
763
- headers,
764
- path: resolvedPath,
765
- query,
766
- body,
767
- });
472
+ b.m("DELETE").h(headers).q(query).b(body);
473
+ return b.build();
768
474
  };
769
475
  export const se_UpdateApplicationCommand = async (input, context) => {
770
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
476
+ const b = rb(input, context);
771
477
  const headers = {
772
478
  "content-type": "application/json",
773
479
  };
774
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}";
775
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
480
+ b.bp("/applications/{ApplicationId}");
481
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
776
482
  let body;
777
483
  body = JSON.stringify(take(input, {
778
484
  Description: [],
779
485
  Name: [],
780
486
  }));
781
- return new __HttpRequest({
782
- protocol,
783
- hostname,
784
- port,
785
- method: "PATCH",
786
- headers,
787
- path: resolvedPath,
788
- body,
789
- });
487
+ b.m("PATCH").h(headers).b(body);
488
+ return b.build();
790
489
  };
791
490
  export const se_UpdateConfigurationProfileCommand = async (input, context) => {
792
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
491
+ const b = rb(input, context);
793
492
  const headers = {
794
493
  "content-type": "application/json",
795
494
  };
796
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
797
- "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}";
798
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
799
- resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
495
+ b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}");
496
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
497
+ b.p("ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
800
498
  let body;
801
499
  body = JSON.stringify(take(input, {
802
500
  Description: [],
@@ -805,24 +503,16 @@ export const se_UpdateConfigurationProfileCommand = async (input, context) => {
805
503
  RetrievalRoleArn: [],
806
504
  Validators: (_) => _json(_),
807
505
  }));
808
- return new __HttpRequest({
809
- protocol,
810
- hostname,
811
- port,
812
- method: "PATCH",
813
- headers,
814
- path: resolvedPath,
815
- body,
816
- });
506
+ b.m("PATCH").h(headers).b(body);
507
+ return b.build();
817
508
  };
818
509
  export const se_UpdateDeploymentStrategyCommand = async (input, context) => {
819
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
510
+ const b = rb(input, context);
820
511
  const headers = {
821
512
  "content-type": "application/json",
822
513
  };
823
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
824
- "/deploymentstrategies/{DeploymentStrategyId}";
825
- resolvedPath = __resolvedPath(resolvedPath, input, "DeploymentStrategyId", () => input.DeploymentStrategyId, "{DeploymentStrategyId}", false);
514
+ b.bp("/deploymentstrategies/{DeploymentStrategyId}");
515
+ b.p("DeploymentStrategyId", () => input.DeploymentStrategyId, "{DeploymentStrategyId}", false);
826
516
  let body;
827
517
  body = JSON.stringify(take(input, {
828
518
  DeploymentDurationInMinutes: [],
@@ -831,48 +521,33 @@ export const se_UpdateDeploymentStrategyCommand = async (input, context) => {
831
521
  GrowthFactor: (_) => __serializeFloat(_),
832
522
  GrowthType: [],
833
523
  }));
834
- return new __HttpRequest({
835
- protocol,
836
- hostname,
837
- port,
838
- method: "PATCH",
839
- headers,
840
- path: resolvedPath,
841
- body,
842
- });
524
+ b.m("PATCH").h(headers).b(body);
525
+ return b.build();
843
526
  };
844
527
  export const se_UpdateEnvironmentCommand = async (input, context) => {
845
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
528
+ const b = rb(input, context);
846
529
  const headers = {
847
530
  "content-type": "application/json",
848
531
  };
849
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
850
- "/applications/{ApplicationId}/environments/{EnvironmentId}";
851
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
852
- resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
532
+ b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}");
533
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
534
+ b.p("EnvironmentId", () => input.EnvironmentId, "{EnvironmentId}", false);
853
535
  let body;
854
536
  body = JSON.stringify(take(input, {
855
537
  Description: [],
856
538
  Monitors: (_) => _json(_),
857
539
  Name: [],
858
540
  }));
859
- return new __HttpRequest({
860
- protocol,
861
- hostname,
862
- port,
863
- method: "PATCH",
864
- headers,
865
- path: resolvedPath,
866
- body,
867
- });
541
+ b.m("PATCH").h(headers).b(body);
542
+ return b.build();
868
543
  };
869
544
  export const se_UpdateExtensionCommand = async (input, context) => {
870
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
545
+ const b = rb(input, context);
871
546
  const headers = {
872
547
  "content-type": "application/json",
873
548
  };
874
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}";
875
- resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionIdentifier", () => input.ExtensionIdentifier, "{ExtensionIdentifier}", false);
549
+ b.bp("/extensions/{ExtensionIdentifier}");
550
+ b.p("ExtensionIdentifier", () => input.ExtensionIdentifier, "{ExtensionIdentifier}", false);
876
551
  let body;
877
552
  body = JSON.stringify(take(input, {
878
553
  Actions: (_) => _json(_),
@@ -880,59 +555,35 @@ export const se_UpdateExtensionCommand = async (input, context) => {
880
555
  Parameters: (_) => _json(_),
881
556
  VersionNumber: [],
882
557
  }));
883
- return new __HttpRequest({
884
- protocol,
885
- hostname,
886
- port,
887
- method: "PATCH",
888
- headers,
889
- path: resolvedPath,
890
- body,
891
- });
558
+ b.m("PATCH").h(headers).b(body);
559
+ return b.build();
892
560
  };
893
561
  export const se_UpdateExtensionAssociationCommand = async (input, context) => {
894
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
562
+ const b = rb(input, context);
895
563
  const headers = {
896
564
  "content-type": "application/json",
897
565
  };
898
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
899
- "/extensionassociations/{ExtensionAssociationId}";
900
- resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionAssociationId", () => input.ExtensionAssociationId, "{ExtensionAssociationId}", false);
566
+ b.bp("/extensionassociations/{ExtensionAssociationId}");
567
+ b.p("ExtensionAssociationId", () => input.ExtensionAssociationId, "{ExtensionAssociationId}", false);
901
568
  let body;
902
569
  body = JSON.stringify(take(input, {
903
570
  Parameters: (_) => _json(_),
904
571
  }));
905
- return new __HttpRequest({
906
- protocol,
907
- hostname,
908
- port,
909
- method: "PATCH",
910
- headers,
911
- path: resolvedPath,
912
- body,
913
- });
572
+ b.m("PATCH").h(headers).b(body);
573
+ return b.build();
914
574
  };
915
575
  export const se_ValidateConfigurationCommand = async (input, context) => {
916
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
576
+ const b = rb(input, context);
917
577
  const headers = {};
918
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
919
- "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/validators";
920
- resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
921
- resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
578
+ b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/validators");
579
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
580
+ b.p("ConfigurationProfileId", () => input.ConfigurationProfileId, "{ConfigurationProfileId}", false);
922
581
  const query = map({
923
- configuration_version: [, __expectNonNull(input.ConfigurationVersion, `ConfigurationVersion`)],
582
+ [_cv]: [, __expectNonNull(input[_CV], `ConfigurationVersion`)],
924
583
  });
925
584
  let body;
926
- return new __HttpRequest({
927
- protocol,
928
- hostname,
929
- port,
930
- method: "POST",
931
- headers,
932
- path: resolvedPath,
933
- query,
934
- body,
935
- });
585
+ b.m("POST").h(headers).q(query).b(body);
586
+ return b.build();
936
587
  };
937
588
  export const de_CreateApplicationCommand = async (output, context) => {
938
589
  if (output.statusCode !== 201 && output.statusCode >= 300) {
@@ -1220,16 +871,13 @@ export const de_CreateHostedConfigurationVersionCommand = async (output, context
1220
871
  }
1221
872
  const contents = map({
1222
873
  $metadata: deserializeMetadata(output),
1223
- ApplicationId: [, output.headers["application-id"]],
1224
- ConfigurationProfileId: [, output.headers["configuration-profile-id"]],
1225
- VersionNumber: [
1226
- () => void 0 !== output.headers["version-number"],
1227
- () => __strictParseInt32(output.headers["version-number"]),
1228
- ],
1229
- Description: [, output.headers["description"]],
1230
- ContentType: [, output.headers["content-type"]],
1231
- VersionLabel: [, output.headers["versionlabel"]],
1232
- KmsKeyArn: [, output.headers["kmskeyarn"]],
874
+ [_AI]: [, output.headers[_ai]],
875
+ [_CPI]: [, output.headers[_cpi]],
876
+ [_VN]: [() => void 0 !== output.headers[_vn_], () => __strictParseInt32(output.headers[_vn_])],
877
+ [_D]: [, output.headers[_d]],
878
+ [_CT]: [, output.headers[_ct]],
879
+ [_VL]: [, output.headers[_v]],
880
+ [_KKA]: [, output.headers[_k]],
1233
881
  });
1234
882
  const data = await collectBody(output.body, context);
1235
883
  contents.Content = data;
@@ -1567,8 +1215,8 @@ export const de_GetConfigurationCommand = async (output, context) => {
1567
1215
  }
1568
1216
  const contents = map({
1569
1217
  $metadata: deserializeMetadata(output),
1570
- ConfigurationVersion: [, output.headers["configuration-version"]],
1571
- ContentType: [, output.headers["content-type"]],
1218
+ [_CV]: [, output.headers[_cv_]],
1219
+ [_CT]: [, output.headers[_ct]],
1572
1220
  });
1573
1221
  const data = await collectBody(output.body, context);
1574
1222
  contents.Content = data;
@@ -1892,16 +1540,13 @@ export const de_GetHostedConfigurationVersionCommand = async (output, context) =
1892
1540
  }
1893
1541
  const contents = map({
1894
1542
  $metadata: deserializeMetadata(output),
1895
- ApplicationId: [, output.headers["application-id"]],
1896
- ConfigurationProfileId: [, output.headers["configuration-profile-id"]],
1897
- VersionNumber: [
1898
- () => void 0 !== output.headers["version-number"],
1899
- () => __strictParseInt32(output.headers["version-number"]),
1900
- ],
1901
- Description: [, output.headers["description"]],
1902
- ContentType: [, output.headers["content-type"]],
1903
- VersionLabel: [, output.headers["versionlabel"]],
1904
- KmsKeyArn: [, output.headers["kmskeyarn"]],
1543
+ [_AI]: [, output.headers[_ai]],
1544
+ [_CPI]: [, output.headers[_cpi]],
1545
+ [_VN]: [() => void 0 !== output.headers[_vn_], () => __strictParseInt32(output.headers[_vn_])],
1546
+ [_D]: [, output.headers[_d]],
1547
+ [_CT]: [, output.headers[_ct]],
1548
+ [_VL]: [, output.headers[_v]],
1549
+ [_KKA]: [, output.headers[_k]],
1905
1550
  });
1906
1551
  const data = await collectBody(output.body, context);
1907
1552
  contents.Content = data;
@@ -2936,6 +2581,48 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2936
2581
  value !== "" &&
2937
2582
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2938
2583
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2584
+ const _AI = "ApplicationId";
2585
+ const _CCV = "ClientConfigurationVersion";
2586
+ const _CI = "ClientId";
2587
+ const _CPI = "ConfigurationProfileId";
2588
+ const _CT = "ContentType";
2589
+ const _CV = "ConfigurationVersion";
2590
+ const _D = "Description";
2591
+ const _EI = "ExtensionIdentifier";
2592
+ const _EVN = "ExtensionVersionNumber";
2593
+ const _KKA = "KmsKeyArn";
2594
+ const _LVN = "LatestVersionNumber";
2595
+ const _MR = "MaxResults";
2596
+ const _N = "Name";
2597
+ const _NT = "NextToken";
2598
+ const _RI = "ResourceIdentifier";
2599
+ const _T = "Type";
2600
+ const _TK = "TagKeys";
2601
+ const _VL = "VersionLabel";
2602
+ const _VN = "VersionNumber";
2603
+ const _ai = "application-id";
2604
+ const _ccv = "client_configuration_version";
2605
+ const _ci = "client_id";
2606
+ const _cpi = "configuration-profile-id";
2607
+ const _ct = "content-type";
2608
+ const _cv = "configuration_version";
2609
+ const _cv_ = "configuration-version";
2610
+ const _d = "description";
2611
+ const _ei = "extension_identifier";
2612
+ const _evn = "extension_version_number";
2613
+ const _k = "kmskeyarn";
2614
+ const _lvn = "latest-version-number";
2615
+ const _mr = "max_results";
2616
+ const _n = "name";
2617
+ const _nt = "next_token";
2618
+ const _ri = "resource_identifier";
2619
+ const _t = "type";
2620
+ const _tK = "tagKeys";
2621
+ const _v = "versionlabel";
2622
+ const _ve = "version";
2623
+ const _vl = "version_label";
2624
+ const _vn = "version_number";
2625
+ const _vn_ = "version-number";
2939
2626
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2940
2627
  if (encoded.length) {
2941
2628
  return JSON.parse(encoded);