@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.
- package/dist-cjs/pagination/ListSigningJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSigningPlatformsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSigningProfilesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +146 -267
- package/dist-es/pagination/ListSigningJobsPaginator.js +2 -23
- package/dist-es/pagination/ListSigningPlatformsPaginator.js +2 -23
- package/dist-es/pagination/ListSigningProfilesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +148 -269
- package/dist-types/pagination/ListSigningJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSigningPlatformsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSigningProfilesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListSigningJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSigningPlatformsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSigningProfilesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartSigningJobCommand = exports.de_SignPayloadCommand = exports.de_RevokeSigningProfileCommand = exports.de_RevokeSignatureCommand = exports.de_RemoveProfilePermissionCommand = exports.de_PutSigningProfileCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSigningProfilesCommand = exports.de_ListSigningPlatformsCommand = exports.de_ListSigningJobsCommand = exports.de_ListProfilePermissionsCommand = exports.de_GetSigningProfileCommand = exports.de_GetSigningPlatformCommand = exports.de_GetRevocationStatusCommand = exports.de_DescribeSigningJobCommand = exports.de_CancelSigningProfileCommand = exports.de_AddProfilePermissionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartSigningJobCommand = exports.se_SignPayloadCommand = exports.se_RevokeSigningProfileCommand = exports.se_RevokeSignatureCommand = exports.se_RemoveProfilePermissionCommand = exports.se_PutSigningProfileCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSigningProfilesCommand = exports.se_ListSigningPlatformsCommand = exports.se_ListSigningJobsCommand = exports.se_ListProfilePermissionsCommand = exports.se_GetSigningProfileCommand = exports.se_GetSigningPlatformCommand = exports.se_GetRevocationStatusCommand = exports.se_DescribeSigningJobCommand = exports.se_CancelSigningProfileCommand = exports.se_AddProfilePermissionCommand = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const uuid_1 = require("uuid");
|
|
7
8
|
const models_0_1 = require("../models/models_0");
|
|
8
9
|
const SignerServiceException_1 = require("../models/SignerServiceException");
|
|
9
10
|
const se_AddProfilePermissionCommand = async (input, context) => {
|
|
10
|
-
const
|
|
11
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
12
|
const headers = {
|
|
12
13
|
"content-type": "application/json",
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profileName", () => input.profileName, "{profileName}", false);
|
|
15
|
+
b.bp("/signing-profiles/{profileName}/permissions");
|
|
16
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
19
|
action: [],
|
|
@@ -22,66 +22,45 @@ const se_AddProfilePermissionCommand = async (input, context) => {
|
|
|
22
22
|
revisionId: [],
|
|
23
23
|
statementId: [],
|
|
24
24
|
}));
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
hostname,
|
|
28
|
-
port,
|
|
29
|
-
method: "POST",
|
|
30
|
-
headers,
|
|
31
|
-
path: resolvedPath,
|
|
32
|
-
body,
|
|
33
|
-
});
|
|
25
|
+
b.m("POST").h(headers).b(body);
|
|
26
|
+
return b.build();
|
|
34
27
|
};
|
|
35
28
|
exports.se_AddProfilePermissionCommand = se_AddProfilePermissionCommand;
|
|
36
29
|
const se_CancelSigningProfileCommand = async (input, context) => {
|
|
37
|
-
const
|
|
30
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
38
31
|
const headers = {};
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
b.bp("/signing-profiles/{profileName}");
|
|
33
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
41
34
|
let body;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
hostname,
|
|
45
|
-
port,
|
|
46
|
-
method: "DELETE",
|
|
47
|
-
headers,
|
|
48
|
-
path: resolvedPath,
|
|
49
|
-
body,
|
|
50
|
-
});
|
|
35
|
+
b.m("DELETE").h(headers).b(body);
|
|
36
|
+
return b.build();
|
|
51
37
|
};
|
|
52
38
|
exports.se_CancelSigningProfileCommand = se_CancelSigningProfileCommand;
|
|
53
39
|
const se_DescribeSigningJobCommand = async (input, context) => {
|
|
54
|
-
const
|
|
40
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
55
41
|
const headers = {};
|
|
56
|
-
|
|
57
|
-
|
|
42
|
+
b.bp("/signing-jobs/{jobId}");
|
|
43
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
58
44
|
let body;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
hostname,
|
|
62
|
-
port,
|
|
63
|
-
method: "GET",
|
|
64
|
-
headers,
|
|
65
|
-
path: resolvedPath,
|
|
66
|
-
body,
|
|
67
|
-
});
|
|
45
|
+
b.m("GET").h(headers).b(body);
|
|
46
|
+
return b.build();
|
|
68
47
|
};
|
|
69
48
|
exports.se_DescribeSigningJobCommand = se_DescribeSigningJobCommand;
|
|
70
49
|
const se_GetRevocationStatusCommand = async (input, context) => {
|
|
71
|
-
const
|
|
50
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
72
51
|
const headers = {};
|
|
73
|
-
|
|
52
|
+
b.bp("/revocations");
|
|
74
53
|
const query = (0, smithy_client_1.map)({
|
|
75
|
-
|
|
54
|
+
[_sT]: [
|
|
76
55
|
(0, smithy_client_1.expectNonNull)(input.signatureTimestamp, `signatureTimestamp`) != null,
|
|
77
|
-
() => (input.
|
|
56
|
+
() => (input[_sT].toISOString().split(".")[0] + "Z").toString(),
|
|
78
57
|
],
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
58
|
+
[_pI]: [, (0, smithy_client_1.expectNonNull)(input[_pI], `platformId`)],
|
|
59
|
+
[_pVA]: [, (0, smithy_client_1.expectNonNull)(input[_pVA], `profileVersionArn`)],
|
|
60
|
+
[_jA]: [, (0, smithy_client_1.expectNonNull)(input[_jA], `jobArn`)],
|
|
61
|
+
[_cH]: [
|
|
83
62
|
(0, smithy_client_1.expectNonNull)(input.certificateHashes, `certificateHashes`) != null,
|
|
84
|
-
() => (input
|
|
63
|
+
() => (input[_cH] || []).map((_entry) => _entry),
|
|
85
64
|
],
|
|
86
65
|
});
|
|
87
66
|
let body;
|
|
@@ -92,184 +71,122 @@ const se_GetRevocationStatusCommand = async (input, context) => {
|
|
|
92
71
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
93
72
|
}
|
|
94
73
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
port,
|
|
99
|
-
method: "GET",
|
|
100
|
-
headers,
|
|
101
|
-
path: resolvedPath,
|
|
102
|
-
query,
|
|
103
|
-
body,
|
|
104
|
-
});
|
|
74
|
+
b.hn(resolvedHostname);
|
|
75
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
76
|
+
return b.build();
|
|
105
77
|
};
|
|
106
78
|
exports.se_GetRevocationStatusCommand = se_GetRevocationStatusCommand;
|
|
107
79
|
const se_GetSigningPlatformCommand = async (input, context) => {
|
|
108
|
-
const
|
|
80
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
109
81
|
const headers = {};
|
|
110
|
-
|
|
111
|
-
|
|
82
|
+
b.bp("/signing-platforms/{platformId}");
|
|
83
|
+
b.p("platformId", () => input.platformId, "{platformId}", false);
|
|
112
84
|
let body;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
hostname,
|
|
116
|
-
port,
|
|
117
|
-
method: "GET",
|
|
118
|
-
headers,
|
|
119
|
-
path: resolvedPath,
|
|
120
|
-
body,
|
|
121
|
-
});
|
|
85
|
+
b.m("GET").h(headers).b(body);
|
|
86
|
+
return b.build();
|
|
122
87
|
};
|
|
123
88
|
exports.se_GetSigningPlatformCommand = se_GetSigningPlatformCommand;
|
|
124
89
|
const se_GetSigningProfileCommand = async (input, context) => {
|
|
125
|
-
const
|
|
90
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
126
91
|
const headers = {};
|
|
127
|
-
|
|
128
|
-
|
|
92
|
+
b.bp("/signing-profiles/{profileName}");
|
|
93
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
129
94
|
const query = (0, smithy_client_1.map)({
|
|
130
|
-
|
|
95
|
+
[_pO]: [, input[_pO]],
|
|
131
96
|
});
|
|
132
97
|
let body;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
hostname,
|
|
136
|
-
port,
|
|
137
|
-
method: "GET",
|
|
138
|
-
headers,
|
|
139
|
-
path: resolvedPath,
|
|
140
|
-
query,
|
|
141
|
-
body,
|
|
142
|
-
});
|
|
98
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
99
|
+
return b.build();
|
|
143
100
|
};
|
|
144
101
|
exports.se_GetSigningProfileCommand = se_GetSigningProfileCommand;
|
|
145
102
|
const se_ListProfilePermissionsCommand = async (input, context) => {
|
|
146
|
-
const
|
|
103
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
147
104
|
const headers = {};
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profileName", () => input.profileName, "{profileName}", false);
|
|
105
|
+
b.bp("/signing-profiles/{profileName}/permissions");
|
|
106
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
151
107
|
const query = (0, smithy_client_1.map)({
|
|
152
|
-
|
|
108
|
+
[_nT]: [, input[_nT]],
|
|
153
109
|
});
|
|
154
110
|
let body;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
hostname,
|
|
158
|
-
port,
|
|
159
|
-
method: "GET",
|
|
160
|
-
headers,
|
|
161
|
-
path: resolvedPath,
|
|
162
|
-
query,
|
|
163
|
-
body,
|
|
164
|
-
});
|
|
111
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
112
|
+
return b.build();
|
|
165
113
|
};
|
|
166
114
|
exports.se_ListProfilePermissionsCommand = se_ListProfilePermissionsCommand;
|
|
167
115
|
const se_ListSigningJobsCommand = async (input, context) => {
|
|
168
|
-
const
|
|
116
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
169
117
|
const headers = {};
|
|
170
|
-
|
|
118
|
+
b.bp("/signing-jobs");
|
|
171
119
|
const query = (0, smithy_client_1.map)({
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
120
|
+
[_s]: [, input[_s]],
|
|
121
|
+
[_pI]: [, input[_pI]],
|
|
122
|
+
[_rB]: [, input[_rB]],
|
|
123
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
124
|
+
[_nT]: [, input[_nT]],
|
|
125
|
+
[_iR]: [() => input.isRevoked !== void 0, () => input[_iR].toString()],
|
|
126
|
+
[_sEB]: [
|
|
179
127
|
() => input.signatureExpiresBefore !== void 0,
|
|
180
|
-
() => (input.
|
|
128
|
+
() => (input[_sEB].toISOString().split(".")[0] + "Z").toString(),
|
|
181
129
|
],
|
|
182
|
-
|
|
130
|
+
[_sEA]: [
|
|
183
131
|
() => input.signatureExpiresAfter !== void 0,
|
|
184
|
-
() => (input.
|
|
132
|
+
() => (input[_sEA].toISOString().split(".")[0] + "Z").toString(),
|
|
185
133
|
],
|
|
186
|
-
|
|
134
|
+
[_jI]: [, input[_jI]],
|
|
187
135
|
});
|
|
188
136
|
let body;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
hostname,
|
|
192
|
-
port,
|
|
193
|
-
method: "GET",
|
|
194
|
-
headers,
|
|
195
|
-
path: resolvedPath,
|
|
196
|
-
query,
|
|
197
|
-
body,
|
|
198
|
-
});
|
|
137
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
138
|
+
return b.build();
|
|
199
139
|
};
|
|
200
140
|
exports.se_ListSigningJobsCommand = se_ListSigningJobsCommand;
|
|
201
141
|
const se_ListSigningPlatformsCommand = async (input, context) => {
|
|
202
|
-
const
|
|
142
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
203
143
|
const headers = {};
|
|
204
|
-
|
|
144
|
+
b.bp("/signing-platforms");
|
|
205
145
|
const query = (0, smithy_client_1.map)({
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
146
|
+
[_c]: [, input[_c]],
|
|
147
|
+
[_p]: [, input[_p]],
|
|
148
|
+
[_t]: [, input[_t]],
|
|
149
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
150
|
+
[_nT]: [, input[_nT]],
|
|
211
151
|
});
|
|
212
152
|
let body;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
hostname,
|
|
216
|
-
port,
|
|
217
|
-
method: "GET",
|
|
218
|
-
headers,
|
|
219
|
-
path: resolvedPath,
|
|
220
|
-
query,
|
|
221
|
-
body,
|
|
222
|
-
});
|
|
153
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
154
|
+
return b.build();
|
|
223
155
|
};
|
|
224
156
|
exports.se_ListSigningPlatformsCommand = se_ListSigningPlatformsCommand;
|
|
225
157
|
const se_ListSigningProfilesCommand = async (input, context) => {
|
|
226
|
-
const
|
|
158
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
227
159
|
const headers = {};
|
|
228
|
-
|
|
160
|
+
b.bp("/signing-profiles");
|
|
229
161
|
const query = (0, smithy_client_1.map)({
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
162
|
+
[_iC]: [() => input.includeCanceled !== void 0, () => input[_iC].toString()],
|
|
163
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
164
|
+
[_nT]: [, input[_nT]],
|
|
165
|
+
[_pI]: [, input[_pI]],
|
|
166
|
+
[_st]: [() => input.statuses !== void 0, () => (input[_st] || []).map((_entry) => _entry)],
|
|
235
167
|
});
|
|
236
168
|
let body;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
hostname,
|
|
240
|
-
port,
|
|
241
|
-
method: "GET",
|
|
242
|
-
headers,
|
|
243
|
-
path: resolvedPath,
|
|
244
|
-
query,
|
|
245
|
-
body,
|
|
246
|
-
});
|
|
169
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
170
|
+
return b.build();
|
|
247
171
|
};
|
|
248
172
|
exports.se_ListSigningProfilesCommand = se_ListSigningProfilesCommand;
|
|
249
173
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
250
|
-
const
|
|
174
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
251
175
|
const headers = {};
|
|
252
|
-
|
|
253
|
-
|
|
176
|
+
b.bp("/tags/{resourceArn}");
|
|
177
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
254
178
|
let body;
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
hostname,
|
|
258
|
-
port,
|
|
259
|
-
method: "GET",
|
|
260
|
-
headers,
|
|
261
|
-
path: resolvedPath,
|
|
262
|
-
body,
|
|
263
|
-
});
|
|
179
|
+
b.m("GET").h(headers).b(body);
|
|
180
|
+
return b.build();
|
|
264
181
|
};
|
|
265
182
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
266
183
|
const se_PutSigningProfileCommand = async (input, context) => {
|
|
267
|
-
const
|
|
184
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
268
185
|
const headers = {
|
|
269
186
|
"content-type": "application/json",
|
|
270
187
|
};
|
|
271
|
-
|
|
272
|
-
|
|
188
|
+
b.bp("/signing-profiles/{profileName}");
|
|
189
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
273
190
|
let body;
|
|
274
191
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
275
192
|
overrides: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -279,93 +196,63 @@ const se_PutSigningProfileCommand = async (input, context) => {
|
|
|
279
196
|
signingParameters: (_) => (0, smithy_client_1._json)(_),
|
|
280
197
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
281
198
|
}));
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
hostname,
|
|
285
|
-
port,
|
|
286
|
-
method: "PUT",
|
|
287
|
-
headers,
|
|
288
|
-
path: resolvedPath,
|
|
289
|
-
body,
|
|
290
|
-
});
|
|
199
|
+
b.m("PUT").h(headers).b(body);
|
|
200
|
+
return b.build();
|
|
291
201
|
};
|
|
292
202
|
exports.se_PutSigningProfileCommand = se_PutSigningProfileCommand;
|
|
293
203
|
const se_RemoveProfilePermissionCommand = async (input, context) => {
|
|
294
|
-
const
|
|
204
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
295
205
|
const headers = {};
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "statementId", () => input.statementId, "{statementId}", false);
|
|
206
|
+
b.bp("/signing-profiles/{profileName}/permissions/{statementId}");
|
|
207
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
208
|
+
b.p("statementId", () => input.statementId, "{statementId}", false);
|
|
300
209
|
const query = (0, smithy_client_1.map)({
|
|
301
|
-
|
|
210
|
+
[_rI]: [, (0, smithy_client_1.expectNonNull)(input[_rI], `revisionId`)],
|
|
302
211
|
});
|
|
303
212
|
let body;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
hostname,
|
|
307
|
-
port,
|
|
308
|
-
method: "DELETE",
|
|
309
|
-
headers,
|
|
310
|
-
path: resolvedPath,
|
|
311
|
-
query,
|
|
312
|
-
body,
|
|
313
|
-
});
|
|
213
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
214
|
+
return b.build();
|
|
314
215
|
};
|
|
315
216
|
exports.se_RemoveProfilePermissionCommand = se_RemoveProfilePermissionCommand;
|
|
316
217
|
const se_RevokeSignatureCommand = async (input, context) => {
|
|
317
|
-
const
|
|
218
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
318
219
|
const headers = {
|
|
319
220
|
"content-type": "application/json",
|
|
320
221
|
};
|
|
321
|
-
|
|
322
|
-
|
|
222
|
+
b.bp("/signing-jobs/{jobId}/revoke");
|
|
223
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
323
224
|
let body;
|
|
324
225
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
325
226
|
jobOwner: [],
|
|
326
227
|
reason: [],
|
|
327
228
|
}));
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
hostname,
|
|
331
|
-
port,
|
|
332
|
-
method: "PUT",
|
|
333
|
-
headers,
|
|
334
|
-
path: resolvedPath,
|
|
335
|
-
body,
|
|
336
|
-
});
|
|
229
|
+
b.m("PUT").h(headers).b(body);
|
|
230
|
+
return b.build();
|
|
337
231
|
};
|
|
338
232
|
exports.se_RevokeSignatureCommand = se_RevokeSignatureCommand;
|
|
339
233
|
const se_RevokeSigningProfileCommand = async (input, context) => {
|
|
340
|
-
const
|
|
234
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
341
235
|
const headers = {
|
|
342
236
|
"content-type": "application/json",
|
|
343
237
|
};
|
|
344
|
-
|
|
345
|
-
|
|
238
|
+
b.bp("/signing-profiles/{profileName}/revoke");
|
|
239
|
+
b.p("profileName", () => input.profileName, "{profileName}", false);
|
|
346
240
|
let body;
|
|
347
241
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
348
242
|
effectiveTime: (_) => Math.round(_.getTime() / 1000),
|
|
349
243
|
profileVersion: [],
|
|
350
244
|
reason: [],
|
|
351
245
|
}));
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
hostname,
|
|
355
|
-
port,
|
|
356
|
-
method: "PUT",
|
|
357
|
-
headers,
|
|
358
|
-
path: resolvedPath,
|
|
359
|
-
body,
|
|
360
|
-
});
|
|
246
|
+
b.m("PUT").h(headers).b(body);
|
|
247
|
+
return b.build();
|
|
361
248
|
};
|
|
362
249
|
exports.se_RevokeSigningProfileCommand = se_RevokeSigningProfileCommand;
|
|
363
250
|
const se_SignPayloadCommand = async (input, context) => {
|
|
364
|
-
const
|
|
251
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
365
252
|
const headers = {
|
|
366
253
|
"content-type": "application/json",
|
|
367
254
|
};
|
|
368
|
-
|
|
255
|
+
b.bp("/signing-jobs/with-payload");
|
|
369
256
|
let body;
|
|
370
257
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
371
258
|
payload: (_) => context.base64Encoder(_),
|
|
@@ -373,23 +260,16 @@ const se_SignPayloadCommand = async (input, context) => {
|
|
|
373
260
|
profileName: [],
|
|
374
261
|
profileOwner: [],
|
|
375
262
|
}));
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
hostname,
|
|
379
|
-
port,
|
|
380
|
-
method: "POST",
|
|
381
|
-
headers,
|
|
382
|
-
path: resolvedPath,
|
|
383
|
-
body,
|
|
384
|
-
});
|
|
263
|
+
b.m("POST").h(headers).b(body);
|
|
264
|
+
return b.build();
|
|
385
265
|
};
|
|
386
266
|
exports.se_SignPayloadCommand = se_SignPayloadCommand;
|
|
387
267
|
const se_StartSigningJobCommand = async (input, context) => {
|
|
388
|
-
const
|
|
268
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
389
269
|
const headers = {
|
|
390
270
|
"content-type": "application/json",
|
|
391
271
|
};
|
|
392
|
-
|
|
272
|
+
b.bp("/signing-jobs");
|
|
393
273
|
let body;
|
|
394
274
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
395
275
|
clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -398,61 +278,39 @@ const se_StartSigningJobCommand = async (input, context) => {
|
|
|
398
278
|
profileOwner: [],
|
|
399
279
|
source: (_) => (0, smithy_client_1._json)(_),
|
|
400
280
|
}));
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
hostname,
|
|
404
|
-
port,
|
|
405
|
-
method: "POST",
|
|
406
|
-
headers,
|
|
407
|
-
path: resolvedPath,
|
|
408
|
-
body,
|
|
409
|
-
});
|
|
281
|
+
b.m("POST").h(headers).b(body);
|
|
282
|
+
return b.build();
|
|
410
283
|
};
|
|
411
284
|
exports.se_StartSigningJobCommand = se_StartSigningJobCommand;
|
|
412
285
|
const se_TagResourceCommand = async (input, context) => {
|
|
413
|
-
const
|
|
286
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
414
287
|
const headers = {
|
|
415
288
|
"content-type": "application/json",
|
|
416
289
|
};
|
|
417
|
-
|
|
418
|
-
|
|
290
|
+
b.bp("/tags/{resourceArn}");
|
|
291
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
419
292
|
let body;
|
|
420
293
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
421
294
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
422
295
|
}));
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
hostname,
|
|
426
|
-
port,
|
|
427
|
-
method: "POST",
|
|
428
|
-
headers,
|
|
429
|
-
path: resolvedPath,
|
|
430
|
-
body,
|
|
431
|
-
});
|
|
296
|
+
b.m("POST").h(headers).b(body);
|
|
297
|
+
return b.build();
|
|
432
298
|
};
|
|
433
299
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
434
300
|
const se_UntagResourceCommand = async (input, context) => {
|
|
435
|
-
const
|
|
301
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
436
302
|
const headers = {};
|
|
437
|
-
|
|
438
|
-
|
|
303
|
+
b.bp("/tags/{resourceArn}");
|
|
304
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
439
305
|
const query = (0, smithy_client_1.map)({
|
|
440
|
-
|
|
306
|
+
[_tK]: [
|
|
441
307
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
442
|
-
() => (input
|
|
308
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
443
309
|
],
|
|
444
310
|
});
|
|
445
311
|
let body;
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
hostname,
|
|
449
|
-
port,
|
|
450
|
-
method: "DELETE",
|
|
451
|
-
headers,
|
|
452
|
-
path: resolvedPath,
|
|
453
|
-
query,
|
|
454
|
-
body,
|
|
455
|
-
});
|
|
312
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
313
|
+
return b.build();
|
|
456
314
|
};
|
|
457
315
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
458
316
|
const de_AddProfilePermissionCommand = async (output, context) => {
|
|
@@ -1529,6 +1387,27 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1529
1387
|
value !== "" &&
|
|
1530
1388
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1531
1389
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1390
|
+
const _c = "category";
|
|
1391
|
+
const _cH = "certificateHashes";
|
|
1392
|
+
const _iC = "includeCanceled";
|
|
1393
|
+
const _iR = "isRevoked";
|
|
1394
|
+
const _jA = "jobArn";
|
|
1395
|
+
const _jI = "jobInvoker";
|
|
1396
|
+
const _mR = "maxResults";
|
|
1397
|
+
const _nT = "nextToken";
|
|
1398
|
+
const _p = "partner";
|
|
1399
|
+
const _pI = "platformId";
|
|
1400
|
+
const _pO = "profileOwner";
|
|
1401
|
+
const _pVA = "profileVersionArn";
|
|
1402
|
+
const _rB = "requestedBy";
|
|
1403
|
+
const _rI = "revisionId";
|
|
1404
|
+
const _s = "status";
|
|
1405
|
+
const _sEA = "signatureExpiresAfter";
|
|
1406
|
+
const _sEB = "signatureExpiresBefore";
|
|
1407
|
+
const _sT = "signatureTimestamp";
|
|
1408
|
+
const _st = "statuses";
|
|
1409
|
+
const _t = "target";
|
|
1410
|
+
const _tK = "tagKeys";
|
|
1532
1411
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1533
1412
|
if (encoded.length) {
|
|
1534
1413
|
return JSON.parse(encoded);
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSigningJobsCommand, } from "../commands/ListSigningJobsCommand";
|
|
2
3
|
import { SignerClient } from "../SignerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSigningJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSigningJobs(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 paginateListSigningJobs = createPaginator(SignerClient, ListSigningJobsCommand, "nextToken", "nextToken", "maxResults");
|