@aws-sdk/client-accessanalyzer 3.1025.0 → 3.1026.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/README.md +0 -49
- package/dist-cjs/index.js +1 -249
- package/dist-cjs/schemas/schemas_0.js +5 -173
- package/dist-es/AccessAnalyzer.js +1 -23
- package/dist-es/commands/index.js +0 -7
- package/dist-es/index.js +0 -1
- package/dist-es/models/enums.js +0 -31
- package/dist-es/pagination/index.js +0 -1
- package/dist-es/schemas/schemas_0.js +0 -168
- package/dist-types/AccessAnalyzer.d.ts +1 -74
- package/dist-types/AccessAnalyzerClient.d.ts +2 -9
- package/dist-types/commands/index.d.ts +0 -7
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/enums.d.ts +0 -71
- package/dist-types/models/models_0.d.ts +1 -316
- package/dist-types/pagination/index.d.ts +0 -1
- package/dist-types/schemas/schemas_0.d.ts +0 -26
- package/dist-types/ts3.4/AccessAnalyzer.d.ts +0 -150
- package/dist-types/ts3.4/AccessAnalyzerClient.d.ts +0 -42
- package/dist-types/ts3.4/commands/index.d.ts +0 -7
- package/dist-types/ts3.4/index.d.ts +0 -1
- package/dist-types/ts3.4/models/enums.d.ts +0 -41
- package/dist-types/ts3.4/models/models_0.d.ts +0 -83
- package/dist-types/ts3.4/pagination/index.d.ts +0 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +0 -26
- package/package.json +33 -34
- package/dist-es/commands/CancelPolicyPreviewJobCommand.js +0 -16
- package/dist-es/commands/CreatePolicyPreviewConfigurationCommand.js +0 -16
- package/dist-es/commands/DeletePolicyPreviewConfigurationCommand.js +0 -16
- package/dist-es/commands/GetPolicyPreviewConfigurationCommand.js +0 -16
- package/dist-es/commands/GetPolicyPreviewJobCommand.js +0 -16
- package/dist-es/commands/ListPolicyPreviewJobsCommand.js +0 -16
- package/dist-es/commands/StartPolicyPreviewJobCommand.js +0 -16
- package/dist-es/pagination/ListPolicyPreviewJobsPaginator.js +0 -4
- package/dist-es/waiters/index.js +0 -2
- package/dist-es/waiters/waitForPolicyPreviewConfigurationActive.js +0 -54
- package/dist-es/waiters/waitForPolicyPreviewJobCompleted.js +0 -49
- package/dist-types/commands/CancelPolicyPreviewJobCommand.d.ts +0 -100
- package/dist-types/commands/CreatePolicyPreviewConfigurationCommand.d.ts +0 -109
- package/dist-types/commands/DeletePolicyPreviewConfigurationCommand.d.ts +0 -100
- package/dist-types/commands/GetPolicyPreviewConfigurationCommand.d.ts +0 -114
- package/dist-types/commands/GetPolicyPreviewJobCommand.d.ts +0 -187
- package/dist-types/commands/ListPolicyPreviewJobsCommand.d.ts +0 -137
- package/dist-types/commands/StartPolicyPreviewJobCommand.d.ts +0 -154
- package/dist-types/pagination/ListPolicyPreviewJobsPaginator.d.ts +0 -7
- package/dist-types/ts3.4/commands/CancelPolicyPreviewJobCommand.d.ts +0 -51
- package/dist-types/ts3.4/commands/CreatePolicyPreviewConfigurationCommand.d.ts +0 -51
- package/dist-types/ts3.4/commands/DeletePolicyPreviewConfigurationCommand.d.ts +0 -51
- package/dist-types/ts3.4/commands/GetPolicyPreviewConfigurationCommand.d.ts +0 -51
- package/dist-types/ts3.4/commands/GetPolicyPreviewJobCommand.d.ts +0 -51
- package/dist-types/ts3.4/commands/ListPolicyPreviewJobsCommand.d.ts +0 -51
- package/dist-types/ts3.4/commands/StartPolicyPreviewJobCommand.d.ts +0 -51
- package/dist-types/ts3.4/pagination/ListPolicyPreviewJobsPaginator.d.ts +0 -11
- package/dist-types/ts3.4/waiters/index.d.ts +0 -2
- package/dist-types/ts3.4/waiters/waitForPolicyPreviewConfigurationActive.d.ts +0 -11
- package/dist-types/ts3.4/waiters/waitForPolicyPreviewJobCompleted.d.ts +0 -11
- package/dist-types/waiters/index.d.ts +0 -2
- package/dist-types/waiters/waitForPolicyPreviewConfigurationActive.d.ts +0 -14
- package/dist-types/waiters/waitForPolicyPreviewJobCompleted.d.ts +0 -14
package/README.md
CHANGED
|
@@ -195,13 +195,6 @@ CancelPolicyGeneration
|
|
|
195
195
|
</details>
|
|
196
196
|
<details>
|
|
197
197
|
<summary>
|
|
198
|
-
CancelPolicyPreviewJob
|
|
199
|
-
</summary>
|
|
200
|
-
|
|
201
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/accessanalyzer/command/CancelPolicyPreviewJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/CancelPolicyPreviewJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/CancelPolicyPreviewJobCommandOutput/)
|
|
202
|
-
</details>
|
|
203
|
-
<details>
|
|
204
|
-
<summary>
|
|
205
198
|
CheckAccessNotGranted
|
|
206
199
|
</summary>
|
|
207
200
|
|
|
@@ -244,13 +237,6 @@ CreateArchiveRule
|
|
|
244
237
|
</details>
|
|
245
238
|
<details>
|
|
246
239
|
<summary>
|
|
247
|
-
CreatePolicyPreviewConfiguration
|
|
248
|
-
</summary>
|
|
249
|
-
|
|
250
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/accessanalyzer/command/CreatePolicyPreviewConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/CreatePolicyPreviewConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/CreatePolicyPreviewConfigurationCommandOutput/)
|
|
251
|
-
</details>
|
|
252
|
-
<details>
|
|
253
|
-
<summary>
|
|
254
240
|
DeleteAnalyzer
|
|
255
241
|
</summary>
|
|
256
242
|
|
|
@@ -265,13 +251,6 @@ DeleteArchiveRule
|
|
|
265
251
|
</details>
|
|
266
252
|
<details>
|
|
267
253
|
<summary>
|
|
268
|
-
DeletePolicyPreviewConfiguration
|
|
269
|
-
</summary>
|
|
270
|
-
|
|
271
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/accessanalyzer/command/DeletePolicyPreviewConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/DeletePolicyPreviewConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/DeletePolicyPreviewConfigurationCommandOutput/)
|
|
272
|
-
</details>
|
|
273
|
-
<details>
|
|
274
|
-
<summary>
|
|
275
254
|
GenerateFindingRecommendation
|
|
276
255
|
</summary>
|
|
277
256
|
|
|
@@ -342,20 +321,6 @@ GetGeneratedPolicy
|
|
|
342
321
|
</details>
|
|
343
322
|
<details>
|
|
344
323
|
<summary>
|
|
345
|
-
GetPolicyPreviewConfiguration
|
|
346
|
-
</summary>
|
|
347
|
-
|
|
348
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/accessanalyzer/command/GetPolicyPreviewConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/GetPolicyPreviewConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/GetPolicyPreviewConfigurationCommandOutput/)
|
|
349
|
-
</details>
|
|
350
|
-
<details>
|
|
351
|
-
<summary>
|
|
352
|
-
GetPolicyPreviewJob
|
|
353
|
-
</summary>
|
|
354
|
-
|
|
355
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/accessanalyzer/command/GetPolicyPreviewJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/GetPolicyPreviewJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/GetPolicyPreviewJobCommandOutput/)
|
|
356
|
-
</details>
|
|
357
|
-
<details>
|
|
358
|
-
<summary>
|
|
359
324
|
ListAccessPreviewFindings
|
|
360
325
|
</summary>
|
|
361
326
|
|
|
@@ -412,13 +377,6 @@ ListPolicyGenerations
|
|
|
412
377
|
</details>
|
|
413
378
|
<details>
|
|
414
379
|
<summary>
|
|
415
|
-
ListPolicyPreviewJobs
|
|
416
|
-
</summary>
|
|
417
|
-
|
|
418
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/accessanalyzer/command/ListPolicyPreviewJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/ListPolicyPreviewJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/ListPolicyPreviewJobsCommandOutput/)
|
|
419
|
-
</details>
|
|
420
|
-
<details>
|
|
421
|
-
<summary>
|
|
422
380
|
ListTagsForResource
|
|
423
381
|
</summary>
|
|
424
382
|
|
|
@@ -433,13 +391,6 @@ StartPolicyGeneration
|
|
|
433
391
|
</details>
|
|
434
392
|
<details>
|
|
435
393
|
<summary>
|
|
436
|
-
StartPolicyPreviewJob
|
|
437
|
-
</summary>
|
|
438
|
-
|
|
439
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/accessanalyzer/command/StartPolicyPreviewJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/StartPolicyPreviewJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/StartPolicyPreviewJobCommandOutput/)
|
|
440
|
-
</details>
|
|
441
|
-
<details>
|
|
442
|
-
<summary>
|
|
443
394
|
StartResourceScan
|
|
444
395
|
</summary>
|
|
445
396
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -16,7 +16,6 @@ var runtimeConfig = require('./runtimeConfig');
|
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
18
|
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
-
var utilWaiter = require('@smithy/util-waiter');
|
|
20
19
|
var errors = require('./models/errors');
|
|
21
20
|
var AccessAnalyzerServiceException = require('./models/AccessAnalyzerServiceException');
|
|
22
21
|
|
|
@@ -138,18 +137,6 @@ class CancelPolicyGenerationCommand extends smithyClient.Command
|
|
|
138
137
|
.build() {
|
|
139
138
|
}
|
|
140
139
|
|
|
141
|
-
class CancelPolicyPreviewJobCommand extends smithyClient.Command
|
|
142
|
-
.classBuilder()
|
|
143
|
-
.ep(commonParams)
|
|
144
|
-
.m(function (Command, cs, config, o) {
|
|
145
|
-
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
146
|
-
})
|
|
147
|
-
.s("AccessAnalyzer", "CancelPolicyPreviewJob", {})
|
|
148
|
-
.n("AccessAnalyzerClient", "CancelPolicyPreviewJobCommand")
|
|
149
|
-
.sc(schemas_0.CancelPolicyPreviewJob$)
|
|
150
|
-
.build() {
|
|
151
|
-
}
|
|
152
|
-
|
|
153
140
|
class CheckAccessNotGrantedCommand extends smithyClient.Command
|
|
154
141
|
.classBuilder()
|
|
155
142
|
.ep(commonParams)
|
|
@@ -222,18 +209,6 @@ class CreateArchiveRuleCommand extends smithyClient.Command
|
|
|
222
209
|
.build() {
|
|
223
210
|
}
|
|
224
211
|
|
|
225
|
-
class CreatePolicyPreviewConfigurationCommand extends smithyClient.Command
|
|
226
|
-
.classBuilder()
|
|
227
|
-
.ep(commonParams)
|
|
228
|
-
.m(function (Command, cs, config, o) {
|
|
229
|
-
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
230
|
-
})
|
|
231
|
-
.s("AccessAnalyzer", "CreatePolicyPreviewConfiguration", {})
|
|
232
|
-
.n("AccessAnalyzerClient", "CreatePolicyPreviewConfigurationCommand")
|
|
233
|
-
.sc(schemas_0.CreatePolicyPreviewConfiguration$)
|
|
234
|
-
.build() {
|
|
235
|
-
}
|
|
236
|
-
|
|
237
212
|
class DeleteAnalyzerCommand extends smithyClient.Command
|
|
238
213
|
.classBuilder()
|
|
239
214
|
.ep(commonParams)
|
|
@@ -258,18 +233,6 @@ class DeleteArchiveRuleCommand extends smithyClient.Command
|
|
|
258
233
|
.build() {
|
|
259
234
|
}
|
|
260
235
|
|
|
261
|
-
class DeletePolicyPreviewConfigurationCommand extends smithyClient.Command
|
|
262
|
-
.classBuilder()
|
|
263
|
-
.ep(commonParams)
|
|
264
|
-
.m(function (Command, cs, config, o) {
|
|
265
|
-
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
266
|
-
})
|
|
267
|
-
.s("AccessAnalyzer", "DeletePolicyPreviewConfiguration", {})
|
|
268
|
-
.n("AccessAnalyzerClient", "DeletePolicyPreviewConfigurationCommand")
|
|
269
|
-
.sc(schemas_0.DeletePolicyPreviewConfiguration$)
|
|
270
|
-
.build() {
|
|
271
|
-
}
|
|
272
|
-
|
|
273
236
|
class GenerateFindingRecommendationCommand extends smithyClient.Command
|
|
274
237
|
.classBuilder()
|
|
275
238
|
.ep(commonParams)
|
|
@@ -390,30 +353,6 @@ class GetGeneratedPolicyCommand extends smithyClient.Command
|
|
|
390
353
|
.build() {
|
|
391
354
|
}
|
|
392
355
|
|
|
393
|
-
class GetPolicyPreviewConfigurationCommand extends smithyClient.Command
|
|
394
|
-
.classBuilder()
|
|
395
|
-
.ep(commonParams)
|
|
396
|
-
.m(function (Command, cs, config, o) {
|
|
397
|
-
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
398
|
-
})
|
|
399
|
-
.s("AccessAnalyzer", "GetPolicyPreviewConfiguration", {})
|
|
400
|
-
.n("AccessAnalyzerClient", "GetPolicyPreviewConfigurationCommand")
|
|
401
|
-
.sc(schemas_0.GetPolicyPreviewConfiguration$)
|
|
402
|
-
.build() {
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
class GetPolicyPreviewJobCommand extends smithyClient.Command
|
|
406
|
-
.classBuilder()
|
|
407
|
-
.ep(commonParams)
|
|
408
|
-
.m(function (Command, cs, config, o) {
|
|
409
|
-
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
410
|
-
})
|
|
411
|
-
.s("AccessAnalyzer", "GetPolicyPreviewJob", {})
|
|
412
|
-
.n("AccessAnalyzerClient", "GetPolicyPreviewJobCommand")
|
|
413
|
-
.sc(schemas_0.GetPolicyPreviewJob$)
|
|
414
|
-
.build() {
|
|
415
|
-
}
|
|
416
|
-
|
|
417
356
|
class ListAccessPreviewFindingsCommand extends smithyClient.Command
|
|
418
357
|
.classBuilder()
|
|
419
358
|
.ep(commonParams)
|
|
@@ -510,18 +449,6 @@ class ListPolicyGenerationsCommand extends smithyClient.Command
|
|
|
510
449
|
.build() {
|
|
511
450
|
}
|
|
512
451
|
|
|
513
|
-
class ListPolicyPreviewJobsCommand extends smithyClient.Command
|
|
514
|
-
.classBuilder()
|
|
515
|
-
.ep(commonParams)
|
|
516
|
-
.m(function (Command, cs, config, o) {
|
|
517
|
-
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
518
|
-
})
|
|
519
|
-
.s("AccessAnalyzer", "ListPolicyPreviewJobs", {})
|
|
520
|
-
.n("AccessAnalyzerClient", "ListPolicyPreviewJobsCommand")
|
|
521
|
-
.sc(schemas_0.ListPolicyPreviewJobs$)
|
|
522
|
-
.build() {
|
|
523
|
-
}
|
|
524
|
-
|
|
525
452
|
class ListTagsForResourceCommand extends smithyClient.Command
|
|
526
453
|
.classBuilder()
|
|
527
454
|
.ep(commonParams)
|
|
@@ -546,18 +473,6 @@ class StartPolicyGenerationCommand extends smithyClient.Command
|
|
|
546
473
|
.build() {
|
|
547
474
|
}
|
|
548
475
|
|
|
549
|
-
class StartPolicyPreviewJobCommand extends smithyClient.Command
|
|
550
|
-
.classBuilder()
|
|
551
|
-
.ep(commonParams)
|
|
552
|
-
.m(function (Command, cs, config, o) {
|
|
553
|
-
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
554
|
-
})
|
|
555
|
-
.s("AccessAnalyzer", "StartPolicyPreviewJob", {})
|
|
556
|
-
.n("AccessAnalyzerClient", "StartPolicyPreviewJobCommand")
|
|
557
|
-
.sc(schemas_0.StartPolicyPreviewJob$)
|
|
558
|
-
.build() {
|
|
559
|
-
}
|
|
560
|
-
|
|
561
476
|
class StartResourceScanCommand extends smithyClient.Command
|
|
562
477
|
.classBuilder()
|
|
563
478
|
.ep(commonParams)
|
|
@@ -662,125 +577,19 @@ const paginateListFindingsV2 = core.createPaginator(AccessAnalyzerClient, ListFi
|
|
|
662
577
|
|
|
663
578
|
const paginateListPolicyGenerations = core.createPaginator(AccessAnalyzerClient, ListPolicyGenerationsCommand, "nextToken", "nextToken", "maxResults");
|
|
664
579
|
|
|
665
|
-
const paginateListPolicyPreviewJobs = core.createPaginator(AccessAnalyzerClient, ListPolicyPreviewJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
666
|
-
|
|
667
580
|
const paginateValidatePolicy = core.createPaginator(AccessAnalyzerClient, ValidatePolicyCommand, "nextToken", "nextToken", "maxResults");
|
|
668
581
|
|
|
669
|
-
const checkState$1 = async (client, input) => {
|
|
670
|
-
let reason;
|
|
671
|
-
try {
|
|
672
|
-
let result = await client.send(new GetPolicyPreviewConfigurationCommand(input));
|
|
673
|
-
reason = result;
|
|
674
|
-
try {
|
|
675
|
-
const returnComparator = () => {
|
|
676
|
-
let flat_1 = [].concat(...result.policyPreviewConfigurations);
|
|
677
|
-
let projection_3 = flat_1.map((element_2) => {
|
|
678
|
-
return element_2.status;
|
|
679
|
-
});
|
|
680
|
-
return projection_3;
|
|
681
|
-
};
|
|
682
|
-
let allStringEq_5 = (returnComparator().length > 0);
|
|
683
|
-
for (let element_4 of returnComparator()) {
|
|
684
|
-
allStringEq_5 = allStringEq_5 && (element_4 == "ACTIVE");
|
|
685
|
-
}
|
|
686
|
-
if (allStringEq_5) {
|
|
687
|
-
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
catch (e) { }
|
|
691
|
-
try {
|
|
692
|
-
const returnComparator = () => {
|
|
693
|
-
let flat_1 = [].concat(...result.policyPreviewConfigurations);
|
|
694
|
-
let projection_3 = flat_1.map((element_2) => {
|
|
695
|
-
return element_2.status;
|
|
696
|
-
});
|
|
697
|
-
return projection_3;
|
|
698
|
-
};
|
|
699
|
-
for (let anyStringEq_4 of returnComparator()) {
|
|
700
|
-
if (anyStringEq_4 == "FAILED") {
|
|
701
|
-
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
catch (e) { }
|
|
706
|
-
}
|
|
707
|
-
catch (exception) {
|
|
708
|
-
reason = exception;
|
|
709
|
-
}
|
|
710
|
-
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
711
|
-
};
|
|
712
|
-
const waitForPolicyPreviewConfigurationActive = async (params, input) => {
|
|
713
|
-
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
714
|
-
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
715
|
-
};
|
|
716
|
-
const waitUntilPolicyPreviewConfigurationActive = async (params, input) => {
|
|
717
|
-
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
718
|
-
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
719
|
-
return utilWaiter.checkExceptions(result);
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
const checkState = async (client, input) => {
|
|
723
|
-
let reason;
|
|
724
|
-
try {
|
|
725
|
-
let result = await client.send(new GetPolicyPreviewJobCommand(input));
|
|
726
|
-
reason = result;
|
|
727
|
-
try {
|
|
728
|
-
const returnComparator = () => {
|
|
729
|
-
return result.jobDetails.jobStatus;
|
|
730
|
-
};
|
|
731
|
-
if (returnComparator() === "COMPLETED") {
|
|
732
|
-
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
catch (e) { }
|
|
736
|
-
try {
|
|
737
|
-
const returnComparator = () => {
|
|
738
|
-
return result.jobDetails.jobStatus;
|
|
739
|
-
};
|
|
740
|
-
if (returnComparator() === "FAILED") {
|
|
741
|
-
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
catch (e) { }
|
|
745
|
-
try {
|
|
746
|
-
const returnComparator = () => {
|
|
747
|
-
return result.jobDetails.jobStatus;
|
|
748
|
-
};
|
|
749
|
-
if (returnComparator() === "CANCELED") {
|
|
750
|
-
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
catch (e) { }
|
|
754
|
-
}
|
|
755
|
-
catch (exception) {
|
|
756
|
-
reason = exception;
|
|
757
|
-
}
|
|
758
|
-
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
759
|
-
};
|
|
760
|
-
const waitForPolicyPreviewJobCompleted = async (params, input) => {
|
|
761
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
762
|
-
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
763
|
-
};
|
|
764
|
-
const waitUntilPolicyPreviewJobCompleted = async (params, input) => {
|
|
765
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
766
|
-
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
767
|
-
return utilWaiter.checkExceptions(result);
|
|
768
|
-
};
|
|
769
|
-
|
|
770
582
|
const commands = {
|
|
771
583
|
ApplyArchiveRuleCommand,
|
|
772
584
|
CancelPolicyGenerationCommand,
|
|
773
|
-
CancelPolicyPreviewJobCommand,
|
|
774
585
|
CheckAccessNotGrantedCommand,
|
|
775
586
|
CheckNoNewAccessCommand,
|
|
776
587
|
CheckNoPublicAccessCommand,
|
|
777
588
|
CreateAccessPreviewCommand,
|
|
778
589
|
CreateAnalyzerCommand,
|
|
779
590
|
CreateArchiveRuleCommand,
|
|
780
|
-
CreatePolicyPreviewConfigurationCommand,
|
|
781
591
|
DeleteAnalyzerCommand,
|
|
782
592
|
DeleteArchiveRuleCommand,
|
|
783
|
-
DeletePolicyPreviewConfigurationCommand,
|
|
784
593
|
GenerateFindingRecommendationCommand,
|
|
785
594
|
GetAccessPreviewCommand,
|
|
786
595
|
GetAnalyzedResourceCommand,
|
|
@@ -791,8 +600,6 @@ const commands = {
|
|
|
791
600
|
GetFindingsStatisticsCommand,
|
|
792
601
|
GetFindingV2Command,
|
|
793
602
|
GetGeneratedPolicyCommand,
|
|
794
|
-
GetPolicyPreviewConfigurationCommand,
|
|
795
|
-
GetPolicyPreviewJobCommand,
|
|
796
603
|
ListAccessPreviewFindingsCommand,
|
|
797
604
|
ListAccessPreviewsCommand,
|
|
798
605
|
ListAnalyzedResourcesCommand,
|
|
@@ -801,10 +608,8 @@ const commands = {
|
|
|
801
608
|
ListFindingsCommand,
|
|
802
609
|
ListFindingsV2Command,
|
|
803
610
|
ListPolicyGenerationsCommand,
|
|
804
|
-
ListPolicyPreviewJobsCommand,
|
|
805
611
|
ListTagsForResourceCommand,
|
|
806
612
|
StartPolicyGenerationCommand,
|
|
807
|
-
StartPolicyPreviewJobCommand,
|
|
808
613
|
StartResourceScanCommand,
|
|
809
614
|
TagResourceCommand,
|
|
810
615
|
UntagResourceCommand,
|
|
@@ -824,16 +629,11 @@ const paginators = {
|
|
|
824
629
|
paginateListFindings,
|
|
825
630
|
paginateListFindingsV2,
|
|
826
631
|
paginateListPolicyGenerations,
|
|
827
|
-
paginateListPolicyPreviewJobs,
|
|
828
632
|
paginateValidatePolicy,
|
|
829
633
|
};
|
|
830
|
-
const waiters = {
|
|
831
|
-
waitUntilPolicyPreviewConfigurationActive,
|
|
832
|
-
waitUntilPolicyPreviewJobCompleted,
|
|
833
|
-
};
|
|
834
634
|
class AccessAnalyzer extends AccessAnalyzerClient {
|
|
835
635
|
}
|
|
836
|
-
smithyClient.createAggregatedClient(commands, AccessAnalyzer, { paginators
|
|
636
|
+
smithyClient.createAggregatedClient(commands, AccessAnalyzer, { paginators });
|
|
837
637
|
|
|
838
638
|
const ValidationExceptionReason = {
|
|
839
639
|
CANNOT_PARSE: "cannotParse",
|
|
@@ -948,14 +748,6 @@ const AclPermission = {
|
|
|
948
748
|
WRITE: "WRITE",
|
|
949
749
|
WRITE_ACP: "WRITE_ACP",
|
|
950
750
|
};
|
|
951
|
-
const PolicyPreviewScope = {
|
|
952
|
-
GLOBAL: "GLOBAL",
|
|
953
|
-
};
|
|
954
|
-
const PolicyPreviewStatus = {
|
|
955
|
-
ACTIVE: "ACTIVE",
|
|
956
|
-
FAILED: "FAILED",
|
|
957
|
-
PENDING_CREATION: "PENDING_CREATION",
|
|
958
|
-
};
|
|
959
751
|
const AccessPreviewStatus = {
|
|
960
752
|
COMPLETED: "COMPLETED",
|
|
961
753
|
CREATING: "CREATING",
|
|
@@ -1018,16 +810,7 @@ const FindingType = {
|
|
|
1018
810
|
};
|
|
1019
811
|
const JobErrorCode = {
|
|
1020
812
|
AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR",
|
|
1021
|
-
CANCELED_JOB_ERROR: "CANCELED_JOB_ERROR",
|
|
1022
|
-
INSUFFICIENT_PERMISSIONS_ERROR: "INSUFFICIENT_PERMISSIONS_ERROR",
|
|
1023
|
-
INVALID_ORGANIZATION_CONFIGURATION: "INVALID_ORGANIZATION_CONFIGURATION",
|
|
1024
|
-
INVALID_POLICY_PREVIEW_CONFIGURATION: "INVALID_POLICY_PREVIEW_CONFIGURATION",
|
|
1025
|
-
INVALID_SERVICE_LINKED_ROLE: "INVALID_SERVICE_LINKED_ROLE",
|
|
1026
|
-
INVALID_TARGET_ERROR: "INVALID_TARGET_ERROR",
|
|
1027
|
-
ORGANIZATION_ACCESS_DENIED_ERROR: "ORGANIZATION_ACCESS_DENIED_ERROR",
|
|
1028
813
|
RESOURCE_NOT_FOUND_ERROR: "RESOURCE_NOT_FOUND_ERROR",
|
|
1029
|
-
S3_BUCKET_NOT_FOUND_ERROR: "S3_BUCKET_NOT_FOUND_ERROR",
|
|
1030
|
-
S3_BUCKET_PERMISSION_ERROR: "S3_BUCKET_PERMISSION_ERROR",
|
|
1031
814
|
SERVICE_ERROR: "SERVICE_ERROR",
|
|
1032
815
|
SERVICE_QUOTA_EXCEEDED_ERROR: "SERVICE_QUOTA_EXCEEDED_ERROR",
|
|
1033
816
|
};
|
|
@@ -1037,16 +820,6 @@ const JobStatus = {
|
|
|
1037
820
|
IN_PROGRESS: "IN_PROGRESS",
|
|
1038
821
|
SUCCEEDED: "SUCCEEDED",
|
|
1039
822
|
};
|
|
1040
|
-
const ImpactAnalysisJobStatus = {
|
|
1041
|
-
CANCELED: "CANCELED",
|
|
1042
|
-
COMPLETED: "COMPLETED",
|
|
1043
|
-
FAILED: "FAILED",
|
|
1044
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
1045
|
-
SUBMITTED: "SUBMITTED",
|
|
1046
|
-
};
|
|
1047
|
-
const ImpactAnalysisJobType = {
|
|
1048
|
-
SCP: "SCP",
|
|
1049
|
-
};
|
|
1050
823
|
const FindingChangeType = {
|
|
1051
824
|
CHANGED: "CHANGED",
|
|
1052
825
|
NEW: "NEW",
|
|
@@ -1056,10 +829,6 @@ const OrderBy = {
|
|
|
1056
829
|
ASC: "ASC",
|
|
1057
830
|
DESC: "DESC",
|
|
1058
831
|
};
|
|
1059
|
-
const PolicyPreviewJobFilterName = {
|
|
1060
|
-
JOB_STATUS: "jobStatus",
|
|
1061
|
-
TARGET_ID: "targetId",
|
|
1062
|
-
};
|
|
1063
832
|
const FindingStatusUpdate = {
|
|
1064
833
|
ACTIVE: "ACTIVE",
|
|
1065
834
|
ARCHIVED: "ARCHIVED",
|
|
@@ -1110,7 +879,6 @@ exports.AclPermission = AclPermission;
|
|
|
1110
879
|
exports.AnalyzerStatus = AnalyzerStatus;
|
|
1111
880
|
exports.ApplyArchiveRuleCommand = ApplyArchiveRuleCommand;
|
|
1112
881
|
exports.CancelPolicyGenerationCommand = CancelPolicyGenerationCommand;
|
|
1113
|
-
exports.CancelPolicyPreviewJobCommand = CancelPolicyPreviewJobCommand;
|
|
1114
882
|
exports.CheckAccessNotGrantedCommand = CheckAccessNotGrantedCommand;
|
|
1115
883
|
exports.CheckAccessNotGrantedResult = CheckAccessNotGrantedResult;
|
|
1116
884
|
exports.CheckNoNewAccessCommand = CheckNoNewAccessCommand;
|
|
@@ -1120,10 +888,8 @@ exports.CheckNoPublicAccessResult = CheckNoPublicAccessResult;
|
|
|
1120
888
|
exports.CreateAccessPreviewCommand = CreateAccessPreviewCommand;
|
|
1121
889
|
exports.CreateAnalyzerCommand = CreateAnalyzerCommand;
|
|
1122
890
|
exports.CreateArchiveRuleCommand = CreateArchiveRuleCommand;
|
|
1123
|
-
exports.CreatePolicyPreviewConfigurationCommand = CreatePolicyPreviewConfigurationCommand;
|
|
1124
891
|
exports.DeleteAnalyzerCommand = DeleteAnalyzerCommand;
|
|
1125
892
|
exports.DeleteArchiveRuleCommand = DeleteArchiveRuleCommand;
|
|
1126
|
-
exports.DeletePolicyPreviewConfigurationCommand = DeletePolicyPreviewConfigurationCommand;
|
|
1127
893
|
exports.FindingChangeType = FindingChangeType;
|
|
1128
894
|
exports.FindingSourceType = FindingSourceType;
|
|
1129
895
|
exports.FindingStatus = FindingStatus;
|
|
@@ -1139,10 +905,6 @@ exports.GetFindingRecommendationCommand = GetFindingRecommendationCommand;
|
|
|
1139
905
|
exports.GetFindingV2Command = GetFindingV2Command;
|
|
1140
906
|
exports.GetFindingsStatisticsCommand = GetFindingsStatisticsCommand;
|
|
1141
907
|
exports.GetGeneratedPolicyCommand = GetGeneratedPolicyCommand;
|
|
1142
|
-
exports.GetPolicyPreviewConfigurationCommand = GetPolicyPreviewConfigurationCommand;
|
|
1143
|
-
exports.GetPolicyPreviewJobCommand = GetPolicyPreviewJobCommand;
|
|
1144
|
-
exports.ImpactAnalysisJobStatus = ImpactAnalysisJobStatus;
|
|
1145
|
-
exports.ImpactAnalysisJobType = ImpactAnalysisJobType;
|
|
1146
908
|
exports.InternalAccessType = InternalAccessType;
|
|
1147
909
|
exports.JobErrorCode = JobErrorCode;
|
|
1148
910
|
exports.JobStatus = JobStatus;
|
|
@@ -1155,13 +917,9 @@ exports.ListArchiveRulesCommand = ListArchiveRulesCommand;
|
|
|
1155
917
|
exports.ListFindingsCommand = ListFindingsCommand;
|
|
1156
918
|
exports.ListFindingsV2Command = ListFindingsV2Command;
|
|
1157
919
|
exports.ListPolicyGenerationsCommand = ListPolicyGenerationsCommand;
|
|
1158
|
-
exports.ListPolicyPreviewJobsCommand = ListPolicyPreviewJobsCommand;
|
|
1159
920
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1160
921
|
exports.Locale = Locale;
|
|
1161
922
|
exports.OrderBy = OrderBy;
|
|
1162
|
-
exports.PolicyPreviewJobFilterName = PolicyPreviewJobFilterName;
|
|
1163
|
-
exports.PolicyPreviewScope = PolicyPreviewScope;
|
|
1164
|
-
exports.PolicyPreviewStatus = PolicyPreviewStatus;
|
|
1165
923
|
exports.PolicyType = PolicyType;
|
|
1166
924
|
exports.PrincipalType = PrincipalType;
|
|
1167
925
|
exports.ReasonCode = ReasonCode;
|
|
@@ -1171,7 +929,6 @@ exports.ResourceControlPolicyRestriction = ResourceControlPolicyRestriction;
|
|
|
1171
929
|
exports.ResourceType = ResourceType;
|
|
1172
930
|
exports.ServiceControlPolicyRestriction = ServiceControlPolicyRestriction;
|
|
1173
931
|
exports.StartPolicyGenerationCommand = StartPolicyGenerationCommand;
|
|
1174
|
-
exports.StartPolicyPreviewJobCommand = StartPolicyPreviewJobCommand;
|
|
1175
932
|
exports.StartResourceScanCommand = StartResourceScanCommand;
|
|
1176
933
|
exports.Status = Status;
|
|
1177
934
|
exports.TagResourceCommand = TagResourceCommand;
|
|
@@ -1194,12 +951,7 @@ exports.paginateListArchiveRules = paginateListArchiveRules;
|
|
|
1194
951
|
exports.paginateListFindings = paginateListFindings;
|
|
1195
952
|
exports.paginateListFindingsV2 = paginateListFindingsV2;
|
|
1196
953
|
exports.paginateListPolicyGenerations = paginateListPolicyGenerations;
|
|
1197
|
-
exports.paginateListPolicyPreviewJobs = paginateListPolicyPreviewJobs;
|
|
1198
954
|
exports.paginateValidatePolicy = paginateValidatePolicy;
|
|
1199
|
-
exports.waitForPolicyPreviewConfigurationActive = waitForPolicyPreviewConfigurationActive;
|
|
1200
|
-
exports.waitForPolicyPreviewJobCompleted = waitForPolicyPreviewJobCompleted;
|
|
1201
|
-
exports.waitUntilPolicyPreviewConfigurationActive = waitUntilPolicyPreviewConfigurationActive;
|
|
1202
|
-
exports.waitUntilPolicyPreviewJobCompleted = waitUntilPolicyPreviewJobCompleted;
|
|
1203
955
|
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
1204
956
|
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
1205
957
|
Object.defineProperty(exports, '__proto__', {
|