@aws-sdk/client-securityhub 3.1144.0 → 3.1145.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/README.md +14 -0
- package/dist-cjs/index.js +343 -32
- package/dist-es/SecurityHub.js +8 -0
- package/dist-es/commands/GetRemediationsV2Command.js +4 -0
- package/dist-es/commands/ListExposuresByRemediationV2Command.js +4 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/enums.js +42 -0
- package/dist-es/pagination/GetRemediationsV2Paginator.js +4 -0
- package/dist-es/pagination/ListExposuresByRemediationV2Paginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +253 -31
- package/dist-types/SecurityHub.d.ts +29 -0
- package/dist-types/SecurityHubClient.d.ts +4 -2
- package/dist-types/commands/GetRemediationsV2Command.d.ts +218 -0
- package/dist-types/commands/GetResourcesStatisticsV2Command.d.ts +1 -2
- package/dist-types/commands/GetResourcesTrendsV2Command.d.ts +1 -2
- package/dist-types/commands/ListExposuresByRemediationV2Command.d.ts +120 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/enums.d.ts +90 -0
- package/dist-types/models/models_0.d.ts +7 -2
- package/dist-types/models/models_2.d.ts +286 -137
- package/dist-types/models/models_3.d.ts +563 -3
- package/dist-types/pagination/GetRemediationsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/ListExposuresByRemediationV2Paginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +24 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +49 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetRemediationsV2Command.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetResourcesStatisticsV2Command.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetResourcesTrendsV2Command.d.ts +1 -2
- package/dist-types/ts3.4/commands/ListExposuresByRemediationV2Command.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/enums.d.ts +49 -0
- package/dist-types/ts3.4/models/models_2.d.ts +84 -55
- package/dist-types/ts3.4/models/models_3.d.ts +134 -7
- package/dist-types/ts3.4/pagination/GetRemediationsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExposuresByRemediationV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
- package/package.json +1 -1
package/dist-es/SecurityHub.js
CHANGED
|
@@ -77,6 +77,7 @@ import { GetInvitationsCountCommand, } from "./commands/GetInvitationsCountComma
|
|
|
77
77
|
import { GetMasterAccountCommand, } from "./commands/GetMasterAccountCommand";
|
|
78
78
|
import { GetMembersCommand, } from "./commands/GetMembersCommand";
|
|
79
79
|
import { GetRecommendedPolicyV2Command, } from "./commands/GetRecommendedPolicyV2Command";
|
|
80
|
+
import { GetRemediationsV2Command, } from "./commands/GetRemediationsV2Command";
|
|
80
81
|
import { GetResourcesStatisticsV2Command, } from "./commands/GetResourcesStatisticsV2Command";
|
|
81
82
|
import { GetResourcesTrendsV2Command, } from "./commands/GetResourcesTrendsV2Command";
|
|
82
83
|
import { GetResourcesV2Command, } from "./commands/GetResourcesV2Command";
|
|
@@ -90,6 +91,7 @@ import { ListConfigurationPolicyAssociationsCommand, } from "./commands/ListConf
|
|
|
90
91
|
import { ListConnectorsCommand, } from "./commands/ListConnectorsCommand";
|
|
91
92
|
import { ListConnectorsV2Command, } from "./commands/ListConnectorsV2Command";
|
|
92
93
|
import { ListEnabledProductsForImportCommand, } from "./commands/ListEnabledProductsForImportCommand";
|
|
94
|
+
import { ListExposuresByRemediationV2Command, } from "./commands/ListExposuresByRemediationV2Command";
|
|
93
95
|
import { ListFindingAggregatorsCommand, } from "./commands/ListFindingAggregatorsCommand";
|
|
94
96
|
import { ListFreeTrialStatusesV2Command, } from "./commands/ListFreeTrialStatusesV2Command";
|
|
95
97
|
import { ListInvitationsCommand, } from "./commands/ListInvitationsCommand";
|
|
@@ -128,12 +130,14 @@ import { paginateGetFindingsTrendsV2 } from "./pagination/GetFindingsTrendsV2Pag
|
|
|
128
130
|
import { paginateGetFindingsV2 } from "./pagination/GetFindingsV2Paginator";
|
|
129
131
|
import { paginateGetInsights } from "./pagination/GetInsightsPaginator";
|
|
130
132
|
import { paginateGetRecommendedPolicyV2 } from "./pagination/GetRecommendedPolicyV2Paginator";
|
|
133
|
+
import { paginateGetRemediationsV2 } from "./pagination/GetRemediationsV2Paginator";
|
|
131
134
|
import { paginateGetResourcesTrendsV2 } from "./pagination/GetResourcesTrendsV2Paginator";
|
|
132
135
|
import { paginateGetResourcesV2 } from "./pagination/GetResourcesV2Paginator";
|
|
133
136
|
import { paginateListAggregatorsV2 } from "./pagination/ListAggregatorsV2Paginator";
|
|
134
137
|
import { paginateListConfigurationPolicies } from "./pagination/ListConfigurationPoliciesPaginator";
|
|
135
138
|
import { paginateListConfigurationPolicyAssociations } from "./pagination/ListConfigurationPolicyAssociationsPaginator";
|
|
136
139
|
import { paginateListEnabledProductsForImport } from "./pagination/ListEnabledProductsForImportPaginator";
|
|
140
|
+
import { paginateListExposuresByRemediationV2 } from "./pagination/ListExposuresByRemediationV2Paginator";
|
|
137
141
|
import { paginateListFindingAggregators } from "./pagination/ListFindingAggregatorsPaginator";
|
|
138
142
|
import { paginateListFreeTrialStatusesV2 } from "./pagination/ListFreeTrialStatusesV2Paginator";
|
|
139
143
|
import { paginateListInvitations } from "./pagination/ListInvitationsPaginator";
|
|
@@ -221,6 +225,7 @@ const commands = {
|
|
|
221
225
|
GetMasterAccountCommand,
|
|
222
226
|
GetMembersCommand,
|
|
223
227
|
GetRecommendedPolicyV2Command,
|
|
228
|
+
GetRemediationsV2Command,
|
|
224
229
|
GetResourcesStatisticsV2Command,
|
|
225
230
|
GetResourcesTrendsV2Command,
|
|
226
231
|
GetResourcesV2Command,
|
|
@@ -234,6 +239,7 @@ const commands = {
|
|
|
234
239
|
ListConnectorsCommand,
|
|
235
240
|
ListConnectorsV2Command,
|
|
236
241
|
ListEnabledProductsForImportCommand,
|
|
242
|
+
ListExposuresByRemediationV2Command,
|
|
237
243
|
ListFindingAggregatorsCommand,
|
|
238
244
|
ListFreeTrialStatusesV2Command,
|
|
239
245
|
ListInvitationsCommand,
|
|
@@ -274,12 +280,14 @@ const paginators = {
|
|
|
274
280
|
paginateGetFindingsV2,
|
|
275
281
|
paginateGetInsights,
|
|
276
282
|
paginateGetRecommendedPolicyV2,
|
|
283
|
+
paginateGetRemediationsV2,
|
|
277
284
|
paginateGetResourcesTrendsV2,
|
|
278
285
|
paginateGetResourcesV2,
|
|
279
286
|
paginateListAggregatorsV2,
|
|
280
287
|
paginateListConfigurationPolicies,
|
|
281
288
|
paginateListConfigurationPolicyAssociations,
|
|
282
289
|
paginateListEnabledProductsForImport,
|
|
290
|
+
paginateListExposuresByRemediationV2,
|
|
283
291
|
paginateListFindingAggregators,
|
|
284
292
|
paginateListFreeTrialStatusesV2,
|
|
285
293
|
paginateListInvitations,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { ListExposuresByRemediationV2$ } from "../schemas/schemas_0";
|
|
3
|
+
export class ListExposuresByRemediationV2Command extends command(_ep0, _mw0, "ListExposuresByRemediationV2", ListExposuresByRemediationV2$) {
|
|
4
|
+
}
|
|
@@ -76,6 +76,7 @@ export * from "./GetInvitationsCountCommand";
|
|
|
76
76
|
export * from "./GetMasterAccountCommand";
|
|
77
77
|
export * from "./GetMembersCommand";
|
|
78
78
|
export * from "./GetRecommendedPolicyV2Command";
|
|
79
|
+
export * from "./GetRemediationsV2Command";
|
|
79
80
|
export * from "./GetResourcesStatisticsV2Command";
|
|
80
81
|
export * from "./GetResourcesTrendsV2Command";
|
|
81
82
|
export * from "./GetResourcesV2Command";
|
|
@@ -89,6 +90,7 @@ export * from "./ListConfigurationPolicyAssociationsCommand";
|
|
|
89
90
|
export * from "./ListConnectorsCommand";
|
|
90
91
|
export * from "./ListConnectorsV2Command";
|
|
91
92
|
export * from "./ListEnabledProductsForImportCommand";
|
|
93
|
+
export * from "./ListExposuresByRemediationV2Command";
|
|
92
94
|
export * from "./ListFindingAggregatorsCommand";
|
|
93
95
|
export * from "./ListFreeTrialStatusesV2Command";
|
|
94
96
|
export * from "./ListInvitationsCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -466,6 +466,18 @@ export const DiscoveryType = {
|
|
|
466
466
|
MANAGED: "Managed",
|
|
467
467
|
SELF_HOSTED: "SelfHosted",
|
|
468
468
|
};
|
|
469
|
+
export const ExposureImpact = {
|
|
470
|
+
REDUCES: "Reduces",
|
|
471
|
+
RESOLVES: "Resolves",
|
|
472
|
+
UNCHANGED: "Unchanged",
|
|
473
|
+
};
|
|
474
|
+
export const ExposureSeverity = {
|
|
475
|
+
CRITICAL: "Critical",
|
|
476
|
+
HIGH: "High",
|
|
477
|
+
INFORMATIONAL: "Informational",
|
|
478
|
+
LOW: "Low",
|
|
479
|
+
MEDIUM: "Medium",
|
|
480
|
+
};
|
|
469
481
|
export const FindingHistoryUpdateSourceType = {
|
|
470
482
|
BATCH_IMPORT_FINDINGS: "BATCH_IMPORT_FINDINGS",
|
|
471
483
|
BATCH_UPDATE_FINDINGS: "BATCH_UPDATE_FINDINGS",
|
|
@@ -536,6 +548,36 @@ export const RecommendationStatus = {
|
|
|
536
548
|
IN_PROGRESS: "IN_PROGRESS",
|
|
537
549
|
SUCCEEDED: "SUCCEEDED",
|
|
538
550
|
};
|
|
551
|
+
export const RemediationStringField = {
|
|
552
|
+
PRIORITY: "Priority",
|
|
553
|
+
RESOURCE_CLOUD_PROVIDER: "Resource.CloudProvider",
|
|
554
|
+
RESOURCE_ID: "Resource.Id",
|
|
555
|
+
RESOURCE_OWNER_ACCOUNT_ID: "Resource.ResourceOwnerAccountId",
|
|
556
|
+
RESOURCE_TYPE: "Resource.Type",
|
|
557
|
+
STATUS: "Status",
|
|
558
|
+
};
|
|
559
|
+
export const GuidanceFormat = {
|
|
560
|
+
ALL: "All",
|
|
561
|
+
AWS_CLI: "AwsCli",
|
|
562
|
+
CDK: "Cdk",
|
|
563
|
+
CLI: "Cli",
|
|
564
|
+
CLOUDFORMATION: "CloudFormation",
|
|
565
|
+
IAC: "IaC",
|
|
566
|
+
PYTHON: "Python",
|
|
567
|
+
TEMPLATE: "Template",
|
|
568
|
+
TERRAFORM: "Terraform",
|
|
569
|
+
};
|
|
570
|
+
export const RemediationPriority = {
|
|
571
|
+
CRITICAL: "Critical",
|
|
572
|
+
HIGH: "High",
|
|
573
|
+
LOW: "Low",
|
|
574
|
+
MEDIUM: "Medium",
|
|
575
|
+
};
|
|
576
|
+
export const RemediationStatus = {
|
|
577
|
+
NEW: "New",
|
|
578
|
+
RESOLVED: "Resolved",
|
|
579
|
+
UPDATED: "Updated",
|
|
580
|
+
};
|
|
539
581
|
export const ResourcesDateField = {
|
|
540
582
|
RESOURCE_CREATION_TIME_DT: "ResourceCreationTime",
|
|
541
583
|
RESOURCE_DETAIL_CAPTURE_TIME_DT: "ResourceDetailCaptureTime",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { GetRemediationsV2Command, } from "../commands/GetRemediationsV2Command";
|
|
3
|
+
import { SecurityHubClient } from "../SecurityHubClient";
|
|
4
|
+
export const paginateGetRemediationsV2 = createPaginator(SecurityHubClient, GetRemediationsV2Command, "NextToken", "NextToken", "MaxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListExposuresByRemediationV2Command, } from "../commands/ListExposuresByRemediationV2Command";
|
|
3
|
+
import { SecurityHubClient } from "../SecurityHubClient";
|
|
4
|
+
export const paginateListExposuresByRemediationV2 = createPaginator(SecurityHubClient, ListExposuresByRemediationV2Command, "NextToken", "NextToken", "MaxResults");
|
|
@@ -11,12 +11,14 @@ export * from "./GetFindingsTrendsV2Paginator";
|
|
|
11
11
|
export * from "./GetFindingsV2Paginator";
|
|
12
12
|
export * from "./GetInsightsPaginator";
|
|
13
13
|
export * from "./GetRecommendedPolicyV2Paginator";
|
|
14
|
+
export * from "./GetRemediationsV2Paginator";
|
|
14
15
|
export * from "./GetResourcesTrendsV2Paginator";
|
|
15
16
|
export * from "./GetResourcesV2Paginator";
|
|
16
17
|
export * from "./ListAggregatorsV2Paginator";
|
|
17
18
|
export * from "./ListConfigurationPoliciesPaginator";
|
|
18
19
|
export * from "./ListConfigurationPolicyAssociationsPaginator";
|
|
19
20
|
export * from "./ListEnabledProductsForImportPaginator";
|
|
21
|
+
export * from "./ListExposuresByRemediationV2Paginator";
|
|
20
22
|
export * from "./ListFindingAggregatorsPaginator";
|
|
21
23
|
export * from "./ListFreeTrialStatusesV2Paginator";
|
|
22
24
|
export * from "./ListInvitationsPaginator";
|