@aws-sdk/client-signer 3.186.0 → 3.190.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Signer.js +70 -77
  3. package/dist-es/SignerClient.js +22 -28
  4. package/dist-es/commands/AddProfilePermissionCommand.js +21 -28
  5. package/dist-es/commands/CancelSigningProfileCommand.js +22 -29
  6. package/dist-es/commands/DescribeSigningJobCommand.js +21 -28
  7. package/dist-es/commands/GetSigningPlatformCommand.js +21 -28
  8. package/dist-es/commands/GetSigningProfileCommand.js +21 -28
  9. package/dist-es/commands/ListProfilePermissionsCommand.js +21 -28
  10. package/dist-es/commands/ListSigningJobsCommand.js +21 -28
  11. package/dist-es/commands/ListSigningPlatformsCommand.js +21 -28
  12. package/dist-es/commands/ListSigningProfilesCommand.js +21 -28
  13. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  14. package/dist-es/commands/PutSigningProfileCommand.js +21 -28
  15. package/dist-es/commands/RemoveProfilePermissionCommand.js +21 -28
  16. package/dist-es/commands/RevokeSignatureCommand.js +22 -29
  17. package/dist-es/commands/RevokeSigningProfileCommand.js +22 -29
  18. package/dist-es/commands/StartSigningJobCommand.js +21 -28
  19. package/dist-es/commands/TagResourceCommand.js +21 -28
  20. package/dist-es/commands/UntagResourceCommand.js +21 -28
  21. package/dist-es/endpoints.js +8 -8
  22. package/dist-es/models/SignerServiceException.js +5 -10
  23. package/dist-es/models/models_0.js +273 -172
  24. package/dist-es/pagination/ListSigningJobsPaginator.js +25 -68
  25. package/dist-es/pagination/ListSigningPlatformsPaginator.js +25 -68
  26. package/dist-es/pagination/ListSigningProfilesPaginator.js +25 -68
  27. package/dist-es/protocols/Aws_restJson1.js +1494 -2004
  28. package/dist-es/runtimeConfig.browser.js +26 -12
  29. package/dist-es/runtimeConfig.js +30 -12
  30. package/dist-es/runtimeConfig.native.js +8 -5
  31. package/dist-es/runtimeConfig.shared.js +8 -11
  32. package/dist-es/waiters/waitForSuccessfulSigningJob.js +39 -59
  33. package/package.json +34 -34
@@ -1,183 +1,284 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SignerServiceException as __BaseException } from "./SignerServiceException";
3
- var AccessDeniedException = (function (_super) {
4
- __extends(AccessDeniedException, _super);
5
- function AccessDeniedException(opts) {
6
- var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
7
- _this.name = "AccessDeniedException";
8
- _this.$fault = "client";
9
- Object.setPrototypeOf(_this, AccessDeniedException.prototype);
10
- _this.code = opts.code;
11
- return _this;
2
+ export class AccessDeniedException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "AccessDeniedException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "AccessDeniedException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ this.code = opts.code;
12
13
  }
13
- return AccessDeniedException;
14
- }(__BaseException));
15
- export { AccessDeniedException };
16
- var ConflictException = (function (_super) {
17
- __extends(ConflictException, _super);
18
- function ConflictException(opts) {
19
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
20
- _this.name = "ConflictException";
21
- _this.$fault = "client";
22
- Object.setPrototypeOf(_this, ConflictException.prototype);
23
- _this.code = opts.code;
24
- return _this;
14
+ }
15
+ export class ConflictException extends __BaseException {
16
+ constructor(opts) {
17
+ super({
18
+ name: "ConflictException",
19
+ $fault: "client",
20
+ ...opts,
21
+ });
22
+ this.name = "ConflictException";
23
+ this.$fault = "client";
24
+ Object.setPrototypeOf(this, ConflictException.prototype);
25
+ this.code = opts.code;
25
26
  }
26
- return ConflictException;
27
- }(__BaseException));
28
- export { ConflictException };
29
- var InternalServiceErrorException = (function (_super) {
30
- __extends(InternalServiceErrorException, _super);
31
- function InternalServiceErrorException(opts) {
32
- var _this = _super.call(this, __assign({ name: "InternalServiceErrorException", $fault: "server" }, opts)) || this;
33
- _this.name = "InternalServiceErrorException";
34
- _this.$fault = "server";
35
- Object.setPrototypeOf(_this, InternalServiceErrorException.prototype);
36
- _this.code = opts.code;
37
- return _this;
27
+ }
28
+ export class InternalServiceErrorException extends __BaseException {
29
+ constructor(opts) {
30
+ super({
31
+ name: "InternalServiceErrorException",
32
+ $fault: "server",
33
+ ...opts,
34
+ });
35
+ this.name = "InternalServiceErrorException";
36
+ this.$fault = "server";
37
+ Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
38
+ this.code = opts.code;
38
39
  }
39
- return InternalServiceErrorException;
40
- }(__BaseException));
41
- export { InternalServiceErrorException };
42
- var ResourceNotFoundException = (function (_super) {
43
- __extends(ResourceNotFoundException, _super);
44
- function ResourceNotFoundException(opts) {
45
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
46
- _this.name = "ResourceNotFoundException";
47
- _this.$fault = "client";
48
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
49
- _this.code = opts.code;
50
- return _this;
40
+ }
41
+ export class ResourceNotFoundException extends __BaseException {
42
+ constructor(opts) {
43
+ super({
44
+ name: "ResourceNotFoundException",
45
+ $fault: "client",
46
+ ...opts,
47
+ });
48
+ this.name = "ResourceNotFoundException";
49
+ this.$fault = "client";
50
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
51
+ this.code = opts.code;
51
52
  }
52
- return ResourceNotFoundException;
53
- }(__BaseException));
54
- export { ResourceNotFoundException };
55
- var ServiceLimitExceededException = (function (_super) {
56
- __extends(ServiceLimitExceededException, _super);
57
- function ServiceLimitExceededException(opts) {
58
- var _this = _super.call(this, __assign({ name: "ServiceLimitExceededException", $fault: "client" }, opts)) || this;
59
- _this.name = "ServiceLimitExceededException";
60
- _this.$fault = "client";
61
- Object.setPrototypeOf(_this, ServiceLimitExceededException.prototype);
62
- _this.code = opts.code;
63
- return _this;
53
+ }
54
+ export class ServiceLimitExceededException extends __BaseException {
55
+ constructor(opts) {
56
+ super({
57
+ name: "ServiceLimitExceededException",
58
+ $fault: "client",
59
+ ...opts,
60
+ });
61
+ this.name = "ServiceLimitExceededException";
62
+ this.$fault = "client";
63
+ Object.setPrototypeOf(this, ServiceLimitExceededException.prototype);
64
+ this.code = opts.code;
64
65
  }
65
- return ServiceLimitExceededException;
66
- }(__BaseException));
67
- export { ServiceLimitExceededException };
68
- var TooManyRequestsException = (function (_super) {
69
- __extends(TooManyRequestsException, _super);
70
- function TooManyRequestsException(opts) {
71
- var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
72
- _this.name = "TooManyRequestsException";
73
- _this.$fault = "client";
74
- Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
75
- _this.code = opts.code;
76
- return _this;
66
+ }
67
+ export class TooManyRequestsException extends __BaseException {
68
+ constructor(opts) {
69
+ super({
70
+ name: "TooManyRequestsException",
71
+ $fault: "client",
72
+ ...opts,
73
+ });
74
+ this.name = "TooManyRequestsException";
75
+ this.$fault = "client";
76
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
77
+ this.code = opts.code;
77
78
  }
78
- return TooManyRequestsException;
79
- }(__BaseException));
80
- export { TooManyRequestsException };
81
- var ValidationException = (function (_super) {
82
- __extends(ValidationException, _super);
83
- function ValidationException(opts) {
84
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
85
- _this.name = "ValidationException";
86
- _this.$fault = "client";
87
- Object.setPrototypeOf(_this, ValidationException.prototype);
88
- _this.code = opts.code;
89
- return _this;
79
+ }
80
+ export class ValidationException extends __BaseException {
81
+ constructor(opts) {
82
+ super({
83
+ name: "ValidationException",
84
+ $fault: "client",
85
+ ...opts,
86
+ });
87
+ this.name = "ValidationException";
88
+ this.$fault = "client";
89
+ Object.setPrototypeOf(this, ValidationException.prototype);
90
+ this.code = opts.code;
90
91
  }
91
- return ValidationException;
92
- }(__BaseException));
93
- export { ValidationException };
94
- var BadRequestException = (function (_super) {
95
- __extends(BadRequestException, _super);
96
- function BadRequestException(opts) {
97
- var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
98
- _this.name = "BadRequestException";
99
- _this.$fault = "client";
100
- Object.setPrototypeOf(_this, BadRequestException.prototype);
101
- _this.code = opts.code;
102
- return _this;
92
+ }
93
+ export class BadRequestException extends __BaseException {
94
+ constructor(opts) {
95
+ super({
96
+ name: "BadRequestException",
97
+ $fault: "client",
98
+ ...opts,
99
+ });
100
+ this.name = "BadRequestException";
101
+ this.$fault = "client";
102
+ Object.setPrototypeOf(this, BadRequestException.prototype);
103
+ this.code = opts.code;
103
104
  }
104
- return BadRequestException;
105
- }(__BaseException));
106
- export { BadRequestException };
107
- var NotFoundException = (function (_super) {
108
- __extends(NotFoundException, _super);
109
- function NotFoundException(opts) {
110
- var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
111
- _this.name = "NotFoundException";
112
- _this.$fault = "client";
113
- Object.setPrototypeOf(_this, NotFoundException.prototype);
114
- _this.code = opts.code;
115
- return _this;
105
+ }
106
+ export class NotFoundException extends __BaseException {
107
+ constructor(opts) {
108
+ super({
109
+ name: "NotFoundException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ this.name = "NotFoundException";
114
+ this.$fault = "client";
115
+ Object.setPrototypeOf(this, NotFoundException.prototype);
116
+ this.code = opts.code;
116
117
  }
117
- return NotFoundException;
118
- }(__BaseException));
119
- export { NotFoundException };
120
- var ThrottlingException = (function (_super) {
121
- __extends(ThrottlingException, _super);
122
- function ThrottlingException(opts) {
123
- var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
124
- _this.name = "ThrottlingException";
125
- _this.$fault = "client";
126
- Object.setPrototypeOf(_this, ThrottlingException.prototype);
127
- _this.code = opts.code;
128
- return _this;
118
+ }
119
+ export class ThrottlingException extends __BaseException {
120
+ constructor(opts) {
121
+ super({
122
+ name: "ThrottlingException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ this.name = "ThrottlingException";
127
+ this.$fault = "client";
128
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
129
+ this.code = opts.code;
129
130
  }
130
- return ThrottlingException;
131
- }(__BaseException));
132
- export { ThrottlingException };
133
- export var AddProfilePermissionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
134
- export var AddProfilePermissionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
- export var CancelSigningProfileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
- export var DescribeSigningJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
- export var SigningConfigurationOverridesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
138
- export var SigningPlatformOverridesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
- export var SigningJobRevocationRecordFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
- export var S3SignedObjectFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
- export var SignedObjectFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
142
- export var SigningMaterialFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
- export var S3SourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
- export var SourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
145
- export var DescribeSigningJobResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
146
- export var S3DestinationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
- export var DestinationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
- export var EncryptionAlgorithmOptionsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
- export var GetSigningPlatformRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
150
- export var HashAlgorithmOptionsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
151
- export var SigningConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
152
- export var SigningImageFormatFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
153
- export var GetSigningPlatformResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
154
- export var GetSigningProfileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
155
- export var SigningProfileRevocationRecordFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
156
- export var SignatureValidityPeriodFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
157
- export var GetSigningProfileResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
158
- export var ListProfilePermissionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
159
- export var PermissionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
160
- export var ListProfilePermissionsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
- export var ListSigningJobsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
- export var SigningJobFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
- export var ListSigningJobsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
- export var ListSigningPlatformsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
- export var SigningPlatformFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
166
- export var ListSigningPlatformsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
167
- export var ListSigningProfilesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
168
- export var SigningProfileFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
169
- export var ListSigningProfilesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
170
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
171
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
172
- export var PutSigningProfileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
173
- export var PutSigningProfileResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
174
- export var RemoveProfilePermissionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
- export var RemoveProfilePermissionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
176
- export var RevokeSignatureRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
- export var RevokeSigningProfileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
178
- export var StartSigningJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
- export var StartSigningJobResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
182
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
+ }
132
+ export const AddProfilePermissionRequestFilterSensitiveLog = (obj) => ({
133
+ ...obj,
134
+ });
135
+ export const AddProfilePermissionResponseFilterSensitiveLog = (obj) => ({
136
+ ...obj,
137
+ });
138
+ export const CancelSigningProfileRequestFilterSensitiveLog = (obj) => ({
139
+ ...obj,
140
+ });
141
+ export const DescribeSigningJobRequestFilterSensitiveLog = (obj) => ({
142
+ ...obj,
143
+ });
144
+ export const SigningConfigurationOverridesFilterSensitiveLog = (obj) => ({
145
+ ...obj,
146
+ });
147
+ export const SigningPlatformOverridesFilterSensitiveLog = (obj) => ({
148
+ ...obj,
149
+ });
150
+ export const SigningJobRevocationRecordFilterSensitiveLog = (obj) => ({
151
+ ...obj,
152
+ });
153
+ export const S3SignedObjectFilterSensitiveLog = (obj) => ({
154
+ ...obj,
155
+ });
156
+ export const SignedObjectFilterSensitiveLog = (obj) => ({
157
+ ...obj,
158
+ });
159
+ export const SigningMaterialFilterSensitiveLog = (obj) => ({
160
+ ...obj,
161
+ });
162
+ export const S3SourceFilterSensitiveLog = (obj) => ({
163
+ ...obj,
164
+ });
165
+ export const SourceFilterSensitiveLog = (obj) => ({
166
+ ...obj,
167
+ });
168
+ export const DescribeSigningJobResponseFilterSensitiveLog = (obj) => ({
169
+ ...obj,
170
+ });
171
+ export const S3DestinationFilterSensitiveLog = (obj) => ({
172
+ ...obj,
173
+ });
174
+ export const DestinationFilterSensitiveLog = (obj) => ({
175
+ ...obj,
176
+ });
177
+ export const EncryptionAlgorithmOptionsFilterSensitiveLog = (obj) => ({
178
+ ...obj,
179
+ });
180
+ export const GetSigningPlatformRequestFilterSensitiveLog = (obj) => ({
181
+ ...obj,
182
+ });
183
+ export const HashAlgorithmOptionsFilterSensitiveLog = (obj) => ({
184
+ ...obj,
185
+ });
186
+ export const SigningConfigurationFilterSensitiveLog = (obj) => ({
187
+ ...obj,
188
+ });
189
+ export const SigningImageFormatFilterSensitiveLog = (obj) => ({
190
+ ...obj,
191
+ });
192
+ export const GetSigningPlatformResponseFilterSensitiveLog = (obj) => ({
193
+ ...obj,
194
+ });
195
+ export const GetSigningProfileRequestFilterSensitiveLog = (obj) => ({
196
+ ...obj,
197
+ });
198
+ export const SigningProfileRevocationRecordFilterSensitiveLog = (obj) => ({
199
+ ...obj,
200
+ });
201
+ export const SignatureValidityPeriodFilterSensitiveLog = (obj) => ({
202
+ ...obj,
203
+ });
204
+ export const GetSigningProfileResponseFilterSensitiveLog = (obj) => ({
205
+ ...obj,
206
+ });
207
+ export const ListProfilePermissionsRequestFilterSensitiveLog = (obj) => ({
208
+ ...obj,
209
+ });
210
+ export const PermissionFilterSensitiveLog = (obj) => ({
211
+ ...obj,
212
+ });
213
+ export const ListProfilePermissionsResponseFilterSensitiveLog = (obj) => ({
214
+ ...obj,
215
+ });
216
+ export const ListSigningJobsRequestFilterSensitiveLog = (obj) => ({
217
+ ...obj,
218
+ });
219
+ export const SigningJobFilterSensitiveLog = (obj) => ({
220
+ ...obj,
221
+ });
222
+ export const ListSigningJobsResponseFilterSensitiveLog = (obj) => ({
223
+ ...obj,
224
+ });
225
+ export const ListSigningPlatformsRequestFilterSensitiveLog = (obj) => ({
226
+ ...obj,
227
+ });
228
+ export const SigningPlatformFilterSensitiveLog = (obj) => ({
229
+ ...obj,
230
+ });
231
+ export const ListSigningPlatformsResponseFilterSensitiveLog = (obj) => ({
232
+ ...obj,
233
+ });
234
+ export const ListSigningProfilesRequestFilterSensitiveLog = (obj) => ({
235
+ ...obj,
236
+ });
237
+ export const SigningProfileFilterSensitiveLog = (obj) => ({
238
+ ...obj,
239
+ });
240
+ export const ListSigningProfilesResponseFilterSensitiveLog = (obj) => ({
241
+ ...obj,
242
+ });
243
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
244
+ ...obj,
245
+ });
246
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
247
+ ...obj,
248
+ });
249
+ export const PutSigningProfileRequestFilterSensitiveLog = (obj) => ({
250
+ ...obj,
251
+ });
252
+ export const PutSigningProfileResponseFilterSensitiveLog = (obj) => ({
253
+ ...obj,
254
+ });
255
+ export const RemoveProfilePermissionRequestFilterSensitiveLog = (obj) => ({
256
+ ...obj,
257
+ });
258
+ export const RemoveProfilePermissionResponseFilterSensitiveLog = (obj) => ({
259
+ ...obj,
260
+ });
261
+ export const RevokeSignatureRequestFilterSensitiveLog = (obj) => ({
262
+ ...obj,
263
+ });
264
+ export const RevokeSigningProfileRequestFilterSensitiveLog = (obj) => ({
265
+ ...obj,
266
+ });
267
+ export const StartSigningJobRequestFilterSensitiveLog = (obj) => ({
268
+ ...obj,
269
+ });
270
+ export const StartSigningJobResponseFilterSensitiveLog = (obj) => ({
271
+ ...obj,
272
+ });
273
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
274
+ ...obj,
275
+ });
276
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ });
279
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
280
+ ...obj,
281
+ });
282
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
283
+ ...obj,
284
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListSigningJobsCommand, } from "../commands/ListSigningJobsCommand";
3
2
  import { Signer } from "../Signer";
4
3
  import { SignerClient } from "../SignerClient";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListSigningJobsCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListSigningJobsCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.listSigningJobs.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listSigningJobs(input, ...args);
32
9
  };
33
- export function paginateListSigningJobs(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListSigningJobs(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof Signer) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof SignerClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected Signer | SignerClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListSigningJobs_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.nextToken = token;
49
- input["maxResults"] = config.pageSize;
50
- if (!(config.client instanceof Signer)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof SignerClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected Signer | SignerClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.nextToken;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }