@aws-sdk/client-signer 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.
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSigningPlatformsCommand, } from "../commands/ListSigningPlatformsCommand";
2
3
  import { SignerClient } from "../SignerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSigningPlatformsCommand(input), ...args);
5
- };
6
- export async function* paginateListSigningPlatforms(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof SignerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Signer | SignerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSigningPlatforms = createPaginator(SignerClient, ListSigningPlatformsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSigningProfilesCommand, } from "../commands/ListSigningProfilesCommand";
2
3
  import { SignerClient } from "../SignerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSigningProfilesCommand(input), ...args);
5
- };
6
- export async function* paginateListSigningProfiles(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof SignerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Signer | SignerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSigningProfiles = createPaginator(SignerClient, ListSigningProfilesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,16 +1,16 @@
1
- import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
4
  import { v4 as generateIdempotencyToken } from "uuid";
4
5
  import { AccessDeniedException, BadRequestException, ConflictException, InternalServiceErrorException, NotFoundException, ResourceNotFoundException, ServiceLimitExceededException, ThrottlingException, TooManyRequestsException, ValidationException, } from "../models/models_0";
5
6
  import { SignerServiceException as __BaseException } from "../models/SignerServiceException";
6
7
  export const se_AddProfilePermissionCommand = async (input, context) => {
7
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
+ const b = rb(input, context);
8
9
  const headers = {
9
10
  "content-type": "application/json",
10
11
  };
11
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
12
- "/signing-profiles/{profileName}/permissions";
13
- resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName, "{profileName}", false);
12
+ b.bp("/signing-profiles/{profileName}/permissions");
13
+ b.p("profileName", () => input.profileName, "{profileName}", false);
14
14
  let body;
15
15
  body = JSON.stringify(take(input, {
16
16
  action: [],
@@ -19,63 +19,42 @@ export const se_AddProfilePermissionCommand = async (input, context) => {
19
19
  revisionId: [],
20
20
  statementId: [],
21
21
  }));
22
- return new __HttpRequest({
23
- protocol,
24
- hostname,
25
- port,
26
- method: "POST",
27
- headers,
28
- path: resolvedPath,
29
- body,
30
- });
22
+ b.m("POST").h(headers).b(body);
23
+ return b.build();
31
24
  };
32
25
  export const se_CancelSigningProfileCommand = async (input, context) => {
33
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
26
+ const b = rb(input, context);
34
27
  const headers = {};
35
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles/{profileName}";
36
- resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName, "{profileName}", false);
28
+ b.bp("/signing-profiles/{profileName}");
29
+ b.p("profileName", () => input.profileName, "{profileName}", false);
37
30
  let body;
38
- return new __HttpRequest({
39
- protocol,
40
- hostname,
41
- port,
42
- method: "DELETE",
43
- headers,
44
- path: resolvedPath,
45
- body,
46
- });
31
+ b.m("DELETE").h(headers).b(body);
32
+ return b.build();
47
33
  };
48
34
  export const se_DescribeSigningJobCommand = async (input, context) => {
49
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const b = rb(input, context);
50
36
  const headers = {};
51
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs/{jobId}";
52
- resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
37
+ b.bp("/signing-jobs/{jobId}");
38
+ b.p("jobId", () => input.jobId, "{jobId}", false);
53
39
  let body;
54
- return new __HttpRequest({
55
- protocol,
56
- hostname,
57
- port,
58
- method: "GET",
59
- headers,
60
- path: resolvedPath,
61
- body,
62
- });
40
+ b.m("GET").h(headers).b(body);
41
+ return b.build();
63
42
  };
64
43
  export const se_GetRevocationStatusCommand = async (input, context) => {
65
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
44
+ const b = rb(input, context);
66
45
  const headers = {};
67
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/revocations";
46
+ b.bp("/revocations");
68
47
  const query = map({
69
- signatureTimestamp: [
48
+ [_sT]: [
70
49
  __expectNonNull(input.signatureTimestamp, `signatureTimestamp`) != null,
71
- () => (input.signatureTimestamp.toISOString().split(".")[0] + "Z").toString(),
50
+ () => (input[_sT].toISOString().split(".")[0] + "Z").toString(),
72
51
  ],
73
- platformId: [, __expectNonNull(input.platformId, `platformId`)],
74
- profileVersionArn: [, __expectNonNull(input.profileVersionArn, `profileVersionArn`)],
75
- jobArn: [, __expectNonNull(input.jobArn, `jobArn`)],
76
- certificateHashes: [
52
+ [_pI]: [, __expectNonNull(input[_pI], `platformId`)],
53
+ [_pVA]: [, __expectNonNull(input[_pVA], `profileVersionArn`)],
54
+ [_jA]: [, __expectNonNull(input[_jA], `jobArn`)],
55
+ [_cH]: [
77
56
  __expectNonNull(input.certificateHashes, `certificateHashes`) != null,
78
- () => (input.certificateHashes || []).map((_entry) => _entry),
57
+ () => (input[_cH] || []).map((_entry) => _entry),
79
58
  ],
80
59
  });
81
60
  let body;
@@ -86,176 +65,114 @@ export const se_GetRevocationStatusCommand = async (input, context) => {
86
65
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
87
66
  }
88
67
  }
89
- return new __HttpRequest({
90
- protocol,
91
- hostname: resolvedHostname,
92
- port,
93
- method: "GET",
94
- headers,
95
- path: resolvedPath,
96
- query,
97
- body,
98
- });
68
+ b.hn(resolvedHostname);
69
+ b.m("GET").h(headers).q(query).b(body);
70
+ return b.build();
99
71
  };
100
72
  export const se_GetSigningPlatformCommand = async (input, context) => {
101
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = rb(input, context);
102
74
  const headers = {};
103
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-platforms/{platformId}";
104
- resolvedPath = __resolvedPath(resolvedPath, input, "platformId", () => input.platformId, "{platformId}", false);
75
+ b.bp("/signing-platforms/{platformId}");
76
+ b.p("platformId", () => input.platformId, "{platformId}", false);
105
77
  let body;
106
- return new __HttpRequest({
107
- protocol,
108
- hostname,
109
- port,
110
- method: "GET",
111
- headers,
112
- path: resolvedPath,
113
- body,
114
- });
78
+ b.m("GET").h(headers).b(body);
79
+ return b.build();
115
80
  };
116
81
  export const se_GetSigningProfileCommand = async (input, context) => {
117
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
82
+ const b = rb(input, context);
118
83
  const headers = {};
119
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles/{profileName}";
120
- resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName, "{profileName}", false);
84
+ b.bp("/signing-profiles/{profileName}");
85
+ b.p("profileName", () => input.profileName, "{profileName}", false);
121
86
  const query = map({
122
- profileOwner: [, input.profileOwner],
87
+ [_pO]: [, input[_pO]],
123
88
  });
124
89
  let body;
125
- return new __HttpRequest({
126
- protocol,
127
- hostname,
128
- port,
129
- method: "GET",
130
- headers,
131
- path: resolvedPath,
132
- query,
133
- body,
134
- });
90
+ b.m("GET").h(headers).q(query).b(body);
91
+ return b.build();
135
92
  };
136
93
  export const se_ListProfilePermissionsCommand = async (input, context) => {
137
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
94
+ const b = rb(input, context);
138
95
  const headers = {};
139
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
140
- "/signing-profiles/{profileName}/permissions";
141
- resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName, "{profileName}", false);
96
+ b.bp("/signing-profiles/{profileName}/permissions");
97
+ b.p("profileName", () => input.profileName, "{profileName}", false);
142
98
  const query = map({
143
- nextToken: [, input.nextToken],
99
+ [_nT]: [, input[_nT]],
144
100
  });
145
101
  let body;
146
- return new __HttpRequest({
147
- protocol,
148
- hostname,
149
- port,
150
- method: "GET",
151
- headers,
152
- path: resolvedPath,
153
- query,
154
- body,
155
- });
102
+ b.m("GET").h(headers).q(query).b(body);
103
+ return b.build();
156
104
  };
157
105
  export const se_ListSigningJobsCommand = async (input, context) => {
158
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
+ const b = rb(input, context);
159
107
  const headers = {};
160
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs";
108
+ b.bp("/signing-jobs");
161
109
  const query = map({
162
- status: [, input.status],
163
- platformId: [, input.platformId],
164
- requestedBy: [, input.requestedBy],
165
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
166
- nextToken: [, input.nextToken],
167
- isRevoked: [() => input.isRevoked !== void 0, () => input.isRevoked.toString()],
168
- signatureExpiresBefore: [
110
+ [_s]: [, input[_s]],
111
+ [_pI]: [, input[_pI]],
112
+ [_rB]: [, input[_rB]],
113
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
114
+ [_nT]: [, input[_nT]],
115
+ [_iR]: [() => input.isRevoked !== void 0, () => input[_iR].toString()],
116
+ [_sEB]: [
169
117
  () => input.signatureExpiresBefore !== void 0,
170
- () => (input.signatureExpiresBefore.toISOString().split(".")[0] + "Z").toString(),
118
+ () => (input[_sEB].toISOString().split(".")[0] + "Z").toString(),
171
119
  ],
172
- signatureExpiresAfter: [
120
+ [_sEA]: [
173
121
  () => input.signatureExpiresAfter !== void 0,
174
- () => (input.signatureExpiresAfter.toISOString().split(".")[0] + "Z").toString(),
122
+ () => (input[_sEA].toISOString().split(".")[0] + "Z").toString(),
175
123
  ],
176
- jobInvoker: [, input.jobInvoker],
124
+ [_jI]: [, input[_jI]],
177
125
  });
178
126
  let body;
179
- return new __HttpRequest({
180
- protocol,
181
- hostname,
182
- port,
183
- method: "GET",
184
- headers,
185
- path: resolvedPath,
186
- query,
187
- body,
188
- });
127
+ b.m("GET").h(headers).q(query).b(body);
128
+ return b.build();
189
129
  };
190
130
  export const se_ListSigningPlatformsCommand = async (input, context) => {
191
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
131
+ const b = rb(input, context);
192
132
  const headers = {};
193
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-platforms";
133
+ b.bp("/signing-platforms");
194
134
  const query = map({
195
- category: [, input.category],
196
- partner: [, input.partner],
197
- target: [, input.target],
198
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
199
- nextToken: [, input.nextToken],
135
+ [_c]: [, input[_c]],
136
+ [_p]: [, input[_p]],
137
+ [_t]: [, input[_t]],
138
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
139
+ [_nT]: [, input[_nT]],
200
140
  });
201
141
  let body;
202
- return new __HttpRequest({
203
- protocol,
204
- hostname,
205
- port,
206
- method: "GET",
207
- headers,
208
- path: resolvedPath,
209
- query,
210
- body,
211
- });
142
+ b.m("GET").h(headers).q(query).b(body);
143
+ return b.build();
212
144
  };
213
145
  export const se_ListSigningProfilesCommand = async (input, context) => {
214
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
+ const b = rb(input, context);
215
147
  const headers = {};
216
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles";
148
+ b.bp("/signing-profiles");
217
149
  const query = map({
218
- includeCanceled: [() => input.includeCanceled !== void 0, () => input.includeCanceled.toString()],
219
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
220
- nextToken: [, input.nextToken],
221
- platformId: [, input.platformId],
222
- statuses: [() => input.statuses !== void 0, () => (input.statuses || []).map((_entry) => _entry)],
150
+ [_iC]: [() => input.includeCanceled !== void 0, () => input[_iC].toString()],
151
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
152
+ [_nT]: [, input[_nT]],
153
+ [_pI]: [, input[_pI]],
154
+ [_st]: [() => input.statuses !== void 0, () => (input[_st] || []).map((_entry) => _entry)],
223
155
  });
224
156
  let body;
225
- return new __HttpRequest({
226
- protocol,
227
- hostname,
228
- port,
229
- method: "GET",
230
- headers,
231
- path: resolvedPath,
232
- query,
233
- body,
234
- });
157
+ b.m("GET").h(headers).q(query).b(body);
158
+ return b.build();
235
159
  };
236
160
  export const se_ListTagsForResourceCommand = async (input, context) => {
237
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
161
+ const b = rb(input, context);
238
162
  const headers = {};
239
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
240
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
163
+ b.bp("/tags/{resourceArn}");
164
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
241
165
  let body;
242
- return new __HttpRequest({
243
- protocol,
244
- hostname,
245
- port,
246
- method: "GET",
247
- headers,
248
- path: resolvedPath,
249
- body,
250
- });
166
+ b.m("GET").h(headers).b(body);
167
+ return b.build();
251
168
  };
252
169
  export const se_PutSigningProfileCommand = async (input, context) => {
253
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
170
+ const b = rb(input, context);
254
171
  const headers = {
255
172
  "content-type": "application/json",
256
173
  };
257
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles/{profileName}";
258
- resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName, "{profileName}", false);
174
+ b.bp("/signing-profiles/{profileName}");
175
+ b.p("profileName", () => input.profileName, "{profileName}", false);
259
176
  let body;
260
177
  body = JSON.stringify(take(input, {
261
178
  overrides: (_) => _json(_),
@@ -265,89 +182,59 @@ export const se_PutSigningProfileCommand = async (input, context) => {
265
182
  signingParameters: (_) => _json(_),
266
183
  tags: (_) => _json(_),
267
184
  }));
268
- return new __HttpRequest({
269
- protocol,
270
- hostname,
271
- port,
272
- method: "PUT",
273
- headers,
274
- path: resolvedPath,
275
- body,
276
- });
185
+ b.m("PUT").h(headers).b(body);
186
+ return b.build();
277
187
  };
278
188
  export const se_RemoveProfilePermissionCommand = async (input, context) => {
279
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
189
+ const b = rb(input, context);
280
190
  const headers = {};
281
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
282
- "/signing-profiles/{profileName}/permissions/{statementId}";
283
- resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName, "{profileName}", false);
284
- resolvedPath = __resolvedPath(resolvedPath, input, "statementId", () => input.statementId, "{statementId}", false);
191
+ b.bp("/signing-profiles/{profileName}/permissions/{statementId}");
192
+ b.p("profileName", () => input.profileName, "{profileName}", false);
193
+ b.p("statementId", () => input.statementId, "{statementId}", false);
285
194
  const query = map({
286
- revisionId: [, __expectNonNull(input.revisionId, `revisionId`)],
195
+ [_rI]: [, __expectNonNull(input[_rI], `revisionId`)],
287
196
  });
288
197
  let body;
289
- return new __HttpRequest({
290
- protocol,
291
- hostname,
292
- port,
293
- method: "DELETE",
294
- headers,
295
- path: resolvedPath,
296
- query,
297
- body,
298
- });
198
+ b.m("DELETE").h(headers).q(query).b(body);
199
+ return b.build();
299
200
  };
300
201
  export const se_RevokeSignatureCommand = async (input, context) => {
301
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
202
+ const b = rb(input, context);
302
203
  const headers = {
303
204
  "content-type": "application/json",
304
205
  };
305
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs/{jobId}/revoke";
306
- resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
206
+ b.bp("/signing-jobs/{jobId}/revoke");
207
+ b.p("jobId", () => input.jobId, "{jobId}", false);
307
208
  let body;
308
209
  body = JSON.stringify(take(input, {
309
210
  jobOwner: [],
310
211
  reason: [],
311
212
  }));
312
- return new __HttpRequest({
313
- protocol,
314
- hostname,
315
- port,
316
- method: "PUT",
317
- headers,
318
- path: resolvedPath,
319
- body,
320
- });
213
+ b.m("PUT").h(headers).b(body);
214
+ return b.build();
321
215
  };
322
216
  export const se_RevokeSigningProfileCommand = async (input, context) => {
323
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
217
+ const b = rb(input, context);
324
218
  const headers = {
325
219
  "content-type": "application/json",
326
220
  };
327
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles/{profileName}/revoke";
328
- resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName, "{profileName}", false);
221
+ b.bp("/signing-profiles/{profileName}/revoke");
222
+ b.p("profileName", () => input.profileName, "{profileName}", false);
329
223
  let body;
330
224
  body = JSON.stringify(take(input, {
331
225
  effectiveTime: (_) => Math.round(_.getTime() / 1000),
332
226
  profileVersion: [],
333
227
  reason: [],
334
228
  }));
335
- return new __HttpRequest({
336
- protocol,
337
- hostname,
338
- port,
339
- method: "PUT",
340
- headers,
341
- path: resolvedPath,
342
- body,
343
- });
229
+ b.m("PUT").h(headers).b(body);
230
+ return b.build();
344
231
  };
345
232
  export const se_SignPayloadCommand = async (input, context) => {
346
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
233
+ const b = rb(input, context);
347
234
  const headers = {
348
235
  "content-type": "application/json",
349
236
  };
350
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs/with-payload";
237
+ b.bp("/signing-jobs/with-payload");
351
238
  let body;
352
239
  body = JSON.stringify(take(input, {
353
240
  payload: (_) => context.base64Encoder(_),
@@ -355,22 +242,15 @@ export const se_SignPayloadCommand = async (input, context) => {
355
242
  profileName: [],
356
243
  profileOwner: [],
357
244
  }));
358
- return new __HttpRequest({
359
- protocol,
360
- hostname,
361
- port,
362
- method: "POST",
363
- headers,
364
- path: resolvedPath,
365
- body,
366
- });
245
+ b.m("POST").h(headers).b(body);
246
+ return b.build();
367
247
  };
368
248
  export const se_StartSigningJobCommand = async (input, context) => {
369
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
249
+ const b = rb(input, context);
370
250
  const headers = {
371
251
  "content-type": "application/json",
372
252
  };
373
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs";
253
+ b.bp("/signing-jobs");
374
254
  let body;
375
255
  body = JSON.stringify(take(input, {
376
256
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -379,59 +259,37 @@ export const se_StartSigningJobCommand = async (input, context) => {
379
259
  profileOwner: [],
380
260
  source: (_) => _json(_),
381
261
  }));
382
- return new __HttpRequest({
383
- protocol,
384
- hostname,
385
- port,
386
- method: "POST",
387
- headers,
388
- path: resolvedPath,
389
- body,
390
- });
262
+ b.m("POST").h(headers).b(body);
263
+ return b.build();
391
264
  };
392
265
  export const se_TagResourceCommand = async (input, context) => {
393
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
266
+ const b = rb(input, context);
394
267
  const headers = {
395
268
  "content-type": "application/json",
396
269
  };
397
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
398
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
270
+ b.bp("/tags/{resourceArn}");
271
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
399
272
  let body;
400
273
  body = JSON.stringify(take(input, {
401
274
  tags: (_) => _json(_),
402
275
  }));
403
- return new __HttpRequest({
404
- protocol,
405
- hostname,
406
- port,
407
- method: "POST",
408
- headers,
409
- path: resolvedPath,
410
- body,
411
- });
276
+ b.m("POST").h(headers).b(body);
277
+ return b.build();
412
278
  };
413
279
  export const se_UntagResourceCommand = async (input, context) => {
414
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
280
+ const b = rb(input, context);
415
281
  const headers = {};
416
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
417
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
282
+ b.bp("/tags/{resourceArn}");
283
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
418
284
  const query = map({
419
- tagKeys: [
285
+ [_tK]: [
420
286
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
421
- () => (input.tagKeys || []).map((_entry) => _entry),
287
+ () => (input[_tK] || []).map((_entry) => _entry),
422
288
  ],
423
289
  });
424
290
  let body;
425
- return new __HttpRequest({
426
- protocol,
427
- hostname,
428
- port,
429
- method: "DELETE",
430
- headers,
431
- path: resolvedPath,
432
- query,
433
- body,
434
- });
291
+ b.m("DELETE").h(headers).q(query).b(body);
292
+ return b.build();
435
293
  };
436
294
  export const de_AddProfilePermissionCommand = async (output, context) => {
437
295
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1488,6 +1346,27 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1488
1346
  value !== "" &&
1489
1347
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1490
1348
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1349
+ const _c = "category";
1350
+ const _cH = "certificateHashes";
1351
+ const _iC = "includeCanceled";
1352
+ const _iR = "isRevoked";
1353
+ const _jA = "jobArn";
1354
+ const _jI = "jobInvoker";
1355
+ const _mR = "maxResults";
1356
+ const _nT = "nextToken";
1357
+ const _p = "partner";
1358
+ const _pI = "platformId";
1359
+ const _pO = "profileOwner";
1360
+ const _pVA = "profileVersionArn";
1361
+ const _rB = "requestedBy";
1362
+ const _rI = "revisionId";
1363
+ const _s = "status";
1364
+ const _sEA = "signatureExpiresAfter";
1365
+ const _sEB = "signatureExpiresBefore";
1366
+ const _sT = "signatureTimestamp";
1367
+ const _st = "statuses";
1368
+ const _t = "target";
1369
+ const _tK = "tagKeys";
1491
1370
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1492
1371
  if (encoded.length) {
1493
1372
  return JSON.parse(encoded);
@@ -4,4 +4,4 @@ import { SignerPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSigningJobs(config: SignerPaginationConfiguration, input: ListSigningJobsCommandInput, ...additionalArguments: any): Paginator<ListSigningJobsCommandOutput>;
7
+ export declare const paginateListSigningJobs: (config: SignerPaginationConfiguration, input: ListSigningJobsCommandInput, ...rest: any[]) => Paginator<ListSigningJobsCommandOutput>;
@@ -4,4 +4,4 @@ import { SignerPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSigningPlatforms(config: SignerPaginationConfiguration, input: ListSigningPlatformsCommandInput, ...additionalArguments: any): Paginator<ListSigningPlatformsCommandOutput>;
7
+ export declare const paginateListSigningPlatforms: (config: SignerPaginationConfiguration, input: ListSigningPlatformsCommandInput, ...rest: any[]) => Paginator<ListSigningPlatformsCommandOutput>;