@aws-sdk/client-rolesanywhere 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.
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_PutNotificationSettingsCommand = exports.de_ListTrustAnchorsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubjectsCommand = exports.de_ListProfilesCommand = exports.de_ListCrlsCommand = exports.de_ImportCrlCommand = exports.de_GetTrustAnchorCommand = exports.de_GetSubjectCommand = exports.de_GetProfileCommand = exports.de_GetCrlCommand = exports.de_EnableTrustAnchorCommand = exports.de_EnableProfileCommand = exports.de_EnableCrlCommand = exports.de_DisableTrustAnchorCommand = exports.de_DisableProfileCommand = exports.de_DisableCrlCommand = exports.de_DeleteTrustAnchorCommand = exports.de_DeleteProfileCommand = exports.de_DeleteCrlCommand = exports.de_CreateTrustAnchorCommand = exports.de_CreateProfileCommand = exports.se_UpdateTrustAnchorCommand = exports.se_UpdateProfileCommand = exports.se_UpdateCrlCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ResetNotificationSettingsCommand = exports.se_PutNotificationSettingsCommand = exports.se_ListTrustAnchorsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSubjectsCommand = exports.se_ListProfilesCommand = exports.se_ListCrlsCommand = exports.se_ImportCrlCommand = exports.se_GetTrustAnchorCommand = exports.se_GetSubjectCommand = exports.se_GetProfileCommand = exports.se_GetCrlCommand = exports.se_EnableTrustAnchorCommand = exports.se_EnableProfileCommand = exports.se_EnableCrlCommand = exports.se_DisableTrustAnchorCommand = exports.se_DisableProfileCommand = exports.se_DisableCrlCommand = exports.se_DeleteTrustAnchorCommand = exports.se_DeleteProfileCommand = exports.se_DeleteCrlCommand = exports.se_CreateTrustAnchorCommand = exports.se_CreateProfileCommand = void 0;
4
4
  exports.de_UpdateTrustAnchorCommand = exports.de_UpdateProfileCommand = exports.de_UpdateCrlCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ResetNotificationSettingsCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const RolesAnywhereServiceException_1 = require("../models/RolesAnywhereServiceException");
9
9
  const se_CreateProfileCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
14
+ b.bp("/profiles");
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  durationSeconds: [],
@@ -23,23 +23,16 @@ const se_CreateProfileCommand = async (input, context) => {
23
23
  sessionPolicy: [],
24
24
  tags: (_) => (0, smithy_client_1._json)(_),
25
25
  }));
26
- return new protocol_http_1.HttpRequest({
27
- protocol,
28
- hostname,
29
- port,
30
- method: "POST",
31
- headers,
32
- path: resolvedPath,
33
- body,
34
- });
26
+ b.m("POST").h(headers).b(body);
27
+ return b.build();
35
28
  };
36
29
  exports.se_CreateProfileCommand = se_CreateProfileCommand;
37
30
  const se_CreateTrustAnchorCommand = async (input, context) => {
38
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
+ const b = (0, core_1.requestBuilder)(input, context);
39
32
  const headers = {
40
33
  "content-type": "application/json",
41
34
  };
42
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors";
35
+ b.bp("/trustanchors");
43
36
  let body;
44
37
  body = JSON.stringify((0, smithy_client_1.take)(input, {
45
38
  enabled: [],
@@ -48,244 +41,146 @@ const se_CreateTrustAnchorCommand = async (input, context) => {
48
41
  source: (_) => (0, smithy_client_1._json)(_),
49
42
  tags: (_) => (0, smithy_client_1._json)(_),
50
43
  }));
51
- return new protocol_http_1.HttpRequest({
52
- protocol,
53
- hostname,
54
- port,
55
- method: "POST",
56
- headers,
57
- path: resolvedPath,
58
- body,
59
- });
44
+ b.m("POST").h(headers).b(body);
45
+ return b.build();
60
46
  };
61
47
  exports.se_CreateTrustAnchorCommand = se_CreateTrustAnchorCommand;
62
48
  const se_DeleteCrlCommand = async (input, context) => {
63
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
+ const b = (0, core_1.requestBuilder)(input, context);
64
50
  const headers = {};
65
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}";
66
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "crlId", () => input.crlId, "{crlId}", false);
51
+ b.bp("/crl/{crlId}");
52
+ b.p("crlId", () => input.crlId, "{crlId}", false);
67
53
  let body;
68
- return new protocol_http_1.HttpRequest({
69
- protocol,
70
- hostname,
71
- port,
72
- method: "DELETE",
73
- headers,
74
- path: resolvedPath,
75
- body,
76
- });
54
+ b.m("DELETE").h(headers).b(body);
55
+ return b.build();
77
56
  };
78
57
  exports.se_DeleteCrlCommand = se_DeleteCrlCommand;
79
58
  const se_DeleteProfileCommand = async (input, context) => {
80
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
+ const b = (0, core_1.requestBuilder)(input, context);
81
60
  const headers = {};
82
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}";
83
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profileId", () => input.profileId, "{profileId}", false);
61
+ b.bp("/profile/{profileId}");
62
+ b.p("profileId", () => input.profileId, "{profileId}", false);
84
63
  let body;
85
- return new protocol_http_1.HttpRequest({
86
- protocol,
87
- hostname,
88
- port,
89
- method: "DELETE",
90
- headers,
91
- path: resolvedPath,
92
- body,
93
- });
64
+ b.m("DELETE").h(headers).b(body);
65
+ return b.build();
94
66
  };
95
67
  exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
96
68
  const se_DeleteTrustAnchorCommand = async (input, context) => {
97
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
69
+ const b = (0, core_1.requestBuilder)(input, context);
98
70
  const headers = {};
99
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}";
100
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
71
+ b.bp("/trustanchor/{trustAnchorId}");
72
+ b.p("trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
101
73
  let body;
102
- return new protocol_http_1.HttpRequest({
103
- protocol,
104
- hostname,
105
- port,
106
- method: "DELETE",
107
- headers,
108
- path: resolvedPath,
109
- body,
110
- });
74
+ b.m("DELETE").h(headers).b(body);
75
+ return b.build();
111
76
  };
112
77
  exports.se_DeleteTrustAnchorCommand = se_DeleteTrustAnchorCommand;
113
78
  const se_DisableCrlCommand = async (input, context) => {
114
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
+ const b = (0, core_1.requestBuilder)(input, context);
115
80
  const headers = {};
116
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}/disable";
117
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "crlId", () => input.crlId, "{crlId}", false);
81
+ b.bp("/crl/{crlId}/disable");
82
+ b.p("crlId", () => input.crlId, "{crlId}", false);
118
83
  let body;
119
- return new protocol_http_1.HttpRequest({
120
- protocol,
121
- hostname,
122
- port,
123
- method: "POST",
124
- headers,
125
- path: resolvedPath,
126
- body,
127
- });
84
+ b.m("POST").h(headers).b(body);
85
+ return b.build();
128
86
  };
129
87
  exports.se_DisableCrlCommand = se_DisableCrlCommand;
130
88
  const se_DisableProfileCommand = async (input, context) => {
131
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
89
+ const b = (0, core_1.requestBuilder)(input, context);
132
90
  const headers = {};
133
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}/disable";
134
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profileId", () => input.profileId, "{profileId}", false);
91
+ b.bp("/profile/{profileId}/disable");
92
+ b.p("profileId", () => input.profileId, "{profileId}", false);
135
93
  let body;
136
- return new protocol_http_1.HttpRequest({
137
- protocol,
138
- hostname,
139
- port,
140
- method: "POST",
141
- headers,
142
- path: resolvedPath,
143
- body,
144
- });
94
+ b.m("POST").h(headers).b(body);
95
+ return b.build();
145
96
  };
146
97
  exports.se_DisableProfileCommand = se_DisableProfileCommand;
147
98
  const se_DisableTrustAnchorCommand = async (input, context) => {
148
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
99
+ const b = (0, core_1.requestBuilder)(input, context);
149
100
  const headers = {};
150
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}/disable";
151
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
101
+ b.bp("/trustanchor/{trustAnchorId}/disable");
102
+ b.p("trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
152
103
  let body;
153
- return new protocol_http_1.HttpRequest({
154
- protocol,
155
- hostname,
156
- port,
157
- method: "POST",
158
- headers,
159
- path: resolvedPath,
160
- body,
161
- });
104
+ b.m("POST").h(headers).b(body);
105
+ return b.build();
162
106
  };
163
107
  exports.se_DisableTrustAnchorCommand = se_DisableTrustAnchorCommand;
164
108
  const se_EnableCrlCommand = async (input, context) => {
165
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
109
+ const b = (0, core_1.requestBuilder)(input, context);
166
110
  const headers = {};
167
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}/enable";
168
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "crlId", () => input.crlId, "{crlId}", false);
111
+ b.bp("/crl/{crlId}/enable");
112
+ b.p("crlId", () => input.crlId, "{crlId}", false);
169
113
  let body;
170
- return new protocol_http_1.HttpRequest({
171
- protocol,
172
- hostname,
173
- port,
174
- method: "POST",
175
- headers,
176
- path: resolvedPath,
177
- body,
178
- });
114
+ b.m("POST").h(headers).b(body);
115
+ return b.build();
179
116
  };
180
117
  exports.se_EnableCrlCommand = se_EnableCrlCommand;
181
118
  const se_EnableProfileCommand = async (input, context) => {
182
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
119
+ const b = (0, core_1.requestBuilder)(input, context);
183
120
  const headers = {};
184
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}/enable";
185
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profileId", () => input.profileId, "{profileId}", false);
121
+ b.bp("/profile/{profileId}/enable");
122
+ b.p("profileId", () => input.profileId, "{profileId}", false);
186
123
  let body;
187
- return new protocol_http_1.HttpRequest({
188
- protocol,
189
- hostname,
190
- port,
191
- method: "POST",
192
- headers,
193
- path: resolvedPath,
194
- body,
195
- });
124
+ b.m("POST").h(headers).b(body);
125
+ return b.build();
196
126
  };
197
127
  exports.se_EnableProfileCommand = se_EnableProfileCommand;
198
128
  const se_EnableTrustAnchorCommand = async (input, context) => {
199
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
129
+ const b = (0, core_1.requestBuilder)(input, context);
200
130
  const headers = {};
201
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}/enable";
202
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
131
+ b.bp("/trustanchor/{trustAnchorId}/enable");
132
+ b.p("trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
203
133
  let body;
204
- return new protocol_http_1.HttpRequest({
205
- protocol,
206
- hostname,
207
- port,
208
- method: "POST",
209
- headers,
210
- path: resolvedPath,
211
- body,
212
- });
134
+ b.m("POST").h(headers).b(body);
135
+ return b.build();
213
136
  };
214
137
  exports.se_EnableTrustAnchorCommand = se_EnableTrustAnchorCommand;
215
138
  const se_GetCrlCommand = async (input, context) => {
216
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
+ const b = (0, core_1.requestBuilder)(input, context);
217
140
  const headers = {};
218
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}";
219
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "crlId", () => input.crlId, "{crlId}", false);
141
+ b.bp("/crl/{crlId}");
142
+ b.p("crlId", () => input.crlId, "{crlId}", false);
220
143
  let body;
221
- return new protocol_http_1.HttpRequest({
222
- protocol,
223
- hostname,
224
- port,
225
- method: "GET",
226
- headers,
227
- path: resolvedPath,
228
- body,
229
- });
144
+ b.m("GET").h(headers).b(body);
145
+ return b.build();
230
146
  };
231
147
  exports.se_GetCrlCommand = se_GetCrlCommand;
232
148
  const se_GetProfileCommand = async (input, context) => {
233
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
149
+ const b = (0, core_1.requestBuilder)(input, context);
234
150
  const headers = {};
235
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}";
236
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profileId", () => input.profileId, "{profileId}", false);
151
+ b.bp("/profile/{profileId}");
152
+ b.p("profileId", () => input.profileId, "{profileId}", false);
237
153
  let body;
238
- return new protocol_http_1.HttpRequest({
239
- protocol,
240
- hostname,
241
- port,
242
- method: "GET",
243
- headers,
244
- path: resolvedPath,
245
- body,
246
- });
154
+ b.m("GET").h(headers).b(body);
155
+ return b.build();
247
156
  };
248
157
  exports.se_GetProfileCommand = se_GetProfileCommand;
249
158
  const se_GetSubjectCommand = async (input, context) => {
250
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
159
+ const b = (0, core_1.requestBuilder)(input, context);
251
160
  const headers = {};
252
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subject/{subjectId}";
253
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subjectId", () => input.subjectId, "{subjectId}", false);
161
+ b.bp("/subject/{subjectId}");
162
+ b.p("subjectId", () => input.subjectId, "{subjectId}", false);
254
163
  let body;
255
- return new protocol_http_1.HttpRequest({
256
- protocol,
257
- hostname,
258
- port,
259
- method: "GET",
260
- headers,
261
- path: resolvedPath,
262
- body,
263
- });
164
+ b.m("GET").h(headers).b(body);
165
+ return b.build();
264
166
  };
265
167
  exports.se_GetSubjectCommand = se_GetSubjectCommand;
266
168
  const se_GetTrustAnchorCommand = async (input, context) => {
267
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
169
+ const b = (0, core_1.requestBuilder)(input, context);
268
170
  const headers = {};
269
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}";
270
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
171
+ b.bp("/trustanchor/{trustAnchorId}");
172
+ b.p("trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
271
173
  let body;
272
- return new protocol_http_1.HttpRequest({
273
- protocol,
274
- hostname,
275
- port,
276
- method: "GET",
277
- headers,
278
- path: resolvedPath,
279
- body,
280
- });
174
+ b.m("GET").h(headers).b(body);
175
+ return b.build();
281
176
  };
282
177
  exports.se_GetTrustAnchorCommand = se_GetTrustAnchorCommand;
283
178
  const se_ImportCrlCommand = async (input, context) => {
284
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
179
+ const b = (0, core_1.requestBuilder)(input, context);
285
180
  const headers = {
286
181
  "content-type": "application/json",
287
182
  };
288
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crls";
183
+ b.bp("/crls");
289
184
  let body;
290
185
  body = JSON.stringify((0, smithy_client_1.take)(input, {
291
186
  crlData: (_) => context.base64Encoder(_),
@@ -294,239 +189,157 @@ const se_ImportCrlCommand = async (input, context) => {
294
189
  tags: (_) => (0, smithy_client_1._json)(_),
295
190
  trustAnchorArn: [],
296
191
  }));
297
- return new protocol_http_1.HttpRequest({
298
- protocol,
299
- hostname,
300
- port,
301
- method: "POST",
302
- headers,
303
- path: resolvedPath,
304
- body,
305
- });
192
+ b.m("POST").h(headers).b(body);
193
+ return b.build();
306
194
  };
307
195
  exports.se_ImportCrlCommand = se_ImportCrlCommand;
308
196
  const se_ListCrlsCommand = async (input, context) => {
309
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
197
+ const b = (0, core_1.requestBuilder)(input, context);
310
198
  const headers = {};
311
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crls";
199
+ b.bp("/crls");
312
200
  const query = (0, smithy_client_1.map)({
313
- nextToken: [, input.nextToken],
314
- pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
201
+ [_nT]: [, input[_nT]],
202
+ [_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()],
315
203
  });
316
204
  let body;
317
- return new protocol_http_1.HttpRequest({
318
- protocol,
319
- hostname,
320
- port,
321
- method: "GET",
322
- headers,
323
- path: resolvedPath,
324
- query,
325
- body,
326
- });
205
+ b.m("GET").h(headers).q(query).b(body);
206
+ return b.build();
327
207
  };
328
208
  exports.se_ListCrlsCommand = se_ListCrlsCommand;
329
209
  const se_ListProfilesCommand = async (input, context) => {
330
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
210
+ const b = (0, core_1.requestBuilder)(input, context);
331
211
  const headers = {};
332
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
212
+ b.bp("/profiles");
333
213
  const query = (0, smithy_client_1.map)({
334
- nextToken: [, input.nextToken],
335
- pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
214
+ [_nT]: [, input[_nT]],
215
+ [_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()],
336
216
  });
337
217
  let body;
338
- return new protocol_http_1.HttpRequest({
339
- protocol,
340
- hostname,
341
- port,
342
- method: "GET",
343
- headers,
344
- path: resolvedPath,
345
- query,
346
- body,
347
- });
218
+ b.m("GET").h(headers).q(query).b(body);
219
+ return b.build();
348
220
  };
349
221
  exports.se_ListProfilesCommand = se_ListProfilesCommand;
350
222
  const se_ListSubjectsCommand = async (input, context) => {
351
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
223
+ const b = (0, core_1.requestBuilder)(input, context);
352
224
  const headers = {};
353
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subjects";
225
+ b.bp("/subjects");
354
226
  const query = (0, smithy_client_1.map)({
355
- nextToken: [, input.nextToken],
356
- pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
227
+ [_nT]: [, input[_nT]],
228
+ [_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()],
357
229
  });
358
230
  let body;
359
- return new protocol_http_1.HttpRequest({
360
- protocol,
361
- hostname,
362
- port,
363
- method: "GET",
364
- headers,
365
- path: resolvedPath,
366
- query,
367
- body,
368
- });
231
+ b.m("GET").h(headers).q(query).b(body);
232
+ return b.build();
369
233
  };
370
234
  exports.se_ListSubjectsCommand = se_ListSubjectsCommand;
371
235
  const se_ListTagsForResourceCommand = async (input, context) => {
372
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
236
+ const b = (0, core_1.requestBuilder)(input, context);
373
237
  const headers = {};
374
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource";
238
+ b.bp("/ListTagsForResource");
375
239
  const query = (0, smithy_client_1.map)({
376
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
240
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
377
241
  });
378
242
  let body;
379
- return new protocol_http_1.HttpRequest({
380
- protocol,
381
- hostname,
382
- port,
383
- method: "GET",
384
- headers,
385
- path: resolvedPath,
386
- query,
387
- body,
388
- });
243
+ b.m("GET").h(headers).q(query).b(body);
244
+ return b.build();
389
245
  };
390
246
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
391
247
  const se_ListTrustAnchorsCommand = async (input, context) => {
392
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
248
+ const b = (0, core_1.requestBuilder)(input, context);
393
249
  const headers = {};
394
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors";
250
+ b.bp("/trustanchors");
395
251
  const query = (0, smithy_client_1.map)({
396
- nextToken: [, input.nextToken],
397
- pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
252
+ [_nT]: [, input[_nT]],
253
+ [_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()],
398
254
  });
399
255
  let body;
400
- return new protocol_http_1.HttpRequest({
401
- protocol,
402
- hostname,
403
- port,
404
- method: "GET",
405
- headers,
406
- path: resolvedPath,
407
- query,
408
- body,
409
- });
256
+ b.m("GET").h(headers).q(query).b(body);
257
+ return b.build();
410
258
  };
411
259
  exports.se_ListTrustAnchorsCommand = se_ListTrustAnchorsCommand;
412
260
  const se_PutNotificationSettingsCommand = async (input, context) => {
413
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
261
+ const b = (0, core_1.requestBuilder)(input, context);
414
262
  const headers = {
415
263
  "content-type": "application/json",
416
264
  };
417
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-notifications-settings";
265
+ b.bp("/put-notifications-settings");
418
266
  let body;
419
267
  body = JSON.stringify((0, smithy_client_1.take)(input, {
420
268
  notificationSettings: (_) => (0, smithy_client_1._json)(_),
421
269
  trustAnchorId: [],
422
270
  }));
423
- return new protocol_http_1.HttpRequest({
424
- protocol,
425
- hostname,
426
- port,
427
- method: "PATCH",
428
- headers,
429
- path: resolvedPath,
430
- body,
431
- });
271
+ b.m("PATCH").h(headers).b(body);
272
+ return b.build();
432
273
  };
433
274
  exports.se_PutNotificationSettingsCommand = se_PutNotificationSettingsCommand;
434
275
  const se_ResetNotificationSettingsCommand = async (input, context) => {
435
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
276
+ const b = (0, core_1.requestBuilder)(input, context);
436
277
  const headers = {
437
278
  "content-type": "application/json",
438
279
  };
439
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reset-notifications-settings";
280
+ b.bp("/reset-notifications-settings");
440
281
  let body;
441
282
  body = JSON.stringify((0, smithy_client_1.take)(input, {
442
283
  notificationSettingKeys: (_) => (0, smithy_client_1._json)(_),
443
284
  trustAnchorId: [],
444
285
  }));
445
- return new protocol_http_1.HttpRequest({
446
- protocol,
447
- hostname,
448
- port,
449
- method: "PATCH",
450
- headers,
451
- path: resolvedPath,
452
- body,
453
- });
286
+ b.m("PATCH").h(headers).b(body);
287
+ return b.build();
454
288
  };
455
289
  exports.se_ResetNotificationSettingsCommand = se_ResetNotificationSettingsCommand;
456
290
  const se_TagResourceCommand = async (input, context) => {
457
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
291
+ const b = (0, core_1.requestBuilder)(input, context);
458
292
  const headers = {
459
293
  "content-type": "application/json",
460
294
  };
461
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource";
295
+ b.bp("/TagResource");
462
296
  let body;
463
297
  body = JSON.stringify((0, smithy_client_1.take)(input, {
464
298
  resourceArn: [],
465
299
  tags: (_) => (0, smithy_client_1._json)(_),
466
300
  }));
467
- return new protocol_http_1.HttpRequest({
468
- protocol,
469
- hostname,
470
- port,
471
- method: "POST",
472
- headers,
473
- path: resolvedPath,
474
- body,
475
- });
301
+ b.m("POST").h(headers).b(body);
302
+ return b.build();
476
303
  };
477
304
  exports.se_TagResourceCommand = se_TagResourceCommand;
478
305
  const se_UntagResourceCommand = async (input, context) => {
479
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
+ const b = (0, core_1.requestBuilder)(input, context);
480
307
  const headers = {
481
308
  "content-type": "application/json",
482
309
  };
483
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource";
310
+ b.bp("/UntagResource");
484
311
  let body;
485
312
  body = JSON.stringify((0, smithy_client_1.take)(input, {
486
313
  resourceArn: [],
487
314
  tagKeys: (_) => (0, smithy_client_1._json)(_),
488
315
  }));
489
- return new protocol_http_1.HttpRequest({
490
- protocol,
491
- hostname,
492
- port,
493
- method: "POST",
494
- headers,
495
- path: resolvedPath,
496
- body,
497
- });
316
+ b.m("POST").h(headers).b(body);
317
+ return b.build();
498
318
  };
499
319
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
500
320
  const se_UpdateCrlCommand = async (input, context) => {
501
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
321
+ const b = (0, core_1.requestBuilder)(input, context);
502
322
  const headers = {
503
323
  "content-type": "application/json",
504
324
  };
505
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}";
506
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "crlId", () => input.crlId, "{crlId}", false);
325
+ b.bp("/crl/{crlId}");
326
+ b.p("crlId", () => input.crlId, "{crlId}", false);
507
327
  let body;
508
328
  body = JSON.stringify((0, smithy_client_1.take)(input, {
509
329
  crlData: (_) => context.base64Encoder(_),
510
330
  name: [],
511
331
  }));
512
- return new protocol_http_1.HttpRequest({
513
- protocol,
514
- hostname,
515
- port,
516
- method: "PATCH",
517
- headers,
518
- path: resolvedPath,
519
- body,
520
- });
332
+ b.m("PATCH").h(headers).b(body);
333
+ return b.build();
521
334
  };
522
335
  exports.se_UpdateCrlCommand = se_UpdateCrlCommand;
523
336
  const se_UpdateProfileCommand = async (input, context) => {
524
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
337
+ const b = (0, core_1.requestBuilder)(input, context);
525
338
  const headers = {
526
339
  "content-type": "application/json",
527
340
  };
528
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}";
529
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profileId", () => input.profileId, "{profileId}", false);
341
+ b.bp("/profile/{profileId}");
342
+ b.p("profileId", () => input.profileId, "{profileId}", false);
530
343
  let body;
531
344
  body = JSON.stringify((0, smithy_client_1.take)(input, {
532
345
  durationSeconds: [],
@@ -535,38 +348,24 @@ const se_UpdateProfileCommand = async (input, context) => {
535
348
  roleArns: (_) => (0, smithy_client_1._json)(_),
536
349
  sessionPolicy: [],
537
350
  }));
538
- return new protocol_http_1.HttpRequest({
539
- protocol,
540
- hostname,
541
- port,
542
- method: "PATCH",
543
- headers,
544
- path: resolvedPath,
545
- body,
546
- });
351
+ b.m("PATCH").h(headers).b(body);
352
+ return b.build();
547
353
  };
548
354
  exports.se_UpdateProfileCommand = se_UpdateProfileCommand;
549
355
  const se_UpdateTrustAnchorCommand = async (input, context) => {
550
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
356
+ const b = (0, core_1.requestBuilder)(input, context);
551
357
  const headers = {
552
358
  "content-type": "application/json",
553
359
  };
554
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}";
555
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
360
+ b.bp("/trustanchor/{trustAnchorId}");
361
+ b.p("trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
556
362
  let body;
557
363
  body = JSON.stringify((0, smithy_client_1.take)(input, {
558
364
  name: [],
559
365
  source: (_) => (0, smithy_client_1._json)(_),
560
366
  }));
561
- return new protocol_http_1.HttpRequest({
562
- protocol,
563
- hostname,
564
- port,
565
- method: "PATCH",
566
- headers,
567
- path: resolvedPath,
568
- body,
569
- });
367
+ b.m("PATCH").h(headers).b(body);
368
+ return b.build();
570
369
  };
571
370
  exports.se_UpdateTrustAnchorCommand = se_UpdateTrustAnchorCommand;
572
371
  const de_CreateProfileCommand = async (output, context) => {
@@ -1822,6 +1621,9 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1822
1621
  value !== "" &&
1823
1622
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1824
1623
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1624
+ const _nT = "nextToken";
1625
+ const _pS = "pageSize";
1626
+ const _rA = "resourceArn";
1825
1627
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1826
1628
  if (encoded.length) {
1827
1629
  return JSON.parse(encoded);