@aws-sdk/client-acm 3.180.0 → 3.183.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/CHANGELOG.md +25 -0
- package/README.md +3 -3
- package/dist-cjs/models/models_0.js +11 -2
- package/dist-cjs/protocols/Aws_json1_1.js +65 -15
- package/dist-es/ACM.js +62 -69
- package/dist-es/ACMClient.js +22 -28
- package/dist-es/commands/AddTagsToCertificateCommand.js +22 -29
- package/dist-es/commands/DeleteCertificateCommand.js +22 -29
- package/dist-es/commands/DescribeCertificateCommand.js +21 -28
- package/dist-es/commands/ExportCertificateCommand.js +21 -28
- package/dist-es/commands/GetAccountConfigurationCommand.js +22 -29
- package/dist-es/commands/GetCertificateCommand.js +21 -28
- package/dist-es/commands/ImportCertificateCommand.js +21 -28
- package/dist-es/commands/ListCertificatesCommand.js +21 -28
- package/dist-es/commands/ListTagsForCertificateCommand.js +21 -28
- package/dist-es/commands/PutAccountConfigurationCommand.js +22 -29
- package/dist-es/commands/RemoveTagsFromCertificateCommand.js +22 -29
- package/dist-es/commands/RenewCertificateCommand.js +22 -29
- package/dist-es/commands/RequestCertificateCommand.js +21 -28
- package/dist-es/commands/ResendValidationEmailCommand.js +22 -29
- package/dist-es/commands/UpdateCertificateOptionsCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ACMServiceException.js +5 -10
- package/dist-es/models/models_0.js +291 -212
- package/dist-es/pagination/ListCertificatesPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1164 -1432
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForCertificateValidated.js +61 -102
- package/dist-types/ACM.d.ts +18 -27
- package/dist-types/ACMClient.d.ts +3 -3
- package/dist-types/commands/AddTagsToCertificateCommand.d.ts +0 -2
- package/dist-types/commands/DescribeCertificateCommand.d.ts +2 -0
- package/dist-types/commands/GetAccountConfigurationCommand.d.ts +1 -2
- package/dist-types/commands/ImportCertificateCommand.d.ts +2 -7
- package/dist-types/commands/PutAccountConfigurationCommand.d.ts +3 -6
- package/dist-types/commands/RemoveTagsFromCertificateCommand.d.ts +0 -1
- package/dist-types/commands/RenewCertificateCommand.d.ts +2 -2
- package/dist-types/commands/RequestCertificateCommand.d.ts +5 -4
- package/dist-types/models/models_0.d.ts +153 -50
- package/dist-types/ts3.4/models/models_0.d.ts +25 -0
- package/package.json +34 -34
|
@@ -1,103 +1,102 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
2
|
import { ACMServiceException as __BaseException } from "./ACMServiceException";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "AccessDeniedException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "AccessDeniedException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
this.Message = opts.Message;
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
}
|
|
16
|
+
export class InvalidArnException extends __BaseException {
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "InvalidArnException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
this.name = "InvalidArnException";
|
|
24
|
+
this.$fault = "client";
|
|
25
|
+
Object.setPrototypeOf(this, InvalidArnException.prototype);
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
}
|
|
28
|
+
export class InvalidParameterException extends __BaseException {
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "InvalidParameterException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
this.name = "InvalidParameterException";
|
|
36
|
+
this.$fault = "client";
|
|
37
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
}
|
|
40
|
+
export class InvalidTagException extends __BaseException {
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "InvalidTagException",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
this.name = "InvalidTagException";
|
|
48
|
+
this.$fault = "client";
|
|
49
|
+
Object.setPrototypeOf(this, InvalidTagException.prototype);
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
}
|
|
52
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "ResourceNotFoundException",
|
|
56
|
+
$fault: "client",
|
|
57
|
+
...opts,
|
|
58
|
+
});
|
|
59
|
+
this.name = "ResourceNotFoundException";
|
|
60
|
+
this.$fault = "client";
|
|
61
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
}
|
|
64
|
+
export class TagPolicyException extends __BaseException {
|
|
65
|
+
constructor(opts) {
|
|
66
|
+
super({
|
|
67
|
+
name: "TagPolicyException",
|
|
68
|
+
$fault: "client",
|
|
69
|
+
...opts,
|
|
70
|
+
});
|
|
71
|
+
this.name = "TagPolicyException";
|
|
72
|
+
this.$fault = "client";
|
|
73
|
+
Object.setPrototypeOf(this, TagPolicyException.prototype);
|
|
73
74
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
}
|
|
76
|
+
export class ThrottlingException extends __BaseException {
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "ThrottlingException",
|
|
80
|
+
$fault: "client",
|
|
81
|
+
...opts,
|
|
82
|
+
});
|
|
83
|
+
this.name = "ThrottlingException";
|
|
84
|
+
this.$fault = "client";
|
|
85
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
87
|
+
}
|
|
88
|
+
export class TooManyTagsException extends __BaseException {
|
|
89
|
+
constructor(opts) {
|
|
90
|
+
super({
|
|
91
|
+
name: "TooManyTagsException",
|
|
92
|
+
$fault: "client",
|
|
93
|
+
...opts,
|
|
94
|
+
});
|
|
95
|
+
this.name = "TooManyTagsException";
|
|
96
|
+
this.$fault = "client";
|
|
97
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
97
98
|
}
|
|
98
|
-
|
|
99
|
-
}(__BaseException));
|
|
100
|
-
export { TooManyTagsException };
|
|
99
|
+
}
|
|
101
100
|
export var RecordType;
|
|
102
101
|
(function (RecordType) {
|
|
103
102
|
RecordType["CNAME"] = "CNAME";
|
|
@@ -218,133 +217,213 @@ export var CertificateType;
|
|
|
218
217
|
CertificateType["IMPORTED"] = "IMPORTED";
|
|
219
218
|
CertificateType["PRIVATE"] = "PRIVATE";
|
|
220
219
|
})(CertificateType || (CertificateType = {}));
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
220
|
+
export class ResourceInUseException extends __BaseException {
|
|
221
|
+
constructor(opts) {
|
|
222
|
+
super({
|
|
223
|
+
name: "ResourceInUseException",
|
|
224
|
+
$fault: "client",
|
|
225
|
+
...opts,
|
|
226
|
+
});
|
|
227
|
+
this.name = "ResourceInUseException";
|
|
228
|
+
this.$fault = "client";
|
|
229
|
+
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
229
230
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
231
|
+
}
|
|
232
|
+
export class RequestInProgressException extends __BaseException {
|
|
233
|
+
constructor(opts) {
|
|
234
|
+
super({
|
|
235
|
+
name: "RequestInProgressException",
|
|
236
|
+
$fault: "client",
|
|
237
|
+
...opts,
|
|
238
|
+
});
|
|
239
|
+
this.name = "RequestInProgressException";
|
|
240
|
+
this.$fault = "client";
|
|
241
|
+
Object.setPrototypeOf(this, RequestInProgressException.prototype);
|
|
241
242
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
243
|
+
}
|
|
244
|
+
export class LimitExceededException extends __BaseException {
|
|
245
|
+
constructor(opts) {
|
|
246
|
+
super({
|
|
247
|
+
name: "LimitExceededException",
|
|
248
|
+
$fault: "client",
|
|
249
|
+
...opts,
|
|
250
|
+
});
|
|
251
|
+
this.name = "LimitExceededException";
|
|
252
|
+
this.$fault = "client";
|
|
253
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
253
254
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
255
|
+
}
|
|
256
|
+
export class InvalidArgsException extends __BaseException {
|
|
257
|
+
constructor(opts) {
|
|
258
|
+
super({
|
|
259
|
+
name: "InvalidArgsException",
|
|
260
|
+
$fault: "client",
|
|
261
|
+
...opts,
|
|
262
|
+
});
|
|
263
|
+
this.name = "InvalidArgsException";
|
|
264
|
+
this.$fault = "client";
|
|
265
|
+
Object.setPrototypeOf(this, InvalidArgsException.prototype);
|
|
265
266
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
267
|
+
}
|
|
268
|
+
export var SortBy;
|
|
269
|
+
(function (SortBy) {
|
|
270
|
+
SortBy["CREATED_AT"] = "CREATED_AT";
|
|
271
|
+
})(SortBy || (SortBy = {}));
|
|
272
|
+
export var SortOrder;
|
|
273
|
+
(function (SortOrder) {
|
|
274
|
+
SortOrder["ASCENDING"] = "ASCENDING";
|
|
275
|
+
SortOrder["DESCENDING"] = "DESCENDING";
|
|
276
|
+
})(SortOrder || (SortOrder = {}));
|
|
277
|
+
export class ConflictException extends __BaseException {
|
|
278
|
+
constructor(opts) {
|
|
279
|
+
super({
|
|
280
|
+
name: "ConflictException",
|
|
281
|
+
$fault: "client",
|
|
282
|
+
...opts,
|
|
283
|
+
});
|
|
284
|
+
this.name = "ConflictException";
|
|
285
|
+
this.$fault = "client";
|
|
286
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
277
287
|
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
288
|
+
}
|
|
289
|
+
export class ValidationException extends __BaseException {
|
|
290
|
+
constructor(opts) {
|
|
291
|
+
super({
|
|
292
|
+
name: "ValidationException",
|
|
293
|
+
$fault: "client",
|
|
294
|
+
...opts,
|
|
295
|
+
});
|
|
296
|
+
this.name = "ValidationException";
|
|
297
|
+
this.$fault = "client";
|
|
298
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
289
299
|
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
}
|
|
301
|
+
export class InvalidDomainValidationOptionsException extends __BaseException {
|
|
302
|
+
constructor(opts) {
|
|
303
|
+
super({
|
|
304
|
+
name: "InvalidDomainValidationOptionsException",
|
|
305
|
+
$fault: "client",
|
|
306
|
+
...opts,
|
|
307
|
+
});
|
|
308
|
+
this.name = "InvalidDomainValidationOptionsException";
|
|
309
|
+
this.$fault = "client";
|
|
310
|
+
Object.setPrototypeOf(this, InvalidDomainValidationOptionsException.prototype);
|
|
301
311
|
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
312
|
+
}
|
|
313
|
+
export class InvalidStateException extends __BaseException {
|
|
314
|
+
constructor(opts) {
|
|
315
|
+
super({
|
|
316
|
+
name: "InvalidStateException",
|
|
317
|
+
$fault: "client",
|
|
318
|
+
...opts,
|
|
319
|
+
});
|
|
320
|
+
this.name = "InvalidStateException";
|
|
321
|
+
this.$fault = "client";
|
|
322
|
+
Object.setPrototypeOf(this, InvalidStateException.prototype);
|
|
313
323
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
export
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
export
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
export
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
export
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
export
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
export
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
export
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
export
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
export
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
export
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
export
|
|
349
|
-
|
|
350
|
-
|
|
324
|
+
}
|
|
325
|
+
export const TagFilterSensitiveLog = (obj) => ({
|
|
326
|
+
...obj,
|
|
327
|
+
});
|
|
328
|
+
export const AddTagsToCertificateRequestFilterSensitiveLog = (obj) => ({
|
|
329
|
+
...obj,
|
|
330
|
+
});
|
|
331
|
+
export const ResourceRecordFilterSensitiveLog = (obj) => ({
|
|
332
|
+
...obj,
|
|
333
|
+
});
|
|
334
|
+
export const DomainValidationFilterSensitiveLog = (obj) => ({
|
|
335
|
+
...obj,
|
|
336
|
+
});
|
|
337
|
+
export const ExtendedKeyUsageFilterSensitiveLog = (obj) => ({
|
|
338
|
+
...obj,
|
|
339
|
+
});
|
|
340
|
+
export const KeyUsageFilterSensitiveLog = (obj) => ({
|
|
341
|
+
...obj,
|
|
342
|
+
});
|
|
343
|
+
export const CertificateOptionsFilterSensitiveLog = (obj) => ({
|
|
344
|
+
...obj,
|
|
345
|
+
});
|
|
346
|
+
export const RenewalSummaryFilterSensitiveLog = (obj) => ({
|
|
347
|
+
...obj,
|
|
348
|
+
});
|
|
349
|
+
export const CertificateDetailFilterSensitiveLog = (obj) => ({
|
|
350
|
+
...obj,
|
|
351
|
+
});
|
|
352
|
+
export const DeleteCertificateRequestFilterSensitiveLog = (obj) => ({
|
|
353
|
+
...obj,
|
|
354
|
+
});
|
|
355
|
+
export const DescribeCertificateRequestFilterSensitiveLog = (obj) => ({
|
|
356
|
+
...obj,
|
|
357
|
+
});
|
|
358
|
+
export const DescribeCertificateResponseFilterSensitiveLog = (obj) => ({
|
|
359
|
+
...obj,
|
|
360
|
+
});
|
|
361
|
+
export const ExportCertificateRequestFilterSensitiveLog = (obj) => ({
|
|
362
|
+
...obj,
|
|
363
|
+
...(obj.Passphrase && { Passphrase: SENSITIVE_STRING }),
|
|
364
|
+
});
|
|
365
|
+
export const ExportCertificateResponseFilterSensitiveLog = (obj) => ({
|
|
366
|
+
...obj,
|
|
367
|
+
...(obj.PrivateKey && { PrivateKey: SENSITIVE_STRING }),
|
|
368
|
+
});
|
|
369
|
+
export const ExpiryEventsConfigurationFilterSensitiveLog = (obj) => ({
|
|
370
|
+
...obj,
|
|
371
|
+
});
|
|
372
|
+
export const GetAccountConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
373
|
+
...obj,
|
|
374
|
+
});
|
|
375
|
+
export const GetCertificateRequestFilterSensitiveLog = (obj) => ({
|
|
376
|
+
...obj,
|
|
377
|
+
});
|
|
378
|
+
export const GetCertificateResponseFilterSensitiveLog = (obj) => ({
|
|
379
|
+
...obj,
|
|
380
|
+
});
|
|
381
|
+
export const ImportCertificateRequestFilterSensitiveLog = (obj) => ({
|
|
382
|
+
...obj,
|
|
383
|
+
...(obj.PrivateKey && { PrivateKey: SENSITIVE_STRING }),
|
|
384
|
+
});
|
|
385
|
+
export const ImportCertificateResponseFilterSensitiveLog = (obj) => ({
|
|
386
|
+
...obj,
|
|
387
|
+
});
|
|
388
|
+
export const FiltersFilterSensitiveLog = (obj) => ({
|
|
389
|
+
...obj,
|
|
390
|
+
});
|
|
391
|
+
export const ListCertificatesRequestFilterSensitiveLog = (obj) => ({
|
|
392
|
+
...obj,
|
|
393
|
+
});
|
|
394
|
+
export const CertificateSummaryFilterSensitiveLog = (obj) => ({
|
|
395
|
+
...obj,
|
|
396
|
+
});
|
|
397
|
+
export const ListCertificatesResponseFilterSensitiveLog = (obj) => ({
|
|
398
|
+
...obj,
|
|
399
|
+
});
|
|
400
|
+
export const ListTagsForCertificateRequestFilterSensitiveLog = (obj) => ({
|
|
401
|
+
...obj,
|
|
402
|
+
});
|
|
403
|
+
export const ListTagsForCertificateResponseFilterSensitiveLog = (obj) => ({
|
|
404
|
+
...obj,
|
|
405
|
+
});
|
|
406
|
+
export const PutAccountConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
407
|
+
...obj,
|
|
408
|
+
});
|
|
409
|
+
export const RemoveTagsFromCertificateRequestFilterSensitiveLog = (obj) => ({
|
|
410
|
+
...obj,
|
|
411
|
+
});
|
|
412
|
+
export const RenewCertificateRequestFilterSensitiveLog = (obj) => ({
|
|
413
|
+
...obj,
|
|
414
|
+
});
|
|
415
|
+
export const DomainValidationOptionFilterSensitiveLog = (obj) => ({
|
|
416
|
+
...obj,
|
|
417
|
+
});
|
|
418
|
+
export const RequestCertificateRequestFilterSensitiveLog = (obj) => ({
|
|
419
|
+
...obj,
|
|
420
|
+
});
|
|
421
|
+
export const RequestCertificateResponseFilterSensitiveLog = (obj) => ({
|
|
422
|
+
...obj,
|
|
423
|
+
});
|
|
424
|
+
export const ResendValidationEmailRequestFilterSensitiveLog = (obj) => ({
|
|
425
|
+
...obj,
|
|
426
|
+
});
|
|
427
|
+
export const UpdateCertificateOptionsRequestFilterSensitiveLog = (obj) => ({
|
|
428
|
+
...obj,
|
|
429
|
+
});
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ACM } from "../ACM";
|
|
3
2
|
import { ACMClient } from "../ACMClient";
|
|
4
3
|
import { ListCertificatesCommand, } from "../commands/ListCertificatesCommand";
|
|
5
|
-
|
|
6
|
-
|
|
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 ListCertificatesCommand(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 ListCertificatesCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.listCertificates.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.listCertificates(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListCertificates(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListCertificates(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["MaxItems"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof ACM) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof ACMClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected ACM | ACMClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
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["MaxItems"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof ACM)) 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 ACMClient)) 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 ACM | ACMClient");
|
|
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
|
}
|