@aws-sdk/client-accessanalyzer 3.34.0 → 3.37.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 +47 -0
- package/{dist/cjs → dist-cjs}/AccessAnalyzer.js +0 -12
- package/dist-cjs/AccessAnalyzerClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/ApplyArchiveRuleCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/CancelPolicyGenerationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateAccessPreviewCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/CreateAnalyzerCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateArchiveRuleCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DeleteAnalyzerCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DeleteArchiveRuleCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetAccessPreviewCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetAnalyzedResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetAnalyzerCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetArchiveRuleCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/GetFindingCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetGeneratedPolicyCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListAccessPreviewFindingsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListAccessPreviewsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListAnalyzedResourcesCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListAnalyzersCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListArchiveRulesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListFindingsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListPolicyGenerationsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/StartPolicyGenerationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/StartResourceScanCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateArchiveRuleCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateFindingsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ValidatePolicyCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -316
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListAccessPreviewFindingsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListAccessPreviewsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListAnalyzedResourcesPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListAnalyzersPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListArchiveRulesPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListFindingsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListPolicyGenerationsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ValidatePolicyPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +14 -20
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/AccessAnalyzer.js +0 -1
- package/{dist/es → dist-es}/AccessAnalyzerClient.js +1 -2
- package/{dist/es → dist-es}/commands/ApplyArchiveRuleCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CancelPolicyGenerationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateAccessPreviewCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateAnalyzerCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateArchiveRuleCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteAnalyzerCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteArchiveRuleCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetAccessPreviewCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetAnalyzedResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetAnalyzerCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetArchiveRuleCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetFindingCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetGeneratedPolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListAccessPreviewFindingsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListAccessPreviewsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListAnalyzedResourcesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListAnalyzersCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListArchiveRulesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListFindingsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListPolicyGenerationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartPolicyGenerationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartResourceScanCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateArchiveRuleCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateFindingsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ValidatePolicyCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListAccessPreviewFindingsPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListAccessPreviewsPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListAnalyzedResourcesPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListAnalyzersPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListArchiveRulesPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListFindingsPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListPolicyGenerationsPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ValidatePolicyPaginator.js +0 -1
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/AccessAnalyzer.d.ts +1 -1
- package/{dist/types → dist-types}/AccessAnalyzerClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/ApplyArchiveRuleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CancelPolicyGenerationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateAccessPreviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateAnalyzerCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateArchiveRuleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAnalyzerCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteArchiveRuleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAccessPreviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAnalyzedResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAnalyzerCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetArchiveRuleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetFindingCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetGeneratedPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAccessPreviewFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAccessPreviewsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAnalyzedResourcesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAnalyzersCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListArchiveRulesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListPolicyGenerationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartPolicyGenerationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartResourceScanCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateArchiveRuleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateFindingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ValidatePolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccessPreviewFindingsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccessPreviewsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAnalyzedResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAnalyzersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListArchiveRulesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListFindingsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPolicyGenerationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ValidatePolicyPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/AccessAnalyzer.d.ts +30 -109
- package/{dist/types → dist-types}/ts3.4/AccessAnalyzerClient.d.ts +32 -105
- package/dist-types/ts3.4/commands/ApplyArchiveRuleCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/CancelPolicyGenerationCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/CreateAccessPreviewCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateAnalyzerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateArchiveRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAnalyzerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteArchiveRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAccessPreviewCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/GetAnalyzedResourceCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/GetAnalyzerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetArchiveRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetFindingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetGeneratedPolicyCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListAccessPreviewFindingsCommand.d.ts +4 -23
- package/{dist/types → dist-types}/ts3.4/commands/ListAccessPreviewsCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListAnalyzedResourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAnalyzersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListArchiveRulesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListPolicyGenerationsCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/StartPolicyGenerationCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateArchiveRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateFindingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ValidatePolicyCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1610 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccessPreviewFindingsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccessPreviewsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAnalyzedResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAnalyzersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListArchiveRulesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListFindingsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPolicyGenerationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ValidatePolicyPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/AccessAnalyzer.ts +0 -1031
- package/AccessAnalyzerClient.ts +0 -351
- package/commands/ApplyArchiveRuleCommand.ts +0 -95
- package/commands/CancelPolicyGenerationCommand.ts +0 -94
- package/commands/CreateAccessPreviewCommand.ts +0 -95
- package/commands/CreateAnalyzerCommand.ts +0 -94
- package/commands/CreateArchiveRuleCommand.ts +0 -96
- package/commands/DeleteAnalyzerCommand.ts +0 -96
- package/commands/DeleteArchiveRuleCommand.ts +0 -94
- package/commands/GetAccessPreviewCommand.ts +0 -94
- package/commands/GetAnalyzedResourceCommand.ts +0 -94
- package/commands/GetAnalyzerCommand.ts +0 -94
- package/commands/GetArchiveRuleCommand.ts +0 -95
- package/commands/GetFindingCommand.ts +0 -94
- package/commands/GetGeneratedPolicyCommand.ts +0 -95
- package/commands/ListAccessPreviewFindingsCommand.ts +0 -98
- package/commands/ListAccessPreviewsCommand.ts +0 -94
- package/commands/ListAnalyzedResourcesCommand.ts +0 -95
- package/commands/ListAnalyzersCommand.ts +0 -94
- package/commands/ListArchiveRulesCommand.ts +0 -94
- package/commands/ListFindingsCommand.ts +0 -95
- package/commands/ListPolicyGenerationsCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/StartPolicyGenerationCommand.ts +0 -94
- package/commands/StartResourceScanCommand.ts +0 -94
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateArchiveRuleCommand.ts +0 -94
- package/commands/UpdateFindingsCommand.ts +0 -94
- package/commands/ValidatePolicyCommand.ts +0 -96
- package/dist/cjs/AccessAnalyzer.js.map +0 -1
- package/dist/cjs/AccessAnalyzerClient.js +0 -52
- package/dist/cjs/AccessAnalyzerClient.js.map +0 -1
- package/dist/cjs/commands/ApplyArchiveRuleCommand.js.map +0 -1
- package/dist/cjs/commands/CancelPolicyGenerationCommand.js.map +0 -1
- package/dist/cjs/commands/CreateAccessPreviewCommand.js.map +0 -1
- package/dist/cjs/commands/CreateAnalyzerCommand.js.map +0 -1
- package/dist/cjs/commands/CreateArchiveRuleCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAnalyzerCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteArchiveRuleCommand.js.map +0 -1
- package/dist/cjs/commands/GetAccessPreviewCommand.js.map +0 -1
- package/dist/cjs/commands/GetAnalyzedResourceCommand.js.map +0 -1
- package/dist/cjs/commands/GetAnalyzerCommand.js.map +0 -1
- package/dist/cjs/commands/GetArchiveRuleCommand.js.map +0 -1
- package/dist/cjs/commands/GetFindingCommand.js.map +0 -1
- package/dist/cjs/commands/GetGeneratedPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccessPreviewFindingsCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccessPreviewsCommand.js.map +0 -1
- package/dist/cjs/commands/ListAnalyzedResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/ListAnalyzersCommand.js.map +0 -1
- package/dist/cjs/commands/ListArchiveRulesCommand.js.map +0 -1
- package/dist/cjs/commands/ListFindingsCommand.js.map +0 -1
- package/dist/cjs/commands/ListPolicyGenerationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/StartPolicyGenerationCommand.js.map +0 -1
- package/dist/cjs/commands/StartResourceScanCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateArchiveRuleCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateFindingsCommand.js.map +0 -1
- package/dist/cjs/commands/ValidatePolicyCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListAccessPreviewFindingsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAccessPreviewsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAnalyzedResourcesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAnalyzersPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListArchiveRulesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListFindingsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPolicyGenerationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ValidatePolicyPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/AccessAnalyzer.js.map +0 -1
- package/dist/es/AccessAnalyzerClient.js.map +0 -1
- package/dist/es/commands/ApplyArchiveRuleCommand.js.map +0 -1
- package/dist/es/commands/CancelPolicyGenerationCommand.js.map +0 -1
- package/dist/es/commands/CreateAccessPreviewCommand.js.map +0 -1
- package/dist/es/commands/CreateAnalyzerCommand.js.map +0 -1
- package/dist/es/commands/CreateArchiveRuleCommand.js.map +0 -1
- package/dist/es/commands/DeleteAnalyzerCommand.js.map +0 -1
- package/dist/es/commands/DeleteArchiveRuleCommand.js.map +0 -1
- package/dist/es/commands/GetAccessPreviewCommand.js.map +0 -1
- package/dist/es/commands/GetAnalyzedResourceCommand.js.map +0 -1
- package/dist/es/commands/GetAnalyzerCommand.js.map +0 -1
- package/dist/es/commands/GetArchiveRuleCommand.js.map +0 -1
- package/dist/es/commands/GetFindingCommand.js.map +0 -1
- package/dist/es/commands/GetGeneratedPolicyCommand.js.map +0 -1
- package/dist/es/commands/ListAccessPreviewFindingsCommand.js.map +0 -1
- package/dist/es/commands/ListAccessPreviewsCommand.js.map +0 -1
- package/dist/es/commands/ListAnalyzedResourcesCommand.js.map +0 -1
- package/dist/es/commands/ListAnalyzersCommand.js.map +0 -1
- package/dist/es/commands/ListArchiveRulesCommand.js.map +0 -1
- package/dist/es/commands/ListFindingsCommand.js.map +0 -1
- package/dist/es/commands/ListPolicyGenerationsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/StartPolicyGenerationCommand.js.map +0 -1
- package/dist/es/commands/StartResourceScanCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateArchiveRuleCommand.js.map +0 -1
- package/dist/es/commands/UpdateFindingsCommand.js.map +0 -1
- package/dist/es/commands/ValidatePolicyCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -41
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListAccessPreviewFindingsPaginator.js.map +0 -1
- package/dist/es/pagination/ListAccessPreviewsPaginator.js.map +0 -1
- package/dist/es/pagination/ListAnalyzedResourcesPaginator.js.map +0 -1
- package/dist/es/pagination/ListAnalyzersPaginator.js.map +0 -1
- package/dist/es/pagination/ListArchiveRulesPaginator.js.map +0 -1
- package/dist/es/pagination/ListFindingsPaginator.js.map +0 -1
- package/dist/es/pagination/ListPolicyGenerationsPaginator.js.map +0 -1
- package/dist/es/pagination/ValidatePolicyPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/commands/ApplyArchiveRuleCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/CreateAccessPreviewCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/CreateAnalyzerCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/CreateArchiveRuleCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DeleteAnalyzerCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DeleteArchiveRuleCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetAccessPreviewCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetAnalyzerCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetArchiveRuleCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/GetFindingCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetGeneratedPolicyCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListAnalyzedResourcesCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListAnalyzersCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListArchiveRulesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListFindingsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/StartResourceScanCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateArchiveRuleCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateFindingsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ValidatePolicyCommand.d.ts +0 -37
- package/dist/types/ts3.4/models/models_0.d.ts +0 -2899
- package/endpoints.ts +0 -91
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -3591
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListAccessPreviewFindingsPaginator.ts +0 -58
- package/pagination/ListAccessPreviewsPaginator.ts +0 -58
- package/pagination/ListAnalyzedResourcesPaginator.ts +0 -58
- package/pagination/ListAnalyzersPaginator.ts +0 -58
- package/pagination/ListArchiveRulesPaginator.ts +0 -58
- package/pagination/ListFindingsPaginator.ts +0 -58
- package/pagination/ListPolicyGenerationsPaginator.ts +0 -58
- package/pagination/ValidatePolicyPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -5106
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/pagination/Interfaces.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AccessAnalyzer } from "../AccessAnalyzer";
|
|
2
|
-
import { AccessAnalyzerClient } from "../AccessAnalyzerClient";
|
|
3
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
4
|
-
|
|
5
|
-
export interface AccessAnalyzerPaginationConfiguration extends PaginationConfiguration {
|
|
6
|
-
client: AccessAnalyzer | AccessAnalyzerClient;
|
|
7
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { AccessAnalyzer } from "../AccessAnalyzer";
|
|
2
|
-
import { AccessAnalyzerClient } from "../AccessAnalyzerClient";
|
|
3
|
-
import {
|
|
4
|
-
ListAccessPreviewFindingsCommand,
|
|
5
|
-
ListAccessPreviewFindingsCommandInput,
|
|
6
|
-
ListAccessPreviewFindingsCommandOutput,
|
|
7
|
-
} from "../commands/ListAccessPreviewFindingsCommand";
|
|
8
|
-
import { AccessAnalyzerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: AccessAnalyzerClient,
|
|
16
|
-
input: ListAccessPreviewFindingsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListAccessPreviewFindingsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListAccessPreviewFindingsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: AccessAnalyzer,
|
|
27
|
-
input: ListAccessPreviewFindingsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListAccessPreviewFindingsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listAccessPreviewFindings(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListAccessPreviewFindings(
|
|
34
|
-
config: AccessAnalyzerPaginationConfiguration,
|
|
35
|
-
input: ListAccessPreviewFindingsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListAccessPreviewFindingsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListAccessPreviewFindingsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof AccessAnalyzer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof AccessAnalyzerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { AccessAnalyzer } from "../AccessAnalyzer";
|
|
2
|
-
import { AccessAnalyzerClient } from "../AccessAnalyzerClient";
|
|
3
|
-
import {
|
|
4
|
-
ListAccessPreviewsCommand,
|
|
5
|
-
ListAccessPreviewsCommandInput,
|
|
6
|
-
ListAccessPreviewsCommandOutput,
|
|
7
|
-
} from "../commands/ListAccessPreviewsCommand";
|
|
8
|
-
import { AccessAnalyzerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: AccessAnalyzerClient,
|
|
16
|
-
input: ListAccessPreviewsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListAccessPreviewsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListAccessPreviewsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: AccessAnalyzer,
|
|
27
|
-
input: ListAccessPreviewsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListAccessPreviewsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listAccessPreviews(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListAccessPreviews(
|
|
34
|
-
config: AccessAnalyzerPaginationConfiguration,
|
|
35
|
-
input: ListAccessPreviewsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListAccessPreviewsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListAccessPreviewsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof AccessAnalyzer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof AccessAnalyzerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { AccessAnalyzer } from "../AccessAnalyzer";
|
|
2
|
-
import { AccessAnalyzerClient } from "../AccessAnalyzerClient";
|
|
3
|
-
import {
|
|
4
|
-
ListAnalyzedResourcesCommand,
|
|
5
|
-
ListAnalyzedResourcesCommandInput,
|
|
6
|
-
ListAnalyzedResourcesCommandOutput,
|
|
7
|
-
} from "../commands/ListAnalyzedResourcesCommand";
|
|
8
|
-
import { AccessAnalyzerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: AccessAnalyzerClient,
|
|
16
|
-
input: ListAnalyzedResourcesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListAnalyzedResourcesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListAnalyzedResourcesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: AccessAnalyzer,
|
|
27
|
-
input: ListAnalyzedResourcesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListAnalyzedResourcesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listAnalyzedResources(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListAnalyzedResources(
|
|
34
|
-
config: AccessAnalyzerPaginationConfiguration,
|
|
35
|
-
input: ListAnalyzedResourcesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListAnalyzedResourcesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListAnalyzedResourcesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof AccessAnalyzer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof AccessAnalyzerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { AccessAnalyzer } from "../AccessAnalyzer";
|
|
2
|
-
import { AccessAnalyzerClient } from "../AccessAnalyzerClient";
|
|
3
|
-
import {
|
|
4
|
-
ListAnalyzersCommand,
|
|
5
|
-
ListAnalyzersCommandInput,
|
|
6
|
-
ListAnalyzersCommandOutput,
|
|
7
|
-
} from "../commands/ListAnalyzersCommand";
|
|
8
|
-
import { AccessAnalyzerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: AccessAnalyzerClient,
|
|
16
|
-
input: ListAnalyzersCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListAnalyzersCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListAnalyzersCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: AccessAnalyzer,
|
|
27
|
-
input: ListAnalyzersCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListAnalyzersCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listAnalyzers(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListAnalyzers(
|
|
34
|
-
config: AccessAnalyzerPaginationConfiguration,
|
|
35
|
-
input: ListAnalyzersCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListAnalyzersCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListAnalyzersCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof AccessAnalyzer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof AccessAnalyzerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { AccessAnalyzer } from "../AccessAnalyzer";
|
|
2
|
-
import { AccessAnalyzerClient } from "../AccessAnalyzerClient";
|
|
3
|
-
import {
|
|
4
|
-
ListArchiveRulesCommand,
|
|
5
|
-
ListArchiveRulesCommandInput,
|
|
6
|
-
ListArchiveRulesCommandOutput,
|
|
7
|
-
} from "../commands/ListArchiveRulesCommand";
|
|
8
|
-
import { AccessAnalyzerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: AccessAnalyzerClient,
|
|
16
|
-
input: ListArchiveRulesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListArchiveRulesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListArchiveRulesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: AccessAnalyzer,
|
|
27
|
-
input: ListArchiveRulesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListArchiveRulesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listArchiveRules(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListArchiveRules(
|
|
34
|
-
config: AccessAnalyzerPaginationConfiguration,
|
|
35
|
-
input: ListArchiveRulesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListArchiveRulesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListArchiveRulesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof AccessAnalyzer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof AccessAnalyzerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { AccessAnalyzer } from "../AccessAnalyzer";
|
|
2
|
-
import { AccessAnalyzerClient } from "../AccessAnalyzerClient";
|
|
3
|
-
import {
|
|
4
|
-
ListFindingsCommand,
|
|
5
|
-
ListFindingsCommandInput,
|
|
6
|
-
ListFindingsCommandOutput,
|
|
7
|
-
} from "../commands/ListFindingsCommand";
|
|
8
|
-
import { AccessAnalyzerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: AccessAnalyzerClient,
|
|
16
|
-
input: ListFindingsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListFindingsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListFindingsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: AccessAnalyzer,
|
|
27
|
-
input: ListFindingsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListFindingsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listFindings(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListFindings(
|
|
34
|
-
config: AccessAnalyzerPaginationConfiguration,
|
|
35
|
-
input: ListFindingsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListFindingsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListFindingsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof AccessAnalyzer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof AccessAnalyzerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { AccessAnalyzer } from "../AccessAnalyzer";
|
|
2
|
-
import { AccessAnalyzerClient } from "../AccessAnalyzerClient";
|
|
3
|
-
import {
|
|
4
|
-
ListPolicyGenerationsCommand,
|
|
5
|
-
ListPolicyGenerationsCommandInput,
|
|
6
|
-
ListPolicyGenerationsCommandOutput,
|
|
7
|
-
} from "../commands/ListPolicyGenerationsCommand";
|
|
8
|
-
import { AccessAnalyzerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: AccessAnalyzerClient,
|
|
16
|
-
input: ListPolicyGenerationsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListPolicyGenerationsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListPolicyGenerationsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: AccessAnalyzer,
|
|
27
|
-
input: ListPolicyGenerationsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListPolicyGenerationsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listPolicyGenerations(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListPolicyGenerations(
|
|
34
|
-
config: AccessAnalyzerPaginationConfiguration,
|
|
35
|
-
input: ListPolicyGenerationsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListPolicyGenerationsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListPolicyGenerationsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof AccessAnalyzer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof AccessAnalyzerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { AccessAnalyzer } from "../AccessAnalyzer";
|
|
2
|
-
import { AccessAnalyzerClient } from "../AccessAnalyzerClient";
|
|
3
|
-
import {
|
|
4
|
-
ValidatePolicyCommand,
|
|
5
|
-
ValidatePolicyCommandInput,
|
|
6
|
-
ValidatePolicyCommandOutput,
|
|
7
|
-
} from "../commands/ValidatePolicyCommand";
|
|
8
|
-
import { AccessAnalyzerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: AccessAnalyzerClient,
|
|
16
|
-
input: ValidatePolicyCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ValidatePolicyCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ValidatePolicyCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: AccessAnalyzer,
|
|
27
|
-
input: ValidatePolicyCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ValidatePolicyCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.validatePolicy(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateValidatePolicy(
|
|
34
|
-
config: AccessAnalyzerPaginationConfiguration,
|
|
35
|
-
input: ValidatePolicyCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ValidatePolicyCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ValidatePolicyCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof AccessAnalyzer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof AccessAnalyzerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|