@aws-sdk/client-inspector 3.35.0 → 3.36.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 +13 -0
- package/dist-cjs/Inspector.js +0 -1
- package/dist-cjs/InspectorClient.js +0 -1
- package/dist-cjs/commands/AddAttributesToFindingsCommand.js +0 -1
- package/dist-cjs/commands/CreateAssessmentTargetCommand.js +0 -1
- package/dist-cjs/commands/CreateAssessmentTemplateCommand.js +0 -1
- package/dist-cjs/commands/CreateExclusionsPreviewCommand.js +0 -1
- package/dist-cjs/commands/CreateResourceGroupCommand.js +0 -1
- package/dist-cjs/commands/DeleteAssessmentRunCommand.js +0 -1
- package/dist-cjs/commands/DeleteAssessmentTargetCommand.js +0 -1
- package/dist-cjs/commands/DeleteAssessmentTemplateCommand.js +0 -1
- package/dist-cjs/commands/DescribeAssessmentRunsCommand.js +0 -1
- package/dist-cjs/commands/DescribeAssessmentTargetsCommand.js +0 -1
- package/dist-cjs/commands/DescribeAssessmentTemplatesCommand.js +0 -1
- package/dist-cjs/commands/DescribeCrossAccountAccessRoleCommand.js +0 -1
- package/dist-cjs/commands/DescribeExclusionsCommand.js +0 -1
- package/dist-cjs/commands/DescribeFindingsCommand.js +0 -1
- package/dist-cjs/commands/DescribeResourceGroupsCommand.js +0 -1
- package/dist-cjs/commands/DescribeRulesPackagesCommand.js +0 -1
- package/dist-cjs/commands/GetAssessmentReportCommand.js +0 -1
- package/dist-cjs/commands/GetExclusionsPreviewCommand.js +0 -1
- package/dist-cjs/commands/GetTelemetryMetadataCommand.js +0 -1
- package/dist-cjs/commands/ListAssessmentRunAgentsCommand.js +0 -1
- package/dist-cjs/commands/ListAssessmentRunsCommand.js +0 -1
- package/dist-cjs/commands/ListAssessmentTargetsCommand.js +0 -1
- package/dist-cjs/commands/ListAssessmentTemplatesCommand.js +0 -1
- package/dist-cjs/commands/ListEventSubscriptionsCommand.js +0 -1
- package/dist-cjs/commands/ListExclusionsCommand.js +0 -1
- package/dist-cjs/commands/ListFindingsCommand.js +0 -1
- package/dist-cjs/commands/ListRulesPackagesCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/PreviewAgentsCommand.js +0 -1
- package/dist-cjs/commands/RegisterCrossAccountAccessRoleCommand.js +0 -1
- package/dist-cjs/commands/RemoveAttributesFromFindingsCommand.js +0 -1
- package/dist-cjs/commands/SetTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/StartAssessmentRunCommand.js +0 -1
- package/dist-cjs/commands/StopAssessmentRunCommand.js +0 -1
- package/dist-cjs/commands/SubscribeToEventCommand.js +0 -1
- package/dist-cjs/commands/UnsubscribeFromEventCommand.js +0 -1
- package/dist-cjs/commands/UpdateAssessmentTargetCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/GetExclusionsPreviewPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAssessmentRunAgentsPaginator.js +0 -1
- package/dist-cjs/pagination/ListAssessmentRunsPaginator.js +0 -1
- package/dist-cjs/pagination/ListAssessmentTargetsPaginator.js +0 -1
- package/dist-cjs/pagination/ListAssessmentTemplatesPaginator.js +0 -1
- package/dist-cjs/pagination/ListEventSubscriptionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListExclusionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListFindingsPaginator.js +0 -1
- package/dist-cjs/pagination/ListRulesPackagesPaginator.js +0 -1
- package/dist-cjs/pagination/PreviewAgentsPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/Inspector.js +0 -1
- package/dist-es/InspectorClient.js +0 -1
- package/dist-es/commands/AddAttributesToFindingsCommand.js +0 -1
- package/dist-es/commands/CreateAssessmentTargetCommand.js +0 -1
- package/dist-es/commands/CreateAssessmentTemplateCommand.js +0 -1
- package/dist-es/commands/CreateExclusionsPreviewCommand.js +0 -1
- package/dist-es/commands/CreateResourceGroupCommand.js +0 -1
- package/dist-es/commands/DeleteAssessmentRunCommand.js +0 -1
- package/dist-es/commands/DeleteAssessmentTargetCommand.js +0 -1
- package/dist-es/commands/DeleteAssessmentTemplateCommand.js +0 -1
- package/dist-es/commands/DescribeAssessmentRunsCommand.js +0 -1
- package/dist-es/commands/DescribeAssessmentTargetsCommand.js +0 -1
- package/dist-es/commands/DescribeAssessmentTemplatesCommand.js +0 -1
- package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js +0 -1
- package/dist-es/commands/DescribeExclusionsCommand.js +0 -1
- package/dist-es/commands/DescribeFindingsCommand.js +0 -1
- package/dist-es/commands/DescribeResourceGroupsCommand.js +0 -1
- package/dist-es/commands/DescribeRulesPackagesCommand.js +0 -1
- package/dist-es/commands/GetAssessmentReportCommand.js +0 -1
- package/dist-es/commands/GetExclusionsPreviewCommand.js +0 -1
- package/dist-es/commands/GetTelemetryMetadataCommand.js +0 -1
- package/dist-es/commands/ListAssessmentRunAgentsCommand.js +0 -1
- package/dist-es/commands/ListAssessmentRunsCommand.js +0 -1
- package/dist-es/commands/ListAssessmentTargetsCommand.js +0 -1
- package/dist-es/commands/ListAssessmentTemplatesCommand.js +0 -1
- package/dist-es/commands/ListEventSubscriptionsCommand.js +0 -1
- package/dist-es/commands/ListExclusionsCommand.js +0 -1
- package/dist-es/commands/ListFindingsCommand.js +0 -1
- package/dist-es/commands/ListRulesPackagesCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PreviewAgentsCommand.js +0 -1
- package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js +0 -1
- package/dist-es/commands/RemoveAttributesFromFindingsCommand.js +0 -1
- package/dist-es/commands/SetTagsForResourceCommand.js +0 -1
- package/dist-es/commands/StartAssessmentRunCommand.js +0 -1
- package/dist-es/commands/StopAssessmentRunCommand.js +0 -1
- package/dist-es/commands/SubscribeToEventCommand.js +0 -1
- package/dist-es/commands/UnsubscribeFromEventCommand.js +0 -1
- package/dist-es/commands/UpdateAssessmentTargetCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/GetExclusionsPreviewPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListAssessmentRunAgentsPaginator.js +0 -1
- package/dist-es/pagination/ListAssessmentRunsPaginator.js +0 -1
- package/dist-es/pagination/ListAssessmentTargetsPaginator.js +0 -1
- package/dist-es/pagination/ListAssessmentTemplatesPaginator.js +0 -1
- package/dist-es/pagination/ListEventSubscriptionsPaginator.js +0 -1
- package/dist-es/pagination/ListExclusionsPaginator.js +0 -1
- package/dist-es/pagination/ListFindingsPaginator.js +0 -1
- package/dist-es/pagination/ListRulesPackagesPaginator.js +0 -1
- package/dist-es/pagination/PreviewAgentsPaginator.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/package.json +33 -30
- package/dist-cjs/Inspector.js.map +0 -1
- package/dist-cjs/InspectorClient.js.map +0 -1
- package/dist-cjs/commands/AddAttributesToFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateAssessmentTargetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateAssessmentTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/CreateExclusionsPreviewCommand.js.map +0 -1
- package/dist-cjs/commands/CreateResourceGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAssessmentRunCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAssessmentTargetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAssessmentTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAssessmentRunsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAssessmentTargetsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAssessmentTemplatesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeExclusionsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeResourceGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRulesPackagesCommand.js.map +0 -1
- package/dist-cjs/commands/GetAssessmentReportCommand.js.map +0 -1
- package/dist-cjs/commands/GetExclusionsPreviewCommand.js.map +0 -1
- package/dist-cjs/commands/GetTelemetryMetadataCommand.js.map +0 -1
- package/dist-cjs/commands/ListAssessmentRunAgentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListAssessmentRunsCommand.js.map +0 -1
- package/dist-cjs/commands/ListAssessmentTargetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListAssessmentTemplatesCommand.js.map +0 -1
- package/dist-cjs/commands/ListEventSubscriptionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListExclusionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRulesPackagesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PreviewAgentsCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist-cjs/commands/RemoveAttributesFromFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/SetTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/StartAssessmentRunCommand.js.map +0 -1
- package/dist-cjs/commands/StopAssessmentRunCommand.js.map +0 -1
- package/dist-cjs/commands/SubscribeToEventCommand.js.map +0 -1
- package/dist-cjs/commands/UnsubscribeFromEventCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateAssessmentTargetCommand.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/pagination/GetExclusionsPreviewPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListAssessmentRunAgentsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListAssessmentRunsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListAssessmentTargetsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListAssessmentTemplatesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListEventSubscriptionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListExclusionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListFindingsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListRulesPackagesPaginator.js.map +0 -1
- package/dist-cjs/pagination/PreviewAgentsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.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/Inspector.js.map +0 -1
- package/dist-es/InspectorClient.js.map +0 -1
- package/dist-es/commands/AddAttributesToFindingsCommand.js.map +0 -1
- package/dist-es/commands/CreateAssessmentTargetCommand.js.map +0 -1
- package/dist-es/commands/CreateAssessmentTemplateCommand.js.map +0 -1
- package/dist-es/commands/CreateExclusionsPreviewCommand.js.map +0 -1
- package/dist-es/commands/CreateResourceGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteAssessmentRunCommand.js.map +0 -1
- package/dist-es/commands/DeleteAssessmentTargetCommand.js.map +0 -1
- package/dist-es/commands/DeleteAssessmentTemplateCommand.js.map +0 -1
- package/dist-es/commands/DescribeAssessmentRunsCommand.js.map +0 -1
- package/dist-es/commands/DescribeAssessmentTargetsCommand.js.map +0 -1
- package/dist-es/commands/DescribeAssessmentTemplatesCommand.js.map +0 -1
- package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist-es/commands/DescribeExclusionsCommand.js.map +0 -1
- package/dist-es/commands/DescribeFindingsCommand.js.map +0 -1
- package/dist-es/commands/DescribeResourceGroupsCommand.js.map +0 -1
- package/dist-es/commands/DescribeRulesPackagesCommand.js.map +0 -1
- package/dist-es/commands/GetAssessmentReportCommand.js.map +0 -1
- package/dist-es/commands/GetExclusionsPreviewCommand.js.map +0 -1
- package/dist-es/commands/GetTelemetryMetadataCommand.js.map +0 -1
- package/dist-es/commands/ListAssessmentRunAgentsCommand.js.map +0 -1
- package/dist-es/commands/ListAssessmentRunsCommand.js.map +0 -1
- package/dist-es/commands/ListAssessmentTargetsCommand.js.map +0 -1
- package/dist-es/commands/ListAssessmentTemplatesCommand.js.map +0 -1
- package/dist-es/commands/ListEventSubscriptionsCommand.js.map +0 -1
- package/dist-es/commands/ListExclusionsCommand.js.map +0 -1
- package/dist-es/commands/ListFindingsCommand.js.map +0 -1
- package/dist-es/commands/ListRulesPackagesCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PreviewAgentsCommand.js.map +0 -1
- package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist-es/commands/RemoveAttributesFromFindingsCommand.js.map +0 -1
- package/dist-es/commands/SetTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/StartAssessmentRunCommand.js.map +0 -1
- package/dist-es/commands/StopAssessmentRunCommand.js.map +0 -1
- package/dist-es/commands/SubscribeToEventCommand.js.map +0 -1
- package/dist-es/commands/UnsubscribeFromEventCommand.js.map +0 -1
- package/dist-es/commands/UpdateAssessmentTargetCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/GetExclusionsPreviewPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListAssessmentRunAgentsPaginator.js.map +0 -1
- package/dist-es/pagination/ListAssessmentRunsPaginator.js.map +0 -1
- package/dist-es/pagination/ListAssessmentTargetsPaginator.js.map +0 -1
- package/dist-es/pagination/ListAssessmentTemplatesPaginator.js.map +0 -1
- package/dist-es/pagination/ListEventSubscriptionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListExclusionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListFindingsPaginator.js.map +0 -1
- package/dist-es/pagination/ListRulesPackagesPaginator.js.map +0 -1
- package/dist-es/pagination/PreviewAgentsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.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/jest.config.js +0 -4
- package/src/Inspector.ts +0 -1425
- package/src/InspectorClient.ts +0 -428
- package/src/commands/AddAttributesToFindingsCommand.ts +0 -96
- package/src/commands/CreateAssessmentTargetCommand.ts +0 -102
- package/src/commands/CreateAssessmentTemplateCommand.ts +0 -98
- package/src/commands/CreateExclusionsPreviewCommand.ts +0 -97
- package/src/commands/CreateResourceGroupCommand.ts +0 -98
- package/src/commands/DeleteAssessmentRunCommand.ts +0 -96
- package/src/commands/DeleteAssessmentTargetCommand.ts +0 -96
- package/src/commands/DeleteAssessmentTemplateCommand.ts +0 -96
- package/src/commands/DescribeAssessmentRunsCommand.ts +0 -96
- package/src/commands/DescribeAssessmentTargetsCommand.ts +0 -99
- package/src/commands/DescribeAssessmentTemplatesCommand.ts +0 -101
- package/src/commands/DescribeCrossAccountAccessRoleCommand.ts +0 -104
- package/src/commands/DescribeExclusionsCommand.ts +0 -95
- package/src/commands/DescribeFindingsCommand.ts +0 -95
- package/src/commands/DescribeResourceGroupsCommand.ts +0 -96
- package/src/commands/DescribeRulesPackagesCommand.ts +0 -96
- package/src/commands/GetAssessmentReportCommand.ts +0 -96
- package/src/commands/GetExclusionsPreviewCommand.ts +0 -97
- package/src/commands/GetTelemetryMetadataCommand.ts +0 -96
- package/src/commands/ListAssessmentRunAgentsCommand.ts +0 -96
- package/src/commands/ListAssessmentRunsCommand.ts +0 -96
- package/src/commands/ListAssessmentTargetsCommand.ts +0 -97
- package/src/commands/ListAssessmentTemplatesCommand.ts +0 -96
- package/src/commands/ListEventSubscriptionsCommand.ts +0 -96
- package/src/commands/ListExclusionsCommand.ts +0 -95
- package/src/commands/ListFindingsCommand.ts +0 -96
- package/src/commands/ListRulesPackagesCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PreviewAgentsCommand.ts +0 -96
- package/src/commands/RegisterCrossAccountAccessRoleCommand.ts +0 -102
- package/src/commands/RemoveAttributesFromFindingsCommand.ts +0 -101
- package/src/commands/SetTagsForResourceCommand.ts +0 -96
- package/src/commands/StartAssessmentRunCommand.ts +0 -97
- package/src/commands/StopAssessmentRunCommand.ts +0 -96
- package/src/commands/SubscribeToEventCommand.ts +0 -96
- package/src/commands/UnsubscribeFromEventCommand.ts +0 -96
- package/src/commands/UpdateAssessmentTargetCommand.ts +0 -98
- package/src/endpoints.ts +0 -86
- package/src/index.ts +0 -51
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -3381
- package/src/pagination/GetExclusionsPreviewPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListAssessmentRunAgentsPaginator.ts +0 -59
- package/src/pagination/ListAssessmentRunsPaginator.ts +0 -59
- package/src/pagination/ListAssessmentTargetsPaginator.ts +0 -59
- package/src/pagination/ListAssessmentTemplatesPaginator.ts +0 -59
- package/src/pagination/ListEventSubscriptionsPaginator.ts +0 -59
- package/src/pagination/ListExclusionsPaginator.ts +0 -59
- package/src/pagination/ListFindingsPaginator.ts +0 -59
- package/src/pagination/ListRulesPackagesPaginator.ts +0 -59
- package/src/pagination/PreviewAgentsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -5926
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/Inspector.ts
DELETED
|
@@ -1,1425 +0,0 @@
|
|
|
1
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
AddAttributesToFindingsCommand,
|
|
5
|
-
AddAttributesToFindingsCommandInput,
|
|
6
|
-
AddAttributesToFindingsCommandOutput,
|
|
7
|
-
} from "./commands/AddAttributesToFindingsCommand";
|
|
8
|
-
import {
|
|
9
|
-
CreateAssessmentTargetCommand,
|
|
10
|
-
CreateAssessmentTargetCommandInput,
|
|
11
|
-
CreateAssessmentTargetCommandOutput,
|
|
12
|
-
} from "./commands/CreateAssessmentTargetCommand";
|
|
13
|
-
import {
|
|
14
|
-
CreateAssessmentTemplateCommand,
|
|
15
|
-
CreateAssessmentTemplateCommandInput,
|
|
16
|
-
CreateAssessmentTemplateCommandOutput,
|
|
17
|
-
} from "./commands/CreateAssessmentTemplateCommand";
|
|
18
|
-
import {
|
|
19
|
-
CreateExclusionsPreviewCommand,
|
|
20
|
-
CreateExclusionsPreviewCommandInput,
|
|
21
|
-
CreateExclusionsPreviewCommandOutput,
|
|
22
|
-
} from "./commands/CreateExclusionsPreviewCommand";
|
|
23
|
-
import {
|
|
24
|
-
CreateResourceGroupCommand,
|
|
25
|
-
CreateResourceGroupCommandInput,
|
|
26
|
-
CreateResourceGroupCommandOutput,
|
|
27
|
-
} from "./commands/CreateResourceGroupCommand";
|
|
28
|
-
import {
|
|
29
|
-
DeleteAssessmentRunCommand,
|
|
30
|
-
DeleteAssessmentRunCommandInput,
|
|
31
|
-
DeleteAssessmentRunCommandOutput,
|
|
32
|
-
} from "./commands/DeleteAssessmentRunCommand";
|
|
33
|
-
import {
|
|
34
|
-
DeleteAssessmentTargetCommand,
|
|
35
|
-
DeleteAssessmentTargetCommandInput,
|
|
36
|
-
DeleteAssessmentTargetCommandOutput,
|
|
37
|
-
} from "./commands/DeleteAssessmentTargetCommand";
|
|
38
|
-
import {
|
|
39
|
-
DeleteAssessmentTemplateCommand,
|
|
40
|
-
DeleteAssessmentTemplateCommandInput,
|
|
41
|
-
DeleteAssessmentTemplateCommandOutput,
|
|
42
|
-
} from "./commands/DeleteAssessmentTemplateCommand";
|
|
43
|
-
import {
|
|
44
|
-
DescribeAssessmentRunsCommand,
|
|
45
|
-
DescribeAssessmentRunsCommandInput,
|
|
46
|
-
DescribeAssessmentRunsCommandOutput,
|
|
47
|
-
} from "./commands/DescribeAssessmentRunsCommand";
|
|
48
|
-
import {
|
|
49
|
-
DescribeAssessmentTargetsCommand,
|
|
50
|
-
DescribeAssessmentTargetsCommandInput,
|
|
51
|
-
DescribeAssessmentTargetsCommandOutput,
|
|
52
|
-
} from "./commands/DescribeAssessmentTargetsCommand";
|
|
53
|
-
import {
|
|
54
|
-
DescribeAssessmentTemplatesCommand,
|
|
55
|
-
DescribeAssessmentTemplatesCommandInput,
|
|
56
|
-
DescribeAssessmentTemplatesCommandOutput,
|
|
57
|
-
} from "./commands/DescribeAssessmentTemplatesCommand";
|
|
58
|
-
import {
|
|
59
|
-
DescribeCrossAccountAccessRoleCommand,
|
|
60
|
-
DescribeCrossAccountAccessRoleCommandInput,
|
|
61
|
-
DescribeCrossAccountAccessRoleCommandOutput,
|
|
62
|
-
} from "./commands/DescribeCrossAccountAccessRoleCommand";
|
|
63
|
-
import {
|
|
64
|
-
DescribeExclusionsCommand,
|
|
65
|
-
DescribeExclusionsCommandInput,
|
|
66
|
-
DescribeExclusionsCommandOutput,
|
|
67
|
-
} from "./commands/DescribeExclusionsCommand";
|
|
68
|
-
import {
|
|
69
|
-
DescribeFindingsCommand,
|
|
70
|
-
DescribeFindingsCommandInput,
|
|
71
|
-
DescribeFindingsCommandOutput,
|
|
72
|
-
} from "./commands/DescribeFindingsCommand";
|
|
73
|
-
import {
|
|
74
|
-
DescribeResourceGroupsCommand,
|
|
75
|
-
DescribeResourceGroupsCommandInput,
|
|
76
|
-
DescribeResourceGroupsCommandOutput,
|
|
77
|
-
} from "./commands/DescribeResourceGroupsCommand";
|
|
78
|
-
import {
|
|
79
|
-
DescribeRulesPackagesCommand,
|
|
80
|
-
DescribeRulesPackagesCommandInput,
|
|
81
|
-
DescribeRulesPackagesCommandOutput,
|
|
82
|
-
} from "./commands/DescribeRulesPackagesCommand";
|
|
83
|
-
import {
|
|
84
|
-
GetAssessmentReportCommand,
|
|
85
|
-
GetAssessmentReportCommandInput,
|
|
86
|
-
GetAssessmentReportCommandOutput,
|
|
87
|
-
} from "./commands/GetAssessmentReportCommand";
|
|
88
|
-
import {
|
|
89
|
-
GetExclusionsPreviewCommand,
|
|
90
|
-
GetExclusionsPreviewCommandInput,
|
|
91
|
-
GetExclusionsPreviewCommandOutput,
|
|
92
|
-
} from "./commands/GetExclusionsPreviewCommand";
|
|
93
|
-
import {
|
|
94
|
-
GetTelemetryMetadataCommand,
|
|
95
|
-
GetTelemetryMetadataCommandInput,
|
|
96
|
-
GetTelemetryMetadataCommandOutput,
|
|
97
|
-
} from "./commands/GetTelemetryMetadataCommand";
|
|
98
|
-
import {
|
|
99
|
-
ListAssessmentRunAgentsCommand,
|
|
100
|
-
ListAssessmentRunAgentsCommandInput,
|
|
101
|
-
ListAssessmentRunAgentsCommandOutput,
|
|
102
|
-
} from "./commands/ListAssessmentRunAgentsCommand";
|
|
103
|
-
import {
|
|
104
|
-
ListAssessmentRunsCommand,
|
|
105
|
-
ListAssessmentRunsCommandInput,
|
|
106
|
-
ListAssessmentRunsCommandOutput,
|
|
107
|
-
} from "./commands/ListAssessmentRunsCommand";
|
|
108
|
-
import {
|
|
109
|
-
ListAssessmentTargetsCommand,
|
|
110
|
-
ListAssessmentTargetsCommandInput,
|
|
111
|
-
ListAssessmentTargetsCommandOutput,
|
|
112
|
-
} from "./commands/ListAssessmentTargetsCommand";
|
|
113
|
-
import {
|
|
114
|
-
ListAssessmentTemplatesCommand,
|
|
115
|
-
ListAssessmentTemplatesCommandInput,
|
|
116
|
-
ListAssessmentTemplatesCommandOutput,
|
|
117
|
-
} from "./commands/ListAssessmentTemplatesCommand";
|
|
118
|
-
import {
|
|
119
|
-
ListEventSubscriptionsCommand,
|
|
120
|
-
ListEventSubscriptionsCommandInput,
|
|
121
|
-
ListEventSubscriptionsCommandOutput,
|
|
122
|
-
} from "./commands/ListEventSubscriptionsCommand";
|
|
123
|
-
import {
|
|
124
|
-
ListExclusionsCommand,
|
|
125
|
-
ListExclusionsCommandInput,
|
|
126
|
-
ListExclusionsCommandOutput,
|
|
127
|
-
} from "./commands/ListExclusionsCommand";
|
|
128
|
-
import {
|
|
129
|
-
ListFindingsCommand,
|
|
130
|
-
ListFindingsCommandInput,
|
|
131
|
-
ListFindingsCommandOutput,
|
|
132
|
-
} from "./commands/ListFindingsCommand";
|
|
133
|
-
import {
|
|
134
|
-
ListRulesPackagesCommand,
|
|
135
|
-
ListRulesPackagesCommandInput,
|
|
136
|
-
ListRulesPackagesCommandOutput,
|
|
137
|
-
} from "./commands/ListRulesPackagesCommand";
|
|
138
|
-
import {
|
|
139
|
-
ListTagsForResourceCommand,
|
|
140
|
-
ListTagsForResourceCommandInput,
|
|
141
|
-
ListTagsForResourceCommandOutput,
|
|
142
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
143
|
-
import {
|
|
144
|
-
PreviewAgentsCommand,
|
|
145
|
-
PreviewAgentsCommandInput,
|
|
146
|
-
PreviewAgentsCommandOutput,
|
|
147
|
-
} from "./commands/PreviewAgentsCommand";
|
|
148
|
-
import {
|
|
149
|
-
RegisterCrossAccountAccessRoleCommand,
|
|
150
|
-
RegisterCrossAccountAccessRoleCommandInput,
|
|
151
|
-
RegisterCrossAccountAccessRoleCommandOutput,
|
|
152
|
-
} from "./commands/RegisterCrossAccountAccessRoleCommand";
|
|
153
|
-
import {
|
|
154
|
-
RemoveAttributesFromFindingsCommand,
|
|
155
|
-
RemoveAttributesFromFindingsCommandInput,
|
|
156
|
-
RemoveAttributesFromFindingsCommandOutput,
|
|
157
|
-
} from "./commands/RemoveAttributesFromFindingsCommand";
|
|
158
|
-
import {
|
|
159
|
-
SetTagsForResourceCommand,
|
|
160
|
-
SetTagsForResourceCommandInput,
|
|
161
|
-
SetTagsForResourceCommandOutput,
|
|
162
|
-
} from "./commands/SetTagsForResourceCommand";
|
|
163
|
-
import {
|
|
164
|
-
StartAssessmentRunCommand,
|
|
165
|
-
StartAssessmentRunCommandInput,
|
|
166
|
-
StartAssessmentRunCommandOutput,
|
|
167
|
-
} from "./commands/StartAssessmentRunCommand";
|
|
168
|
-
import {
|
|
169
|
-
StopAssessmentRunCommand,
|
|
170
|
-
StopAssessmentRunCommandInput,
|
|
171
|
-
StopAssessmentRunCommandOutput,
|
|
172
|
-
} from "./commands/StopAssessmentRunCommand";
|
|
173
|
-
import {
|
|
174
|
-
SubscribeToEventCommand,
|
|
175
|
-
SubscribeToEventCommandInput,
|
|
176
|
-
SubscribeToEventCommandOutput,
|
|
177
|
-
} from "./commands/SubscribeToEventCommand";
|
|
178
|
-
import {
|
|
179
|
-
UnsubscribeFromEventCommand,
|
|
180
|
-
UnsubscribeFromEventCommandInput,
|
|
181
|
-
UnsubscribeFromEventCommandOutput,
|
|
182
|
-
} from "./commands/UnsubscribeFromEventCommand";
|
|
183
|
-
import {
|
|
184
|
-
UpdateAssessmentTargetCommand,
|
|
185
|
-
UpdateAssessmentTargetCommandInput,
|
|
186
|
-
UpdateAssessmentTargetCommandOutput,
|
|
187
|
-
} from "./commands/UpdateAssessmentTargetCommand";
|
|
188
|
-
import { InspectorClient } from "./InspectorClient";
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* <fullname>Amazon Inspector</fullname>
|
|
192
|
-
* <p>Amazon Inspector enables you to analyze the behavior of your AWS resources and to
|
|
193
|
-
* identify potential security issues. For more information, see <a href="https://docs.aws.amazon.com/inspector/latest/userguide/inspector_introduction.html"> Amazon Inspector User
|
|
194
|
-
* Guide</a>.</p>
|
|
195
|
-
*/
|
|
196
|
-
export class Inspector extends InspectorClient {
|
|
197
|
-
/**
|
|
198
|
-
* <p>Assigns attributes (key and value pairs) to the findings that are specified by the
|
|
199
|
-
* ARNs of the findings.</p>
|
|
200
|
-
*/
|
|
201
|
-
public addAttributesToFindings(
|
|
202
|
-
args: AddAttributesToFindingsCommandInput,
|
|
203
|
-
options?: __HttpHandlerOptions
|
|
204
|
-
): Promise<AddAttributesToFindingsCommandOutput>;
|
|
205
|
-
public addAttributesToFindings(
|
|
206
|
-
args: AddAttributesToFindingsCommandInput,
|
|
207
|
-
cb: (err: any, data?: AddAttributesToFindingsCommandOutput) => void
|
|
208
|
-
): void;
|
|
209
|
-
public addAttributesToFindings(
|
|
210
|
-
args: AddAttributesToFindingsCommandInput,
|
|
211
|
-
options: __HttpHandlerOptions,
|
|
212
|
-
cb: (err: any, data?: AddAttributesToFindingsCommandOutput) => void
|
|
213
|
-
): void;
|
|
214
|
-
public addAttributesToFindings(
|
|
215
|
-
args: AddAttributesToFindingsCommandInput,
|
|
216
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AddAttributesToFindingsCommandOutput) => void),
|
|
217
|
-
cb?: (err: any, data?: AddAttributesToFindingsCommandOutput) => void
|
|
218
|
-
): Promise<AddAttributesToFindingsCommandOutput> | void {
|
|
219
|
-
const command = new AddAttributesToFindingsCommand(args);
|
|
220
|
-
if (typeof optionsOrCb === "function") {
|
|
221
|
-
this.send(command, optionsOrCb);
|
|
222
|
-
} else if (typeof cb === "function") {
|
|
223
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
224
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
225
|
-
} else {
|
|
226
|
-
return this.send(command, optionsOrCb);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* <p>Creates a new assessment target using the ARN of the resource group that is generated
|
|
232
|
-
* by <a>CreateResourceGroup</a>. If resourceGroupArn is not specified, all EC2
|
|
233
|
-
* instances in the current AWS account and region are included in the assessment target. If
|
|
234
|
-
* the <a href="https://docs.aws.amazon.com/inspector/latest/userguide/inspector_slr.html">service-linked role</a> isn’t already registered, this action also creates and
|
|
235
|
-
* registers a service-linked role to grant Amazon Inspector access to AWS Services needed to
|
|
236
|
-
* perform security assessments. You can create up to 50 assessment targets per AWS account.
|
|
237
|
-
* You can run up to 500 concurrent agents per AWS account. For more information, see <a href="https://docs.aws.amazon.com/inspector/latest/userguide/inspector_applications.html">
|
|
238
|
-
* Amazon Inspector Assessment Targets</a>.</p>
|
|
239
|
-
*/
|
|
240
|
-
public createAssessmentTarget(
|
|
241
|
-
args: CreateAssessmentTargetCommandInput,
|
|
242
|
-
options?: __HttpHandlerOptions
|
|
243
|
-
): Promise<CreateAssessmentTargetCommandOutput>;
|
|
244
|
-
public createAssessmentTarget(
|
|
245
|
-
args: CreateAssessmentTargetCommandInput,
|
|
246
|
-
cb: (err: any, data?: CreateAssessmentTargetCommandOutput) => void
|
|
247
|
-
): void;
|
|
248
|
-
public createAssessmentTarget(
|
|
249
|
-
args: CreateAssessmentTargetCommandInput,
|
|
250
|
-
options: __HttpHandlerOptions,
|
|
251
|
-
cb: (err: any, data?: CreateAssessmentTargetCommandOutput) => void
|
|
252
|
-
): void;
|
|
253
|
-
public createAssessmentTarget(
|
|
254
|
-
args: CreateAssessmentTargetCommandInput,
|
|
255
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAssessmentTargetCommandOutput) => void),
|
|
256
|
-
cb?: (err: any, data?: CreateAssessmentTargetCommandOutput) => void
|
|
257
|
-
): Promise<CreateAssessmentTargetCommandOutput> | void {
|
|
258
|
-
const command = new CreateAssessmentTargetCommand(args);
|
|
259
|
-
if (typeof optionsOrCb === "function") {
|
|
260
|
-
this.send(command, optionsOrCb);
|
|
261
|
-
} else if (typeof cb === "function") {
|
|
262
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
263
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
264
|
-
} else {
|
|
265
|
-
return this.send(command, optionsOrCb);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* <p>Creates an assessment template for the assessment target that is specified by the ARN
|
|
271
|
-
* of the assessment target. If the <a href="https://docs.aws.amazon.com/inspector/latest/userguide/inspector_slr.html">service-linked role</a> isn’t already registered, this action also creates and
|
|
272
|
-
* registers a service-linked role to grant Amazon Inspector access to AWS Services needed to
|
|
273
|
-
* perform security assessments.</p>
|
|
274
|
-
*/
|
|
275
|
-
public createAssessmentTemplate(
|
|
276
|
-
args: CreateAssessmentTemplateCommandInput,
|
|
277
|
-
options?: __HttpHandlerOptions
|
|
278
|
-
): Promise<CreateAssessmentTemplateCommandOutput>;
|
|
279
|
-
public createAssessmentTemplate(
|
|
280
|
-
args: CreateAssessmentTemplateCommandInput,
|
|
281
|
-
cb: (err: any, data?: CreateAssessmentTemplateCommandOutput) => void
|
|
282
|
-
): void;
|
|
283
|
-
public createAssessmentTemplate(
|
|
284
|
-
args: CreateAssessmentTemplateCommandInput,
|
|
285
|
-
options: __HttpHandlerOptions,
|
|
286
|
-
cb: (err: any, data?: CreateAssessmentTemplateCommandOutput) => void
|
|
287
|
-
): void;
|
|
288
|
-
public createAssessmentTemplate(
|
|
289
|
-
args: CreateAssessmentTemplateCommandInput,
|
|
290
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAssessmentTemplateCommandOutput) => void),
|
|
291
|
-
cb?: (err: any, data?: CreateAssessmentTemplateCommandOutput) => void
|
|
292
|
-
): Promise<CreateAssessmentTemplateCommandOutput> | void {
|
|
293
|
-
const command = new CreateAssessmentTemplateCommand(args);
|
|
294
|
-
if (typeof optionsOrCb === "function") {
|
|
295
|
-
this.send(command, optionsOrCb);
|
|
296
|
-
} else if (typeof cb === "function") {
|
|
297
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
298
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
299
|
-
} else {
|
|
300
|
-
return this.send(command, optionsOrCb);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* <p>Starts the generation of an exclusions preview for the specified assessment template.
|
|
306
|
-
* The exclusions preview lists the potential exclusions (ExclusionPreview) that Inspector can
|
|
307
|
-
* detect before it runs the assessment. </p>
|
|
308
|
-
*/
|
|
309
|
-
public createExclusionsPreview(
|
|
310
|
-
args: CreateExclusionsPreviewCommandInput,
|
|
311
|
-
options?: __HttpHandlerOptions
|
|
312
|
-
): Promise<CreateExclusionsPreviewCommandOutput>;
|
|
313
|
-
public createExclusionsPreview(
|
|
314
|
-
args: CreateExclusionsPreviewCommandInput,
|
|
315
|
-
cb: (err: any, data?: CreateExclusionsPreviewCommandOutput) => void
|
|
316
|
-
): void;
|
|
317
|
-
public createExclusionsPreview(
|
|
318
|
-
args: CreateExclusionsPreviewCommandInput,
|
|
319
|
-
options: __HttpHandlerOptions,
|
|
320
|
-
cb: (err: any, data?: CreateExclusionsPreviewCommandOutput) => void
|
|
321
|
-
): void;
|
|
322
|
-
public createExclusionsPreview(
|
|
323
|
-
args: CreateExclusionsPreviewCommandInput,
|
|
324
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateExclusionsPreviewCommandOutput) => void),
|
|
325
|
-
cb?: (err: any, data?: CreateExclusionsPreviewCommandOutput) => void
|
|
326
|
-
): Promise<CreateExclusionsPreviewCommandOutput> | void {
|
|
327
|
-
const command = new CreateExclusionsPreviewCommand(args);
|
|
328
|
-
if (typeof optionsOrCb === "function") {
|
|
329
|
-
this.send(command, optionsOrCb);
|
|
330
|
-
} else if (typeof cb === "function") {
|
|
331
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
332
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
333
|
-
} else {
|
|
334
|
-
return this.send(command, optionsOrCb);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* <p>Creates a resource group using the specified set of tags (key and value pairs) that
|
|
340
|
-
* are used to select the EC2 instances to be included in an Amazon Inspector assessment
|
|
341
|
-
* target. The created resource group is then used to create an Amazon Inspector assessment
|
|
342
|
-
* target. For more information, see <a>CreateAssessmentTarget</a>.</p>
|
|
343
|
-
*/
|
|
344
|
-
public createResourceGroup(
|
|
345
|
-
args: CreateResourceGroupCommandInput,
|
|
346
|
-
options?: __HttpHandlerOptions
|
|
347
|
-
): Promise<CreateResourceGroupCommandOutput>;
|
|
348
|
-
public createResourceGroup(
|
|
349
|
-
args: CreateResourceGroupCommandInput,
|
|
350
|
-
cb: (err: any, data?: CreateResourceGroupCommandOutput) => void
|
|
351
|
-
): void;
|
|
352
|
-
public createResourceGroup(
|
|
353
|
-
args: CreateResourceGroupCommandInput,
|
|
354
|
-
options: __HttpHandlerOptions,
|
|
355
|
-
cb: (err: any, data?: CreateResourceGroupCommandOutput) => void
|
|
356
|
-
): void;
|
|
357
|
-
public createResourceGroup(
|
|
358
|
-
args: CreateResourceGroupCommandInput,
|
|
359
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateResourceGroupCommandOutput) => void),
|
|
360
|
-
cb?: (err: any, data?: CreateResourceGroupCommandOutput) => void
|
|
361
|
-
): Promise<CreateResourceGroupCommandOutput> | void {
|
|
362
|
-
const command = new CreateResourceGroupCommand(args);
|
|
363
|
-
if (typeof optionsOrCb === "function") {
|
|
364
|
-
this.send(command, optionsOrCb);
|
|
365
|
-
} else if (typeof cb === "function") {
|
|
366
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
367
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
368
|
-
} else {
|
|
369
|
-
return this.send(command, optionsOrCb);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* <p>Deletes the assessment run that is specified by the ARN of the assessment
|
|
375
|
-
* run.</p>
|
|
376
|
-
*/
|
|
377
|
-
public deleteAssessmentRun(
|
|
378
|
-
args: DeleteAssessmentRunCommandInput,
|
|
379
|
-
options?: __HttpHandlerOptions
|
|
380
|
-
): Promise<DeleteAssessmentRunCommandOutput>;
|
|
381
|
-
public deleteAssessmentRun(
|
|
382
|
-
args: DeleteAssessmentRunCommandInput,
|
|
383
|
-
cb: (err: any, data?: DeleteAssessmentRunCommandOutput) => void
|
|
384
|
-
): void;
|
|
385
|
-
public deleteAssessmentRun(
|
|
386
|
-
args: DeleteAssessmentRunCommandInput,
|
|
387
|
-
options: __HttpHandlerOptions,
|
|
388
|
-
cb: (err: any, data?: DeleteAssessmentRunCommandOutput) => void
|
|
389
|
-
): void;
|
|
390
|
-
public deleteAssessmentRun(
|
|
391
|
-
args: DeleteAssessmentRunCommandInput,
|
|
392
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAssessmentRunCommandOutput) => void),
|
|
393
|
-
cb?: (err: any, data?: DeleteAssessmentRunCommandOutput) => void
|
|
394
|
-
): Promise<DeleteAssessmentRunCommandOutput> | void {
|
|
395
|
-
const command = new DeleteAssessmentRunCommand(args);
|
|
396
|
-
if (typeof optionsOrCb === "function") {
|
|
397
|
-
this.send(command, optionsOrCb);
|
|
398
|
-
} else if (typeof cb === "function") {
|
|
399
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
400
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
401
|
-
} else {
|
|
402
|
-
return this.send(command, optionsOrCb);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* <p>Deletes the assessment target that is specified by the ARN of the assessment
|
|
408
|
-
* target.</p>
|
|
409
|
-
*/
|
|
410
|
-
public deleteAssessmentTarget(
|
|
411
|
-
args: DeleteAssessmentTargetCommandInput,
|
|
412
|
-
options?: __HttpHandlerOptions
|
|
413
|
-
): Promise<DeleteAssessmentTargetCommandOutput>;
|
|
414
|
-
public deleteAssessmentTarget(
|
|
415
|
-
args: DeleteAssessmentTargetCommandInput,
|
|
416
|
-
cb: (err: any, data?: DeleteAssessmentTargetCommandOutput) => void
|
|
417
|
-
): void;
|
|
418
|
-
public deleteAssessmentTarget(
|
|
419
|
-
args: DeleteAssessmentTargetCommandInput,
|
|
420
|
-
options: __HttpHandlerOptions,
|
|
421
|
-
cb: (err: any, data?: DeleteAssessmentTargetCommandOutput) => void
|
|
422
|
-
): void;
|
|
423
|
-
public deleteAssessmentTarget(
|
|
424
|
-
args: DeleteAssessmentTargetCommandInput,
|
|
425
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAssessmentTargetCommandOutput) => void),
|
|
426
|
-
cb?: (err: any, data?: DeleteAssessmentTargetCommandOutput) => void
|
|
427
|
-
): Promise<DeleteAssessmentTargetCommandOutput> | void {
|
|
428
|
-
const command = new DeleteAssessmentTargetCommand(args);
|
|
429
|
-
if (typeof optionsOrCb === "function") {
|
|
430
|
-
this.send(command, optionsOrCb);
|
|
431
|
-
} else if (typeof cb === "function") {
|
|
432
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
433
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
434
|
-
} else {
|
|
435
|
-
return this.send(command, optionsOrCb);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* <p>Deletes the assessment template that is specified by the ARN of the assessment
|
|
441
|
-
* template.</p>
|
|
442
|
-
*/
|
|
443
|
-
public deleteAssessmentTemplate(
|
|
444
|
-
args: DeleteAssessmentTemplateCommandInput,
|
|
445
|
-
options?: __HttpHandlerOptions
|
|
446
|
-
): Promise<DeleteAssessmentTemplateCommandOutput>;
|
|
447
|
-
public deleteAssessmentTemplate(
|
|
448
|
-
args: DeleteAssessmentTemplateCommandInput,
|
|
449
|
-
cb: (err: any, data?: DeleteAssessmentTemplateCommandOutput) => void
|
|
450
|
-
): void;
|
|
451
|
-
public deleteAssessmentTemplate(
|
|
452
|
-
args: DeleteAssessmentTemplateCommandInput,
|
|
453
|
-
options: __HttpHandlerOptions,
|
|
454
|
-
cb: (err: any, data?: DeleteAssessmentTemplateCommandOutput) => void
|
|
455
|
-
): void;
|
|
456
|
-
public deleteAssessmentTemplate(
|
|
457
|
-
args: DeleteAssessmentTemplateCommandInput,
|
|
458
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAssessmentTemplateCommandOutput) => void),
|
|
459
|
-
cb?: (err: any, data?: DeleteAssessmentTemplateCommandOutput) => void
|
|
460
|
-
): Promise<DeleteAssessmentTemplateCommandOutput> | void {
|
|
461
|
-
const command = new DeleteAssessmentTemplateCommand(args);
|
|
462
|
-
if (typeof optionsOrCb === "function") {
|
|
463
|
-
this.send(command, optionsOrCb);
|
|
464
|
-
} else if (typeof cb === "function") {
|
|
465
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
466
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
467
|
-
} else {
|
|
468
|
-
return this.send(command, optionsOrCb);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* <p>Describes the assessment runs that are specified by the ARNs of the assessment
|
|
474
|
-
* runs.</p>
|
|
475
|
-
*/
|
|
476
|
-
public describeAssessmentRuns(
|
|
477
|
-
args: DescribeAssessmentRunsCommandInput,
|
|
478
|
-
options?: __HttpHandlerOptions
|
|
479
|
-
): Promise<DescribeAssessmentRunsCommandOutput>;
|
|
480
|
-
public describeAssessmentRuns(
|
|
481
|
-
args: DescribeAssessmentRunsCommandInput,
|
|
482
|
-
cb: (err: any, data?: DescribeAssessmentRunsCommandOutput) => void
|
|
483
|
-
): void;
|
|
484
|
-
public describeAssessmentRuns(
|
|
485
|
-
args: DescribeAssessmentRunsCommandInput,
|
|
486
|
-
options: __HttpHandlerOptions,
|
|
487
|
-
cb: (err: any, data?: DescribeAssessmentRunsCommandOutput) => void
|
|
488
|
-
): void;
|
|
489
|
-
public describeAssessmentRuns(
|
|
490
|
-
args: DescribeAssessmentRunsCommandInput,
|
|
491
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAssessmentRunsCommandOutput) => void),
|
|
492
|
-
cb?: (err: any, data?: DescribeAssessmentRunsCommandOutput) => void
|
|
493
|
-
): Promise<DescribeAssessmentRunsCommandOutput> | void {
|
|
494
|
-
const command = new DescribeAssessmentRunsCommand(args);
|
|
495
|
-
if (typeof optionsOrCb === "function") {
|
|
496
|
-
this.send(command, optionsOrCb);
|
|
497
|
-
} else if (typeof cb === "function") {
|
|
498
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
499
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
500
|
-
} else {
|
|
501
|
-
return this.send(command, optionsOrCb);
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* <p>Describes the assessment targets that are specified by the ARNs of the assessment
|
|
507
|
-
* targets.</p>
|
|
508
|
-
*/
|
|
509
|
-
public describeAssessmentTargets(
|
|
510
|
-
args: DescribeAssessmentTargetsCommandInput,
|
|
511
|
-
options?: __HttpHandlerOptions
|
|
512
|
-
): Promise<DescribeAssessmentTargetsCommandOutput>;
|
|
513
|
-
public describeAssessmentTargets(
|
|
514
|
-
args: DescribeAssessmentTargetsCommandInput,
|
|
515
|
-
cb: (err: any, data?: DescribeAssessmentTargetsCommandOutput) => void
|
|
516
|
-
): void;
|
|
517
|
-
public describeAssessmentTargets(
|
|
518
|
-
args: DescribeAssessmentTargetsCommandInput,
|
|
519
|
-
options: __HttpHandlerOptions,
|
|
520
|
-
cb: (err: any, data?: DescribeAssessmentTargetsCommandOutput) => void
|
|
521
|
-
): void;
|
|
522
|
-
public describeAssessmentTargets(
|
|
523
|
-
args: DescribeAssessmentTargetsCommandInput,
|
|
524
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAssessmentTargetsCommandOutput) => void),
|
|
525
|
-
cb?: (err: any, data?: DescribeAssessmentTargetsCommandOutput) => void
|
|
526
|
-
): Promise<DescribeAssessmentTargetsCommandOutput> | void {
|
|
527
|
-
const command = new DescribeAssessmentTargetsCommand(args);
|
|
528
|
-
if (typeof optionsOrCb === "function") {
|
|
529
|
-
this.send(command, optionsOrCb);
|
|
530
|
-
} else if (typeof cb === "function") {
|
|
531
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
532
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
533
|
-
} else {
|
|
534
|
-
return this.send(command, optionsOrCb);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* <p>Describes the assessment templates that are specified by the ARNs of the assessment
|
|
540
|
-
* templates.</p>
|
|
541
|
-
*/
|
|
542
|
-
public describeAssessmentTemplates(
|
|
543
|
-
args: DescribeAssessmentTemplatesCommandInput,
|
|
544
|
-
options?: __HttpHandlerOptions
|
|
545
|
-
): Promise<DescribeAssessmentTemplatesCommandOutput>;
|
|
546
|
-
public describeAssessmentTemplates(
|
|
547
|
-
args: DescribeAssessmentTemplatesCommandInput,
|
|
548
|
-
cb: (err: any, data?: DescribeAssessmentTemplatesCommandOutput) => void
|
|
549
|
-
): void;
|
|
550
|
-
public describeAssessmentTemplates(
|
|
551
|
-
args: DescribeAssessmentTemplatesCommandInput,
|
|
552
|
-
options: __HttpHandlerOptions,
|
|
553
|
-
cb: (err: any, data?: DescribeAssessmentTemplatesCommandOutput) => void
|
|
554
|
-
): void;
|
|
555
|
-
public describeAssessmentTemplates(
|
|
556
|
-
args: DescribeAssessmentTemplatesCommandInput,
|
|
557
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAssessmentTemplatesCommandOutput) => void),
|
|
558
|
-
cb?: (err: any, data?: DescribeAssessmentTemplatesCommandOutput) => void
|
|
559
|
-
): Promise<DescribeAssessmentTemplatesCommandOutput> | void {
|
|
560
|
-
const command = new DescribeAssessmentTemplatesCommand(args);
|
|
561
|
-
if (typeof optionsOrCb === "function") {
|
|
562
|
-
this.send(command, optionsOrCb);
|
|
563
|
-
} else if (typeof cb === "function") {
|
|
564
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
565
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
566
|
-
} else {
|
|
567
|
-
return this.send(command, optionsOrCb);
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* <p>Describes the IAM role that enables Amazon Inspector to access your AWS
|
|
573
|
-
* account.</p>
|
|
574
|
-
*/
|
|
575
|
-
public describeCrossAccountAccessRole(
|
|
576
|
-
args: DescribeCrossAccountAccessRoleCommandInput,
|
|
577
|
-
options?: __HttpHandlerOptions
|
|
578
|
-
): Promise<DescribeCrossAccountAccessRoleCommandOutput>;
|
|
579
|
-
public describeCrossAccountAccessRole(
|
|
580
|
-
args: DescribeCrossAccountAccessRoleCommandInput,
|
|
581
|
-
cb: (err: any, data?: DescribeCrossAccountAccessRoleCommandOutput) => void
|
|
582
|
-
): void;
|
|
583
|
-
public describeCrossAccountAccessRole(
|
|
584
|
-
args: DescribeCrossAccountAccessRoleCommandInput,
|
|
585
|
-
options: __HttpHandlerOptions,
|
|
586
|
-
cb: (err: any, data?: DescribeCrossAccountAccessRoleCommandOutput) => void
|
|
587
|
-
): void;
|
|
588
|
-
public describeCrossAccountAccessRole(
|
|
589
|
-
args: DescribeCrossAccountAccessRoleCommandInput,
|
|
590
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeCrossAccountAccessRoleCommandOutput) => void),
|
|
591
|
-
cb?: (err: any, data?: DescribeCrossAccountAccessRoleCommandOutput) => void
|
|
592
|
-
): Promise<DescribeCrossAccountAccessRoleCommandOutput> | void {
|
|
593
|
-
const command = new DescribeCrossAccountAccessRoleCommand(args);
|
|
594
|
-
if (typeof optionsOrCb === "function") {
|
|
595
|
-
this.send(command, optionsOrCb);
|
|
596
|
-
} else if (typeof cb === "function") {
|
|
597
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
598
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
599
|
-
} else {
|
|
600
|
-
return this.send(command, optionsOrCb);
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
* <p>Describes the exclusions that are specified by the exclusions' ARNs.</p>
|
|
606
|
-
*/
|
|
607
|
-
public describeExclusions(
|
|
608
|
-
args: DescribeExclusionsCommandInput,
|
|
609
|
-
options?: __HttpHandlerOptions
|
|
610
|
-
): Promise<DescribeExclusionsCommandOutput>;
|
|
611
|
-
public describeExclusions(
|
|
612
|
-
args: DescribeExclusionsCommandInput,
|
|
613
|
-
cb: (err: any, data?: DescribeExclusionsCommandOutput) => void
|
|
614
|
-
): void;
|
|
615
|
-
public describeExclusions(
|
|
616
|
-
args: DescribeExclusionsCommandInput,
|
|
617
|
-
options: __HttpHandlerOptions,
|
|
618
|
-
cb: (err: any, data?: DescribeExclusionsCommandOutput) => void
|
|
619
|
-
): void;
|
|
620
|
-
public describeExclusions(
|
|
621
|
-
args: DescribeExclusionsCommandInput,
|
|
622
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeExclusionsCommandOutput) => void),
|
|
623
|
-
cb?: (err: any, data?: DescribeExclusionsCommandOutput) => void
|
|
624
|
-
): Promise<DescribeExclusionsCommandOutput> | void {
|
|
625
|
-
const command = new DescribeExclusionsCommand(args);
|
|
626
|
-
if (typeof optionsOrCb === "function") {
|
|
627
|
-
this.send(command, optionsOrCb);
|
|
628
|
-
} else if (typeof cb === "function") {
|
|
629
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
630
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
631
|
-
} else {
|
|
632
|
-
return this.send(command, optionsOrCb);
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
/**
|
|
637
|
-
* <p>Describes the findings that are specified by the ARNs of the findings.</p>
|
|
638
|
-
*/
|
|
639
|
-
public describeFindings(
|
|
640
|
-
args: DescribeFindingsCommandInput,
|
|
641
|
-
options?: __HttpHandlerOptions
|
|
642
|
-
): Promise<DescribeFindingsCommandOutput>;
|
|
643
|
-
public describeFindings(
|
|
644
|
-
args: DescribeFindingsCommandInput,
|
|
645
|
-
cb: (err: any, data?: DescribeFindingsCommandOutput) => void
|
|
646
|
-
): void;
|
|
647
|
-
public describeFindings(
|
|
648
|
-
args: DescribeFindingsCommandInput,
|
|
649
|
-
options: __HttpHandlerOptions,
|
|
650
|
-
cb: (err: any, data?: DescribeFindingsCommandOutput) => void
|
|
651
|
-
): void;
|
|
652
|
-
public describeFindings(
|
|
653
|
-
args: DescribeFindingsCommandInput,
|
|
654
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeFindingsCommandOutput) => void),
|
|
655
|
-
cb?: (err: any, data?: DescribeFindingsCommandOutput) => void
|
|
656
|
-
): Promise<DescribeFindingsCommandOutput> | void {
|
|
657
|
-
const command = new DescribeFindingsCommand(args);
|
|
658
|
-
if (typeof optionsOrCb === "function") {
|
|
659
|
-
this.send(command, optionsOrCb);
|
|
660
|
-
} else if (typeof cb === "function") {
|
|
661
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
662
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
663
|
-
} else {
|
|
664
|
-
return this.send(command, optionsOrCb);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* <p>Describes the resource groups that are specified by the ARNs of the resource
|
|
670
|
-
* groups.</p>
|
|
671
|
-
*/
|
|
672
|
-
public describeResourceGroups(
|
|
673
|
-
args: DescribeResourceGroupsCommandInput,
|
|
674
|
-
options?: __HttpHandlerOptions
|
|
675
|
-
): Promise<DescribeResourceGroupsCommandOutput>;
|
|
676
|
-
public describeResourceGroups(
|
|
677
|
-
args: DescribeResourceGroupsCommandInput,
|
|
678
|
-
cb: (err: any, data?: DescribeResourceGroupsCommandOutput) => void
|
|
679
|
-
): void;
|
|
680
|
-
public describeResourceGroups(
|
|
681
|
-
args: DescribeResourceGroupsCommandInput,
|
|
682
|
-
options: __HttpHandlerOptions,
|
|
683
|
-
cb: (err: any, data?: DescribeResourceGroupsCommandOutput) => void
|
|
684
|
-
): void;
|
|
685
|
-
public describeResourceGroups(
|
|
686
|
-
args: DescribeResourceGroupsCommandInput,
|
|
687
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeResourceGroupsCommandOutput) => void),
|
|
688
|
-
cb?: (err: any, data?: DescribeResourceGroupsCommandOutput) => void
|
|
689
|
-
): Promise<DescribeResourceGroupsCommandOutput> | void {
|
|
690
|
-
const command = new DescribeResourceGroupsCommand(args);
|
|
691
|
-
if (typeof optionsOrCb === "function") {
|
|
692
|
-
this.send(command, optionsOrCb);
|
|
693
|
-
} else if (typeof cb === "function") {
|
|
694
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
695
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
696
|
-
} else {
|
|
697
|
-
return this.send(command, optionsOrCb);
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
/**
|
|
702
|
-
* <p>Describes the rules packages that are specified by the ARNs of the rules
|
|
703
|
-
* packages.</p>
|
|
704
|
-
*/
|
|
705
|
-
public describeRulesPackages(
|
|
706
|
-
args: DescribeRulesPackagesCommandInput,
|
|
707
|
-
options?: __HttpHandlerOptions
|
|
708
|
-
): Promise<DescribeRulesPackagesCommandOutput>;
|
|
709
|
-
public describeRulesPackages(
|
|
710
|
-
args: DescribeRulesPackagesCommandInput,
|
|
711
|
-
cb: (err: any, data?: DescribeRulesPackagesCommandOutput) => void
|
|
712
|
-
): void;
|
|
713
|
-
public describeRulesPackages(
|
|
714
|
-
args: DescribeRulesPackagesCommandInput,
|
|
715
|
-
options: __HttpHandlerOptions,
|
|
716
|
-
cb: (err: any, data?: DescribeRulesPackagesCommandOutput) => void
|
|
717
|
-
): void;
|
|
718
|
-
public describeRulesPackages(
|
|
719
|
-
args: DescribeRulesPackagesCommandInput,
|
|
720
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeRulesPackagesCommandOutput) => void),
|
|
721
|
-
cb?: (err: any, data?: DescribeRulesPackagesCommandOutput) => void
|
|
722
|
-
): Promise<DescribeRulesPackagesCommandOutput> | void {
|
|
723
|
-
const command = new DescribeRulesPackagesCommand(args);
|
|
724
|
-
if (typeof optionsOrCb === "function") {
|
|
725
|
-
this.send(command, optionsOrCb);
|
|
726
|
-
} else if (typeof cb === "function") {
|
|
727
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
728
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
729
|
-
} else {
|
|
730
|
-
return this.send(command, optionsOrCb);
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
/**
|
|
735
|
-
* <p>Produces an assessment report that includes detailed and comprehensive results of a
|
|
736
|
-
* specified assessment run. </p>
|
|
737
|
-
*/
|
|
738
|
-
public getAssessmentReport(
|
|
739
|
-
args: GetAssessmentReportCommandInput,
|
|
740
|
-
options?: __HttpHandlerOptions
|
|
741
|
-
): Promise<GetAssessmentReportCommandOutput>;
|
|
742
|
-
public getAssessmentReport(
|
|
743
|
-
args: GetAssessmentReportCommandInput,
|
|
744
|
-
cb: (err: any, data?: GetAssessmentReportCommandOutput) => void
|
|
745
|
-
): void;
|
|
746
|
-
public getAssessmentReport(
|
|
747
|
-
args: GetAssessmentReportCommandInput,
|
|
748
|
-
options: __HttpHandlerOptions,
|
|
749
|
-
cb: (err: any, data?: GetAssessmentReportCommandOutput) => void
|
|
750
|
-
): void;
|
|
751
|
-
public getAssessmentReport(
|
|
752
|
-
args: GetAssessmentReportCommandInput,
|
|
753
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAssessmentReportCommandOutput) => void),
|
|
754
|
-
cb?: (err: any, data?: GetAssessmentReportCommandOutput) => void
|
|
755
|
-
): Promise<GetAssessmentReportCommandOutput> | void {
|
|
756
|
-
const command = new GetAssessmentReportCommand(args);
|
|
757
|
-
if (typeof optionsOrCb === "function") {
|
|
758
|
-
this.send(command, optionsOrCb);
|
|
759
|
-
} else if (typeof cb === "function") {
|
|
760
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
761
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
762
|
-
} else {
|
|
763
|
-
return this.send(command, optionsOrCb);
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* <p>Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by
|
|
769
|
-
* the preview token. You can obtain the preview token by running the CreateExclusionsPreview
|
|
770
|
-
* API.</p>
|
|
771
|
-
*/
|
|
772
|
-
public getExclusionsPreview(
|
|
773
|
-
args: GetExclusionsPreviewCommandInput,
|
|
774
|
-
options?: __HttpHandlerOptions
|
|
775
|
-
): Promise<GetExclusionsPreviewCommandOutput>;
|
|
776
|
-
public getExclusionsPreview(
|
|
777
|
-
args: GetExclusionsPreviewCommandInput,
|
|
778
|
-
cb: (err: any, data?: GetExclusionsPreviewCommandOutput) => void
|
|
779
|
-
): void;
|
|
780
|
-
public getExclusionsPreview(
|
|
781
|
-
args: GetExclusionsPreviewCommandInput,
|
|
782
|
-
options: __HttpHandlerOptions,
|
|
783
|
-
cb: (err: any, data?: GetExclusionsPreviewCommandOutput) => void
|
|
784
|
-
): void;
|
|
785
|
-
public getExclusionsPreview(
|
|
786
|
-
args: GetExclusionsPreviewCommandInput,
|
|
787
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetExclusionsPreviewCommandOutput) => void),
|
|
788
|
-
cb?: (err: any, data?: GetExclusionsPreviewCommandOutput) => void
|
|
789
|
-
): Promise<GetExclusionsPreviewCommandOutput> | void {
|
|
790
|
-
const command = new GetExclusionsPreviewCommand(args);
|
|
791
|
-
if (typeof optionsOrCb === "function") {
|
|
792
|
-
this.send(command, optionsOrCb);
|
|
793
|
-
} else if (typeof cb === "function") {
|
|
794
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
795
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
796
|
-
} else {
|
|
797
|
-
return this.send(command, optionsOrCb);
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* <p>Information about the data that is collected for the specified assessment
|
|
803
|
-
* run.</p>
|
|
804
|
-
*/
|
|
805
|
-
public getTelemetryMetadata(
|
|
806
|
-
args: GetTelemetryMetadataCommandInput,
|
|
807
|
-
options?: __HttpHandlerOptions
|
|
808
|
-
): Promise<GetTelemetryMetadataCommandOutput>;
|
|
809
|
-
public getTelemetryMetadata(
|
|
810
|
-
args: GetTelemetryMetadataCommandInput,
|
|
811
|
-
cb: (err: any, data?: GetTelemetryMetadataCommandOutput) => void
|
|
812
|
-
): void;
|
|
813
|
-
public getTelemetryMetadata(
|
|
814
|
-
args: GetTelemetryMetadataCommandInput,
|
|
815
|
-
options: __HttpHandlerOptions,
|
|
816
|
-
cb: (err: any, data?: GetTelemetryMetadataCommandOutput) => void
|
|
817
|
-
): void;
|
|
818
|
-
public getTelemetryMetadata(
|
|
819
|
-
args: GetTelemetryMetadataCommandInput,
|
|
820
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetTelemetryMetadataCommandOutput) => void),
|
|
821
|
-
cb?: (err: any, data?: GetTelemetryMetadataCommandOutput) => void
|
|
822
|
-
): Promise<GetTelemetryMetadataCommandOutput> | void {
|
|
823
|
-
const command = new GetTelemetryMetadataCommand(args);
|
|
824
|
-
if (typeof optionsOrCb === "function") {
|
|
825
|
-
this.send(command, optionsOrCb);
|
|
826
|
-
} else if (typeof cb === "function") {
|
|
827
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
828
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
829
|
-
} else {
|
|
830
|
-
return this.send(command, optionsOrCb);
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
/**
|
|
835
|
-
* <p>Lists the agents of the assessment runs that are specified by the ARNs of the
|
|
836
|
-
* assessment runs.</p>
|
|
837
|
-
*/
|
|
838
|
-
public listAssessmentRunAgents(
|
|
839
|
-
args: ListAssessmentRunAgentsCommandInput,
|
|
840
|
-
options?: __HttpHandlerOptions
|
|
841
|
-
): Promise<ListAssessmentRunAgentsCommandOutput>;
|
|
842
|
-
public listAssessmentRunAgents(
|
|
843
|
-
args: ListAssessmentRunAgentsCommandInput,
|
|
844
|
-
cb: (err: any, data?: ListAssessmentRunAgentsCommandOutput) => void
|
|
845
|
-
): void;
|
|
846
|
-
public listAssessmentRunAgents(
|
|
847
|
-
args: ListAssessmentRunAgentsCommandInput,
|
|
848
|
-
options: __HttpHandlerOptions,
|
|
849
|
-
cb: (err: any, data?: ListAssessmentRunAgentsCommandOutput) => void
|
|
850
|
-
): void;
|
|
851
|
-
public listAssessmentRunAgents(
|
|
852
|
-
args: ListAssessmentRunAgentsCommandInput,
|
|
853
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAssessmentRunAgentsCommandOutput) => void),
|
|
854
|
-
cb?: (err: any, data?: ListAssessmentRunAgentsCommandOutput) => void
|
|
855
|
-
): Promise<ListAssessmentRunAgentsCommandOutput> | void {
|
|
856
|
-
const command = new ListAssessmentRunAgentsCommand(args);
|
|
857
|
-
if (typeof optionsOrCb === "function") {
|
|
858
|
-
this.send(command, optionsOrCb);
|
|
859
|
-
} else if (typeof cb === "function") {
|
|
860
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
861
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
862
|
-
} else {
|
|
863
|
-
return this.send(command, optionsOrCb);
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
/**
|
|
868
|
-
* <p>Lists the assessment runs that correspond to the assessment templates that are
|
|
869
|
-
* specified by the ARNs of the assessment templates.</p>
|
|
870
|
-
*/
|
|
871
|
-
public listAssessmentRuns(
|
|
872
|
-
args: ListAssessmentRunsCommandInput,
|
|
873
|
-
options?: __HttpHandlerOptions
|
|
874
|
-
): Promise<ListAssessmentRunsCommandOutput>;
|
|
875
|
-
public listAssessmentRuns(
|
|
876
|
-
args: ListAssessmentRunsCommandInput,
|
|
877
|
-
cb: (err: any, data?: ListAssessmentRunsCommandOutput) => void
|
|
878
|
-
): void;
|
|
879
|
-
public listAssessmentRuns(
|
|
880
|
-
args: ListAssessmentRunsCommandInput,
|
|
881
|
-
options: __HttpHandlerOptions,
|
|
882
|
-
cb: (err: any, data?: ListAssessmentRunsCommandOutput) => void
|
|
883
|
-
): void;
|
|
884
|
-
public listAssessmentRuns(
|
|
885
|
-
args: ListAssessmentRunsCommandInput,
|
|
886
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAssessmentRunsCommandOutput) => void),
|
|
887
|
-
cb?: (err: any, data?: ListAssessmentRunsCommandOutput) => void
|
|
888
|
-
): Promise<ListAssessmentRunsCommandOutput> | void {
|
|
889
|
-
const command = new ListAssessmentRunsCommand(args);
|
|
890
|
-
if (typeof optionsOrCb === "function") {
|
|
891
|
-
this.send(command, optionsOrCb);
|
|
892
|
-
} else if (typeof cb === "function") {
|
|
893
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
894
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
895
|
-
} else {
|
|
896
|
-
return this.send(command, optionsOrCb);
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
/**
|
|
901
|
-
* <p>Lists the ARNs of the assessment targets within this AWS account. For more
|
|
902
|
-
* information about assessment targets, see <a href="https://docs.aws.amazon.com/inspector/latest/userguide/inspector_applications.html">Amazon Inspector Assessment
|
|
903
|
-
* Targets</a>.</p>
|
|
904
|
-
*/
|
|
905
|
-
public listAssessmentTargets(
|
|
906
|
-
args: ListAssessmentTargetsCommandInput,
|
|
907
|
-
options?: __HttpHandlerOptions
|
|
908
|
-
): Promise<ListAssessmentTargetsCommandOutput>;
|
|
909
|
-
public listAssessmentTargets(
|
|
910
|
-
args: ListAssessmentTargetsCommandInput,
|
|
911
|
-
cb: (err: any, data?: ListAssessmentTargetsCommandOutput) => void
|
|
912
|
-
): void;
|
|
913
|
-
public listAssessmentTargets(
|
|
914
|
-
args: ListAssessmentTargetsCommandInput,
|
|
915
|
-
options: __HttpHandlerOptions,
|
|
916
|
-
cb: (err: any, data?: ListAssessmentTargetsCommandOutput) => void
|
|
917
|
-
): void;
|
|
918
|
-
public listAssessmentTargets(
|
|
919
|
-
args: ListAssessmentTargetsCommandInput,
|
|
920
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAssessmentTargetsCommandOutput) => void),
|
|
921
|
-
cb?: (err: any, data?: ListAssessmentTargetsCommandOutput) => void
|
|
922
|
-
): Promise<ListAssessmentTargetsCommandOutput> | void {
|
|
923
|
-
const command = new ListAssessmentTargetsCommand(args);
|
|
924
|
-
if (typeof optionsOrCb === "function") {
|
|
925
|
-
this.send(command, optionsOrCb);
|
|
926
|
-
} else if (typeof cb === "function") {
|
|
927
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
928
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
929
|
-
} else {
|
|
930
|
-
return this.send(command, optionsOrCb);
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
/**
|
|
935
|
-
* <p>Lists the assessment templates that correspond to the assessment targets that are
|
|
936
|
-
* specified by the ARNs of the assessment targets.</p>
|
|
937
|
-
*/
|
|
938
|
-
public listAssessmentTemplates(
|
|
939
|
-
args: ListAssessmentTemplatesCommandInput,
|
|
940
|
-
options?: __HttpHandlerOptions
|
|
941
|
-
): Promise<ListAssessmentTemplatesCommandOutput>;
|
|
942
|
-
public listAssessmentTemplates(
|
|
943
|
-
args: ListAssessmentTemplatesCommandInput,
|
|
944
|
-
cb: (err: any, data?: ListAssessmentTemplatesCommandOutput) => void
|
|
945
|
-
): void;
|
|
946
|
-
public listAssessmentTemplates(
|
|
947
|
-
args: ListAssessmentTemplatesCommandInput,
|
|
948
|
-
options: __HttpHandlerOptions,
|
|
949
|
-
cb: (err: any, data?: ListAssessmentTemplatesCommandOutput) => void
|
|
950
|
-
): void;
|
|
951
|
-
public listAssessmentTemplates(
|
|
952
|
-
args: ListAssessmentTemplatesCommandInput,
|
|
953
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAssessmentTemplatesCommandOutput) => void),
|
|
954
|
-
cb?: (err: any, data?: ListAssessmentTemplatesCommandOutput) => void
|
|
955
|
-
): Promise<ListAssessmentTemplatesCommandOutput> | void {
|
|
956
|
-
const command = new ListAssessmentTemplatesCommand(args);
|
|
957
|
-
if (typeof optionsOrCb === "function") {
|
|
958
|
-
this.send(command, optionsOrCb);
|
|
959
|
-
} else if (typeof cb === "function") {
|
|
960
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
961
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
962
|
-
} else {
|
|
963
|
-
return this.send(command, optionsOrCb);
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
/**
|
|
968
|
-
* <p>Lists all the event subscriptions for the assessment template that is specified by
|
|
969
|
-
* the ARN of the assessment template. For more information, see <a>SubscribeToEvent</a> and <a>UnsubscribeFromEvent</a>.</p>
|
|
970
|
-
*/
|
|
971
|
-
public listEventSubscriptions(
|
|
972
|
-
args: ListEventSubscriptionsCommandInput,
|
|
973
|
-
options?: __HttpHandlerOptions
|
|
974
|
-
): Promise<ListEventSubscriptionsCommandOutput>;
|
|
975
|
-
public listEventSubscriptions(
|
|
976
|
-
args: ListEventSubscriptionsCommandInput,
|
|
977
|
-
cb: (err: any, data?: ListEventSubscriptionsCommandOutput) => void
|
|
978
|
-
): void;
|
|
979
|
-
public listEventSubscriptions(
|
|
980
|
-
args: ListEventSubscriptionsCommandInput,
|
|
981
|
-
options: __HttpHandlerOptions,
|
|
982
|
-
cb: (err: any, data?: ListEventSubscriptionsCommandOutput) => void
|
|
983
|
-
): void;
|
|
984
|
-
public listEventSubscriptions(
|
|
985
|
-
args: ListEventSubscriptionsCommandInput,
|
|
986
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEventSubscriptionsCommandOutput) => void),
|
|
987
|
-
cb?: (err: any, data?: ListEventSubscriptionsCommandOutput) => void
|
|
988
|
-
): Promise<ListEventSubscriptionsCommandOutput> | void {
|
|
989
|
-
const command = new ListEventSubscriptionsCommand(args);
|
|
990
|
-
if (typeof optionsOrCb === "function") {
|
|
991
|
-
this.send(command, optionsOrCb);
|
|
992
|
-
} else if (typeof cb === "function") {
|
|
993
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
994
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
995
|
-
} else {
|
|
996
|
-
return this.send(command, optionsOrCb);
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
/**
|
|
1001
|
-
* <p>List exclusions that are generated by the assessment run.</p>
|
|
1002
|
-
*/
|
|
1003
|
-
public listExclusions(
|
|
1004
|
-
args: ListExclusionsCommandInput,
|
|
1005
|
-
options?: __HttpHandlerOptions
|
|
1006
|
-
): Promise<ListExclusionsCommandOutput>;
|
|
1007
|
-
public listExclusions(
|
|
1008
|
-
args: ListExclusionsCommandInput,
|
|
1009
|
-
cb: (err: any, data?: ListExclusionsCommandOutput) => void
|
|
1010
|
-
): void;
|
|
1011
|
-
public listExclusions(
|
|
1012
|
-
args: ListExclusionsCommandInput,
|
|
1013
|
-
options: __HttpHandlerOptions,
|
|
1014
|
-
cb: (err: any, data?: ListExclusionsCommandOutput) => void
|
|
1015
|
-
): void;
|
|
1016
|
-
public listExclusions(
|
|
1017
|
-
args: ListExclusionsCommandInput,
|
|
1018
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListExclusionsCommandOutput) => void),
|
|
1019
|
-
cb?: (err: any, data?: ListExclusionsCommandOutput) => void
|
|
1020
|
-
): Promise<ListExclusionsCommandOutput> | void {
|
|
1021
|
-
const command = new ListExclusionsCommand(args);
|
|
1022
|
-
if (typeof optionsOrCb === "function") {
|
|
1023
|
-
this.send(command, optionsOrCb);
|
|
1024
|
-
} else if (typeof cb === "function") {
|
|
1025
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1026
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1027
|
-
} else {
|
|
1028
|
-
return this.send(command, optionsOrCb);
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
/**
|
|
1033
|
-
* <p>Lists findings that are generated by the assessment runs that are specified by the
|
|
1034
|
-
* ARNs of the assessment runs.</p>
|
|
1035
|
-
*/
|
|
1036
|
-
public listFindings(
|
|
1037
|
-
args: ListFindingsCommandInput,
|
|
1038
|
-
options?: __HttpHandlerOptions
|
|
1039
|
-
): Promise<ListFindingsCommandOutput>;
|
|
1040
|
-
public listFindings(args: ListFindingsCommandInput, cb: (err: any, data?: ListFindingsCommandOutput) => void): void;
|
|
1041
|
-
public listFindings(
|
|
1042
|
-
args: ListFindingsCommandInput,
|
|
1043
|
-
options: __HttpHandlerOptions,
|
|
1044
|
-
cb: (err: any, data?: ListFindingsCommandOutput) => void
|
|
1045
|
-
): void;
|
|
1046
|
-
public listFindings(
|
|
1047
|
-
args: ListFindingsCommandInput,
|
|
1048
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListFindingsCommandOutput) => void),
|
|
1049
|
-
cb?: (err: any, data?: ListFindingsCommandOutput) => void
|
|
1050
|
-
): Promise<ListFindingsCommandOutput> | void {
|
|
1051
|
-
const command = new ListFindingsCommand(args);
|
|
1052
|
-
if (typeof optionsOrCb === "function") {
|
|
1053
|
-
this.send(command, optionsOrCb);
|
|
1054
|
-
} else if (typeof cb === "function") {
|
|
1055
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1056
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1057
|
-
} else {
|
|
1058
|
-
return this.send(command, optionsOrCb);
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
/**
|
|
1063
|
-
* <p>Lists all available Amazon Inspector rules packages.</p>
|
|
1064
|
-
*/
|
|
1065
|
-
public listRulesPackages(
|
|
1066
|
-
args: ListRulesPackagesCommandInput,
|
|
1067
|
-
options?: __HttpHandlerOptions
|
|
1068
|
-
): Promise<ListRulesPackagesCommandOutput>;
|
|
1069
|
-
public listRulesPackages(
|
|
1070
|
-
args: ListRulesPackagesCommandInput,
|
|
1071
|
-
cb: (err: any, data?: ListRulesPackagesCommandOutput) => void
|
|
1072
|
-
): void;
|
|
1073
|
-
public listRulesPackages(
|
|
1074
|
-
args: ListRulesPackagesCommandInput,
|
|
1075
|
-
options: __HttpHandlerOptions,
|
|
1076
|
-
cb: (err: any, data?: ListRulesPackagesCommandOutput) => void
|
|
1077
|
-
): void;
|
|
1078
|
-
public listRulesPackages(
|
|
1079
|
-
args: ListRulesPackagesCommandInput,
|
|
1080
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListRulesPackagesCommandOutput) => void),
|
|
1081
|
-
cb?: (err: any, data?: ListRulesPackagesCommandOutput) => void
|
|
1082
|
-
): Promise<ListRulesPackagesCommandOutput> | void {
|
|
1083
|
-
const command = new ListRulesPackagesCommand(args);
|
|
1084
|
-
if (typeof optionsOrCb === "function") {
|
|
1085
|
-
this.send(command, optionsOrCb);
|
|
1086
|
-
} else if (typeof cb === "function") {
|
|
1087
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1088
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1089
|
-
} else {
|
|
1090
|
-
return this.send(command, optionsOrCb);
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
/**
|
|
1095
|
-
* <p>Lists all tags associated with an assessment template.</p>
|
|
1096
|
-
*/
|
|
1097
|
-
public listTagsForResource(
|
|
1098
|
-
args: ListTagsForResourceCommandInput,
|
|
1099
|
-
options?: __HttpHandlerOptions
|
|
1100
|
-
): Promise<ListTagsForResourceCommandOutput>;
|
|
1101
|
-
public listTagsForResource(
|
|
1102
|
-
args: ListTagsForResourceCommandInput,
|
|
1103
|
-
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
1104
|
-
): void;
|
|
1105
|
-
public listTagsForResource(
|
|
1106
|
-
args: ListTagsForResourceCommandInput,
|
|
1107
|
-
options: __HttpHandlerOptions,
|
|
1108
|
-
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
1109
|
-
): void;
|
|
1110
|
-
public listTagsForResource(
|
|
1111
|
-
args: ListTagsForResourceCommandInput,
|
|
1112
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
|
|
1113
|
-
cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
1114
|
-
): Promise<ListTagsForResourceCommandOutput> | void {
|
|
1115
|
-
const command = new ListTagsForResourceCommand(args);
|
|
1116
|
-
if (typeof optionsOrCb === "function") {
|
|
1117
|
-
this.send(command, optionsOrCb);
|
|
1118
|
-
} else if (typeof cb === "function") {
|
|
1119
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1120
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1121
|
-
} else {
|
|
1122
|
-
return this.send(command, optionsOrCb);
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
/**
|
|
1127
|
-
* <p>Previews the agents installed on the EC2 instances that are part of the specified
|
|
1128
|
-
* assessment target.</p>
|
|
1129
|
-
*/
|
|
1130
|
-
public previewAgents(
|
|
1131
|
-
args: PreviewAgentsCommandInput,
|
|
1132
|
-
options?: __HttpHandlerOptions
|
|
1133
|
-
): Promise<PreviewAgentsCommandOutput>;
|
|
1134
|
-
public previewAgents(
|
|
1135
|
-
args: PreviewAgentsCommandInput,
|
|
1136
|
-
cb: (err: any, data?: PreviewAgentsCommandOutput) => void
|
|
1137
|
-
): void;
|
|
1138
|
-
public previewAgents(
|
|
1139
|
-
args: PreviewAgentsCommandInput,
|
|
1140
|
-
options: __HttpHandlerOptions,
|
|
1141
|
-
cb: (err: any, data?: PreviewAgentsCommandOutput) => void
|
|
1142
|
-
): void;
|
|
1143
|
-
public previewAgents(
|
|
1144
|
-
args: PreviewAgentsCommandInput,
|
|
1145
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PreviewAgentsCommandOutput) => void),
|
|
1146
|
-
cb?: (err: any, data?: PreviewAgentsCommandOutput) => void
|
|
1147
|
-
): Promise<PreviewAgentsCommandOutput> | void {
|
|
1148
|
-
const command = new PreviewAgentsCommand(args);
|
|
1149
|
-
if (typeof optionsOrCb === "function") {
|
|
1150
|
-
this.send(command, optionsOrCb);
|
|
1151
|
-
} else if (typeof cb === "function") {
|
|
1152
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1153
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1154
|
-
} else {
|
|
1155
|
-
return this.send(command, optionsOrCb);
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
/**
|
|
1160
|
-
* <p>Registers the IAM role that grants Amazon Inspector access to AWS Services needed to
|
|
1161
|
-
* perform security assessments.</p>
|
|
1162
|
-
*/
|
|
1163
|
-
public registerCrossAccountAccessRole(
|
|
1164
|
-
args: RegisterCrossAccountAccessRoleCommandInput,
|
|
1165
|
-
options?: __HttpHandlerOptions
|
|
1166
|
-
): Promise<RegisterCrossAccountAccessRoleCommandOutput>;
|
|
1167
|
-
public registerCrossAccountAccessRole(
|
|
1168
|
-
args: RegisterCrossAccountAccessRoleCommandInput,
|
|
1169
|
-
cb: (err: any, data?: RegisterCrossAccountAccessRoleCommandOutput) => void
|
|
1170
|
-
): void;
|
|
1171
|
-
public registerCrossAccountAccessRole(
|
|
1172
|
-
args: RegisterCrossAccountAccessRoleCommandInput,
|
|
1173
|
-
options: __HttpHandlerOptions,
|
|
1174
|
-
cb: (err: any, data?: RegisterCrossAccountAccessRoleCommandOutput) => void
|
|
1175
|
-
): void;
|
|
1176
|
-
public registerCrossAccountAccessRole(
|
|
1177
|
-
args: RegisterCrossAccountAccessRoleCommandInput,
|
|
1178
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RegisterCrossAccountAccessRoleCommandOutput) => void),
|
|
1179
|
-
cb?: (err: any, data?: RegisterCrossAccountAccessRoleCommandOutput) => void
|
|
1180
|
-
): Promise<RegisterCrossAccountAccessRoleCommandOutput> | void {
|
|
1181
|
-
const command = new RegisterCrossAccountAccessRoleCommand(args);
|
|
1182
|
-
if (typeof optionsOrCb === "function") {
|
|
1183
|
-
this.send(command, optionsOrCb);
|
|
1184
|
-
} else if (typeof cb === "function") {
|
|
1185
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1186
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1187
|
-
} else {
|
|
1188
|
-
return this.send(command, optionsOrCb);
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
/**
|
|
1193
|
-
* <p>Removes entire attributes (key and value pairs) from the findings that are specified
|
|
1194
|
-
* by the ARNs of the findings where an attribute with the specified key exists.</p>
|
|
1195
|
-
*/
|
|
1196
|
-
public removeAttributesFromFindings(
|
|
1197
|
-
args: RemoveAttributesFromFindingsCommandInput,
|
|
1198
|
-
options?: __HttpHandlerOptions
|
|
1199
|
-
): Promise<RemoveAttributesFromFindingsCommandOutput>;
|
|
1200
|
-
public removeAttributesFromFindings(
|
|
1201
|
-
args: RemoveAttributesFromFindingsCommandInput,
|
|
1202
|
-
cb: (err: any, data?: RemoveAttributesFromFindingsCommandOutput) => void
|
|
1203
|
-
): void;
|
|
1204
|
-
public removeAttributesFromFindings(
|
|
1205
|
-
args: RemoveAttributesFromFindingsCommandInput,
|
|
1206
|
-
options: __HttpHandlerOptions,
|
|
1207
|
-
cb: (err: any, data?: RemoveAttributesFromFindingsCommandOutput) => void
|
|
1208
|
-
): void;
|
|
1209
|
-
public removeAttributesFromFindings(
|
|
1210
|
-
args: RemoveAttributesFromFindingsCommandInput,
|
|
1211
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RemoveAttributesFromFindingsCommandOutput) => void),
|
|
1212
|
-
cb?: (err: any, data?: RemoveAttributesFromFindingsCommandOutput) => void
|
|
1213
|
-
): Promise<RemoveAttributesFromFindingsCommandOutput> | void {
|
|
1214
|
-
const command = new RemoveAttributesFromFindingsCommand(args);
|
|
1215
|
-
if (typeof optionsOrCb === "function") {
|
|
1216
|
-
this.send(command, optionsOrCb);
|
|
1217
|
-
} else if (typeof cb === "function") {
|
|
1218
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1219
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1220
|
-
} else {
|
|
1221
|
-
return this.send(command, optionsOrCb);
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
* <p>Sets tags (key and value pairs) to the assessment template that is specified by the
|
|
1227
|
-
* ARN of the assessment template.</p>
|
|
1228
|
-
*/
|
|
1229
|
-
public setTagsForResource(
|
|
1230
|
-
args: SetTagsForResourceCommandInput,
|
|
1231
|
-
options?: __HttpHandlerOptions
|
|
1232
|
-
): Promise<SetTagsForResourceCommandOutput>;
|
|
1233
|
-
public setTagsForResource(
|
|
1234
|
-
args: SetTagsForResourceCommandInput,
|
|
1235
|
-
cb: (err: any, data?: SetTagsForResourceCommandOutput) => void
|
|
1236
|
-
): void;
|
|
1237
|
-
public setTagsForResource(
|
|
1238
|
-
args: SetTagsForResourceCommandInput,
|
|
1239
|
-
options: __HttpHandlerOptions,
|
|
1240
|
-
cb: (err: any, data?: SetTagsForResourceCommandOutput) => void
|
|
1241
|
-
): void;
|
|
1242
|
-
public setTagsForResource(
|
|
1243
|
-
args: SetTagsForResourceCommandInput,
|
|
1244
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SetTagsForResourceCommandOutput) => void),
|
|
1245
|
-
cb?: (err: any, data?: SetTagsForResourceCommandOutput) => void
|
|
1246
|
-
): Promise<SetTagsForResourceCommandOutput> | void {
|
|
1247
|
-
const command = new SetTagsForResourceCommand(args);
|
|
1248
|
-
if (typeof optionsOrCb === "function") {
|
|
1249
|
-
this.send(command, optionsOrCb);
|
|
1250
|
-
} else if (typeof cb === "function") {
|
|
1251
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1252
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1253
|
-
} else {
|
|
1254
|
-
return this.send(command, optionsOrCb);
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
/**
|
|
1259
|
-
* <p>Starts the assessment run specified by the ARN of the assessment template. For this
|
|
1260
|
-
* API to function properly, you must not exceed the limit of running up to 500 concurrent
|
|
1261
|
-
* agents per AWS account.</p>
|
|
1262
|
-
*/
|
|
1263
|
-
public startAssessmentRun(
|
|
1264
|
-
args: StartAssessmentRunCommandInput,
|
|
1265
|
-
options?: __HttpHandlerOptions
|
|
1266
|
-
): Promise<StartAssessmentRunCommandOutput>;
|
|
1267
|
-
public startAssessmentRun(
|
|
1268
|
-
args: StartAssessmentRunCommandInput,
|
|
1269
|
-
cb: (err: any, data?: StartAssessmentRunCommandOutput) => void
|
|
1270
|
-
): void;
|
|
1271
|
-
public startAssessmentRun(
|
|
1272
|
-
args: StartAssessmentRunCommandInput,
|
|
1273
|
-
options: __HttpHandlerOptions,
|
|
1274
|
-
cb: (err: any, data?: StartAssessmentRunCommandOutput) => void
|
|
1275
|
-
): void;
|
|
1276
|
-
public startAssessmentRun(
|
|
1277
|
-
args: StartAssessmentRunCommandInput,
|
|
1278
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartAssessmentRunCommandOutput) => void),
|
|
1279
|
-
cb?: (err: any, data?: StartAssessmentRunCommandOutput) => void
|
|
1280
|
-
): Promise<StartAssessmentRunCommandOutput> | void {
|
|
1281
|
-
const command = new StartAssessmentRunCommand(args);
|
|
1282
|
-
if (typeof optionsOrCb === "function") {
|
|
1283
|
-
this.send(command, optionsOrCb);
|
|
1284
|
-
} else if (typeof cb === "function") {
|
|
1285
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1286
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1287
|
-
} else {
|
|
1288
|
-
return this.send(command, optionsOrCb);
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
|
|
1292
|
-
/**
|
|
1293
|
-
* <p>Stops the assessment run that is specified by the ARN of the assessment
|
|
1294
|
-
* run.</p>
|
|
1295
|
-
*/
|
|
1296
|
-
public stopAssessmentRun(
|
|
1297
|
-
args: StopAssessmentRunCommandInput,
|
|
1298
|
-
options?: __HttpHandlerOptions
|
|
1299
|
-
): Promise<StopAssessmentRunCommandOutput>;
|
|
1300
|
-
public stopAssessmentRun(
|
|
1301
|
-
args: StopAssessmentRunCommandInput,
|
|
1302
|
-
cb: (err: any, data?: StopAssessmentRunCommandOutput) => void
|
|
1303
|
-
): void;
|
|
1304
|
-
public stopAssessmentRun(
|
|
1305
|
-
args: StopAssessmentRunCommandInput,
|
|
1306
|
-
options: __HttpHandlerOptions,
|
|
1307
|
-
cb: (err: any, data?: StopAssessmentRunCommandOutput) => void
|
|
1308
|
-
): void;
|
|
1309
|
-
public stopAssessmentRun(
|
|
1310
|
-
args: StopAssessmentRunCommandInput,
|
|
1311
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopAssessmentRunCommandOutput) => void),
|
|
1312
|
-
cb?: (err: any, data?: StopAssessmentRunCommandOutput) => void
|
|
1313
|
-
): Promise<StopAssessmentRunCommandOutput> | void {
|
|
1314
|
-
const command = new StopAssessmentRunCommand(args);
|
|
1315
|
-
if (typeof optionsOrCb === "function") {
|
|
1316
|
-
this.send(command, optionsOrCb);
|
|
1317
|
-
} else if (typeof cb === "function") {
|
|
1318
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1319
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1320
|
-
} else {
|
|
1321
|
-
return this.send(command, optionsOrCb);
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
/**
|
|
1326
|
-
* <p>Enables the process of sending Amazon Simple Notification Service (SNS) notifications
|
|
1327
|
-
* about a specified event to a specified SNS topic.</p>
|
|
1328
|
-
*/
|
|
1329
|
-
public subscribeToEvent(
|
|
1330
|
-
args: SubscribeToEventCommandInput,
|
|
1331
|
-
options?: __HttpHandlerOptions
|
|
1332
|
-
): Promise<SubscribeToEventCommandOutput>;
|
|
1333
|
-
public subscribeToEvent(
|
|
1334
|
-
args: SubscribeToEventCommandInput,
|
|
1335
|
-
cb: (err: any, data?: SubscribeToEventCommandOutput) => void
|
|
1336
|
-
): void;
|
|
1337
|
-
public subscribeToEvent(
|
|
1338
|
-
args: SubscribeToEventCommandInput,
|
|
1339
|
-
options: __HttpHandlerOptions,
|
|
1340
|
-
cb: (err: any, data?: SubscribeToEventCommandOutput) => void
|
|
1341
|
-
): void;
|
|
1342
|
-
public subscribeToEvent(
|
|
1343
|
-
args: SubscribeToEventCommandInput,
|
|
1344
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SubscribeToEventCommandOutput) => void),
|
|
1345
|
-
cb?: (err: any, data?: SubscribeToEventCommandOutput) => void
|
|
1346
|
-
): Promise<SubscribeToEventCommandOutput> | void {
|
|
1347
|
-
const command = new SubscribeToEventCommand(args);
|
|
1348
|
-
if (typeof optionsOrCb === "function") {
|
|
1349
|
-
this.send(command, optionsOrCb);
|
|
1350
|
-
} else if (typeof cb === "function") {
|
|
1351
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1352
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1353
|
-
} else {
|
|
1354
|
-
return this.send(command, optionsOrCb);
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
/**
|
|
1359
|
-
* <p>Disables the process of sending Amazon Simple Notification Service (SNS)
|
|
1360
|
-
* notifications about a specified event to a specified SNS topic.</p>
|
|
1361
|
-
*/
|
|
1362
|
-
public unsubscribeFromEvent(
|
|
1363
|
-
args: UnsubscribeFromEventCommandInput,
|
|
1364
|
-
options?: __HttpHandlerOptions
|
|
1365
|
-
): Promise<UnsubscribeFromEventCommandOutput>;
|
|
1366
|
-
public unsubscribeFromEvent(
|
|
1367
|
-
args: UnsubscribeFromEventCommandInput,
|
|
1368
|
-
cb: (err: any, data?: UnsubscribeFromEventCommandOutput) => void
|
|
1369
|
-
): void;
|
|
1370
|
-
public unsubscribeFromEvent(
|
|
1371
|
-
args: UnsubscribeFromEventCommandInput,
|
|
1372
|
-
options: __HttpHandlerOptions,
|
|
1373
|
-
cb: (err: any, data?: UnsubscribeFromEventCommandOutput) => void
|
|
1374
|
-
): void;
|
|
1375
|
-
public unsubscribeFromEvent(
|
|
1376
|
-
args: UnsubscribeFromEventCommandInput,
|
|
1377
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UnsubscribeFromEventCommandOutput) => void),
|
|
1378
|
-
cb?: (err: any, data?: UnsubscribeFromEventCommandOutput) => void
|
|
1379
|
-
): Promise<UnsubscribeFromEventCommandOutput> | void {
|
|
1380
|
-
const command = new UnsubscribeFromEventCommand(args);
|
|
1381
|
-
if (typeof optionsOrCb === "function") {
|
|
1382
|
-
this.send(command, optionsOrCb);
|
|
1383
|
-
} else if (typeof cb === "function") {
|
|
1384
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1385
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1386
|
-
} else {
|
|
1387
|
-
return this.send(command, optionsOrCb);
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
/**
|
|
1392
|
-
* <p>Updates the assessment target that is specified by the ARN of the assessment
|
|
1393
|
-
* target.</p>
|
|
1394
|
-
* <p>If resourceGroupArn is not specified, all EC2 instances in the current AWS account
|
|
1395
|
-
* and region are included in the assessment target.</p>
|
|
1396
|
-
*/
|
|
1397
|
-
public updateAssessmentTarget(
|
|
1398
|
-
args: UpdateAssessmentTargetCommandInput,
|
|
1399
|
-
options?: __HttpHandlerOptions
|
|
1400
|
-
): Promise<UpdateAssessmentTargetCommandOutput>;
|
|
1401
|
-
public updateAssessmentTarget(
|
|
1402
|
-
args: UpdateAssessmentTargetCommandInput,
|
|
1403
|
-
cb: (err: any, data?: UpdateAssessmentTargetCommandOutput) => void
|
|
1404
|
-
): void;
|
|
1405
|
-
public updateAssessmentTarget(
|
|
1406
|
-
args: UpdateAssessmentTargetCommandInput,
|
|
1407
|
-
options: __HttpHandlerOptions,
|
|
1408
|
-
cb: (err: any, data?: UpdateAssessmentTargetCommandOutput) => void
|
|
1409
|
-
): void;
|
|
1410
|
-
public updateAssessmentTarget(
|
|
1411
|
-
args: UpdateAssessmentTargetCommandInput,
|
|
1412
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateAssessmentTargetCommandOutput) => void),
|
|
1413
|
-
cb?: (err: any, data?: UpdateAssessmentTargetCommandOutput) => void
|
|
1414
|
-
): Promise<UpdateAssessmentTargetCommandOutput> | void {
|
|
1415
|
-
const command = new UpdateAssessmentTargetCommand(args);
|
|
1416
|
-
if (typeof optionsOrCb === "function") {
|
|
1417
|
-
this.send(command, optionsOrCb);
|
|
1418
|
-
} else if (typeof cb === "function") {
|
|
1419
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1420
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1421
|
-
} else {
|
|
1422
|
-
return this.send(command, optionsOrCb);
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
}
|