@aws-sdk/client-accessanalyzer 3.476.0 → 3.478.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.
Files changed (43) hide show
  1. package/dist-cjs/pagination/GetFindingV2Paginator.js +2 -24
  2. package/dist-cjs/pagination/ListAccessPreviewFindingsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListAccessPreviewsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListAnalyzedResourcesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListAnalyzersPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListArchiveRulesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListFindingsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListFindingsV2Paginator.js +2 -24
  9. package/dist-cjs/pagination/ListPolicyGenerationsPaginator.js +2 -24
  10. package/dist-cjs/pagination/ValidatePolicyPaginator.js +2 -24
  11. package/dist-cjs/protocols/Aws_restJson1.js +188 -428
  12. package/dist-es/pagination/GetFindingV2Paginator.js +2 -23
  13. package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +2 -23
  14. package/dist-es/pagination/ListAccessPreviewsPaginator.js +2 -23
  15. package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +2 -23
  16. package/dist-es/pagination/ListAnalyzersPaginator.js +2 -23
  17. package/dist-es/pagination/ListArchiveRulesPaginator.js +2 -23
  18. package/dist-es/pagination/ListFindingsPaginator.js +2 -23
  19. package/dist-es/pagination/ListFindingsV2Paginator.js +2 -23
  20. package/dist-es/pagination/ListPolicyGenerationsPaginator.js +2 -23
  21. package/dist-es/pagination/ValidatePolicyPaginator.js +2 -23
  22. package/dist-es/protocols/Aws_restJson1.js +189 -429
  23. package/dist-types/pagination/GetFindingV2Paginator.d.ts +1 -1
  24. package/dist-types/pagination/ListAccessPreviewFindingsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListAccessPreviewsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListAnalyzedResourcesPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListAnalyzersPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListArchiveRulesPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListFindingsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListFindingsV2Paginator.d.ts +1 -1
  31. package/dist-types/pagination/ListPolicyGenerationsPaginator.d.ts +1 -1
  32. package/dist-types/pagination/ValidatePolicyPaginator.d.ts +1 -1
  33. package/dist-types/ts3.4/pagination/GetFindingV2Paginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListAccessPreviewFindingsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListAccessPreviewsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListAnalyzedResourcesPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListAnalyzersPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListArchiveRulesPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListFindingsV2Paginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/ListPolicyGenerationsPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/ValidatePolicyPaginator.d.ts +3 -3
  43. package/package.json +7 -6
@@ -3,126 +3,91 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_ListAccessPreviewsCommand = exports.de_ListAccessPreviewFindingsCommand = exports.de_GetGeneratedPolicyCommand = exports.de_GetFindingV2Command = exports.de_GetFindingCommand = exports.de_GetArchiveRuleCommand = exports.de_GetAnalyzerCommand = exports.de_GetAnalyzedResourceCommand = exports.de_GetAccessPreviewCommand = exports.de_DeleteArchiveRuleCommand = exports.de_DeleteAnalyzerCommand = exports.de_CreateArchiveRuleCommand = exports.de_CreateAnalyzerCommand = exports.de_CreateAccessPreviewCommand = exports.de_CheckNoNewAccessCommand = exports.de_CheckAccessNotGrantedCommand = exports.de_CancelPolicyGenerationCommand = exports.de_ApplyArchiveRuleCommand = exports.se_ValidatePolicyCommand = exports.se_UpdateFindingsCommand = exports.se_UpdateArchiveRuleCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartResourceScanCommand = exports.se_StartPolicyGenerationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPolicyGenerationsCommand = exports.se_ListFindingsV2Command = exports.se_ListFindingsCommand = exports.se_ListArchiveRulesCommand = exports.se_ListAnalyzersCommand = exports.se_ListAnalyzedResourcesCommand = exports.se_ListAccessPreviewsCommand = exports.se_ListAccessPreviewFindingsCommand = exports.se_GetGeneratedPolicyCommand = exports.se_GetFindingV2Command = exports.se_GetFindingCommand = exports.se_GetArchiveRuleCommand = exports.se_GetAnalyzerCommand = exports.se_GetAnalyzedResourceCommand = exports.se_GetAccessPreviewCommand = exports.se_DeleteArchiveRuleCommand = exports.se_DeleteAnalyzerCommand = exports.se_CreateArchiveRuleCommand = exports.se_CreateAnalyzerCommand = exports.se_CreateAccessPreviewCommand = exports.se_CheckNoNewAccessCommand = exports.se_CheckAccessNotGrantedCommand = exports.se_CancelPolicyGenerationCommand = exports.se_ApplyArchiveRuleCommand = void 0;
4
4
  exports.de_ValidatePolicyCommand = exports.de_UpdateFindingsCommand = exports.de_UpdateArchiveRuleCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartResourceScanCommand = exports.de_StartPolicyGenerationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPolicyGenerationsCommand = exports.de_ListFindingsV2Command = exports.de_ListFindingsCommand = exports.de_ListArchiveRulesCommand = exports.de_ListAnalyzersCommand = exports.de_ListAnalyzedResourcesCommand = void 0;
5
5
  const core_1 = require("@aws-sdk/core");
6
- const protocol_http_1 = require("@smithy/protocol-http");
6
+ const core_2 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const uuid_1 = require("uuid");
9
9
  const AccessAnalyzerServiceException_1 = require("../models/AccessAnalyzerServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_ApplyArchiveRuleCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_2.requestBuilder)(input, context);
13
13
  const headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/archive-rule";
16
+ b.bp("/archive-rule");
17
17
  let body;
18
18
  body = JSON.stringify((0, smithy_client_1.take)(input, {
19
19
  analyzerArn: [],
20
20
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
21
21
  ruleName: [],
22
22
  }));
23
- return new protocol_http_1.HttpRequest({
24
- protocol,
25
- hostname,
26
- port,
27
- method: "PUT",
28
- headers,
29
- path: resolvedPath,
30
- body,
31
- });
23
+ b.m("PUT").h(headers).b(body);
24
+ return b.build();
32
25
  };
33
26
  exports.se_ApplyArchiveRuleCommand = se_ApplyArchiveRuleCommand;
34
27
  const se_CancelPolicyGenerationCommand = async (input, context) => {
35
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
+ const b = (0, core_2.requestBuilder)(input, context);
36
29
  const headers = {};
37
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation/{jobId}";
38
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
30
+ b.bp("/policy/generation/{jobId}");
31
+ b.p("jobId", () => input.jobId, "{jobId}", false);
39
32
  let body;
40
- return new protocol_http_1.HttpRequest({
41
- protocol,
42
- hostname,
43
- port,
44
- method: "PUT",
45
- headers,
46
- path: resolvedPath,
47
- body,
48
- });
33
+ b.m("PUT").h(headers).b(body);
34
+ return b.build();
49
35
  };
50
36
  exports.se_CancelPolicyGenerationCommand = se_CancelPolicyGenerationCommand;
51
37
  const se_CheckAccessNotGrantedCommand = async (input, context) => {
52
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
38
+ const b = (0, core_2.requestBuilder)(input, context);
53
39
  const headers = {
54
40
  "content-type": "application/json",
55
41
  };
56
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/check-access-not-granted";
42
+ b.bp("/policy/check-access-not-granted");
57
43
  let body;
58
44
  body = JSON.stringify((0, smithy_client_1.take)(input, {
59
45
  access: (_) => (0, smithy_client_1._json)(_),
60
46
  policyDocument: [],
61
47
  policyType: [],
62
48
  }));
63
- return new protocol_http_1.HttpRequest({
64
- protocol,
65
- hostname,
66
- port,
67
- method: "POST",
68
- headers,
69
- path: resolvedPath,
70
- body,
71
- });
49
+ b.m("POST").h(headers).b(body);
50
+ return b.build();
72
51
  };
73
52
  exports.se_CheckAccessNotGrantedCommand = se_CheckAccessNotGrantedCommand;
74
53
  const se_CheckNoNewAccessCommand = async (input, context) => {
75
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
54
+ const b = (0, core_2.requestBuilder)(input, context);
76
55
  const headers = {
77
56
  "content-type": "application/json",
78
57
  };
79
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/check-no-new-access";
58
+ b.bp("/policy/check-no-new-access");
80
59
  let body;
81
60
  body = JSON.stringify((0, smithy_client_1.take)(input, {
82
61
  existingPolicyDocument: [],
83
62
  newPolicyDocument: [],
84
63
  policyType: [],
85
64
  }));
86
- return new protocol_http_1.HttpRequest({
87
- protocol,
88
- hostname,
89
- port,
90
- method: "POST",
91
- headers,
92
- path: resolvedPath,
93
- body,
94
- });
65
+ b.m("POST").h(headers).b(body);
66
+ return b.build();
95
67
  };
96
68
  exports.se_CheckNoNewAccessCommand = se_CheckNoNewAccessCommand;
97
69
  const se_CreateAccessPreviewCommand = async (input, context) => {
98
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
70
+ const b = (0, core_2.requestBuilder)(input, context);
99
71
  const headers = {
100
72
  "content-type": "application/json",
101
73
  };
102
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview";
74
+ b.bp("/access-preview");
103
75
  let body;
104
76
  body = JSON.stringify((0, smithy_client_1.take)(input, {
105
77
  analyzerArn: [],
106
78
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
107
79
  configurations: (_) => (0, smithy_client_1._json)(_),
108
80
  }));
109
- return new protocol_http_1.HttpRequest({
110
- protocol,
111
- hostname,
112
- port,
113
- method: "PUT",
114
- headers,
115
- path: resolvedPath,
116
- body,
117
- });
81
+ b.m("PUT").h(headers).b(body);
82
+ return b.build();
118
83
  };
119
84
  exports.se_CreateAccessPreviewCommand = se_CreateAccessPreviewCommand;
120
85
  const se_CreateAnalyzerCommand = async (input, context) => {
121
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
+ const b = (0, core_2.requestBuilder)(input, context);
122
87
  const headers = {
123
88
  "content-type": "application/json",
124
89
  };
125
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer";
90
+ b.bp("/analyzer");
126
91
  let body;
127
92
  body = JSON.stringify((0, smithy_client_1.take)(input, {
128
93
  analyzerName: [],
@@ -132,242 +97,150 @@ const se_CreateAnalyzerCommand = async (input, context) => {
132
97
  tags: (_) => (0, smithy_client_1._json)(_),
133
98
  type: [],
134
99
  }));
135
- return new protocol_http_1.HttpRequest({
136
- protocol,
137
- hostname,
138
- port,
139
- method: "PUT",
140
- headers,
141
- path: resolvedPath,
142
- body,
143
- });
100
+ b.m("PUT").h(headers).b(body);
101
+ return b.build();
144
102
  };
145
103
  exports.se_CreateAnalyzerCommand = se_CreateAnalyzerCommand;
146
104
  const se_CreateArchiveRuleCommand = async (input, context) => {
147
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
+ const b = (0, core_2.requestBuilder)(input, context);
148
106
  const headers = {
149
107
  "content-type": "application/json",
150
108
  };
151
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}/archive-rule";
152
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analyzerName", () => input.analyzerName, "{analyzerName}", false);
109
+ b.bp("/analyzer/{analyzerName}/archive-rule");
110
+ b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
153
111
  let body;
154
112
  body = JSON.stringify((0, smithy_client_1.take)(input, {
155
113
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
156
114
  filter: (_) => (0, smithy_client_1._json)(_),
157
115
  ruleName: [],
158
116
  }));
159
- return new protocol_http_1.HttpRequest({
160
- protocol,
161
- hostname,
162
- port,
163
- method: "PUT",
164
- headers,
165
- path: resolvedPath,
166
- body,
167
- });
117
+ b.m("PUT").h(headers).b(body);
118
+ return b.build();
168
119
  };
169
120
  exports.se_CreateArchiveRuleCommand = se_CreateArchiveRuleCommand;
170
121
  const se_DeleteAnalyzerCommand = async (input, context) => {
171
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
122
+ const b = (0, core_2.requestBuilder)(input, context);
172
123
  const headers = {};
173
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}";
174
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analyzerName", () => input.analyzerName, "{analyzerName}", false);
124
+ b.bp("/analyzer/{analyzerName}");
125
+ b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
175
126
  const query = (0, smithy_client_1.map)({
176
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
127
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
177
128
  });
178
129
  let body;
179
- return new protocol_http_1.HttpRequest({
180
- protocol,
181
- hostname,
182
- port,
183
- method: "DELETE",
184
- headers,
185
- path: resolvedPath,
186
- query,
187
- body,
188
- });
130
+ b.m("DELETE").h(headers).q(query).b(body);
131
+ return b.build();
189
132
  };
190
133
  exports.se_DeleteAnalyzerCommand = se_DeleteAnalyzerCommand;
191
134
  const se_DeleteArchiveRuleCommand = async (input, context) => {
192
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
+ const b = (0, core_2.requestBuilder)(input, context);
193
136
  const headers = {};
194
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
195
- "/analyzer/{analyzerName}/archive-rule/{ruleName}";
196
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analyzerName", () => input.analyzerName, "{analyzerName}", false);
197
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
137
+ b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");
138
+ b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
139
+ b.p("ruleName", () => input.ruleName, "{ruleName}", false);
198
140
  const query = (0, smithy_client_1.map)({
199
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
141
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
200
142
  });
201
143
  let body;
202
- return new protocol_http_1.HttpRequest({
203
- protocol,
204
- hostname,
205
- port,
206
- method: "DELETE",
207
- headers,
208
- path: resolvedPath,
209
- query,
210
- body,
211
- });
144
+ b.m("DELETE").h(headers).q(query).b(body);
145
+ return b.build();
212
146
  };
213
147
  exports.se_DeleteArchiveRuleCommand = se_DeleteArchiveRuleCommand;
214
148
  const se_GetAccessPreviewCommand = async (input, context) => {
215
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
149
+ const b = (0, core_2.requestBuilder)(input, context);
216
150
  const headers = {};
217
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview/{accessPreviewId}";
218
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
151
+ b.bp("/access-preview/{accessPreviewId}");
152
+ b.p("accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
219
153
  const query = (0, smithy_client_1.map)({
220
- analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
154
+ [_aA]: [, (0, smithy_client_1.expectNonNull)(input[_aA], `analyzerArn`)],
221
155
  });
222
156
  let body;
223
- return new protocol_http_1.HttpRequest({
224
- protocol,
225
- hostname,
226
- port,
227
- method: "GET",
228
- headers,
229
- path: resolvedPath,
230
- query,
231
- body,
232
- });
157
+ b.m("GET").h(headers).q(query).b(body);
158
+ return b.build();
233
159
  };
234
160
  exports.se_GetAccessPreviewCommand = se_GetAccessPreviewCommand;
235
161
  const se_GetAnalyzedResourceCommand = async (input, context) => {
236
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
+ const b = (0, core_2.requestBuilder)(input, context);
237
163
  const headers = {};
238
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource";
164
+ b.bp("/analyzed-resource");
239
165
  const query = (0, smithy_client_1.map)({
240
- analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
241
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
166
+ [_aA]: [, (0, smithy_client_1.expectNonNull)(input[_aA], `analyzerArn`)],
167
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
242
168
  });
243
169
  let body;
244
- return new protocol_http_1.HttpRequest({
245
- protocol,
246
- hostname,
247
- port,
248
- method: "GET",
249
- headers,
250
- path: resolvedPath,
251
- query,
252
- body,
253
- });
170
+ b.m("GET").h(headers).q(query).b(body);
171
+ return b.build();
254
172
  };
255
173
  exports.se_GetAnalyzedResourceCommand = se_GetAnalyzedResourceCommand;
256
174
  const se_GetAnalyzerCommand = async (input, context) => {
257
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
+ const b = (0, core_2.requestBuilder)(input, context);
258
176
  const headers = {};
259
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}";
260
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analyzerName", () => input.analyzerName, "{analyzerName}", false);
177
+ b.bp("/analyzer/{analyzerName}");
178
+ b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
261
179
  let body;
262
- return new protocol_http_1.HttpRequest({
263
- protocol,
264
- hostname,
265
- port,
266
- method: "GET",
267
- headers,
268
- path: resolvedPath,
269
- body,
270
- });
180
+ b.m("GET").h(headers).b(body);
181
+ return b.build();
271
182
  };
272
183
  exports.se_GetAnalyzerCommand = se_GetAnalyzerCommand;
273
184
  const se_GetArchiveRuleCommand = async (input, context) => {
274
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
185
+ const b = (0, core_2.requestBuilder)(input, context);
275
186
  const headers = {};
276
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
277
- "/analyzer/{analyzerName}/archive-rule/{ruleName}";
278
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analyzerName", () => input.analyzerName, "{analyzerName}", false);
279
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
187
+ b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");
188
+ b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
189
+ b.p("ruleName", () => input.ruleName, "{ruleName}", false);
280
190
  let body;
281
- return new protocol_http_1.HttpRequest({
282
- protocol,
283
- hostname,
284
- port,
285
- method: "GET",
286
- headers,
287
- path: resolvedPath,
288
- body,
289
- });
191
+ b.m("GET").h(headers).b(body);
192
+ return b.build();
290
193
  };
291
194
  exports.se_GetArchiveRuleCommand = se_GetArchiveRuleCommand;
292
195
  const se_GetFindingCommand = async (input, context) => {
293
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
196
+ const b = (0, core_2.requestBuilder)(input, context);
294
197
  const headers = {};
295
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding/{id}";
296
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
198
+ b.bp("/finding/{id}");
199
+ b.p("id", () => input.id, "{id}", false);
297
200
  const query = (0, smithy_client_1.map)({
298
- analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
201
+ [_aA]: [, (0, smithy_client_1.expectNonNull)(input[_aA], `analyzerArn`)],
299
202
  });
300
203
  let body;
301
- return new protocol_http_1.HttpRequest({
302
- protocol,
303
- hostname,
304
- port,
305
- method: "GET",
306
- headers,
307
- path: resolvedPath,
308
- query,
309
- body,
310
- });
204
+ b.m("GET").h(headers).q(query).b(body);
205
+ return b.build();
311
206
  };
312
207
  exports.se_GetFindingCommand = se_GetFindingCommand;
313
208
  const se_GetFindingV2Command = async (input, context) => {
314
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
209
+ const b = (0, core_2.requestBuilder)(input, context);
315
210
  const headers = {};
316
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingv2/{id}";
317
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
211
+ b.bp("/findingv2/{id}");
212
+ b.p("id", () => input.id, "{id}", false);
318
213
  const query = (0, smithy_client_1.map)({
319
- analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
320
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
321
- nextToken: [, input.nextToken],
214
+ [_aA]: [, (0, smithy_client_1.expectNonNull)(input[_aA], `analyzerArn`)],
215
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
216
+ [_nT]: [, input[_nT]],
322
217
  });
323
218
  let body;
324
- return new protocol_http_1.HttpRequest({
325
- protocol,
326
- hostname,
327
- port,
328
- method: "GET",
329
- headers,
330
- path: resolvedPath,
331
- query,
332
- body,
333
- });
219
+ b.m("GET").h(headers).q(query).b(body);
220
+ return b.build();
334
221
  };
335
222
  exports.se_GetFindingV2Command = se_GetFindingV2Command;
336
223
  const se_GetGeneratedPolicyCommand = async (input, context) => {
337
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
+ const b = (0, core_2.requestBuilder)(input, context);
338
225
  const headers = {};
339
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation/{jobId}";
340
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
226
+ b.bp("/policy/generation/{jobId}");
227
+ b.p("jobId", () => input.jobId, "{jobId}", false);
341
228
  const query = (0, smithy_client_1.map)({
342
- includeResourcePlaceholders: [
343
- () => input.includeResourcePlaceholders !== void 0,
344
- () => input.includeResourcePlaceholders.toString(),
345
- ],
346
- includeServiceLevelTemplate: [
347
- () => input.includeServiceLevelTemplate !== void 0,
348
- () => input.includeServiceLevelTemplate.toString(),
349
- ],
229
+ [_iRP]: [() => input.includeResourcePlaceholders !== void 0, () => input[_iRP].toString()],
230
+ [_iSLT]: [() => input.includeServiceLevelTemplate !== void 0, () => input[_iSLT].toString()],
350
231
  });
351
232
  let body;
352
- return new protocol_http_1.HttpRequest({
353
- protocol,
354
- hostname,
355
- port,
356
- method: "GET",
357
- headers,
358
- path: resolvedPath,
359
- query,
360
- body,
361
- });
233
+ b.m("GET").h(headers).q(query).b(body);
234
+ return b.build();
362
235
  };
363
236
  exports.se_GetGeneratedPolicyCommand = se_GetGeneratedPolicyCommand;
364
237
  const se_ListAccessPreviewFindingsCommand = async (input, context) => {
365
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
238
+ const b = (0, core_2.requestBuilder)(input, context);
366
239
  const headers = {
367
240
  "content-type": "application/json",
368
241
  };
369
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview/{accessPreviewId}";
370
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
242
+ b.bp("/access-preview/{accessPreviewId}");
243
+ b.p("accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
371
244
  let body;
372
245
  body = JSON.stringify((0, smithy_client_1.take)(input, {
373
246
  analyzerArn: [],
@@ -375,45 +248,30 @@ const se_ListAccessPreviewFindingsCommand = async (input, context) => {
375
248
  maxResults: [],
376
249
  nextToken: [],
377
250
  }));
378
- return new protocol_http_1.HttpRequest({
379
- protocol,
380
- hostname,
381
- port,
382
- method: "POST",
383
- headers,
384
- path: resolvedPath,
385
- body,
386
- });
251
+ b.m("POST").h(headers).b(body);
252
+ return b.build();
387
253
  };
388
254
  exports.se_ListAccessPreviewFindingsCommand = se_ListAccessPreviewFindingsCommand;
389
255
  const se_ListAccessPreviewsCommand = async (input, context) => {
390
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
256
+ const b = (0, core_2.requestBuilder)(input, context);
391
257
  const headers = {};
392
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview";
258
+ b.bp("/access-preview");
393
259
  const query = (0, smithy_client_1.map)({
394
- analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
395
- nextToken: [, input.nextToken],
396
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
260
+ [_aA]: [, (0, smithy_client_1.expectNonNull)(input[_aA], `analyzerArn`)],
261
+ [_nT]: [, input[_nT]],
262
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
397
263
  });
398
264
  let body;
399
- return new protocol_http_1.HttpRequest({
400
- protocol,
401
- hostname,
402
- port,
403
- method: "GET",
404
- headers,
405
- path: resolvedPath,
406
- query,
407
- body,
408
- });
265
+ b.m("GET").h(headers).q(query).b(body);
266
+ return b.build();
409
267
  };
410
268
  exports.se_ListAccessPreviewsCommand = se_ListAccessPreviewsCommand;
411
269
  const se_ListAnalyzedResourcesCommand = async (input, context) => {
412
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
270
+ const b = (0, core_2.requestBuilder)(input, context);
413
271
  const headers = {
414
272
  "content-type": "application/json",
415
273
  };
416
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource";
274
+ b.bp("/analyzed-resource");
417
275
  let body;
418
276
  body = JSON.stringify((0, smithy_client_1.take)(input, {
419
277
  analyzerArn: [],
@@ -421,67 +279,44 @@ const se_ListAnalyzedResourcesCommand = async (input, context) => {
421
279
  nextToken: [],
422
280
  resourceType: [],
423
281
  }));
424
- return new protocol_http_1.HttpRequest({
425
- protocol,
426
- hostname,
427
- port,
428
- method: "POST",
429
- headers,
430
- path: resolvedPath,
431
- body,
432
- });
282
+ b.m("POST").h(headers).b(body);
283
+ return b.build();
433
284
  };
434
285
  exports.se_ListAnalyzedResourcesCommand = se_ListAnalyzedResourcesCommand;
435
286
  const se_ListAnalyzersCommand = async (input, context) => {
436
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
287
+ const b = (0, core_2.requestBuilder)(input, context);
437
288
  const headers = {};
438
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer";
289
+ b.bp("/analyzer");
439
290
  const query = (0, smithy_client_1.map)({
440
- nextToken: [, input.nextToken],
441
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
442
- type: [, input.type],
291
+ [_nT]: [, input[_nT]],
292
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
293
+ [_t]: [, input[_t]],
443
294
  });
444
295
  let body;
445
- return new protocol_http_1.HttpRequest({
446
- protocol,
447
- hostname,
448
- port,
449
- method: "GET",
450
- headers,
451
- path: resolvedPath,
452
- query,
453
- body,
454
- });
296
+ b.m("GET").h(headers).q(query).b(body);
297
+ return b.build();
455
298
  };
456
299
  exports.se_ListAnalyzersCommand = se_ListAnalyzersCommand;
457
300
  const se_ListArchiveRulesCommand = async (input, context) => {
458
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
301
+ const b = (0, core_2.requestBuilder)(input, context);
459
302
  const headers = {};
460
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}/archive-rule";
461
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analyzerName", () => input.analyzerName, "{analyzerName}", false);
303
+ b.bp("/analyzer/{analyzerName}/archive-rule");
304
+ b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
462
305
  const query = (0, smithy_client_1.map)({
463
- nextToken: [, input.nextToken],
464
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
306
+ [_nT]: [, input[_nT]],
307
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
465
308
  });
466
309
  let body;
467
- return new protocol_http_1.HttpRequest({
468
- protocol,
469
- hostname,
470
- port,
471
- method: "GET",
472
- headers,
473
- path: resolvedPath,
474
- query,
475
- body,
476
- });
310
+ b.m("GET").h(headers).q(query).b(body);
311
+ return b.build();
477
312
  };
478
313
  exports.se_ListArchiveRulesCommand = se_ListArchiveRulesCommand;
479
314
  const se_ListFindingsCommand = async (input, context) => {
480
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
315
+ const b = (0, core_2.requestBuilder)(input, context);
481
316
  const headers = {
482
317
  "content-type": "application/json",
483
318
  };
484
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding";
319
+ b.bp("/finding");
485
320
  let body;
486
321
  body = JSON.stringify((0, smithy_client_1.take)(input, {
487
322
  analyzerArn: [],
@@ -490,23 +325,16 @@ const se_ListFindingsCommand = async (input, context) => {
490
325
  nextToken: [],
491
326
  sort: (_) => (0, smithy_client_1._json)(_),
492
327
  }));
493
- return new protocol_http_1.HttpRequest({
494
- protocol,
495
- hostname,
496
- port,
497
- method: "POST",
498
- headers,
499
- path: resolvedPath,
500
- body,
501
- });
328
+ b.m("POST").h(headers).b(body);
329
+ return b.build();
502
330
  };
503
331
  exports.se_ListFindingsCommand = se_ListFindingsCommand;
504
332
  const se_ListFindingsV2Command = async (input, context) => {
505
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
333
+ const b = (0, core_2.requestBuilder)(input, context);
506
334
  const headers = {
507
335
  "content-type": "application/json",
508
336
  };
509
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingv2";
337
+ b.bp("/findingv2");
510
338
  let body;
511
339
  body = JSON.stringify((0, smithy_client_1.take)(input, {
512
340
  analyzerArn: [],
@@ -515,179 +343,120 @@ const se_ListFindingsV2Command = async (input, context) => {
515
343
  nextToken: [],
516
344
  sort: (_) => (0, smithy_client_1._json)(_),
517
345
  }));
518
- return new protocol_http_1.HttpRequest({
519
- protocol,
520
- hostname,
521
- port,
522
- method: "POST",
523
- headers,
524
- path: resolvedPath,
525
- body,
526
- });
346
+ b.m("POST").h(headers).b(body);
347
+ return b.build();
527
348
  };
528
349
  exports.se_ListFindingsV2Command = se_ListFindingsV2Command;
529
350
  const se_ListPolicyGenerationsCommand = async (input, context) => {
530
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
351
+ const b = (0, core_2.requestBuilder)(input, context);
531
352
  const headers = {};
532
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation";
353
+ b.bp("/policy/generation");
533
354
  const query = (0, smithy_client_1.map)({
534
- principalArn: [, input.principalArn],
535
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
536
- nextToken: [, input.nextToken],
355
+ [_pA]: [, input[_pA]],
356
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
357
+ [_nT]: [, input[_nT]],
537
358
  });
538
359
  let body;
539
- return new protocol_http_1.HttpRequest({
540
- protocol,
541
- hostname,
542
- port,
543
- method: "GET",
544
- headers,
545
- path: resolvedPath,
546
- query,
547
- body,
548
- });
360
+ b.m("GET").h(headers).q(query).b(body);
361
+ return b.build();
549
362
  };
550
363
  exports.se_ListPolicyGenerationsCommand = se_ListPolicyGenerationsCommand;
551
364
  const se_ListTagsForResourceCommand = async (input, context) => {
552
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
365
+ const b = (0, core_2.requestBuilder)(input, context);
553
366
  const headers = {};
554
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
555
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
367
+ b.bp("/tags/{resourceArn}");
368
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
556
369
  let body;
557
- return new protocol_http_1.HttpRequest({
558
- protocol,
559
- hostname,
560
- port,
561
- method: "GET",
562
- headers,
563
- path: resolvedPath,
564
- body,
565
- });
370
+ b.m("GET").h(headers).b(body);
371
+ return b.build();
566
372
  };
567
373
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
568
374
  const se_StartPolicyGenerationCommand = async (input, context) => {
569
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
375
+ const b = (0, core_2.requestBuilder)(input, context);
570
376
  const headers = {
571
377
  "content-type": "application/json",
572
378
  };
573
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation";
379
+ b.bp("/policy/generation");
574
380
  let body;
575
381
  body = JSON.stringify((0, smithy_client_1.take)(input, {
576
382
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
577
383
  cloudTrailDetails: (_) => se_CloudTrailDetails(_, context),
578
384
  policyGenerationDetails: (_) => (0, smithy_client_1._json)(_),
579
385
  }));
580
- return new protocol_http_1.HttpRequest({
581
- protocol,
582
- hostname,
583
- port,
584
- method: "PUT",
585
- headers,
586
- path: resolvedPath,
587
- body,
588
- });
386
+ b.m("PUT").h(headers).b(body);
387
+ return b.build();
589
388
  };
590
389
  exports.se_StartPolicyGenerationCommand = se_StartPolicyGenerationCommand;
591
390
  const se_StartResourceScanCommand = async (input, context) => {
592
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
391
+ const b = (0, core_2.requestBuilder)(input, context);
593
392
  const headers = {
594
393
  "content-type": "application/json",
595
394
  };
596
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource/scan";
395
+ b.bp("/resource/scan");
597
396
  let body;
598
397
  body = JSON.stringify((0, smithy_client_1.take)(input, {
599
398
  analyzerArn: [],
600
399
  resourceArn: [],
601
400
  resourceOwnerAccount: [],
602
401
  }));
603
- return new protocol_http_1.HttpRequest({
604
- protocol,
605
- hostname,
606
- port,
607
- method: "POST",
608
- headers,
609
- path: resolvedPath,
610
- body,
611
- });
402
+ b.m("POST").h(headers).b(body);
403
+ return b.build();
612
404
  };
613
405
  exports.se_StartResourceScanCommand = se_StartResourceScanCommand;
614
406
  const se_TagResourceCommand = async (input, context) => {
615
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
407
+ const b = (0, core_2.requestBuilder)(input, context);
616
408
  const headers = {
617
409
  "content-type": "application/json",
618
410
  };
619
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
620
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
411
+ b.bp("/tags/{resourceArn}");
412
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
621
413
  let body;
622
414
  body = JSON.stringify((0, smithy_client_1.take)(input, {
623
415
  tags: (_) => (0, smithy_client_1._json)(_),
624
416
  }));
625
- return new protocol_http_1.HttpRequest({
626
- protocol,
627
- hostname,
628
- port,
629
- method: "POST",
630
- headers,
631
- path: resolvedPath,
632
- body,
633
- });
417
+ b.m("POST").h(headers).b(body);
418
+ return b.build();
634
419
  };
635
420
  exports.se_TagResourceCommand = se_TagResourceCommand;
636
421
  const se_UntagResourceCommand = async (input, context) => {
637
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
422
+ const b = (0, core_2.requestBuilder)(input, context);
638
423
  const headers = {};
639
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
640
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
424
+ b.bp("/tags/{resourceArn}");
425
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
641
426
  const query = (0, smithy_client_1.map)({
642
- tagKeys: [
427
+ [_tK]: [
643
428
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
644
- () => (input.tagKeys || []).map((_entry) => _entry),
429
+ () => (input[_tK] || []).map((_entry) => _entry),
645
430
  ],
646
431
  });
647
432
  let body;
648
- return new protocol_http_1.HttpRequest({
649
- protocol,
650
- hostname,
651
- port,
652
- method: "DELETE",
653
- headers,
654
- path: resolvedPath,
655
- query,
656
- body,
657
- });
433
+ b.m("DELETE").h(headers).q(query).b(body);
434
+ return b.build();
658
435
  };
659
436
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
660
437
  const se_UpdateArchiveRuleCommand = async (input, context) => {
661
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
438
+ const b = (0, core_2.requestBuilder)(input, context);
662
439
  const headers = {
663
440
  "content-type": "application/json",
664
441
  };
665
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
666
- "/analyzer/{analyzerName}/archive-rule/{ruleName}";
667
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analyzerName", () => input.analyzerName, "{analyzerName}", false);
668
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
442
+ b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");
443
+ b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
444
+ b.p("ruleName", () => input.ruleName, "{ruleName}", false);
669
445
  let body;
670
446
  body = JSON.stringify((0, smithy_client_1.take)(input, {
671
447
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
672
448
  filter: (_) => (0, smithy_client_1._json)(_),
673
449
  }));
674
- return new protocol_http_1.HttpRequest({
675
- protocol,
676
- hostname,
677
- port,
678
- method: "PUT",
679
- headers,
680
- path: resolvedPath,
681
- body,
682
- });
450
+ b.m("PUT").h(headers).b(body);
451
+ return b.build();
683
452
  };
684
453
  exports.se_UpdateArchiveRuleCommand = se_UpdateArchiveRuleCommand;
685
454
  const se_UpdateFindingsCommand = async (input, context) => {
686
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
455
+ const b = (0, core_2.requestBuilder)(input, context);
687
456
  const headers = {
688
457
  "content-type": "application/json",
689
458
  };
690
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding";
459
+ b.bp("/finding");
691
460
  let body;
692
461
  body = JSON.stringify((0, smithy_client_1.take)(input, {
693
462
  analyzerArn: [],
@@ -696,26 +465,19 @@ const se_UpdateFindingsCommand = async (input, context) => {
696
465
  resourceArn: [],
697
466
  status: [],
698
467
  }));
699
- return new protocol_http_1.HttpRequest({
700
- protocol,
701
- hostname,
702
- port,
703
- method: "PUT",
704
- headers,
705
- path: resolvedPath,
706
- body,
707
- });
468
+ b.m("PUT").h(headers).b(body);
469
+ return b.build();
708
470
  };
709
471
  exports.se_UpdateFindingsCommand = se_UpdateFindingsCommand;
710
472
  const se_ValidatePolicyCommand = async (input, context) => {
711
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
473
+ const b = (0, core_2.requestBuilder)(input, context);
712
474
  const headers = {
713
475
  "content-type": "application/json",
714
476
  };
715
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/validation";
477
+ b.bp("/policy/validation");
716
478
  const query = (0, smithy_client_1.map)({
717
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
718
- nextToken: [, input.nextToken],
479
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
480
+ [_nT]: [, input[_nT]],
719
481
  });
720
482
  let body;
721
483
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -724,16 +486,8 @@ const se_ValidatePolicyCommand = async (input, context) => {
724
486
  policyType: [],
725
487
  validatePolicyResourceType: [],
726
488
  }));
727
- return new protocol_http_1.HttpRequest({
728
- protocol,
729
- hostname,
730
- port,
731
- method: "POST",
732
- headers,
733
- path: resolvedPath,
734
- query,
735
- body,
736
- });
489
+ b.m("POST").h(headers).q(query).b(body);
490
+ return b.build();
737
491
  };
738
492
  exports.se_ValidatePolicyCommand = se_ValidatePolicyCommand;
739
493
  const de_ApplyArchiveRuleCommand = async (output, context) => {
@@ -2233,10 +1987,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2233
1987
  };
2234
1988
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2235
1989
  const contents = (0, smithy_client_1.map)({
2236
- retryAfterSeconds: [
2237
- () => void 0 !== parsedOutput.headers["retry-after"],
2238
- () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
2239
- ],
1990
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
2240
1991
  });
2241
1992
  const data = parsedOutput.body;
2242
1993
  const doc = (0, smithy_client_1.take)(data, {
@@ -2294,10 +2045,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2294
2045
  };
2295
2046
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2296
2047
  const contents = (0, smithy_client_1.map)({
2297
- retryAfterSeconds: [
2298
- () => void 0 !== parsedOutput.headers["retry-after"],
2299
- () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
2300
- ],
2048
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
2301
2049
  });
2302
2050
  const data = parsedOutput.body;
2303
2051
  const doc = (0, smithy_client_1.take)(data, {
@@ -2650,6 +2398,18 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2650
2398
  value !== "" &&
2651
2399
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2652
2400
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2401
+ const _aA = "analyzerArn";
2402
+ const _cT = "clientToken";
2403
+ const _iRP = "includeResourcePlaceholders";
2404
+ const _iSLT = "includeServiceLevelTemplate";
2405
+ const _mR = "maxResults";
2406
+ const _nT = "nextToken";
2407
+ const _pA = "principalArn";
2408
+ const _rA = "resourceArn";
2409
+ const _rAS = "retryAfterSeconds";
2410
+ const _ra = "retry-after";
2411
+ const _t = "type";
2412
+ const _tK = "tagKeys";
2653
2413
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2654
2414
  if (encoded.length) {
2655
2415
  return JSON.parse(encoded);