@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,101 +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 { RemoveAttributesFromFindingsRequest, RemoveAttributesFromFindingsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1RemoveAttributesFromFindingsCommand,
|
|
18
|
-
serializeAws_json1_1RemoveAttributesFromFindingsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface RemoveAttributesFromFindingsCommandInput extends RemoveAttributesFromFindingsRequest {}
|
|
22
|
-
export interface RemoveAttributesFromFindingsCommandOutput
|
|
23
|
-
extends RemoveAttributesFromFindingsResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Removes entire attributes (key and value pairs) from the findings that are specified
|
|
28
|
-
* by the ARNs of the findings where an attribute with the specified key exists.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { InspectorClient, RemoveAttributesFromFindingsCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
33
|
-
* // const { InspectorClient, RemoveAttributesFromFindingsCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
34
|
-
* const client = new InspectorClient(config);
|
|
35
|
-
* const command = new RemoveAttributesFromFindingsCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link RemoveAttributesFromFindingsCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link RemoveAttributesFromFindingsCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class RemoveAttributesFromFindingsCommand extends $Command<
|
|
45
|
-
RemoveAttributesFromFindingsCommandInput,
|
|
46
|
-
RemoveAttributesFromFindingsCommandOutput,
|
|
47
|
-
InspectorClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: RemoveAttributesFromFindingsCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: InspectorClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<RemoveAttributesFromFindingsCommandInput, RemoveAttributesFromFindingsCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "InspectorClient";
|
|
72
|
-
const commandName = "RemoveAttributesFromFindingsCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: RemoveAttributesFromFindingsRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: RemoveAttributesFromFindingsResponse.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: RemoveAttributesFromFindingsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1RemoveAttributesFromFindingsCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(
|
|
93
|
-
output: __HttpResponse,
|
|
94
|
-
context: __SerdeContext
|
|
95
|
-
): Promise<RemoveAttributesFromFindingsCommandOutput> {
|
|
96
|
-
return deserializeAws_json1_1RemoveAttributesFromFindingsCommand(output, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Start section: command_body_extra
|
|
100
|
-
// End section: command_body_extra
|
|
101
|
-
}
|
|
@@ -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 { SetTagsForResourceRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1SetTagsForResourceCommand,
|
|
18
|
-
serializeAws_json1_1SetTagsForResourceCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface SetTagsForResourceCommandInput extends SetTagsForResourceRequest {}
|
|
22
|
-
export interface SetTagsForResourceCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Sets tags (key and value pairs) to the assessment template that is specified by the
|
|
26
|
-
* ARN of the assessment template.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { InspectorClient, SetTagsForResourceCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
31
|
-
* // const { InspectorClient, SetTagsForResourceCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
32
|
-
* const client = new InspectorClient(config);
|
|
33
|
-
* const command = new SetTagsForResourceCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link SetTagsForResourceCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link SetTagsForResourceCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class SetTagsForResourceCommand extends $Command<
|
|
43
|
-
SetTagsForResourceCommandInput,
|
|
44
|
-
SetTagsForResourceCommandOutput,
|
|
45
|
-
InspectorClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: SetTagsForResourceCommandInput) {
|
|
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<SetTagsForResourceCommandInput, SetTagsForResourceCommandOutput> {
|
|
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 = "SetTagsForResourceCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: SetTagsForResourceRequest.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(input: SetTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1SetTagsForResourceCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SetTagsForResourceCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1SetTagsForResourceCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,97 +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 { StartAssessmentRunRequest, StartAssessmentRunResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1StartAssessmentRunCommand,
|
|
18
|
-
serializeAws_json1_1StartAssessmentRunCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface StartAssessmentRunCommandInput extends StartAssessmentRunRequest {}
|
|
22
|
-
export interface StartAssessmentRunCommandOutput extends StartAssessmentRunResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Starts the assessment run specified by the ARN of the assessment template. For this
|
|
26
|
-
* API to function properly, you must not exceed the limit of running up to 500 concurrent
|
|
27
|
-
* agents per AWS account.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { InspectorClient, StartAssessmentRunCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
32
|
-
* // const { InspectorClient, StartAssessmentRunCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
33
|
-
* const client = new InspectorClient(config);
|
|
34
|
-
* const command = new StartAssessmentRunCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link StartAssessmentRunCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link StartAssessmentRunCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class StartAssessmentRunCommand extends $Command<
|
|
44
|
-
StartAssessmentRunCommandInput,
|
|
45
|
-
StartAssessmentRunCommandOutput,
|
|
46
|
-
InspectorClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: StartAssessmentRunCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: InspectorClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<StartAssessmentRunCommandInput, StartAssessmentRunCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "InspectorClient";
|
|
71
|
-
const commandName = "StartAssessmentRunCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: StartAssessmentRunRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: StartAssessmentRunResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: StartAssessmentRunCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_json1_1StartAssessmentRunCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartAssessmentRunCommandOutput> {
|
|
92
|
-
return deserializeAws_json1_1StartAssessmentRunCommand(output, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Start section: command_body_extra
|
|
96
|
-
// End section: command_body_extra
|
|
97
|
-
}
|
|
@@ -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 { StopAssessmentRunRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1StopAssessmentRunCommand,
|
|
18
|
-
serializeAws_json1_1StopAssessmentRunCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface StopAssessmentRunCommandInput extends StopAssessmentRunRequest {}
|
|
22
|
-
export interface StopAssessmentRunCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Stops the assessment run that is specified by the ARN of the assessment
|
|
26
|
-
* run.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { InspectorClient, StopAssessmentRunCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
31
|
-
* // const { InspectorClient, StopAssessmentRunCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
32
|
-
* const client = new InspectorClient(config);
|
|
33
|
-
* const command = new StopAssessmentRunCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link StopAssessmentRunCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link StopAssessmentRunCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class StopAssessmentRunCommand extends $Command<
|
|
43
|
-
StopAssessmentRunCommandInput,
|
|
44
|
-
StopAssessmentRunCommandOutput,
|
|
45
|
-
InspectorClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: StopAssessmentRunCommandInput) {
|
|
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<StopAssessmentRunCommandInput, StopAssessmentRunCommandOutput> {
|
|
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 = "StopAssessmentRunCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: StopAssessmentRunRequest.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(input: StopAssessmentRunCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1StopAssessmentRunCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StopAssessmentRunCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1StopAssessmentRunCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -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 { SubscribeToEventRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1SubscribeToEventCommand,
|
|
18
|
-
serializeAws_json1_1SubscribeToEventCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface SubscribeToEventCommandInput extends SubscribeToEventRequest {}
|
|
22
|
-
export interface SubscribeToEventCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Enables the process of sending Amazon Simple Notification Service (SNS) notifications
|
|
26
|
-
* about a specified event to a specified SNS topic.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { InspectorClient, SubscribeToEventCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
31
|
-
* // const { InspectorClient, SubscribeToEventCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
32
|
-
* const client = new InspectorClient(config);
|
|
33
|
-
* const command = new SubscribeToEventCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link SubscribeToEventCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link SubscribeToEventCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class SubscribeToEventCommand extends $Command<
|
|
43
|
-
SubscribeToEventCommandInput,
|
|
44
|
-
SubscribeToEventCommandOutput,
|
|
45
|
-
InspectorClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: SubscribeToEventCommandInput) {
|
|
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<SubscribeToEventCommandInput, SubscribeToEventCommandOutput> {
|
|
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 = "SubscribeToEventCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: SubscribeToEventRequest.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(input: SubscribeToEventCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1SubscribeToEventCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SubscribeToEventCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1SubscribeToEventCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -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 { UnsubscribeFromEventRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1UnsubscribeFromEventCommand,
|
|
18
|
-
serializeAws_json1_1UnsubscribeFromEventCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface UnsubscribeFromEventCommandInput extends UnsubscribeFromEventRequest {}
|
|
22
|
-
export interface UnsubscribeFromEventCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Disables the process of sending Amazon Simple Notification Service (SNS)
|
|
26
|
-
* notifications about a specified event to a specified SNS topic.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { InspectorClient, UnsubscribeFromEventCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
31
|
-
* // const { InspectorClient, UnsubscribeFromEventCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
32
|
-
* const client = new InspectorClient(config);
|
|
33
|
-
* const command = new UnsubscribeFromEventCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link UnsubscribeFromEventCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link UnsubscribeFromEventCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class UnsubscribeFromEventCommand extends $Command<
|
|
43
|
-
UnsubscribeFromEventCommandInput,
|
|
44
|
-
UnsubscribeFromEventCommandOutput,
|
|
45
|
-
InspectorClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: UnsubscribeFromEventCommandInput) {
|
|
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<UnsubscribeFromEventCommandInput, UnsubscribeFromEventCommandOutput> {
|
|
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 = "UnsubscribeFromEventCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: UnsubscribeFromEventRequest.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(input: UnsubscribeFromEventCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1UnsubscribeFromEventCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UnsubscribeFromEventCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1UnsubscribeFromEventCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,98 +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 { UpdateAssessmentTargetRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1UpdateAssessmentTargetCommand,
|
|
18
|
-
serializeAws_json1_1UpdateAssessmentTargetCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface UpdateAssessmentTargetCommandInput extends UpdateAssessmentTargetRequest {}
|
|
22
|
-
export interface UpdateAssessmentTargetCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Updates the assessment target that is specified by the ARN of the assessment
|
|
26
|
-
* target.</p>
|
|
27
|
-
* <p>If resourceGroupArn is not specified, all EC2 instances in the current AWS account
|
|
28
|
-
* and region are included in the assessment target.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { InspectorClient, UpdateAssessmentTargetCommand } from "@aws-sdk/client-inspector"; // ES Modules import
|
|
33
|
-
* // const { InspectorClient, UpdateAssessmentTargetCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
|
|
34
|
-
* const client = new InspectorClient(config);
|
|
35
|
-
* const command = new UpdateAssessmentTargetCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link UpdateAssessmentTargetCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link UpdateAssessmentTargetCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class UpdateAssessmentTargetCommand extends $Command<
|
|
45
|
-
UpdateAssessmentTargetCommandInput,
|
|
46
|
-
UpdateAssessmentTargetCommandOutput,
|
|
47
|
-
InspectorClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: UpdateAssessmentTargetCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: InspectorClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<UpdateAssessmentTargetCommandInput, UpdateAssessmentTargetCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "InspectorClient";
|
|
72
|
-
const commandName = "UpdateAssessmentTargetCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: UpdateAssessmentTargetRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: UpdateAssessmentTargetCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1UpdateAssessmentTargetCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateAssessmentTargetCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_1UpdateAssessmentTargetCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|