@aws-sdk/client-signer 3.315.0 → 3.319.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,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Signer = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AddProfilePermissionCommand_1 = require("./commands/AddProfilePermissionCommand");
5
6
  const CancelSigningProfileCommand_1 = require("./commands/CancelSigningProfileCommand");
6
7
  const DescribeSigningJobCommand_1 = require("./commands/DescribeSigningJobCommand");
@@ -19,244 +20,26 @@ const StartSigningJobCommand_1 = require("./commands/StartSigningJobCommand");
19
20
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
20
21
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
21
22
  const SignerClient_1 = require("./SignerClient");
23
+ const commands = {
24
+ AddProfilePermissionCommand: AddProfilePermissionCommand_1.AddProfilePermissionCommand,
25
+ CancelSigningProfileCommand: CancelSigningProfileCommand_1.CancelSigningProfileCommand,
26
+ DescribeSigningJobCommand: DescribeSigningJobCommand_1.DescribeSigningJobCommand,
27
+ GetSigningPlatformCommand: GetSigningPlatformCommand_1.GetSigningPlatformCommand,
28
+ GetSigningProfileCommand: GetSigningProfileCommand_1.GetSigningProfileCommand,
29
+ ListProfilePermissionsCommand: ListProfilePermissionsCommand_1.ListProfilePermissionsCommand,
30
+ ListSigningJobsCommand: ListSigningJobsCommand_1.ListSigningJobsCommand,
31
+ ListSigningPlatformsCommand: ListSigningPlatformsCommand_1.ListSigningPlatformsCommand,
32
+ ListSigningProfilesCommand: ListSigningProfilesCommand_1.ListSigningProfilesCommand,
33
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
34
+ PutSigningProfileCommand: PutSigningProfileCommand_1.PutSigningProfileCommand,
35
+ RemoveProfilePermissionCommand: RemoveProfilePermissionCommand_1.RemoveProfilePermissionCommand,
36
+ RevokeSignatureCommand: RevokeSignatureCommand_1.RevokeSignatureCommand,
37
+ RevokeSigningProfileCommand: RevokeSigningProfileCommand_1.RevokeSigningProfileCommand,
38
+ StartSigningJobCommand: StartSigningJobCommand_1.StartSigningJobCommand,
39
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
40
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
41
+ };
22
42
  class Signer extends SignerClient_1.SignerClient {
23
- addProfilePermission(args, optionsOrCb, cb) {
24
- const command = new AddProfilePermissionCommand_1.AddProfilePermissionCommand(args);
25
- if (typeof optionsOrCb === "function") {
26
- this.send(command, optionsOrCb);
27
- }
28
- else if (typeof cb === "function") {
29
- if (typeof optionsOrCb !== "object")
30
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
- this.send(command, optionsOrCb || {}, cb);
32
- }
33
- else {
34
- return this.send(command, optionsOrCb);
35
- }
36
- }
37
- cancelSigningProfile(args, optionsOrCb, cb) {
38
- const command = new CancelSigningProfileCommand_1.CancelSigningProfileCommand(args);
39
- if (typeof optionsOrCb === "function") {
40
- this.send(command, optionsOrCb);
41
- }
42
- else if (typeof cb === "function") {
43
- if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
- this.send(command, optionsOrCb || {}, cb);
46
- }
47
- else {
48
- return this.send(command, optionsOrCb);
49
- }
50
- }
51
- describeSigningJob(args, optionsOrCb, cb) {
52
- const command = new DescribeSigningJobCommand_1.DescribeSigningJobCommand(args);
53
- if (typeof optionsOrCb === "function") {
54
- this.send(command, optionsOrCb);
55
- }
56
- else if (typeof cb === "function") {
57
- if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
- this.send(command, optionsOrCb || {}, cb);
60
- }
61
- else {
62
- return this.send(command, optionsOrCb);
63
- }
64
- }
65
- getSigningPlatform(args, optionsOrCb, cb) {
66
- const command = new GetSigningPlatformCommand_1.GetSigningPlatformCommand(args);
67
- if (typeof optionsOrCb === "function") {
68
- this.send(command, optionsOrCb);
69
- }
70
- else if (typeof cb === "function") {
71
- if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
- this.send(command, optionsOrCb || {}, cb);
74
- }
75
- else {
76
- return this.send(command, optionsOrCb);
77
- }
78
- }
79
- getSigningProfile(args, optionsOrCb, cb) {
80
- const command = new GetSigningProfileCommand_1.GetSigningProfileCommand(args);
81
- if (typeof optionsOrCb === "function") {
82
- this.send(command, optionsOrCb);
83
- }
84
- else if (typeof cb === "function") {
85
- if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
- this.send(command, optionsOrCb || {}, cb);
88
- }
89
- else {
90
- return this.send(command, optionsOrCb);
91
- }
92
- }
93
- listProfilePermissions(args, optionsOrCb, cb) {
94
- const command = new ListProfilePermissionsCommand_1.ListProfilePermissionsCommand(args);
95
- if (typeof optionsOrCb === "function") {
96
- this.send(command, optionsOrCb);
97
- }
98
- else if (typeof cb === "function") {
99
- if (typeof optionsOrCb !== "object")
100
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
101
- this.send(command, optionsOrCb || {}, cb);
102
- }
103
- else {
104
- return this.send(command, optionsOrCb);
105
- }
106
- }
107
- listSigningJobs(args, optionsOrCb, cb) {
108
- const command = new ListSigningJobsCommand_1.ListSigningJobsCommand(args);
109
- if (typeof optionsOrCb === "function") {
110
- this.send(command, optionsOrCb);
111
- }
112
- else if (typeof cb === "function") {
113
- if (typeof optionsOrCb !== "object")
114
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
- this.send(command, optionsOrCb || {}, cb);
116
- }
117
- else {
118
- return this.send(command, optionsOrCb);
119
- }
120
- }
121
- listSigningPlatforms(args, optionsOrCb, cb) {
122
- const command = new ListSigningPlatformsCommand_1.ListSigningPlatformsCommand(args);
123
- if (typeof optionsOrCb === "function") {
124
- this.send(command, optionsOrCb);
125
- }
126
- else if (typeof cb === "function") {
127
- if (typeof optionsOrCb !== "object")
128
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
129
- this.send(command, optionsOrCb || {}, cb);
130
- }
131
- else {
132
- return this.send(command, optionsOrCb);
133
- }
134
- }
135
- listSigningProfiles(args, optionsOrCb, cb) {
136
- const command = new ListSigningProfilesCommand_1.ListSigningProfilesCommand(args);
137
- if (typeof optionsOrCb === "function") {
138
- this.send(command, optionsOrCb);
139
- }
140
- else if (typeof cb === "function") {
141
- if (typeof optionsOrCb !== "object")
142
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
143
- this.send(command, optionsOrCb || {}, cb);
144
- }
145
- else {
146
- return this.send(command, optionsOrCb);
147
- }
148
- }
149
- listTagsForResource(args, optionsOrCb, cb) {
150
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
151
- if (typeof optionsOrCb === "function") {
152
- this.send(command, optionsOrCb);
153
- }
154
- else if (typeof cb === "function") {
155
- if (typeof optionsOrCb !== "object")
156
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
157
- this.send(command, optionsOrCb || {}, cb);
158
- }
159
- else {
160
- return this.send(command, optionsOrCb);
161
- }
162
- }
163
- putSigningProfile(args, optionsOrCb, cb) {
164
- const command = new PutSigningProfileCommand_1.PutSigningProfileCommand(args);
165
- if (typeof optionsOrCb === "function") {
166
- this.send(command, optionsOrCb);
167
- }
168
- else if (typeof cb === "function") {
169
- if (typeof optionsOrCb !== "object")
170
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
- this.send(command, optionsOrCb || {}, cb);
172
- }
173
- else {
174
- return this.send(command, optionsOrCb);
175
- }
176
- }
177
- removeProfilePermission(args, optionsOrCb, cb) {
178
- const command = new RemoveProfilePermissionCommand_1.RemoveProfilePermissionCommand(args);
179
- if (typeof optionsOrCb === "function") {
180
- this.send(command, optionsOrCb);
181
- }
182
- else if (typeof cb === "function") {
183
- if (typeof optionsOrCb !== "object")
184
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
- this.send(command, optionsOrCb || {}, cb);
186
- }
187
- else {
188
- return this.send(command, optionsOrCb);
189
- }
190
- }
191
- revokeSignature(args, optionsOrCb, cb) {
192
- const command = new RevokeSignatureCommand_1.RevokeSignatureCommand(args);
193
- if (typeof optionsOrCb === "function") {
194
- this.send(command, optionsOrCb);
195
- }
196
- else if (typeof cb === "function") {
197
- if (typeof optionsOrCb !== "object")
198
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
199
- this.send(command, optionsOrCb || {}, cb);
200
- }
201
- else {
202
- return this.send(command, optionsOrCb);
203
- }
204
- }
205
- revokeSigningProfile(args, optionsOrCb, cb) {
206
- const command = new RevokeSigningProfileCommand_1.RevokeSigningProfileCommand(args);
207
- if (typeof optionsOrCb === "function") {
208
- this.send(command, optionsOrCb);
209
- }
210
- else if (typeof cb === "function") {
211
- if (typeof optionsOrCb !== "object")
212
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
213
- this.send(command, optionsOrCb || {}, cb);
214
- }
215
- else {
216
- return this.send(command, optionsOrCb);
217
- }
218
- }
219
- startSigningJob(args, optionsOrCb, cb) {
220
- const command = new StartSigningJobCommand_1.StartSigningJobCommand(args);
221
- if (typeof optionsOrCb === "function") {
222
- this.send(command, optionsOrCb);
223
- }
224
- else if (typeof cb === "function") {
225
- if (typeof optionsOrCb !== "object")
226
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
227
- this.send(command, optionsOrCb || {}, cb);
228
- }
229
- else {
230
- return this.send(command, optionsOrCb);
231
- }
232
- }
233
- tagResource(args, optionsOrCb, cb) {
234
- const command = new TagResourceCommand_1.TagResourceCommand(args);
235
- if (typeof optionsOrCb === "function") {
236
- this.send(command, optionsOrCb);
237
- }
238
- else if (typeof cb === "function") {
239
- if (typeof optionsOrCb !== "object")
240
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
241
- this.send(command, optionsOrCb || {}, cb);
242
- }
243
- else {
244
- return this.send(command, optionsOrCb);
245
- }
246
- }
247
- untagResource(args, optionsOrCb, cb) {
248
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
249
- if (typeof optionsOrCb === "function") {
250
- this.send(command, optionsOrCb);
251
- }
252
- else if (typeof cb === "function") {
253
- if (typeof optionsOrCb !== "object")
254
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
255
- this.send(command, optionsOrCb || {}, cb);
256
- }
257
- else {
258
- return this.send(command, optionsOrCb);
259
- }
260
- }
261
43
  }
262
44
  exports.Signer = Signer;
45
+ (0, smithy_client_1.createAggregatedClient)(commands, Signer);
@@ -331,7 +331,7 @@ const se_StartSigningJobCommand = async (input, context) => {
331
331
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs";
332
332
  let body;
333
333
  body = JSON.stringify((0, smithy_client_1.take)(input, {
334
- clientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
334
+ clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
335
335
  destination: (_) => (0, smithy_client_1._json)(_),
336
336
  profileName: [],
337
337
  profileOwner: [],
package/dist-es/Signer.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AddProfilePermissionCommand, } from "./commands/AddProfilePermissionCommand";
2
3
  import { CancelSigningProfileCommand, } from "./commands/CancelSigningProfileCommand";
3
4
  import { DescribeSigningJobCommand, } from "./commands/DescribeSigningJobCommand";
@@ -16,243 +17,25 @@ import { StartSigningJobCommand, } from "./commands/StartSigningJobCommand";
16
17
  import { TagResourceCommand } from "./commands/TagResourceCommand";
17
18
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
18
19
  import { SignerClient } from "./SignerClient";
20
+ const commands = {
21
+ AddProfilePermissionCommand,
22
+ CancelSigningProfileCommand,
23
+ DescribeSigningJobCommand,
24
+ GetSigningPlatformCommand,
25
+ GetSigningProfileCommand,
26
+ ListProfilePermissionsCommand,
27
+ ListSigningJobsCommand,
28
+ ListSigningPlatformsCommand,
29
+ ListSigningProfilesCommand,
30
+ ListTagsForResourceCommand,
31
+ PutSigningProfileCommand,
32
+ RemoveProfilePermissionCommand,
33
+ RevokeSignatureCommand,
34
+ RevokeSigningProfileCommand,
35
+ StartSigningJobCommand,
36
+ TagResourceCommand,
37
+ UntagResourceCommand,
38
+ };
19
39
  export class Signer extends SignerClient {
20
- addProfilePermission(args, optionsOrCb, cb) {
21
- const command = new AddProfilePermissionCommand(args);
22
- if (typeof optionsOrCb === "function") {
23
- this.send(command, optionsOrCb);
24
- }
25
- else if (typeof cb === "function") {
26
- if (typeof optionsOrCb !== "object")
27
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
28
- this.send(command, optionsOrCb || {}, cb);
29
- }
30
- else {
31
- return this.send(command, optionsOrCb);
32
- }
33
- }
34
- cancelSigningProfile(args, optionsOrCb, cb) {
35
- const command = new CancelSigningProfileCommand(args);
36
- if (typeof optionsOrCb === "function") {
37
- this.send(command, optionsOrCb);
38
- }
39
- else if (typeof cb === "function") {
40
- if (typeof optionsOrCb !== "object")
41
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
- this.send(command, optionsOrCb || {}, cb);
43
- }
44
- else {
45
- return this.send(command, optionsOrCb);
46
- }
47
- }
48
- describeSigningJob(args, optionsOrCb, cb) {
49
- const command = new DescribeSigningJobCommand(args);
50
- if (typeof optionsOrCb === "function") {
51
- this.send(command, optionsOrCb);
52
- }
53
- else if (typeof cb === "function") {
54
- if (typeof optionsOrCb !== "object")
55
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
56
- this.send(command, optionsOrCb || {}, cb);
57
- }
58
- else {
59
- return this.send(command, optionsOrCb);
60
- }
61
- }
62
- getSigningPlatform(args, optionsOrCb, cb) {
63
- const command = new GetSigningPlatformCommand(args);
64
- if (typeof optionsOrCb === "function") {
65
- this.send(command, optionsOrCb);
66
- }
67
- else if (typeof cb === "function") {
68
- if (typeof optionsOrCb !== "object")
69
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
- this.send(command, optionsOrCb || {}, cb);
71
- }
72
- else {
73
- return this.send(command, optionsOrCb);
74
- }
75
- }
76
- getSigningProfile(args, optionsOrCb, cb) {
77
- const command = new GetSigningProfileCommand(args);
78
- if (typeof optionsOrCb === "function") {
79
- this.send(command, optionsOrCb);
80
- }
81
- else if (typeof cb === "function") {
82
- if (typeof optionsOrCb !== "object")
83
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
84
- this.send(command, optionsOrCb || {}, cb);
85
- }
86
- else {
87
- return this.send(command, optionsOrCb);
88
- }
89
- }
90
- listProfilePermissions(args, optionsOrCb, cb) {
91
- const command = new ListProfilePermissionsCommand(args);
92
- if (typeof optionsOrCb === "function") {
93
- this.send(command, optionsOrCb);
94
- }
95
- else if (typeof cb === "function") {
96
- if (typeof optionsOrCb !== "object")
97
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
98
- this.send(command, optionsOrCb || {}, cb);
99
- }
100
- else {
101
- return this.send(command, optionsOrCb);
102
- }
103
- }
104
- listSigningJobs(args, optionsOrCb, cb) {
105
- const command = new ListSigningJobsCommand(args);
106
- if (typeof optionsOrCb === "function") {
107
- this.send(command, optionsOrCb);
108
- }
109
- else if (typeof cb === "function") {
110
- if (typeof optionsOrCb !== "object")
111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
112
- this.send(command, optionsOrCb || {}, cb);
113
- }
114
- else {
115
- return this.send(command, optionsOrCb);
116
- }
117
- }
118
- listSigningPlatforms(args, optionsOrCb, cb) {
119
- const command = new ListSigningPlatformsCommand(args);
120
- if (typeof optionsOrCb === "function") {
121
- this.send(command, optionsOrCb);
122
- }
123
- else if (typeof cb === "function") {
124
- if (typeof optionsOrCb !== "object")
125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
126
- this.send(command, optionsOrCb || {}, cb);
127
- }
128
- else {
129
- return this.send(command, optionsOrCb);
130
- }
131
- }
132
- listSigningProfiles(args, optionsOrCb, cb) {
133
- const command = new ListSigningProfilesCommand(args);
134
- if (typeof optionsOrCb === "function") {
135
- this.send(command, optionsOrCb);
136
- }
137
- else if (typeof cb === "function") {
138
- if (typeof optionsOrCb !== "object")
139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
140
- this.send(command, optionsOrCb || {}, cb);
141
- }
142
- else {
143
- return this.send(command, optionsOrCb);
144
- }
145
- }
146
- listTagsForResource(args, optionsOrCb, cb) {
147
- const command = new ListTagsForResourceCommand(args);
148
- if (typeof optionsOrCb === "function") {
149
- this.send(command, optionsOrCb);
150
- }
151
- else if (typeof cb === "function") {
152
- if (typeof optionsOrCb !== "object")
153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
154
- this.send(command, optionsOrCb || {}, cb);
155
- }
156
- else {
157
- return this.send(command, optionsOrCb);
158
- }
159
- }
160
- putSigningProfile(args, optionsOrCb, cb) {
161
- const command = new PutSigningProfileCommand(args);
162
- if (typeof optionsOrCb === "function") {
163
- this.send(command, optionsOrCb);
164
- }
165
- else if (typeof cb === "function") {
166
- if (typeof optionsOrCb !== "object")
167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
- this.send(command, optionsOrCb || {}, cb);
169
- }
170
- else {
171
- return this.send(command, optionsOrCb);
172
- }
173
- }
174
- removeProfilePermission(args, optionsOrCb, cb) {
175
- const command = new RemoveProfilePermissionCommand(args);
176
- if (typeof optionsOrCb === "function") {
177
- this.send(command, optionsOrCb);
178
- }
179
- else if (typeof cb === "function") {
180
- if (typeof optionsOrCb !== "object")
181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
- this.send(command, optionsOrCb || {}, cb);
183
- }
184
- else {
185
- return this.send(command, optionsOrCb);
186
- }
187
- }
188
- revokeSignature(args, optionsOrCb, cb) {
189
- const command = new RevokeSignatureCommand(args);
190
- if (typeof optionsOrCb === "function") {
191
- this.send(command, optionsOrCb);
192
- }
193
- else if (typeof cb === "function") {
194
- if (typeof optionsOrCb !== "object")
195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
196
- this.send(command, optionsOrCb || {}, cb);
197
- }
198
- else {
199
- return this.send(command, optionsOrCb);
200
- }
201
- }
202
- revokeSigningProfile(args, optionsOrCb, cb) {
203
- const command = new RevokeSigningProfileCommand(args);
204
- if (typeof optionsOrCb === "function") {
205
- this.send(command, optionsOrCb);
206
- }
207
- else if (typeof cb === "function") {
208
- if (typeof optionsOrCb !== "object")
209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
210
- this.send(command, optionsOrCb || {}, cb);
211
- }
212
- else {
213
- return this.send(command, optionsOrCb);
214
- }
215
- }
216
- startSigningJob(args, optionsOrCb, cb) {
217
- const command = new StartSigningJobCommand(args);
218
- if (typeof optionsOrCb === "function") {
219
- this.send(command, optionsOrCb);
220
- }
221
- else if (typeof cb === "function") {
222
- if (typeof optionsOrCb !== "object")
223
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
224
- this.send(command, optionsOrCb || {}, cb);
225
- }
226
- else {
227
- return this.send(command, optionsOrCb);
228
- }
229
- }
230
- tagResource(args, optionsOrCb, cb) {
231
- const command = new TagResourceCommand(args);
232
- if (typeof optionsOrCb === "function") {
233
- this.send(command, optionsOrCb);
234
- }
235
- else if (typeof cb === "function") {
236
- if (typeof optionsOrCb !== "object")
237
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
238
- this.send(command, optionsOrCb || {}, cb);
239
- }
240
- else {
241
- return this.send(command, optionsOrCb);
242
- }
243
- }
244
- untagResource(args, optionsOrCb, cb) {
245
- const command = new UntagResourceCommand(args);
246
- if (typeof optionsOrCb === "function") {
247
- this.send(command, optionsOrCb);
248
- }
249
- else if (typeof cb === "function") {
250
- if (typeof optionsOrCb !== "object")
251
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
252
- this.send(command, optionsOrCb || {}, cb);
253
- }
254
- else {
255
- return this.send(command, optionsOrCb);
256
- }
257
- }
258
40
  }
41
+ createAggregatedClient(commands, Signer);
@@ -314,7 +314,7 @@ export const se_StartSigningJobCommand = async (input, context) => {
314
314
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs";
315
315
  let body;
316
316
  body = JSON.stringify(take(input, {
317
- clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
317
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
318
318
  destination: (_) => _json(_),
319
319
  profileName: [],
320
320
  profileOwner: [],
@@ -17,204 +17,129 @@ import { StartSigningJobCommandInput, StartSigningJobCommandOutput } from "./com
17
17
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
18
18
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
19
19
  import { SignerClient } from "./SignerClient";
20
- /**
21
- * @public
22
- * <p>AWS Signer is a fully managed code signing service to help you ensure the trust and
23
- * integrity of your code. </p>
24
- * <p>AWS Signer supports the following applications:</p>
25
- *
26
- * <p>With <i>code signing for AWS Lambda</i>, you can sign AWS Lambda
27
- * deployment packages. Integrated support is provided for Amazon S3, Amazon CloudWatch,
28
- * and AWS CloudTrail. In order to sign code, you create a signing profile and then use
29
- * Signer to sign Lambda zip files in S3. </p>
30
- *
31
- * <p>With <i>code signing for IoT</i>, you can sign code for any IoT device that is
32
- * supported by AWS. IoT code signing is available for <a href="http://docs.aws.amazon.com/freertos/latest/userguide/">Amazon FreeRTOS</a> and <a href="http://docs.aws.amazon.com/iot/latest/developerguide/">AWS IoT Device Management</a>, and is
33
- * integrated with <a href="http://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager (ACM)</a>. In order to sign
34
- * code, you import a third-party code signing certificate using ACM, and use that to
35
- * sign updates in Amazon FreeRTOS and AWS IoT Device Management. </p>
36
- * <p>For more information about AWS Signer, see the <a href="http://docs.aws.amazon.com/signer/latest/developerguide/Welcome.html">AWS Signer Developer Guide</a>.</p>
37
- *
38
- * <p></p>
39
- */
40
- export declare class Signer extends SignerClient {
20
+ export interface Signer {
41
21
  /**
42
- * @public
43
- * <p>Adds cross-account permissions to a signing profile.</p>
22
+ * @see {@link AddProfilePermissionCommand}
44
23
  */
45
24
  addProfilePermission(args: AddProfilePermissionCommandInput, options?: __HttpHandlerOptions): Promise<AddProfilePermissionCommandOutput>;
46
25
  addProfilePermission(args: AddProfilePermissionCommandInput, cb: (err: any, data?: AddProfilePermissionCommandOutput) => void): void;
47
26
  addProfilePermission(args: AddProfilePermissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddProfilePermissionCommandOutput) => void): void;
48
27
  /**
49
- * @public
50
- * <p>Changes the state of an <code>ACTIVE</code> signing profile to <code>CANCELED</code>.
51
- * A canceled profile is still viewable with the <code>ListSigningProfiles</code>
52
- * operation, but it cannot perform new signing jobs, and is deleted two years after
53
- * cancelation.</p>
28
+ * @see {@link CancelSigningProfileCommand}
54
29
  */
55
30
  cancelSigningProfile(args: CancelSigningProfileCommandInput, options?: __HttpHandlerOptions): Promise<CancelSigningProfileCommandOutput>;
56
31
  cancelSigningProfile(args: CancelSigningProfileCommandInput, cb: (err: any, data?: CancelSigningProfileCommandOutput) => void): void;
57
32
  cancelSigningProfile(args: CancelSigningProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelSigningProfileCommandOutput) => void): void;
58
33
  /**
59
- * @public
60
- * <p>Returns information about a specific code signing job. You specify the job by using
61
- * the <code>jobId</code> value that is returned by the <a>StartSigningJob</a>
62
- * operation. </p>
34
+ * @see {@link DescribeSigningJobCommand}
63
35
  */
64
36
  describeSigningJob(args: DescribeSigningJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSigningJobCommandOutput>;
65
37
  describeSigningJob(args: DescribeSigningJobCommandInput, cb: (err: any, data?: DescribeSigningJobCommandOutput) => void): void;
66
38
  describeSigningJob(args: DescribeSigningJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSigningJobCommandOutput) => void): void;
67
39
  /**
68
- * @public
69
- * <p>Returns information on a specific signing platform.</p>
40
+ * @see {@link GetSigningPlatformCommand}
70
41
  */
71
42
  getSigningPlatform(args: GetSigningPlatformCommandInput, options?: __HttpHandlerOptions): Promise<GetSigningPlatformCommandOutput>;
72
43
  getSigningPlatform(args: GetSigningPlatformCommandInput, cb: (err: any, data?: GetSigningPlatformCommandOutput) => void): void;
73
44
  getSigningPlatform(args: GetSigningPlatformCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSigningPlatformCommandOutput) => void): void;
74
45
  /**
75
- * @public
76
- * <p>Returns information on a specific signing profile.</p>
46
+ * @see {@link GetSigningProfileCommand}
77
47
  */
78
48
  getSigningProfile(args: GetSigningProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetSigningProfileCommandOutput>;
79
49
  getSigningProfile(args: GetSigningProfileCommandInput, cb: (err: any, data?: GetSigningProfileCommandOutput) => void): void;
80
50
  getSigningProfile(args: GetSigningProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSigningProfileCommandOutput) => void): void;
81
51
  /**
82
- * @public
83
- * <p>Lists the cross-account permissions associated with a signing profile.</p>
52
+ * @see {@link ListProfilePermissionsCommand}
84
53
  */
85
54
  listProfilePermissions(args: ListProfilePermissionsCommandInput, options?: __HttpHandlerOptions): Promise<ListProfilePermissionsCommandOutput>;
86
55
  listProfilePermissions(args: ListProfilePermissionsCommandInput, cb: (err: any, data?: ListProfilePermissionsCommandOutput) => void): void;
87
56
  listProfilePermissions(args: ListProfilePermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProfilePermissionsCommandOutput) => void): void;
88
57
  /**
89
- * @public
90
- * <p>Lists all your signing jobs. You can use the <code>maxResults</code> parameter to
91
- * limit the number of signing jobs that are returned in the response. If additional jobs
92
- * remain to be listed, code signing returns a <code>nextToken</code> value. Use this value in
93
- * subsequent calls to <code>ListSigningJobs</code> to fetch the remaining values. You can
94
- * continue calling <code>ListSigningJobs</code> with your <code>maxResults</code>
95
- * parameter and with new values that code signing returns in the <code>nextToken</code>
96
- * parameter until all of your signing jobs have been returned. </p>
58
+ * @see {@link ListSigningJobsCommand}
97
59
  */
98
60
  listSigningJobs(args: ListSigningJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListSigningJobsCommandOutput>;
99
61
  listSigningJobs(args: ListSigningJobsCommandInput, cb: (err: any, data?: ListSigningJobsCommandOutput) => void): void;
100
62
  listSigningJobs(args: ListSigningJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSigningJobsCommandOutput) => void): void;
101
63
  /**
102
- * @public
103
- * <p>Lists all signing platforms available in code signing that match the request parameters. If
104
- * additional jobs remain to be listed, code signing returns a <code>nextToken</code> value. Use
105
- * this value in subsequent calls to <code>ListSigningJobs</code> to fetch the remaining
106
- * values. You can continue calling <code>ListSigningJobs</code> with your
107
- * <code>maxResults</code> parameter and with new values that code signing returns in the
108
- * <code>nextToken</code> parameter until all of your signing jobs have been
109
- * returned.</p>
64
+ * @see {@link ListSigningPlatformsCommand}
110
65
  */
111
66
  listSigningPlatforms(args: ListSigningPlatformsCommandInput, options?: __HttpHandlerOptions): Promise<ListSigningPlatformsCommandOutput>;
112
67
  listSigningPlatforms(args: ListSigningPlatformsCommandInput, cb: (err: any, data?: ListSigningPlatformsCommandOutput) => void): void;
113
68
  listSigningPlatforms(args: ListSigningPlatformsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSigningPlatformsCommandOutput) => void): void;
114
69
  /**
115
- * @public
116
- * <p>Lists all available signing profiles in your AWS account. Returns only profiles with
117
- * an <code>ACTIVE</code> status unless the <code>includeCanceled</code> request field is
118
- * set to <code>true</code>. If additional jobs remain to be listed, code signing returns a
119
- * <code>nextToken</code> value. Use this value in subsequent calls to
120
- * <code>ListSigningJobs</code> to fetch the remaining values. You can continue calling
121
- * <code>ListSigningJobs</code> with your <code>maxResults</code> parameter and with
122
- * new values that code signing returns in the <code>nextToken</code> parameter until all of your
123
- * signing jobs have been returned.</p>
70
+ * @see {@link ListSigningProfilesCommand}
124
71
  */
125
72
  listSigningProfiles(args: ListSigningProfilesCommandInput, options?: __HttpHandlerOptions): Promise<ListSigningProfilesCommandOutput>;
126
73
  listSigningProfiles(args: ListSigningProfilesCommandInput, cb: (err: any, data?: ListSigningProfilesCommandOutput) => void): void;
127
74
  listSigningProfiles(args: ListSigningProfilesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSigningProfilesCommandOutput) => void): void;
128
75
  /**
129
- * @public
130
- * <p>Returns a list of the tags associated with a signing profile resource.</p>
76
+ * @see {@link ListTagsForResourceCommand}
131
77
  */
132
78
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
133
79
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
134
80
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
135
81
  /**
136
- * @public
137
- * <p>Creates a signing profile. A signing profile is a code signing template that can be used to
138
- * carry out a pre-defined signing job. For more information, see <a href="http://docs.aws.amazon.com/signer/latest/developerguide/gs-profile.html">http://docs.aws.amazon.com/signer/latest/developerguide/gs-profile.html</a>
139
- * </p>
82
+ * @see {@link PutSigningProfileCommand}
140
83
  */
141
84
  putSigningProfile(args: PutSigningProfileCommandInput, options?: __HttpHandlerOptions): Promise<PutSigningProfileCommandOutput>;
142
85
  putSigningProfile(args: PutSigningProfileCommandInput, cb: (err: any, data?: PutSigningProfileCommandOutput) => void): void;
143
86
  putSigningProfile(args: PutSigningProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutSigningProfileCommandOutput) => void): void;
144
87
  /**
145
- * @public
146
- * <p>Removes cross-account permissions from a signing profile.</p>
88
+ * @see {@link RemoveProfilePermissionCommand}
147
89
  */
148
90
  removeProfilePermission(args: RemoveProfilePermissionCommandInput, options?: __HttpHandlerOptions): Promise<RemoveProfilePermissionCommandOutput>;
149
91
  removeProfilePermission(args: RemoveProfilePermissionCommandInput, cb: (err: any, data?: RemoveProfilePermissionCommandOutput) => void): void;
150
92
  removeProfilePermission(args: RemoveProfilePermissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveProfilePermissionCommandOutput) => void): void;
151
93
  /**
152
- * @public
153
- * <p>Changes the state of a signing job to REVOKED. This indicates that the signature is no
154
- * longer valid.</p>
94
+ * @see {@link RevokeSignatureCommand}
155
95
  */
156
96
  revokeSignature(args: RevokeSignatureCommandInput, options?: __HttpHandlerOptions): Promise<RevokeSignatureCommandOutput>;
157
97
  revokeSignature(args: RevokeSignatureCommandInput, cb: (err: any, data?: RevokeSignatureCommandOutput) => void): void;
158
98
  revokeSignature(args: RevokeSignatureCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RevokeSignatureCommandOutput) => void): void;
159
99
  /**
160
- * @public
161
- * <p>Changes the state of a signing profile to REVOKED. This indicates that signatures
162
- * generated using the signing profile after an effective start date are no longer
163
- * valid.</p>
100
+ * @see {@link RevokeSigningProfileCommand}
164
101
  */
165
102
  revokeSigningProfile(args: RevokeSigningProfileCommandInput, options?: __HttpHandlerOptions): Promise<RevokeSigningProfileCommandOutput>;
166
103
  revokeSigningProfile(args: RevokeSigningProfileCommandInput, cb: (err: any, data?: RevokeSigningProfileCommandOutput) => void): void;
167
104
  revokeSigningProfile(args: RevokeSigningProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RevokeSigningProfileCommandOutput) => void): void;
168
105
  /**
169
- * @public
170
- * <p>Initiates a signing job to be performed on the code provided. Signing jobs are
171
- * viewable by the <code>ListSigningJobs</code> operation for two years after they are
172
- * performed. Note the following requirements: </p>
173
- * <ul>
174
- * <li>
175
- * <p> You must create an Amazon S3 source bucket. For more information, see <a href="http://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html">Create a Bucket</a> in the
176
- * <i>Amazon S3 Getting Started Guide</i>. </p>
177
- * </li>
178
- * <li>
179
- * <p>Your S3 source bucket must be version enabled.</p>
180
- * </li>
181
- * <li>
182
- * <p>You must create an S3 destination bucket. Code signing uses your S3 destination
183
- * bucket to write your signed code.</p>
184
- * </li>
185
- * <li>
186
- * <p>You specify the name of the source and destination buckets when calling the
187
- * <code>StartSigningJob</code> operation.</p>
188
- * </li>
189
- * <li>
190
- * <p>You must also specify a request token that identifies your request to
191
- * code signing.</p>
192
- * </li>
193
- * </ul>
194
- * <p>You can call the <a>DescribeSigningJob</a> and the <a>ListSigningJobs</a> actions after you call
195
- * <code>StartSigningJob</code>.</p>
196
- * <p>For a Java example that shows how to use this action, see <a href="http://docs.aws.amazon.com/acm/latest/userguide/">http://docs.aws.amazon.com/acm/latest/userguide/</a>
197
- * </p>
106
+ * @see {@link StartSigningJobCommand}
198
107
  */
199
108
  startSigningJob(args: StartSigningJobCommandInput, options?: __HttpHandlerOptions): Promise<StartSigningJobCommandOutput>;
200
109
  startSigningJob(args: StartSigningJobCommandInput, cb: (err: any, data?: StartSigningJobCommandOutput) => void): void;
201
110
  startSigningJob(args: StartSigningJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSigningJobCommandOutput) => void): void;
202
111
  /**
203
- * @public
204
- * <p>Adds one or more tags to a signing profile. Tags are labels that you can use to
205
- * identify and organize your AWS resources. Each tag consists of a key and an optional
206
- * value. To specify the signing profile, use its Amazon Resource Name (ARN). To specify
207
- * the tag, use a key-value pair.</p>
112
+ * @see {@link TagResourceCommand}
208
113
  */
209
114
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
210
115
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
211
116
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
212
117
  /**
213
- * @public
214
- * <p>Removes one or more tags from a signing profile. To remove the tags, specify a list of
215
- * tag keys.</p>
118
+ * @see {@link UntagResourceCommand}
216
119
  */
217
120
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
218
121
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
219
122
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
220
123
  }
124
+ /**
125
+ * @public
126
+ * <p>AWS Signer is a fully managed code signing service to help you ensure the trust and
127
+ * integrity of your code. </p>
128
+ * <p>AWS Signer supports the following applications:</p>
129
+ *
130
+ * <p>With <i>code signing for AWS Lambda</i>, you can sign AWS Lambda
131
+ * deployment packages. Integrated support is provided for Amazon S3, Amazon CloudWatch,
132
+ * and AWS CloudTrail. In order to sign code, you create a signing profile and then use
133
+ * Signer to sign Lambda zip files in S3. </p>
134
+ *
135
+ * <p>With <i>code signing for IoT</i>, you can sign code for any IoT device that is
136
+ * supported by AWS. IoT code signing is available for <a href="http://docs.aws.amazon.com/freertos/latest/userguide/">Amazon FreeRTOS</a> and <a href="http://docs.aws.amazon.com/iot/latest/developerguide/">AWS IoT Device Management</a>, and is
137
+ * integrated with <a href="http://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager (ACM)</a>. In order to sign
138
+ * code, you import a third-party code signing certificate using ACM, and use that to
139
+ * sign updates in Amazon FreeRTOS and AWS IoT Device Management. </p>
140
+ * <p>For more information about AWS Signer, see the <a href="http://docs.aws.amazon.com/signer/latest/developerguide/Welcome.html">AWS Signer Developer Guide</a>.</p>
141
+ *
142
+ * <p></p>
143
+ */
144
+ export declare class Signer extends SignerClient implements Signer {
145
+ }
@@ -68,7 +68,7 @@ import {
68
68
  UntagResourceCommandOutput,
69
69
  } from "./commands/UntagResourceCommand";
70
70
  import { SignerClient } from "./SignerClient";
71
- export declare class Signer extends SignerClient {
71
+ export interface Signer {
72
72
  addProfilePermission(
73
73
  args: AddProfilePermissionCommandInput,
74
74
  options?: __HttpHandlerOptions
@@ -291,3 +291,4 @@ export declare class Signer extends SignerClient {
291
291
  cb: (err: any, data?: UntagResourceCommandOutput) => void
292
292
  ): void;
293
293
  }
294
+ export declare class Signer extends SignerClient implements Signer {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-signer",
3
3
  "description": "AWS SDK for JavaScript Signer Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",