@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
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
AssociationStatus,
|
|
5
5
|
AssociationType,
|
|
6
6
|
AutoEnableStandards,
|
|
7
|
+
CloudProviderName,
|
|
7
8
|
ConfigurationPolicyAssociationStatus,
|
|
8
9
|
ConnectorProviderName,
|
|
9
10
|
ConnectorStatus,
|
|
@@ -15,11 +16,19 @@ import {
|
|
|
15
16
|
DiscoveryType,
|
|
16
17
|
EnablementStatus,
|
|
17
18
|
FreeTrialStatusValue,
|
|
19
|
+
GranularityField,
|
|
18
20
|
GroupByField,
|
|
19
21
|
RecordState,
|
|
20
22
|
RegionAvailabilityStatus,
|
|
23
|
+
RemediationPriority,
|
|
24
|
+
RemediationStatus,
|
|
21
25
|
ResourceCategory,
|
|
22
26
|
ResourceGroupByField,
|
|
27
|
+
ResourcesDateField,
|
|
28
|
+
ResourcesMapField,
|
|
29
|
+
ResourcesNumberField,
|
|
30
|
+
ResourcesStringField,
|
|
31
|
+
ResourcesTrendsStringField,
|
|
23
32
|
ResourceSubCategory,
|
|
24
33
|
RuleStatusV2,
|
|
25
34
|
SecurityControlProperty,
|
|
@@ -38,8 +47,13 @@ import {
|
|
|
38
47
|
AutomationRulesActionV2,
|
|
39
48
|
AutomationRulesMetadata,
|
|
40
49
|
AutomationRulesMetadataV2,
|
|
50
|
+
DateFilter,
|
|
51
|
+
MapFilter,
|
|
41
52
|
NoteUpdate,
|
|
53
|
+
NumberFilter,
|
|
54
|
+
StringFilter,
|
|
42
55
|
} from "./models_0";
|
|
56
|
+
import { AwsOrganizationScope } from "./models_1";
|
|
43
57
|
import {
|
|
44
58
|
AwsSecurityFindingFilters,
|
|
45
59
|
AzureUpdateConfiguration,
|
|
@@ -49,9 +63,11 @@ import {
|
|
|
49
63
|
ConnectorSummary,
|
|
50
64
|
CspmConnectorSummary,
|
|
51
65
|
CspmProviderUpdateConfiguration,
|
|
66
|
+
ExposureFinding,
|
|
52
67
|
FindingAggregator,
|
|
53
68
|
FindingScopes,
|
|
54
69
|
FindingsTrendsStringFilter,
|
|
70
|
+
GroupByResult,
|
|
55
71
|
Invitation,
|
|
56
72
|
Member,
|
|
57
73
|
OcsfBooleanFilter,
|
|
@@ -63,17 +79,115 @@ import {
|
|
|
63
79
|
OrganizationConfiguration,
|
|
64
80
|
ParameterConfiguration,
|
|
65
81
|
Policy,
|
|
66
|
-
|
|
67
|
-
ResourceScopes,
|
|
68
|
-
ResourcesDateFilter,
|
|
69
|
-
ResourcesMapFilter,
|
|
70
|
-
ResourcesNumberFilter,
|
|
71
|
-
ResourcesStringFilter,
|
|
72
|
-
ResourcesTrendsStringFilter,
|
|
82
|
+
RemediationGuidance,
|
|
73
83
|
Result,
|
|
74
84
|
SortCriterion,
|
|
75
85
|
Target,
|
|
76
86
|
} from "./models_2";
|
|
87
|
+
export interface RemediationOutcome {
|
|
88
|
+
ResolvedFindingsCount: number | undefined;
|
|
89
|
+
SeverityReductionFindingsCount: number | undefined;
|
|
90
|
+
SeverityUnchangedCount: number | undefined;
|
|
91
|
+
}
|
|
92
|
+
export interface KbArticle {
|
|
93
|
+
Title: string | undefined;
|
|
94
|
+
Url: string | undefined;
|
|
95
|
+
}
|
|
96
|
+
export interface RemediationSummaryDetail {
|
|
97
|
+
Action: string | undefined;
|
|
98
|
+
Description?: string | undefined;
|
|
99
|
+
IsImmediate: boolean | undefined;
|
|
100
|
+
PostRemediationSteps?: string[] | undefined;
|
|
101
|
+
KbArticles?: KbArticle[] | undefined;
|
|
102
|
+
}
|
|
103
|
+
export interface RemediationResource {
|
|
104
|
+
AccountId: string | undefined;
|
|
105
|
+
Region: string | undefined;
|
|
106
|
+
ResourceOwnerAccountId?: string | undefined;
|
|
107
|
+
ResourceOwnerOrgId?: string | undefined;
|
|
108
|
+
Type: string | undefined;
|
|
109
|
+
Name?: string | undefined;
|
|
110
|
+
Id: string | undefined;
|
|
111
|
+
ResourceGuid?: string | undefined;
|
|
112
|
+
ResourceRegion: string | undefined;
|
|
113
|
+
CloudProvider: CloudProviderName | undefined;
|
|
114
|
+
}
|
|
115
|
+
export interface RemediationTrait {
|
|
116
|
+
Type: string | undefined;
|
|
117
|
+
Title: string | undefined;
|
|
118
|
+
}
|
|
119
|
+
export interface RemediationV2Item {
|
|
120
|
+
TargetUid: string | undefined;
|
|
121
|
+
Outcome: RemediationOutcome | undefined;
|
|
122
|
+
Priority: RemediationPriority | undefined;
|
|
123
|
+
RemediationSummary: RemediationSummaryDetail | undefined;
|
|
124
|
+
Resource: RemediationResource | undefined;
|
|
125
|
+
Status: RemediationStatus | undefined;
|
|
126
|
+
Trait: RemediationTrait | undefined;
|
|
127
|
+
Guidance?: RemediationGuidance | undefined;
|
|
128
|
+
UpdatedAt?: Date | undefined;
|
|
129
|
+
}
|
|
130
|
+
export interface GetRemediationsV2Response {
|
|
131
|
+
Items: RemediationV2Item[] | undefined;
|
|
132
|
+
NextToken?: string | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface ResourcesDateFilter {
|
|
135
|
+
FieldName?: ResourcesDateField | undefined;
|
|
136
|
+
Filter?: DateFilter | undefined;
|
|
137
|
+
}
|
|
138
|
+
export interface ResourcesMapFilter {
|
|
139
|
+
FieldName?: ResourcesMapField | undefined;
|
|
140
|
+
Filter?: MapFilter | undefined;
|
|
141
|
+
}
|
|
142
|
+
export interface ResourcesNumberFilter {
|
|
143
|
+
FieldName?: ResourcesNumberField | undefined;
|
|
144
|
+
Filter?: NumberFilter | undefined;
|
|
145
|
+
}
|
|
146
|
+
export interface ResourcesStringFilter {
|
|
147
|
+
FieldName?: ResourcesStringField | undefined;
|
|
148
|
+
Filter?: StringFilter | undefined;
|
|
149
|
+
}
|
|
150
|
+
export interface ResourceScopes {
|
|
151
|
+
AwsOrganizations?: AwsOrganizationScope[] | undefined;
|
|
152
|
+
}
|
|
153
|
+
export interface GetResourcesStatisticsV2Response {
|
|
154
|
+
GroupByResults: GroupByResult[] | undefined;
|
|
155
|
+
}
|
|
156
|
+
export interface ResourcesTrendsStringFilter {
|
|
157
|
+
FieldName?: ResourcesTrendsStringField | undefined;
|
|
158
|
+
Filter?: StringFilter | undefined;
|
|
159
|
+
}
|
|
160
|
+
export interface ResourcesCount {
|
|
161
|
+
AllResources: number | undefined;
|
|
162
|
+
}
|
|
163
|
+
export interface ResourcesTrendsValues {
|
|
164
|
+
ResourcesCount: ResourcesCount | undefined;
|
|
165
|
+
}
|
|
166
|
+
export interface ResourcesTrendsMetricsResult {
|
|
167
|
+
Timestamp: Date | undefined;
|
|
168
|
+
TrendsValues: ResourcesTrendsValues | undefined;
|
|
169
|
+
}
|
|
170
|
+
export interface GetResourcesTrendsV2Response {
|
|
171
|
+
Granularity: GranularityField | undefined;
|
|
172
|
+
TrendsMetrics: ResourcesTrendsMetricsResult[] | undefined;
|
|
173
|
+
NextToken?: string | undefined;
|
|
174
|
+
}
|
|
175
|
+
export interface ResourceSeverityBreakdown {
|
|
176
|
+
Other?: number | undefined;
|
|
177
|
+
Fatal?: number | undefined;
|
|
178
|
+
Critical?: number | undefined;
|
|
179
|
+
High?: number | undefined;
|
|
180
|
+
Medium?: number | undefined;
|
|
181
|
+
Low?: number | undefined;
|
|
182
|
+
Informational?: number | undefined;
|
|
183
|
+
Unknown?: number | undefined;
|
|
184
|
+
}
|
|
185
|
+
export interface ResourceFindingsSummary {
|
|
186
|
+
FindingType: string | undefined;
|
|
187
|
+
ProductName: string | undefined;
|
|
188
|
+
TotalFindings: number | undefined;
|
|
189
|
+
Severities?: ResourceSeverityBreakdown | undefined;
|
|
190
|
+
}
|
|
77
191
|
export interface ResourceInfo {
|
|
78
192
|
AIDetails?: AIDetails | undefined;
|
|
79
193
|
}
|
|
@@ -209,6 +323,19 @@ export interface ListEnabledProductsForImportResponse {
|
|
|
209
323
|
ProductSubscriptions?: string[] | undefined;
|
|
210
324
|
NextToken?: string | undefined;
|
|
211
325
|
}
|
|
326
|
+
export interface ListExposuresByRemediationV2Request {
|
|
327
|
+
TargetUid: string | undefined;
|
|
328
|
+
MaxResults?: number | undefined;
|
|
329
|
+
NextToken?: string | undefined;
|
|
330
|
+
}
|
|
331
|
+
export interface ListExposuresByRemediationV2Response {
|
|
332
|
+
Items: ExposureFinding[] | undefined;
|
|
333
|
+
TargetUid: string | undefined;
|
|
334
|
+
Resource: RemediationResource | undefined;
|
|
335
|
+
TotalCount: number | undefined;
|
|
336
|
+
Trait: RemediationTrait | undefined;
|
|
337
|
+
NextToken?: string | undefined;
|
|
338
|
+
}
|
|
212
339
|
export interface ListFindingAggregatorsRequest {
|
|
213
340
|
NextToken?: string | undefined;
|
|
214
341
|
MaxResults?: number | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
GetRemediationsV2CommandInput,
|
|
4
|
+
GetRemediationsV2CommandOutput,
|
|
5
|
+
} from "../commands/GetRemediationsV2Command";
|
|
6
|
+
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateGetRemediationsV2: (
|
|
8
|
+
config: SecurityHubPaginationConfiguration,
|
|
9
|
+
input: GetRemediationsV2CommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetRemediationsV2CommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListExposuresByRemediationV2CommandInput,
|
|
4
|
+
ListExposuresByRemediationV2CommandOutput,
|
|
5
|
+
} from "../commands/ListExposuresByRemediationV2Command";
|
|
6
|
+
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListExposuresByRemediationV2: (
|
|
8
|
+
config: SecurityHubPaginationConfiguration,
|
|
9
|
+
input: ListExposuresByRemediationV2CommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListExposuresByRemediationV2CommandOutput>;
|
|
@@ -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";
|
|
@@ -701,6 +701,7 @@ export declare var EnableSecurityHubV2Request$: StaticStructureSchema;
|
|
|
701
701
|
export declare var EnableSecurityHubV2Response$: StaticStructureSchema;
|
|
702
702
|
export declare var EnumConfigurationOptions$: StaticStructureSchema;
|
|
703
703
|
export declare var EnumListConfigurationOptions$: StaticStructureSchema;
|
|
704
|
+
export declare var ExposureFinding$: StaticStructureSchema;
|
|
704
705
|
export declare var ExternalIntegrationConfiguration$: StaticStructureSchema;
|
|
705
706
|
export declare var FeatureDetail$: StaticStructureSchema;
|
|
706
707
|
export declare var FilePaths$: StaticStructureSchema;
|
|
@@ -763,6 +764,8 @@ export declare var GetMembersRequest$: StaticStructureSchema;
|
|
|
763
764
|
export declare var GetMembersResponse$: StaticStructureSchema;
|
|
764
765
|
export declare var GetRecommendedPolicyV2Request$: StaticStructureSchema;
|
|
765
766
|
export declare var GetRecommendedPolicyV2Response$: StaticStructureSchema;
|
|
767
|
+
export declare var GetRemediationsV2Request$: StaticStructureSchema;
|
|
768
|
+
export declare var GetRemediationsV2Response$: StaticStructureSchema;
|
|
766
769
|
export declare var GetResourcesStatisticsV2Request$: StaticStructureSchema;
|
|
767
770
|
export declare var GetResourcesStatisticsV2Response$: StaticStructureSchema;
|
|
768
771
|
export declare var GetResourcesTrendsV2Request$: StaticStructureSchema;
|
|
@@ -793,6 +796,7 @@ export declare var Ipv6CidrBlockAssociation$: StaticStructureSchema;
|
|
|
793
796
|
export declare var JiraCloudDetail$: StaticStructureSchema;
|
|
794
797
|
export declare var JiraCloudProviderConfiguration$: StaticStructureSchema;
|
|
795
798
|
export declare var JiraCloudUpdateConfiguration$: StaticStructureSchema;
|
|
799
|
+
export declare var KbArticle$: StaticStructureSchema;
|
|
796
800
|
export declare var KeywordFilter$: StaticStructureSchema;
|
|
797
801
|
export declare var ListAggregatorsV2Request$: StaticStructureSchema;
|
|
798
802
|
export declare var ListAggregatorsV2Response$: StaticStructureSchema;
|
|
@@ -810,6 +814,8 @@ export declare var ListConnectorsV2Request$: StaticStructureSchema;
|
|
|
810
814
|
export declare var ListConnectorsV2Response$: StaticStructureSchema;
|
|
811
815
|
export declare var ListEnabledProductsForImportRequest$: StaticStructureSchema;
|
|
812
816
|
export declare var ListEnabledProductsForImportResponse$: StaticStructureSchema;
|
|
817
|
+
export declare var ListExposuresByRemediationV2Request$: StaticStructureSchema;
|
|
818
|
+
export declare var ListExposuresByRemediationV2Response$: StaticStructureSchema;
|
|
813
819
|
export declare var ListFindingAggregatorsRequest$: StaticStructureSchema;
|
|
814
820
|
export declare var ListFindingAggregatorsResponse$: StaticStructureSchema;
|
|
815
821
|
export declare var ListFreeTrialStatusesV2Request$: StaticStructureSchema;
|
|
@@ -873,6 +879,22 @@ export declare var RegisterConnectorV2Request$: StaticStructureSchema;
|
|
|
873
879
|
export declare var RegisterConnectorV2Response$: StaticStructureSchema;
|
|
874
880
|
export declare var RelatedFinding$: StaticStructureSchema;
|
|
875
881
|
export declare var Remediation$: StaticStructureSchema;
|
|
882
|
+
export declare var RemediationCompositeFilter$: StaticStructureSchema;
|
|
883
|
+
export declare var RemediationFilters$: StaticStructureSchema;
|
|
884
|
+
export declare var RemediationGuidance$: StaticStructureSchema;
|
|
885
|
+
export declare var RemediationGuidanceContext$: StaticStructureSchema;
|
|
886
|
+
export declare var RemediationGuidanceExamples$: StaticStructureSchema;
|
|
887
|
+
export declare var RemediationGuidanceMetadata$: StaticStructureSchema;
|
|
888
|
+
export declare var RemediationGuidanceSpecification$: StaticStructureSchema;
|
|
889
|
+
export declare var RemediationOutcome$: StaticStructureSchema;
|
|
890
|
+
export declare var RemediationParameter$: StaticStructureSchema;
|
|
891
|
+
export declare var RemediationResource$: StaticStructureSchema;
|
|
892
|
+
export declare var RemediationStep$: StaticStructureSchema;
|
|
893
|
+
export declare var RemediationStringFilter$: StaticStructureSchema;
|
|
894
|
+
export declare var RemediationStringFilterCondition$: StaticStructureSchema;
|
|
895
|
+
export declare var RemediationSummaryDetail$: StaticStructureSchema;
|
|
896
|
+
export declare var RemediationTrait$: StaticStructureSchema;
|
|
897
|
+
export declare var RemediationV2Item$: StaticStructureSchema;
|
|
876
898
|
export declare var Resource$: StaticStructureSchema;
|
|
877
899
|
export declare var ResourceDetails$: StaticStructureSchema;
|
|
878
900
|
export declare var ResourceFindingsSummary$: StaticStructureSchema;
|
|
@@ -1101,6 +1123,7 @@ export declare var GetInvitationsCount$: StaticOperationSchema;
|
|
|
1101
1123
|
export declare var GetMasterAccount$: StaticOperationSchema;
|
|
1102
1124
|
export declare var GetMembers$: StaticOperationSchema;
|
|
1103
1125
|
export declare var GetRecommendedPolicyV2$: StaticOperationSchema;
|
|
1126
|
+
export declare var GetRemediationsV2$: StaticOperationSchema;
|
|
1104
1127
|
export declare var GetResourcesStatisticsV2$: StaticOperationSchema;
|
|
1105
1128
|
export declare var GetResourcesTrendsV2$: StaticOperationSchema;
|
|
1106
1129
|
export declare var GetResourcesV2$: StaticOperationSchema;
|
|
@@ -1114,6 +1137,7 @@ export declare var ListConfigurationPolicyAssociations$: StaticOperationSchema;
|
|
|
1114
1137
|
export declare var ListConnectors$: StaticOperationSchema;
|
|
1115
1138
|
export declare var ListConnectorsV2$: StaticOperationSchema;
|
|
1116
1139
|
export declare var ListEnabledProductsForImport$: StaticOperationSchema;
|
|
1140
|
+
export declare var ListExposuresByRemediationV2$: StaticOperationSchema;
|
|
1117
1141
|
export declare var ListFindingAggregators$: StaticOperationSchema;
|
|
1118
1142
|
export declare var ListFreeTrialStatusesV2$: StaticOperationSchema;
|
|
1119
1143
|
export declare var ListInvitations$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-securityhub",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1145.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-securityhub",
|
|
6
6
|
"license": "Apache-2.0",
|