@aws-sdk/client-inspector2 3.44.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 +11 -0
- package/LICENSE +201 -0
- package/README.md +204 -0
- package/dist-cjs/Inspector2.js +457 -0
- package/dist-cjs/Inspector2Client.js +35 -0
- package/dist-cjs/commands/AssociateMemberCommand.js +36 -0
- package/dist-cjs/commands/BatchGetAccountStatusCommand.js +36 -0
- package/dist-cjs/commands/BatchGetFreeTrialInfoCommand.js +36 -0
- package/dist-cjs/commands/CancelFindingsReportCommand.js +36 -0
- package/dist-cjs/commands/CreateFilterCommand.js +36 -0
- package/dist-cjs/commands/CreateFindingsReportCommand.js +36 -0
- package/dist-cjs/commands/DeleteFilterCommand.js +36 -0
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DisableCommand.js +36 -0
- package/dist-cjs/commands/DisableDelegatedAdminAccountCommand.js +36 -0
- package/dist-cjs/commands/DisassociateMemberCommand.js +36 -0
- package/dist-cjs/commands/EnableCommand.js +36 -0
- package/dist-cjs/commands/EnableDelegatedAdminAccountCommand.js +36 -0
- package/dist-cjs/commands/GetDelegatedAdminAccountCommand.js +36 -0
- package/dist-cjs/commands/GetFindingsReportStatusCommand.js +36 -0
- package/dist-cjs/commands/GetMemberCommand.js +36 -0
- package/dist-cjs/commands/ListAccountPermissionsCommand.js +36 -0
- package/dist-cjs/commands/ListCoverageCommand.js +36 -0
- package/dist-cjs/commands/ListCoverageStatisticsCommand.js +36 -0
- package/dist-cjs/commands/ListDelegatedAdminAccountsCommand.js +36 -0
- package/dist-cjs/commands/ListFiltersCommand.js +36 -0
- package/dist-cjs/commands/ListFindingAggregationsCommand.js +36 -0
- package/dist-cjs/commands/ListFindingsCommand.js +36 -0
- package/dist-cjs/commands/ListMembersCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/ListUsageTotalsCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateFilterCommand.js +36 -0
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +33 -0
- package/dist-cjs/endpoints.js +130 -0
- package/dist-cjs/index.js +8 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +1287 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAccountPermissionsPaginator.js +35 -0
- package/dist-cjs/pagination/ListCoveragePaginator.js +35 -0
- package/dist-cjs/pagination/ListCoverageStatisticsPaginator.js +34 -0
- package/dist-cjs/pagination/ListDelegatedAdminAccountsPaginator.js +35 -0
- package/dist-cjs/pagination/ListFiltersPaginator.js +35 -0
- package/dist-cjs/pagination/ListFindingAggregationsPaginator.js +35 -0
- package/dist-cjs/pagination/ListFindingsPaginator.js +35 -0
- package/dist-cjs/pagination/ListMembersPaginator.js +35 -0
- package/dist-cjs/pagination/ListUsageTotalsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +13 -0
- package/dist-cjs/protocols/Aws_restJson1.js +4893 -0
- package/dist-cjs/runtimeConfig.browser.js +40 -0
- package/dist-cjs/runtimeConfig.js +44 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/Inspector2.js +460 -0
- package/dist-es/Inspector2Client.js +37 -0
- package/dist-es/commands/AssociateMemberCommand.js +39 -0
- package/dist-es/commands/BatchGetAccountStatusCommand.js +39 -0
- package/dist-es/commands/BatchGetFreeTrialInfoCommand.js +39 -0
- package/dist-es/commands/CancelFindingsReportCommand.js +39 -0
- package/dist-es/commands/CreateFilterCommand.js +39 -0
- package/dist-es/commands/CreateFindingsReportCommand.js +39 -0
- package/dist-es/commands/DeleteFilterCommand.js +39 -0
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +39 -0
- package/dist-es/commands/DisableCommand.js +39 -0
- package/dist-es/commands/DisableDelegatedAdminAccountCommand.js +39 -0
- package/dist-es/commands/DisassociateMemberCommand.js +39 -0
- package/dist-es/commands/EnableCommand.js +39 -0
- package/dist-es/commands/EnableDelegatedAdminAccountCommand.js +39 -0
- package/dist-es/commands/GetDelegatedAdminAccountCommand.js +39 -0
- package/dist-es/commands/GetFindingsReportStatusCommand.js +39 -0
- package/dist-es/commands/GetMemberCommand.js +39 -0
- package/dist-es/commands/ListAccountPermissionsCommand.js +39 -0
- package/dist-es/commands/ListCoverageCommand.js +39 -0
- package/dist-es/commands/ListCoverageStatisticsCommand.js +39 -0
- package/dist-es/commands/ListDelegatedAdminAccountsCommand.js +39 -0
- package/dist-es/commands/ListFiltersCommand.js +39 -0
- package/dist-es/commands/ListFindingAggregationsCommand.js +39 -0
- package/dist-es/commands/ListFindingsCommand.js +39 -0
- package/dist-es/commands/ListMembersCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/ListUsageTotalsCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateFilterCommand.js +39 -0
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +30 -0
- package/dist-es/endpoints.js +126 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +1000 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAccountPermissionsPaginator.js +74 -0
- package/dist-es/pagination/ListCoveragePaginator.js +74 -0
- package/dist-es/pagination/ListCoverageStatisticsPaginator.js +73 -0
- package/dist-es/pagination/ListDelegatedAdminAccountsPaginator.js +74 -0
- package/dist-es/pagination/ListFiltersPaginator.js +74 -0
- package/dist-es/pagination/ListFindingAggregationsPaginator.js +74 -0
- package/dist-es/pagination/ListFindingsPaginator.js +74 -0
- package/dist-es/pagination/ListMembersPaginator.js +74 -0
- package/dist-es/pagination/ListUsageTotalsPaginator.js +74 -0
- package/dist-es/pagination/index.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +5265 -0
- package/dist-es/runtimeConfig.browser.js +17 -0
- package/dist-es/runtimeConfig.js +21 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/Inspector2.d.ts +222 -0
- package/dist-types/Inspector2Client.d.ts +171 -0
- package/dist-types/commands/AssociateMemberCommand.d.ts +35 -0
- package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +35 -0
- package/dist-types/commands/BatchGetFreeTrialInfoCommand.d.ts +35 -0
- package/dist-types/commands/CancelFindingsReportCommand.d.ts +35 -0
- package/dist-types/commands/CreateFilterCommand.d.ts +35 -0
- package/dist-types/commands/CreateFindingsReportCommand.d.ts +35 -0
- package/dist-types/commands/DeleteFilterCommand.d.ts +35 -0
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/DisableCommand.d.ts +36 -0
- package/dist-types/commands/DisableDelegatedAdminAccountCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateMemberCommand.d.ts +35 -0
- package/dist-types/commands/EnableCommand.d.ts +35 -0
- package/dist-types/commands/EnableDelegatedAdminAccountCommand.d.ts +35 -0
- package/dist-types/commands/GetDelegatedAdminAccountCommand.d.ts +36 -0
- package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +35 -0
- package/dist-types/commands/GetMemberCommand.d.ts +35 -0
- package/dist-types/commands/ListAccountPermissionsCommand.d.ts +35 -0
- package/dist-types/commands/ListCoverageCommand.d.ts +35 -0
- package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +35 -0
- package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +36 -0
- package/dist-types/commands/ListFiltersCommand.d.ts +35 -0
- package/dist-types/commands/ListFindingAggregationsCommand.d.ts +35 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +35 -0
- package/dist-types/commands/ListMembersCommand.d.ts +36 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/ListUsageTotalsCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateFilterCommand.d.ts +35 -0
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +30 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +3837 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListAccountPermissionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCoveragePaginator.d.ts +4 -0
- package/dist-types/pagination/ListCoverageStatisticsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListDelegatedAdminAccountsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListFiltersPaginator.d.ts +4 -0
- package/dist-types/pagination/ListFindingAggregationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListFindingsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMembersPaginator.d.ts +4 -0
- package/dist-types/pagination/ListUsageTotalsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +10 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +92 -0
- package/dist-types/runtimeConfig.browser.d.ts +39 -0
- package/dist-types/runtimeConfig.d.ts +39 -0
- package/dist-types/runtimeConfig.native.d.ts +38 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/Inspector2.d.ts +155 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +101 -0
- package/dist-types/ts3.4/commands/AssociateMemberCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchGetAccountStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchGetFreeTrialInfoCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CancelFindingsReportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateFilterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateFindingsReportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteFilterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeOrganizationConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisableCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisableDelegatedAdminAccountCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateMemberCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/EnableCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/EnableDelegatedAdminAccountCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDelegatedAdminAccountCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetFindingsReportStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetMemberCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccountPermissionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCoverageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCoverageStatisticsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDelegatedAdminAccountsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListFiltersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListFindingAggregationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListUsageTotalsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateFilterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +30 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2416 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAccountPermissionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListCoveragePaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListCoverageStatisticsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListDelegatedAdminAccountsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListFiltersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListFindingAggregationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListMembersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListUsageTotalsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +10 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +92 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +96 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListFindingsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListFindingsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "Inspector2Client";
|
|
18
|
+
const commandName = "ListFindingsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListFindingsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListFindingsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1ListFindingsCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListFindingsCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListFindingsCommand = ListFindingsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListMembersCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListMembersCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "Inspector2Client";
|
|
18
|
+
const commandName = "ListMembersCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListMembersRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListMembersResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1ListMembersCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListMembersCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListMembersCommand = ListMembersCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListTagsForResourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListTagsForResourceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "Inspector2Client";
|
|
18
|
+
const commandName = "ListTagsForResourceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListTagsForResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListTagsForResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1ListTagsForResourceCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListTagsForResourceCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListUsageTotalsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListUsageTotalsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "Inspector2Client";
|
|
18
|
+
const commandName = "ListUsageTotalsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListUsageTotalsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListUsageTotalsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1ListUsageTotalsCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListUsageTotalsCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListUsageTotalsCommand = ListUsageTotalsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TagResourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class TagResourceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "Inspector2Client";
|
|
18
|
+
const commandName = "TagResourceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.TagResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.TagResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1TagResourceCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1TagResourceCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UntagResourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class UntagResourceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "Inspector2Client";
|
|
18
|
+
const commandName = "UntagResourceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UntagResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UntagResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1UntagResourceCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1UntagResourceCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateFilterCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class UpdateFilterCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "Inspector2Client";
|
|
18
|
+
const commandName = "UpdateFilterCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateFilterRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateFilterResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1UpdateFilterCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1UpdateFilterCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateFilterCommand = UpdateFilterCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateOrganizationConfigurationCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class UpdateOrganizationConfigurationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "Inspector2Client";
|
|
18
|
+
const commandName = "UpdateOrganizationConfigurationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateOrganizationConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateOrganizationConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1UpdateOrganizationConfigurationCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1UpdateOrganizationConfigurationCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateOrganizationConfigurationCommand = UpdateOrganizationConfigurationCommand;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./AssociateMemberCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./BatchGetAccountStatusCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./BatchGetFreeTrialInfoCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./CancelFindingsReportCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./CreateFilterCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./CreateFindingsReportCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DeleteFilterCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DescribeOrganizationConfigurationCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DisableCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./DisableDelegatedAdminAccountCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DisassociateMemberCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./EnableCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./EnableDelegatedAdminAccountCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./GetDelegatedAdminAccountCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./GetFindingsReportStatusCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./GetMemberCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./ListAccountPermissionsCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./ListCoverageCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./ListCoverageStatisticsCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./ListDelegatedAdminAccountsCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./ListFiltersCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./ListFindingAggregationsCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./ListFindingsCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./ListMembersCommand"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./ListUsageTotalsCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./UpdateFilterCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./UpdateOrganizationConfigurationCommand"), exports);
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultRegionInfoProvider = void 0;
|
|
4
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
|
+
const regionHash = {};
|
|
6
|
+
const partitionHash = {
|
|
7
|
+
aws: {
|
|
8
|
+
regions: [
|
|
9
|
+
"af-south-1",
|
|
10
|
+
"ap-east-1",
|
|
11
|
+
"ap-northeast-1",
|
|
12
|
+
"ap-northeast-2",
|
|
13
|
+
"ap-northeast-3",
|
|
14
|
+
"ap-south-1",
|
|
15
|
+
"ap-southeast-1",
|
|
16
|
+
"ap-southeast-2",
|
|
17
|
+
"ca-central-1",
|
|
18
|
+
"eu-central-1",
|
|
19
|
+
"eu-north-1",
|
|
20
|
+
"eu-south-1",
|
|
21
|
+
"eu-west-1",
|
|
22
|
+
"eu-west-2",
|
|
23
|
+
"eu-west-3",
|
|
24
|
+
"me-south-1",
|
|
25
|
+
"sa-east-1",
|
|
26
|
+
"us-east-1",
|
|
27
|
+
"us-east-2",
|
|
28
|
+
"us-west-1",
|
|
29
|
+
"us-west-2",
|
|
30
|
+
],
|
|
31
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
32
|
+
variants: [
|
|
33
|
+
{
|
|
34
|
+
hostname: "inspector2.{region}.amazonaws.com",
|
|
35
|
+
tags: [],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
hostname: "inspector2-fips.{region}.amazonaws.com",
|
|
39
|
+
tags: ["fips"],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
hostname: "inspector2-fips.{region}.api.aws",
|
|
43
|
+
tags: ["dualstack", "fips"],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
hostname: "inspector2.{region}.api.aws",
|
|
47
|
+
tags: ["dualstack"],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
"aws-cn": {
|
|
52
|
+
regions: ["cn-north-1", "cn-northwest-1"],
|
|
53
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
54
|
+
variants: [
|
|
55
|
+
{
|
|
56
|
+
hostname: "inspector2.{region}.amazonaws.com.cn",
|
|
57
|
+
tags: [],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
hostname: "inspector2-fips.{region}.amazonaws.com.cn",
|
|
61
|
+
tags: ["fips"],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
hostname: "inspector2-fips.{region}.api.amazonwebservices.com.cn",
|
|
65
|
+
tags: ["dualstack", "fips"],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
hostname: "inspector2.{region}.api.amazonwebservices.com.cn",
|
|
69
|
+
tags: ["dualstack"],
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
"aws-iso": {
|
|
74
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
75
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
76
|
+
variants: [
|
|
77
|
+
{
|
|
78
|
+
hostname: "inspector2.{region}.c2s.ic.gov",
|
|
79
|
+
tags: [],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
hostname: "inspector2-fips.{region}.c2s.ic.gov",
|
|
83
|
+
tags: ["fips"],
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
"aws-iso-b": {
|
|
88
|
+
regions: ["us-isob-east-1"],
|
|
89
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
90
|
+
variants: [
|
|
91
|
+
{
|
|
92
|
+
hostname: "inspector2.{region}.sc2s.sgov.gov",
|
|
93
|
+
tags: [],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
hostname: "inspector2-fips.{region}.sc2s.sgov.gov",
|
|
97
|
+
tags: ["fips"],
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
"aws-us-gov": {
|
|
102
|
+
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
103
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
104
|
+
variants: [
|
|
105
|
+
{
|
|
106
|
+
hostname: "inspector2.{region}.amazonaws.com",
|
|
107
|
+
tags: [],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
hostname: "inspector2-fips.{region}.amazonaws.com",
|
|
111
|
+
tags: ["fips"],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
hostname: "inspector2-fips.{region}.api.aws",
|
|
115
|
+
tags: ["dualstack", "fips"],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
hostname: "inspector2.{region}.api.aws",
|
|
119
|
+
tags: ["dualstack"],
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
125
|
+
...options,
|
|
126
|
+
signingService: "inspector2",
|
|
127
|
+
regionHash,
|
|
128
|
+
partitionHash,
|
|
129
|
+
});
|
|
130
|
+
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Inspector2"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Inspector2Client"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|