@aws-sdk/client-inspector2 3.812.0 → 3.814.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 +8 -0
- package/dist-cjs/index.js +169 -15
- package/dist-es/Inspector2.js +2 -0
- package/dist-es/commands/GetClustersForImageCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +15 -11
- package/dist-es/models/models_1.js +11 -0
- package/dist-es/pagination/GetClustersForImagePaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +118 -3
- package/dist-types/Inspector2.d.ts +7 -0
- package/dist-types/Inspector2Client.d.ts +3 -2
- package/dist-types/commands/CreateFilterCommand.d.ts +13 -6
- package/dist-types/commands/CreateFindingsReportCommand.d.ts +13 -6
- package/dist-types/commands/GetClustersForImageCommand.d.ts +116 -0
- package/dist-types/commands/GetConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +13 -6
- package/dist-types/commands/GetSbomExportCommand.d.ts +2 -1
- package/dist-types/commands/ListAccountPermissionsCommand.d.ts +1 -1
- package/dist-types/commands/ListCisScanConfigurationsCommand.d.ts +1 -1
- package/dist-types/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +1 -1
- package/dist-types/commands/ListCoverageCommand.d.ts +14 -0
- package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +12 -0
- package/dist-types/commands/ListFiltersCommand.d.ts +13 -6
- package/dist-types/commands/ListFindingAggregationsCommand.d.ts +14 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +15 -6
- package/dist-types/commands/UpdateConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/UpdateFilterCommand.d.ts +13 -6
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +309 -269
- package/dist-types/models/models_1.d.ts +238 -1
- package/dist-types/pagination/GetClustersForImagePaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/Inspector2.d.ts +17 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetClustersForImageCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListAccountPermissionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListCisScanConfigurationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +94 -71
- package/dist-types/ts3.4/models/models_1.d.ts +73 -0
- package/dist-types/ts3.4/pagination/GetClustersForImagePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
|
@@ -139,6 +139,14 @@ export interface AmiAggregation {
|
|
|
139
139
|
sortOrder?: SortOrder | undefined;
|
|
140
140
|
sortBy?: AmiSortBy | undefined;
|
|
141
141
|
}
|
|
142
|
+
export interface NumberFilter {
|
|
143
|
+
upperInclusive?: number | undefined;
|
|
144
|
+
lowerInclusive?: number | undefined;
|
|
145
|
+
}
|
|
146
|
+
export interface DateFilter {
|
|
147
|
+
startInclusive?: Date | undefined;
|
|
148
|
+
endInclusive?: Date | undefined;
|
|
149
|
+
}
|
|
142
150
|
export declare const AwsEcrContainerSortBy: {
|
|
143
151
|
readonly ALL: "ALL";
|
|
144
152
|
readonly CRITICAL: "CRITICAL";
|
|
@@ -154,6 +162,8 @@ export interface AwsEcrContainerAggregation {
|
|
|
154
162
|
imageTags?: StringFilter[] | undefined;
|
|
155
163
|
sortOrder?: SortOrder | undefined;
|
|
156
164
|
sortBy?: AwsEcrContainerSortBy | undefined;
|
|
165
|
+
lastInUseAt?: DateFilter[] | undefined;
|
|
166
|
+
inUseCount?: NumberFilter[] | undefined;
|
|
157
167
|
}
|
|
158
168
|
export declare const MapComparison: {
|
|
159
169
|
readonly EQUALS: "EQUALS";
|
|
@@ -486,6 +496,8 @@ export interface AwsEcrContainerAggregationResponse {
|
|
|
486
496
|
imageTags?: string[] | undefined;
|
|
487
497
|
accountId?: string | undefined;
|
|
488
498
|
severityCounts?: SeverityCounts | undefined;
|
|
499
|
+
lastInUseAt?: Date | undefined;
|
|
500
|
+
inUseCount?: number | undefined;
|
|
489
501
|
}
|
|
490
502
|
export interface Ec2InstanceAggregationResponse {
|
|
491
503
|
instanceId: string | undefined;
|
|
@@ -849,6 +861,20 @@ export interface AwsEcrContainerImageDetails {
|
|
|
849
861
|
imageHash: string | undefined;
|
|
850
862
|
registry: string | undefined;
|
|
851
863
|
platform?: string | undefined;
|
|
864
|
+
lastInUseAt?: Date | undefined;
|
|
865
|
+
inUseCount?: number | undefined;
|
|
866
|
+
}
|
|
867
|
+
export interface AwsEcsMetadataDetails {
|
|
868
|
+
detailsGroup: string | undefined;
|
|
869
|
+
taskDefinitionArn: string | undefined;
|
|
870
|
+
}
|
|
871
|
+
export interface AwsEksWorkloadInfo {
|
|
872
|
+
name: string | undefined;
|
|
873
|
+
type: string | undefined;
|
|
874
|
+
}
|
|
875
|
+
export interface AwsEksMetadataDetails {
|
|
876
|
+
namespace?: string | undefined;
|
|
877
|
+
workloadInfoList?: AwsEksWorkloadInfo[] | undefined;
|
|
852
878
|
}
|
|
853
879
|
export declare const PackageType: {
|
|
854
880
|
readonly IMAGE: "IMAGE";
|
|
@@ -1436,6 +1462,46 @@ export interface CisTargetResourceAggregation {
|
|
|
1436
1462
|
targetStatus?: CisTargetStatus | undefined;
|
|
1437
1463
|
targetStatusReason?: CisTargetStatusReason | undefined;
|
|
1438
1464
|
}
|
|
1465
|
+
export type ClusterMetadata =
|
|
1466
|
+
| ClusterMetadata.AwsEcsMetadataDetailsMember
|
|
1467
|
+
| ClusterMetadata.AwsEksMetadataDetailsMember
|
|
1468
|
+
| ClusterMetadata.$UnknownMember;
|
|
1469
|
+
export declare namespace ClusterMetadata {
|
|
1470
|
+
interface AwsEcsMetadataDetailsMember {
|
|
1471
|
+
awsEcsMetadataDetails: AwsEcsMetadataDetails;
|
|
1472
|
+
awsEksMetadataDetails?: never;
|
|
1473
|
+
$unknown?: never;
|
|
1474
|
+
}
|
|
1475
|
+
interface AwsEksMetadataDetailsMember {
|
|
1476
|
+
awsEcsMetadataDetails?: never;
|
|
1477
|
+
awsEksMetadataDetails: AwsEksMetadataDetails;
|
|
1478
|
+
$unknown?: never;
|
|
1479
|
+
}
|
|
1480
|
+
interface $UnknownMember {
|
|
1481
|
+
awsEcsMetadataDetails?: never;
|
|
1482
|
+
awsEksMetadataDetails?: never;
|
|
1483
|
+
$unknown: [string, any];
|
|
1484
|
+
}
|
|
1485
|
+
interface Visitor<T> {
|
|
1486
|
+
awsEcsMetadataDetails: (value: AwsEcsMetadataDetails) => T;
|
|
1487
|
+
awsEksMetadataDetails: (value: AwsEksMetadataDetails) => T;
|
|
1488
|
+
_: (name: string, value: any) => T;
|
|
1489
|
+
}
|
|
1490
|
+
const visit: <T>(value: ClusterMetadata, visitor: Visitor<T>) => T;
|
|
1491
|
+
}
|
|
1492
|
+
export interface ClusterDetails {
|
|
1493
|
+
lastInUse: Date | undefined;
|
|
1494
|
+
runningUnitCount?: number | undefined;
|
|
1495
|
+
stoppedUnitCount?: number | undefined;
|
|
1496
|
+
clusterMetadata: ClusterMetadata | undefined;
|
|
1497
|
+
}
|
|
1498
|
+
export interface ClusterForImageFilterCriteria {
|
|
1499
|
+
resourceId: string | undefined;
|
|
1500
|
+
}
|
|
1501
|
+
export interface ClusterInformation {
|
|
1502
|
+
clusterArn: string | undefined;
|
|
1503
|
+
clusterDetails?: ClusterDetails[] | undefined;
|
|
1504
|
+
}
|
|
1439
1505
|
export interface CodeFilePath {
|
|
1440
1506
|
fileName: string | undefined;
|
|
1441
1507
|
filePath: string | undefined;
|
|
@@ -1500,6 +1566,10 @@ export interface CoverageMapFilter {
|
|
|
1500
1566
|
key: string | undefined;
|
|
1501
1567
|
value?: string | undefined;
|
|
1502
1568
|
}
|
|
1569
|
+
export interface CoverageNumberFilter {
|
|
1570
|
+
upperInclusive?: number | undefined;
|
|
1571
|
+
lowerInclusive?: number | undefined;
|
|
1572
|
+
}
|
|
1503
1573
|
export interface CoverageFilterCriteria {
|
|
1504
1574
|
scanStatusCode?: CoverageStringFilter[] | undefined;
|
|
1505
1575
|
scanStatusReason?: CoverageStringFilter[] | undefined;
|
|
@@ -1516,6 +1586,8 @@ export interface CoverageFilterCriteria {
|
|
|
1516
1586
|
lastScannedAt?: CoverageDateFilter[] | undefined;
|
|
1517
1587
|
scanMode?: CoverageStringFilter[] | undefined;
|
|
1518
1588
|
imagePulledAt?: CoverageDateFilter[] | undefined;
|
|
1589
|
+
ecrImageLastInUseAt?: CoverageDateFilter[] | undefined;
|
|
1590
|
+
ecrImageInUseCount?: CoverageNumberFilter[] | undefined;
|
|
1519
1591
|
}
|
|
1520
1592
|
export declare const CoverageResourceType: {
|
|
1521
1593
|
readonly AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE";
|
|
@@ -1540,6 +1612,8 @@ export interface Ec2Metadata {
|
|
|
1540
1612
|
export interface EcrContainerImageMetadata {
|
|
1541
1613
|
tags?: string[] | undefined;
|
|
1542
1614
|
imagePulledAt?: Date | undefined;
|
|
1615
|
+
lastInUseAt?: Date | undefined;
|
|
1616
|
+
inUseCount?: number | undefined;
|
|
1543
1617
|
}
|
|
1544
1618
|
export declare const EcrScanFrequency: {
|
|
1545
1619
|
readonly CONTINUOUS_SCAN: "CONTINUOUS_SCAN";
|
|
@@ -1585,6 +1659,7 @@ export declare const ScanStatusReason: {
|
|
|
1585
1659
|
readonly NO_RESOURCES_FOUND: "NO_RESOURCES_FOUND";
|
|
1586
1660
|
readonly PENDING_DISABLE: "PENDING_DISABLE";
|
|
1587
1661
|
readonly PENDING_INITIAL_SCAN: "PENDING_INITIAL_SCAN";
|
|
1662
|
+
readonly PENDING_REVIVAL_SCAN: "PENDING_REVIVAL_SCAN";
|
|
1588
1663
|
readonly RESOURCE_TERMINATED: "RESOURCE_TERMINATED";
|
|
1589
1664
|
readonly SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED";
|
|
1590
1665
|
readonly SCAN_FREQUENCY_MANUAL: "SCAN_FREQUENCY_MANUAL";
|
|
@@ -1644,14 +1719,6 @@ export declare const FilterAction: {
|
|
|
1644
1719
|
readonly SUPPRESS: "SUPPRESS";
|
|
1645
1720
|
};
|
|
1646
1721
|
export type FilterAction = (typeof FilterAction)[keyof typeof FilterAction];
|
|
1647
|
-
export interface DateFilter {
|
|
1648
|
-
startInclusive?: Date | undefined;
|
|
1649
|
-
endInclusive?: Date | undefined;
|
|
1650
|
-
}
|
|
1651
|
-
export interface NumberFilter {
|
|
1652
|
-
upperInclusive?: number | undefined;
|
|
1653
|
-
lowerInclusive?: number | undefined;
|
|
1654
|
-
}
|
|
1655
1722
|
export interface PortRangeFilter {
|
|
1656
1723
|
beginInclusive?: number | undefined;
|
|
1657
1724
|
endInclusive?: number | undefined;
|
|
@@ -1689,6 +1756,8 @@ export interface FilterCriteria {
|
|
|
1689
1756
|
ecrImageRepositoryName?: StringFilter[] | undefined;
|
|
1690
1757
|
ecrImageTags?: StringFilter[] | undefined;
|
|
1691
1758
|
ecrImageHash?: StringFilter[] | undefined;
|
|
1759
|
+
ecrImageLastInUseAt?: DateFilter[] | undefined;
|
|
1760
|
+
ecrImageInUseCount?: NumberFilter[] | undefined;
|
|
1692
1761
|
portRange?: PortRangeFilter[] | undefined;
|
|
1693
1762
|
networkProtocol?: StringFilter[] | undefined;
|
|
1694
1763
|
componentId?: StringFilter[] | undefined;
|
|
@@ -1918,6 +1987,12 @@ export declare const EcrPullDateRescanDuration: {
|
|
|
1918
1987
|
};
|
|
1919
1988
|
export type EcrPullDateRescanDuration =
|
|
1920
1989
|
(typeof EcrPullDateRescanDuration)[keyof typeof EcrPullDateRescanDuration];
|
|
1990
|
+
export declare const EcrPullDateRescanMode: {
|
|
1991
|
+
readonly LAST_IN_USE_AT: "LAST_IN_USE_AT";
|
|
1992
|
+
readonly LAST_PULL_DATE: "LAST_PULL_DATE";
|
|
1993
|
+
};
|
|
1994
|
+
export type EcrPullDateRescanMode =
|
|
1995
|
+
(typeof EcrPullDateRescanMode)[keyof typeof EcrPullDateRescanMode];
|
|
1921
1996
|
export declare const EcrRescanDuration: {
|
|
1922
1997
|
readonly DAYS_14: "DAYS_14";
|
|
1923
1998
|
readonly DAYS_180: "DAYS_180";
|
|
@@ -1931,6 +2006,7 @@ export type EcrRescanDuration =
|
|
|
1931
2006
|
export interface EcrConfiguration {
|
|
1932
2007
|
rescanDuration: EcrRescanDuration | undefined;
|
|
1933
2008
|
pullDateRescanDuration?: EcrPullDateRescanDuration | undefined;
|
|
2009
|
+
pullDateRescanMode?: EcrPullDateRescanMode | undefined;
|
|
1934
2010
|
}
|
|
1935
2011
|
export declare const EcrRescanDurationStatus: {
|
|
1936
2012
|
readonly FAILED: "FAILED";
|
|
@@ -1944,6 +2020,7 @@ export interface EcrRescanDurationState {
|
|
|
1944
2020
|
status?: EcrRescanDurationStatus | undefined;
|
|
1945
2021
|
updatedAt?: Date | undefined;
|
|
1946
2022
|
pullDateRescanDuration?: EcrPullDateRescanDuration | undefined;
|
|
2023
|
+
pullDateRescanMode?: EcrPullDateRescanMode | undefined;
|
|
1947
2024
|
}
|
|
1948
2025
|
export interface EcrConfigurationState {
|
|
1949
2026
|
rescanDurationState?: EcrRescanDurationState | undefined;
|
|
@@ -2172,6 +2249,15 @@ export interface GetCisScanResultDetailsResponse {
|
|
|
2172
2249
|
scanResultDetails?: CisScanResultDetails[] | undefined;
|
|
2173
2250
|
nextToken?: string | undefined;
|
|
2174
2251
|
}
|
|
2252
|
+
export interface GetClustersForImageRequest {
|
|
2253
|
+
filter: ClusterForImageFilterCriteria | undefined;
|
|
2254
|
+
maxResults?: number | undefined;
|
|
2255
|
+
nextToken?: string | undefined;
|
|
2256
|
+
}
|
|
2257
|
+
export interface GetClustersForImageResponse {
|
|
2258
|
+
cluster: ClusterInformation[] | undefined;
|
|
2259
|
+
nextToken?: string | undefined;
|
|
2260
|
+
}
|
|
2175
2261
|
export interface GetConfigurationRequest {}
|
|
2176
2262
|
export interface GetConfigurationResponse {
|
|
2177
2263
|
ecrConfiguration?: EcrConfigurationState | undefined;
|
|
@@ -2231,66 +2317,3 @@ export interface GetMemberResponse {
|
|
|
2231
2317
|
export interface GetSbomExportRequest {
|
|
2232
2318
|
reportId: string | undefined;
|
|
2233
2319
|
}
|
|
2234
|
-
export interface GetSbomExportResponse {
|
|
2235
|
-
reportId?: string | undefined;
|
|
2236
|
-
format?: SbomReportFormat | undefined;
|
|
2237
|
-
status?: ExternalReportStatus | undefined;
|
|
2238
|
-
errorCode?: ReportingErrorCode | undefined;
|
|
2239
|
-
errorMessage?: string | undefined;
|
|
2240
|
-
s3Destination?: Destination | undefined;
|
|
2241
|
-
filterCriteria?: ResourceFilterCriteria | undefined;
|
|
2242
|
-
}
|
|
2243
|
-
export declare const Service: {
|
|
2244
|
-
readonly EC2: "EC2";
|
|
2245
|
-
readonly ECR: "ECR";
|
|
2246
|
-
readonly LAMBDA: "LAMBDA";
|
|
2247
|
-
};
|
|
2248
|
-
export type Service = (typeof Service)[keyof typeof Service];
|
|
2249
|
-
export interface ListAccountPermissionsRequest {
|
|
2250
|
-
service?: Service | undefined;
|
|
2251
|
-
maxResults?: number | undefined;
|
|
2252
|
-
nextToken?: string | undefined;
|
|
2253
|
-
}
|
|
2254
|
-
export declare const Operation: {
|
|
2255
|
-
readonly DISABLE_REPOSITORY: "DISABLE_REPOSITORY";
|
|
2256
|
-
readonly DISABLE_SCANNING: "DISABLE_SCANNING";
|
|
2257
|
-
readonly ENABLE_REPOSITORY: "ENABLE_REPOSITORY";
|
|
2258
|
-
readonly ENABLE_SCANNING: "ENABLE_SCANNING";
|
|
2259
|
-
};
|
|
2260
|
-
export type Operation = (typeof Operation)[keyof typeof Operation];
|
|
2261
|
-
export interface Permission {
|
|
2262
|
-
service: Service | undefined;
|
|
2263
|
-
operation: Operation | undefined;
|
|
2264
|
-
}
|
|
2265
|
-
export interface ListAccountPermissionsResponse {
|
|
2266
|
-
permissions: Permission[] | undefined;
|
|
2267
|
-
nextToken?: string | undefined;
|
|
2268
|
-
}
|
|
2269
|
-
export interface ListCisScanConfigurationsFilterCriteria {
|
|
2270
|
-
scanNameFilters?: CisStringFilter[] | undefined;
|
|
2271
|
-
targetResourceTagFilters?: TagFilter[] | undefined;
|
|
2272
|
-
scanConfigurationArnFilters?: CisStringFilter[] | undefined;
|
|
2273
|
-
}
|
|
2274
|
-
export interface ListCisScanConfigurationsRequest {
|
|
2275
|
-
filterCriteria?: ListCisScanConfigurationsFilterCriteria | undefined;
|
|
2276
|
-
sortBy?: CisScanConfigurationsSortBy | undefined;
|
|
2277
|
-
sortOrder?: CisSortOrder | undefined;
|
|
2278
|
-
nextToken?: string | undefined;
|
|
2279
|
-
maxResults?: number | undefined;
|
|
2280
|
-
}
|
|
2281
|
-
export interface ListCisScanConfigurationsResponse {
|
|
2282
|
-
scanConfigurations?: CisScanConfiguration[] | undefined;
|
|
2283
|
-
nextToken?: string | undefined;
|
|
2284
|
-
}
|
|
2285
|
-
export interface ListCisScanResultsAggregatedByChecksRequest {
|
|
2286
|
-
scanArn: string | undefined;
|
|
2287
|
-
filterCriteria?: CisScanResultsAggregatedByChecksFilterCriteria | undefined;
|
|
2288
|
-
sortBy?: CisScanResultsAggregatedByChecksSortBy | undefined;
|
|
2289
|
-
sortOrder?: CisSortOrder | undefined;
|
|
2290
|
-
nextToken?: string | undefined;
|
|
2291
|
-
maxResults?: number | undefined;
|
|
2292
|
-
}
|
|
2293
|
-
export interface ListCisScanResultsAggregatedByChecksResponse {
|
|
2294
|
-
checkAggregations?: CisCheckAggregation[] | undefined;
|
|
2295
|
-
nextToken?: string | undefined;
|
|
2296
|
-
}
|
|
@@ -5,9 +5,14 @@ import {
|
|
|
5
5
|
AtigData,
|
|
6
6
|
AutoEnable,
|
|
7
7
|
CisaData,
|
|
8
|
+
CisCheckAggregation,
|
|
8
9
|
CisDateFilter,
|
|
9
10
|
CisNumberFilter,
|
|
10
11
|
CisScan,
|
|
12
|
+
CisScanConfiguration,
|
|
13
|
+
CisScanConfigurationsSortBy,
|
|
14
|
+
CisScanResultsAggregatedByChecksFilterCriteria,
|
|
15
|
+
CisScanResultsAggregatedByChecksSortBy,
|
|
11
16
|
CisScanResultsAggregatedByTargetResourceFilterCriteria,
|
|
12
17
|
CisScanResultsAggregatedByTargetResourceSortBy,
|
|
13
18
|
CisScanStatusFilter,
|
|
@@ -24,24 +29,92 @@ import {
|
|
|
24
29
|
Cvss2,
|
|
25
30
|
Cvss3,
|
|
26
31
|
DelegatedAdminAccount,
|
|
32
|
+
Destination,
|
|
27
33
|
Ec2Configuration,
|
|
28
34
|
Ec2DeepInspectionStatus,
|
|
29
35
|
EcrConfiguration,
|
|
30
36
|
Epss,
|
|
31
37
|
ExploitObserved,
|
|
38
|
+
ExternalReportStatus,
|
|
32
39
|
Filter,
|
|
33
40
|
FilterAction,
|
|
34
41
|
FilterCriteria,
|
|
35
42
|
Finding,
|
|
36
43
|
GroupKey,
|
|
37
44
|
Member,
|
|
45
|
+
ReportingErrorCode,
|
|
46
|
+
ResourceFilterCriteria,
|
|
38
47
|
ResourceType,
|
|
48
|
+
SbomReportFormat,
|
|
39
49
|
ScanType,
|
|
40
50
|
Schedule,
|
|
41
51
|
SortOrder,
|
|
42
52
|
StringFilter,
|
|
43
53
|
TagFilter,
|
|
44
54
|
} from "./models_0";
|
|
55
|
+
export interface GetSbomExportResponse {
|
|
56
|
+
reportId?: string | undefined;
|
|
57
|
+
format?: SbomReportFormat | undefined;
|
|
58
|
+
status?: ExternalReportStatus | undefined;
|
|
59
|
+
errorCode?: ReportingErrorCode | undefined;
|
|
60
|
+
errorMessage?: string | undefined;
|
|
61
|
+
s3Destination?: Destination | undefined;
|
|
62
|
+
filterCriteria?: ResourceFilterCriteria | undefined;
|
|
63
|
+
}
|
|
64
|
+
export declare const Service: {
|
|
65
|
+
readonly EC2: "EC2";
|
|
66
|
+
readonly ECR: "ECR";
|
|
67
|
+
readonly LAMBDA: "LAMBDA";
|
|
68
|
+
};
|
|
69
|
+
export type Service = (typeof Service)[keyof typeof Service];
|
|
70
|
+
export interface ListAccountPermissionsRequest {
|
|
71
|
+
service?: Service | undefined;
|
|
72
|
+
maxResults?: number | undefined;
|
|
73
|
+
nextToken?: string | undefined;
|
|
74
|
+
}
|
|
75
|
+
export declare const Operation: {
|
|
76
|
+
readonly DISABLE_REPOSITORY: "DISABLE_REPOSITORY";
|
|
77
|
+
readonly DISABLE_SCANNING: "DISABLE_SCANNING";
|
|
78
|
+
readonly ENABLE_REPOSITORY: "ENABLE_REPOSITORY";
|
|
79
|
+
readonly ENABLE_SCANNING: "ENABLE_SCANNING";
|
|
80
|
+
};
|
|
81
|
+
export type Operation = (typeof Operation)[keyof typeof Operation];
|
|
82
|
+
export interface Permission {
|
|
83
|
+
service: Service | undefined;
|
|
84
|
+
operation: Operation | undefined;
|
|
85
|
+
}
|
|
86
|
+
export interface ListAccountPermissionsResponse {
|
|
87
|
+
permissions: Permission[] | undefined;
|
|
88
|
+
nextToken?: string | undefined;
|
|
89
|
+
}
|
|
90
|
+
export interface ListCisScanConfigurationsFilterCriteria {
|
|
91
|
+
scanNameFilters?: CisStringFilter[] | undefined;
|
|
92
|
+
targetResourceTagFilters?: TagFilter[] | undefined;
|
|
93
|
+
scanConfigurationArnFilters?: CisStringFilter[] | undefined;
|
|
94
|
+
}
|
|
95
|
+
export interface ListCisScanConfigurationsRequest {
|
|
96
|
+
filterCriteria?: ListCisScanConfigurationsFilterCriteria | undefined;
|
|
97
|
+
sortBy?: CisScanConfigurationsSortBy | undefined;
|
|
98
|
+
sortOrder?: CisSortOrder | undefined;
|
|
99
|
+
nextToken?: string | undefined;
|
|
100
|
+
maxResults?: number | undefined;
|
|
101
|
+
}
|
|
102
|
+
export interface ListCisScanConfigurationsResponse {
|
|
103
|
+
scanConfigurations?: CisScanConfiguration[] | undefined;
|
|
104
|
+
nextToken?: string | undefined;
|
|
105
|
+
}
|
|
106
|
+
export interface ListCisScanResultsAggregatedByChecksRequest {
|
|
107
|
+
scanArn: string | undefined;
|
|
108
|
+
filterCriteria?: CisScanResultsAggregatedByChecksFilterCriteria | undefined;
|
|
109
|
+
sortBy?: CisScanResultsAggregatedByChecksSortBy | undefined;
|
|
110
|
+
sortOrder?: CisSortOrder | undefined;
|
|
111
|
+
nextToken?: string | undefined;
|
|
112
|
+
maxResults?: number | undefined;
|
|
113
|
+
}
|
|
114
|
+
export interface ListCisScanResultsAggregatedByChecksResponse {
|
|
115
|
+
checkAggregations?: CisCheckAggregation[] | undefined;
|
|
116
|
+
nextToken?: string | undefined;
|
|
117
|
+
}
|
|
45
118
|
export interface ListCisScanResultsAggregatedByTargetResourceRequest {
|
|
46
119
|
scanArn: string | undefined;
|
|
47
120
|
filterCriteria?:
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
GetClustersForImageCommandInput,
|
|
4
|
+
GetClustersForImageCommandOutput,
|
|
5
|
+
} from "../commands/GetClustersForImageCommand";
|
|
6
|
+
import { Inspector2PaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateGetClustersForImage: (
|
|
8
|
+
config: Inspector2PaginationConfiguration,
|
|
9
|
+
input: GetClustersForImageCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetClustersForImageCommandOutput>;
|
|
@@ -95,6 +95,10 @@ import {
|
|
|
95
95
|
GetCisScanResultDetailsCommandInput,
|
|
96
96
|
GetCisScanResultDetailsCommandOutput,
|
|
97
97
|
} from "../commands/GetCisScanResultDetailsCommand";
|
|
98
|
+
import {
|
|
99
|
+
GetClustersForImageCommandInput,
|
|
100
|
+
GetClustersForImageCommandOutput,
|
|
101
|
+
} from "../commands/GetClustersForImageCommand";
|
|
98
102
|
import {
|
|
99
103
|
GetConfigurationCommandInput,
|
|
100
104
|
GetConfigurationCommandOutput,
|
|
@@ -331,6 +335,10 @@ export declare const se_GetCisScanResultDetailsCommand: (
|
|
|
331
335
|
input: GetCisScanResultDetailsCommandInput,
|
|
332
336
|
context: __SerdeContext
|
|
333
337
|
) => Promise<__HttpRequest>;
|
|
338
|
+
export declare const se_GetClustersForImageCommand: (
|
|
339
|
+
input: GetClustersForImageCommandInput,
|
|
340
|
+
context: __SerdeContext
|
|
341
|
+
) => Promise<__HttpRequest>;
|
|
334
342
|
export declare const se_GetConfigurationCommand: (
|
|
335
343
|
input: GetConfigurationCommandInput,
|
|
336
344
|
context: __SerdeContext
|
|
@@ -567,6 +575,10 @@ export declare const de_GetCisScanResultDetailsCommand: (
|
|
|
567
575
|
output: __HttpResponse,
|
|
568
576
|
context: __SerdeContext
|
|
569
577
|
) => Promise<GetCisScanResultDetailsCommandOutput>;
|
|
578
|
+
export declare const de_GetClustersForImageCommand: (
|
|
579
|
+
output: __HttpResponse,
|
|
580
|
+
context: __SerdeContext
|
|
581
|
+
) => Promise<GetClustersForImageCommandOutput>;
|
|
570
582
|
export declare const de_GetConfigurationCommand: (
|
|
571
583
|
output: __HttpResponse,
|
|
572
584
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-inspector2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Inspector2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.814.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-inspector2",
|