@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
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { InspectorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InspectorClient";
|
|
15
|
-
import { ListEventSubscriptionsRequest, ListEventSubscriptionsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ListEventSubscriptionsCommand,
|
|
18
|
-
serializeAws_json1_1ListEventSubscriptionsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ListEventSubscriptionsCommandInput extends ListEventSubscriptionsRequest {}
|
|
22
|
-
export interface ListEventSubscriptionsCommandOutput extends ListEventSubscriptionsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Lists all the event subscriptions for the assessment template that is specified by
|
|
26
|
-
* the ARN of the assessment template. For more information, see <a>SubscribeToEvent</a> and <a>UnsubscribeFromEvent</a>.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { InspectorClient, ListEventSubscriptionsCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
31
|
-
* // const { InspectorClient, ListEventSubscriptionsCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
32
|
-
* const client = new InspectorClient(config);
|
|
33
|
-
* const command = new ListEventSubscriptionsCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link ListEventSubscriptionsCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link ListEventSubscriptionsCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class ListEventSubscriptionsCommand extends $Command<
|
|
43
|
-
ListEventSubscriptionsCommandInput,
|
|
44
|
-
ListEventSubscriptionsCommandOutput,
|
|
45
|
-
InspectorClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: ListEventSubscriptionsCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: InspectorClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<ListEventSubscriptionsCommandInput, ListEventSubscriptionsCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "InspectorClient";
|
|
70
|
-
const commandName = "ListEventSubscriptionsCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: ListEventSubscriptionsRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: ListEventSubscriptionsResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: ListEventSubscriptionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1ListEventSubscriptionsCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListEventSubscriptionsCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1ListEventSubscriptionsCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { InspectorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InspectorClient";
|
|
15
|
-
import { ListExclusionsRequest, ListExclusionsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ListExclusionsCommand,
|
|
18
|
-
serializeAws_json1_1ListExclusionsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ListExclusionsCommandInput extends ListExclusionsRequest {}
|
|
22
|
-
export interface ListExclusionsCommandOutput extends ListExclusionsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>List exclusions that are generated by the assessment run.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { InspectorClient, ListExclusionsCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
30
|
-
* // const { InspectorClient, ListExclusionsCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
31
|
-
* const client = new InspectorClient(config);
|
|
32
|
-
* const command = new ListExclusionsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListExclusionsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListExclusionsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListExclusionsCommand extends $Command<
|
|
42
|
-
ListExclusionsCommandInput,
|
|
43
|
-
ListExclusionsCommandOutput,
|
|
44
|
-
InspectorClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListExclusionsCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: InspectorClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListExclusionsCommandInput, ListExclusionsCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "InspectorClient";
|
|
69
|
-
const commandName = "ListExclusionsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListExclusionsRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListExclusionsResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListExclusionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1ListExclusionsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListExclusionsCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1ListExclusionsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { InspectorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InspectorClient";
|
|
15
|
-
import { ListFindingsRequest, ListFindingsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ListFindingsCommand,
|
|
18
|
-
serializeAws_json1_1ListFindingsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ListFindingsCommandInput extends ListFindingsRequest {}
|
|
22
|
-
export interface ListFindingsCommandOutput extends ListFindingsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Lists findings that are generated by the assessment runs that are specified by the
|
|
26
|
-
* ARNs of the assessment runs.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { InspectorClient, ListFindingsCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
31
|
-
* // const { InspectorClient, ListFindingsCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
32
|
-
* const client = new InspectorClient(config);
|
|
33
|
-
* const command = new ListFindingsCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link ListFindingsCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link ListFindingsCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class ListFindingsCommand extends $Command<
|
|
43
|
-
ListFindingsCommandInput,
|
|
44
|
-
ListFindingsCommandOutput,
|
|
45
|
-
InspectorClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: ListFindingsCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: InspectorClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<ListFindingsCommandInput, ListFindingsCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "InspectorClient";
|
|
70
|
-
const commandName = "ListFindingsCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: ListFindingsRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: ListFindingsResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: ListFindingsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1ListFindingsCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListFindingsCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1ListFindingsCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { InspectorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InspectorClient";
|
|
15
|
-
import { ListRulesPackagesRequest, ListRulesPackagesResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ListRulesPackagesCommand,
|
|
18
|
-
serializeAws_json1_1ListRulesPackagesCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ListRulesPackagesCommandInput extends ListRulesPackagesRequest {}
|
|
22
|
-
export interface ListRulesPackagesCommandOutput extends ListRulesPackagesResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Lists all available Amazon Inspector rules packages.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { InspectorClient, ListRulesPackagesCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
30
|
-
* // const { InspectorClient, ListRulesPackagesCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
31
|
-
* const client = new InspectorClient(config);
|
|
32
|
-
* const command = new ListRulesPackagesCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListRulesPackagesCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListRulesPackagesCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListRulesPackagesCommand extends $Command<
|
|
42
|
-
ListRulesPackagesCommandInput,
|
|
43
|
-
ListRulesPackagesCommandOutput,
|
|
44
|
-
InspectorClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListRulesPackagesCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: InspectorClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListRulesPackagesCommandInput, ListRulesPackagesCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "InspectorClient";
|
|
69
|
-
const commandName = "ListRulesPackagesCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListRulesPackagesRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListRulesPackagesResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListRulesPackagesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1ListRulesPackagesCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListRulesPackagesCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1ListRulesPackagesCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { InspectorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InspectorClient";
|
|
15
|
-
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ListTagsForResourceCommand,
|
|
18
|
-
serializeAws_json1_1ListTagsForResourceCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
|
|
22
|
-
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Lists all tags associated with an assessment template.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { InspectorClient, ListTagsForResourceCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
30
|
-
* // const { InspectorClient, ListTagsForResourceCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
31
|
-
* const client = new InspectorClient(config);
|
|
32
|
-
* const command = new ListTagsForResourceCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListTagsForResourceCommand extends $Command<
|
|
42
|
-
ListTagsForResourceCommandInput,
|
|
43
|
-
ListTagsForResourceCommandOutput,
|
|
44
|
-
InspectorClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListTagsForResourceCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: InspectorClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "InspectorClient";
|
|
69
|
-
const commandName = "ListTagsForResourceCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1ListTagsForResourceCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { InspectorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InspectorClient";
|
|
15
|
-
import { PreviewAgentsRequest, PreviewAgentsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1PreviewAgentsCommand,
|
|
18
|
-
serializeAws_json1_1PreviewAgentsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface PreviewAgentsCommandInput extends PreviewAgentsRequest {}
|
|
22
|
-
export interface PreviewAgentsCommandOutput extends PreviewAgentsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Previews the agents installed on the EC2 instances that are part of the specified
|
|
26
|
-
* assessment target.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { InspectorClient, PreviewAgentsCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
31
|
-
* // const { InspectorClient, PreviewAgentsCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
32
|
-
* const client = new InspectorClient(config);
|
|
33
|
-
* const command = new PreviewAgentsCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link PreviewAgentsCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link PreviewAgentsCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class PreviewAgentsCommand extends $Command<
|
|
43
|
-
PreviewAgentsCommandInput,
|
|
44
|
-
PreviewAgentsCommandOutput,
|
|
45
|
-
InspectorClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: PreviewAgentsCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: InspectorClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<PreviewAgentsCommandInput, PreviewAgentsCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "InspectorClient";
|
|
70
|
-
const commandName = "PreviewAgentsCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: PreviewAgentsRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: PreviewAgentsResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: PreviewAgentsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1PreviewAgentsCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PreviewAgentsCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1PreviewAgentsCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { InspectorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InspectorClient";
|
|
15
|
-
import { RegisterCrossAccountAccessRoleRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1RegisterCrossAccountAccessRoleCommand,
|
|
18
|
-
serializeAws_json1_1RegisterCrossAccountAccessRoleCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface RegisterCrossAccountAccessRoleCommandInput extends RegisterCrossAccountAccessRoleRequest {}
|
|
22
|
-
export interface RegisterCrossAccountAccessRoleCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Registers the IAM role that grants Amazon Inspector access to AWS Services needed to
|
|
26
|
-
* perform security assessments.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { InspectorClient, RegisterCrossAccountAccessRoleCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
31
|
-
* // const { InspectorClient, RegisterCrossAccountAccessRoleCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
32
|
-
* const client = new InspectorClient(config);
|
|
33
|
-
* const command = new RegisterCrossAccountAccessRoleCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link RegisterCrossAccountAccessRoleCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link RegisterCrossAccountAccessRoleCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class RegisterCrossAccountAccessRoleCommand extends $Command<
|
|
43
|
-
RegisterCrossAccountAccessRoleCommandInput,
|
|
44
|
-
RegisterCrossAccountAccessRoleCommandOutput,
|
|
45
|
-
InspectorClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: RegisterCrossAccountAccessRoleCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: InspectorClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<RegisterCrossAccountAccessRoleCommandInput, RegisterCrossAccountAccessRoleCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "InspectorClient";
|
|
70
|
-
const commandName = "RegisterCrossAccountAccessRoleCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: RegisterCrossAccountAccessRoleRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(
|
|
87
|
-
input: RegisterCrossAccountAccessRoleCommandInput,
|
|
88
|
-
context: __SerdeContext
|
|
89
|
-
): Promise<__HttpRequest> {
|
|
90
|
-
return serializeAws_json1_1RegisterCrossAccountAccessRoleCommand(input, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private deserialize(
|
|
94
|
-
output: __HttpResponse,
|
|
95
|
-
context: __SerdeContext
|
|
96
|
-
): Promise<RegisterCrossAccountAccessRoleCommandOutput> {
|
|
97
|
-
return deserializeAws_json1_1RegisterCrossAccountAccessRoleCommand(output, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Start section: command_body_extra
|
|
101
|
-
// End section: command_body_extra
|
|
102
|
-
}
|