@aws-sdk/client-inspector2 3.1156.0 → 3.1158.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 +22 -2
- package/dist-cjs/index.js +273 -61
- package/dist-es/Inspector2.js +8 -0
- package/dist-es/commands/GetOnDemandScanStatusCommand.js +4 -0
- package/dist-es/commands/ListOnDemandScansCommand.js +4 -0
- package/dist-es/commands/StartOnDemandScanCommand.js +4 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/enums.js +49 -0
- package/dist-es/pagination/ListOnDemandScansPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +181 -60
- package/dist-types/Inspector2.d.ts +29 -2
- package/dist-types/Inspector2Client.d.ts +6 -4
- package/dist-types/commands/AssociateMemberCommand.d.ts +4 -11
- package/dist-types/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +5 -11
- package/dist-types/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +5 -11
- package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +5 -7
- package/dist-types/commands/BatchGetCodeSnippetCommand.d.ts +3 -7
- package/dist-types/commands/BatchGetFindingDetailsCommand.d.ts +2 -5
- package/dist-types/commands/BatchGetFreeTrialInfoCommand.d.ts +2 -5
- package/dist-types/commands/BatchGetMemberEc2DeepInspectionStatusCommand.d.ts +3 -8
- package/dist-types/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.d.ts +3 -8
- package/dist-types/commands/CancelFindingsReportCommand.d.ts +3 -7
- package/dist-types/commands/CancelSbomExportCommand.d.ts +3 -7
- package/dist-types/commands/CreateCisScanConfigurationCommand.d.ts +2 -5
- package/dist-types/commands/CreateCodeSecurityIntegrationCommand.d.ts +5 -14
- package/dist-types/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +4 -9
- package/dist-types/commands/CreateConnectorCommand.d.ts +4 -9
- package/dist-types/commands/CreateFilterCommand.d.ts +8 -9
- package/dist-types/commands/CreateFindingsReportCommand.d.ts +9 -10
- package/dist-types/commands/CreateSbomExportCommand.d.ts +4 -7
- package/dist-types/commands/DeleteCisScanConfigurationCommand.d.ts +3 -7
- package/dist-types/commands/DeleteCodeSecurityIntegrationCommand.d.ts +3 -7
- package/dist-types/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +3 -7
- package/dist-types/commands/DeleteConnectorCommand.d.ts +4 -9
- package/dist-types/commands/DeleteFilterCommand.d.ts +3 -7
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +3 -5
- package/dist-types/commands/DisableCommand.d.ts +6 -9
- package/dist-types/commands/DisableDelegatedAdminAccountCommand.d.ts +4 -9
- package/dist-types/commands/DisassociateMemberCommand.d.ts +2 -5
- package/dist-types/commands/EnableCommand.d.ts +5 -7
- package/dist-types/commands/EnableDelegatedAdminAccountCommand.d.ts +4 -9
- package/dist-types/commands/GetCisScanReportCommand.d.ts +3 -7
- package/dist-types/commands/GetCisScanResultDetailsCommand.d.ts +2 -5
- package/dist-types/commands/GetClustersForImageCommand.d.ts +2 -5
- package/dist-types/commands/GetCodeSecurityIntegrationCommand.d.ts +3 -7
- package/dist-types/commands/GetCodeSecurityScanCommand.d.ts +4 -9
- package/dist-types/commands/GetCodeSecurityScanConfigurationCommand.d.ts +3 -7
- package/dist-types/commands/GetConfigurationCommand.d.ts +21 -12
- package/dist-types/commands/GetDelegatedAdminAccountCommand.d.ts +4 -9
- package/dist-types/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +3 -7
- package/dist-types/commands/GetEncryptionKeyCommand.d.ts +3 -7
- package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +8 -7
- package/dist-types/commands/GetMemberCommand.d.ts +3 -7
- package/dist-types/commands/GetOnDemandScanStatusCommand.d.ts +94 -0
- package/dist-types/commands/GetSbomExportCommand.d.ts +4 -7
- package/dist-types/commands/ListAccountPermissionsCommand.d.ts +3 -9
- package/dist-types/commands/ListCisScanConfigurationsCommand.d.ts +2 -5
- package/dist-types/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +2 -5
- package/dist-types/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +3 -6
- package/dist-types/commands/ListCisScansCommand.d.ts +3 -6
- package/dist-types/commands/ListCodeSecurityIntegrationsCommand.d.ts +3 -6
- package/dist-types/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +5 -11
- package/dist-types/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +3 -7
- package/dist-types/commands/ListConnectorScanConfigurationsCommand.d.ts +2 -5
- package/dist-types/commands/ListConnectorsCommand.d.ts +2 -5
- package/dist-types/commands/ListCoverageCommand.d.ts +14 -2
- package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +8 -2
- package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +2 -5
- package/dist-types/commands/ListFiltersCommand.d.ts +6 -5
- package/dist-types/commands/ListFindingAggregationsCommand.d.ts +5 -2
- package/dist-types/commands/ListFindingsCommand.d.ts +18 -2
- package/dist-types/commands/ListMembersCommand.d.ts +3 -7
- package/dist-types/commands/ListOnDemandScansCommand.d.ts +97 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -4
- package/dist-types/commands/ListUsageTotalsCommand.d.ts +2 -5
- package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +4 -9
- package/dist-types/commands/SearchVulnerabilitiesCommand.d.ts +2 -5
- package/dist-types/commands/SendCisSessionHealthCommand.d.ts +4 -10
- package/dist-types/commands/SendCisSessionTelemetryCommand.d.ts +4 -10
- package/dist-types/commands/StartCisSessionCommand.d.ts +4 -10
- package/dist-types/commands/StartCodeSecurityScanCommand.d.ts +4 -9
- package/dist-types/commands/StartOnDemandScanCommand.d.ts +88 -0
- package/dist-types/commands/StopCisSessionCommand.d.ts +4 -10
- package/dist-types/commands/TagResourceCommand.d.ts +2 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -4
- package/dist-types/commands/UpdateCisScanConfigurationCommand.d.ts +3 -7
- package/dist-types/commands/UpdateCodeSecurityIntegrationCommand.d.ts +5 -14
- package/dist-types/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +4 -9
- package/dist-types/commands/UpdateConfigurationCommand.d.ts +22 -11
- package/dist-types/commands/UpdateConnectorCommand.d.ts +4 -9
- package/dist-types/commands/UpdateConnectorScanConfigurationCommand.d.ts +4 -9
- package/dist-types/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +3 -7
- package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +4 -9
- package/dist-types/commands/UpdateFilterCommand.d.ts +7 -7
- package/dist-types/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +3 -7
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +4 -5
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +1 -2
- package/dist-types/models/enums.d.ts +113 -0
- package/dist-types/models/errors.d.ts +5 -11
- package/dist-types/models/models_0.d.ts +533 -1195
- package/dist-types/models/models_1.d.ts +381 -170
- package/dist-types/pagination/ListOnDemandScansPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +16 -0
- package/dist-types/ts3.4/Inspector2.d.ts +58 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetOnDemandScanStatusCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListCisScansCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListCodeSecurityIntegrationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListOnDemandScansCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/StartOnDemandScanCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/enums.d.ts +59 -0
- package/dist-types/ts3.4/models/models_0.d.ts +75 -52
- package/dist-types/ts3.4/models/models_1.d.ts +95 -0
- package/dist-types/ts3.4/pagination/ListOnDemandScansPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
- package/package.json +5 -5
|
@@ -2,6 +2,9 @@ import {
|
|
|
2
2
|
AccountSortBy,
|
|
3
3
|
AggregationFindingType,
|
|
4
4
|
AggregationResourceType,
|
|
5
|
+
AmiConfigurationStatus,
|
|
6
|
+
AmiScanDuration,
|
|
7
|
+
AmiScanMode,
|
|
5
8
|
AmiSortBy,
|
|
6
9
|
Architecture,
|
|
7
10
|
AssociationResultStatusCode,
|
|
@@ -17,7 +20,6 @@ import {
|
|
|
17
20
|
CisScanConfigurationsSortBy,
|
|
18
21
|
CisScanResultDetailsSortBy,
|
|
19
22
|
CisScanResultsAggregatedByChecksSortBy,
|
|
20
|
-
CisScanResultsAggregatedByTargetResourceSortBy,
|
|
21
23
|
CisScanStatus,
|
|
22
24
|
CisScanStatusComparison,
|
|
23
25
|
CisSecurityLevel,
|
|
@@ -76,10 +78,12 @@ import {
|
|
|
76
78
|
IntegrationType,
|
|
77
79
|
LambdaFunctionSortBy,
|
|
78
80
|
LambdaLayerSortBy,
|
|
79
|
-
|
|
80
|
-
ListCisScansSortBy,
|
|
81
|
+
MachineImagePlatform,
|
|
81
82
|
MapComparison,
|
|
82
83
|
NetworkProtocol,
|
|
84
|
+
OnDemandResourceType,
|
|
85
|
+
OnDemandScanStatus,
|
|
86
|
+
OnDemandScanStatusReason,
|
|
83
87
|
Operation,
|
|
84
88
|
PackageManager,
|
|
85
89
|
PackageSortBy,
|
|
@@ -100,6 +104,7 @@ import {
|
|
|
100
104
|
Runtime,
|
|
101
105
|
SbomReportFormat,
|
|
102
106
|
ScanMode,
|
|
107
|
+
ScanSource,
|
|
103
108
|
ScanStatusCode,
|
|
104
109
|
ScanStatusReason,
|
|
105
110
|
ScanType,
|
|
@@ -123,6 +128,7 @@ export interface ResourceStatus {
|
|
|
123
128
|
lambda?: Status | undefined;
|
|
124
129
|
lambdaCode?: Status | undefined;
|
|
125
130
|
codeRepository?: Status | undefined;
|
|
131
|
+
ami?: Status | undefined;
|
|
126
132
|
}
|
|
127
133
|
export interface Account {
|
|
128
134
|
accountId: string | undefined;
|
|
@@ -165,6 +171,7 @@ export interface ResourceState {
|
|
|
165
171
|
lambda?: State | undefined;
|
|
166
172
|
lambdaCode?: State | undefined;
|
|
167
173
|
codeRepository?: State | undefined;
|
|
174
|
+
ami?: State | undefined;
|
|
168
175
|
}
|
|
169
176
|
export interface AccountState {
|
|
170
177
|
accountId: string | undefined;
|
|
@@ -179,6 +186,7 @@ export interface AmiAggregation {
|
|
|
179
186
|
amis?: StringFilter[] | undefined;
|
|
180
187
|
sortOrder?: SortOrder | undefined;
|
|
181
188
|
sortBy?: AmiSortBy | undefined;
|
|
189
|
+
scanSources?: ScanSource[] | undefined;
|
|
182
190
|
}
|
|
183
191
|
export interface NumberFilter {
|
|
184
192
|
upperInclusive?: number | undefined;
|
|
@@ -648,6 +656,7 @@ export interface AmiAggregationResponse {
|
|
|
648
656
|
cloudAccountId?: string | undefined;
|
|
649
657
|
severityCounts?: SeverityCounts | undefined;
|
|
650
658
|
affectedInstances?: number | undefined;
|
|
659
|
+
scanSource?: ScanSource | undefined;
|
|
651
660
|
}
|
|
652
661
|
export interface AwsEcrContainerAggregationResponse {
|
|
653
662
|
resourceId: string | undefined;
|
|
@@ -1115,6 +1124,28 @@ export declare namespace AggregationResponse {
|
|
|
1115
1124
|
_: (name: string, value: any) => T;
|
|
1116
1125
|
}
|
|
1117
1126
|
}
|
|
1127
|
+
export interface AmiTagFilter {
|
|
1128
|
+
key: string | undefined;
|
|
1129
|
+
value?: string | undefined;
|
|
1130
|
+
}
|
|
1131
|
+
export interface AmiScanModeConfiguration {
|
|
1132
|
+
scanMode: AmiScanMode | undefined;
|
|
1133
|
+
tags?: AmiTagFilter[] | undefined;
|
|
1134
|
+
excludeCopiedAmis?: boolean | undefined;
|
|
1135
|
+
excludeBackupDlmAmis?: boolean | undefined;
|
|
1136
|
+
}
|
|
1137
|
+
export interface AmiConfiguration {
|
|
1138
|
+
lastLaunchedWithin?: AmiScanDuration | undefined;
|
|
1139
|
+
createdWithin?: AmiScanDuration | undefined;
|
|
1140
|
+
scanModeConfiguration: AmiScanModeConfiguration | undefined;
|
|
1141
|
+
}
|
|
1142
|
+
export interface AmiConfigurationState {
|
|
1143
|
+
lastLaunchedWithin?: AmiScanDuration | undefined;
|
|
1144
|
+
createdWithin?: AmiScanDuration | undefined;
|
|
1145
|
+
scanModeConfiguration?: AmiScanModeConfiguration | undefined;
|
|
1146
|
+
status?: AmiConfigurationStatus | undefined;
|
|
1147
|
+
updatedAt?: Date | undefined;
|
|
1148
|
+
}
|
|
1118
1149
|
export type CodeSecurityResource =
|
|
1119
1150
|
| CodeSecurityResource.ProjectIdMember
|
|
1120
1151
|
| CodeSecurityResource.$UnknownMember;
|
|
@@ -1158,6 +1189,7 @@ export interface AutoEnable {
|
|
|
1158
1189
|
lambda?: boolean | undefined;
|
|
1159
1190
|
lambdaCode?: boolean | undefined;
|
|
1160
1191
|
codeRepository?: boolean | undefined;
|
|
1192
|
+
ami?: boolean | undefined;
|
|
1161
1193
|
}
|
|
1162
1194
|
export interface AwsConfigConnectorArnFilter {
|
|
1163
1195
|
comparison: AwsConfigConnectorArnComparison | undefined;
|
|
@@ -1848,6 +1880,7 @@ export interface CoverageFilterCriteria {
|
|
|
1848
1880
|
lambdaFunctionName?: CoverageStringFilter[] | undefined;
|
|
1849
1881
|
lambdaFunctionTags?: CoverageMapFilter[] | undefined;
|
|
1850
1882
|
lambdaFunctionRuntime?: CoverageStringFilter[] | undefined;
|
|
1883
|
+
machineImageTags?: CoverageMapFilter[] | undefined;
|
|
1851
1884
|
lastScannedAt?: CoverageDateFilter[] | undefined;
|
|
1852
1885
|
scanMode?: CoverageStringFilter[] | undefined;
|
|
1853
1886
|
imagePulledAt?: CoverageDateFilter[] | undefined;
|
|
@@ -1890,6 +1923,10 @@ export interface LambdaFunctionMetadata {
|
|
|
1890
1923
|
functionName?: string | undefined;
|
|
1891
1924
|
runtime?: Runtime | undefined;
|
|
1892
1925
|
}
|
|
1926
|
+
export interface MachineImageMetadata {
|
|
1927
|
+
tags?: Record<string, string> | undefined;
|
|
1928
|
+
platform?: MachineImagePlatform | undefined;
|
|
1929
|
+
}
|
|
1893
1930
|
export interface ServerlessFunctionMetadata {
|
|
1894
1931
|
serverlessFunctionName?: string | undefined;
|
|
1895
1932
|
runtime?: string | undefined;
|
|
@@ -1912,6 +1949,7 @@ export interface ResourceScanMetadata {
|
|
|
1912
1949
|
containerRepository?: ContainerRepositoryMetadata | undefined;
|
|
1913
1950
|
containerRegistry?: ContainerRegistryMetadata | undefined;
|
|
1914
1951
|
serverlessFunction?: ServerlessFunctionMetadata | undefined;
|
|
1952
|
+
machineImage?: MachineImageMetadata | undefined;
|
|
1915
1953
|
}
|
|
1916
1954
|
export interface CoveredResource {
|
|
1917
1955
|
resourceType: CoverageResourceType | undefined;
|
|
@@ -2073,6 +2111,10 @@ export interface FilterCriteria {
|
|
|
2073
2111
|
epssScore?: NumberFilter[] | undefined;
|
|
2074
2112
|
codeRepositoryProjectName?: StringFilter[] | undefined;
|
|
2075
2113
|
codeRepositoryProviderType?: StringFilter[] | undefined;
|
|
2114
|
+
machineImageId?: StringFilter[] | undefined;
|
|
2115
|
+
machineImageName?: StringFilter[] | undefined;
|
|
2116
|
+
machineImageOwnerAccountId?: StringFilter[] | undefined;
|
|
2117
|
+
machineImagePlatform?: StringFilter[] | undefined;
|
|
2076
2118
|
cloudProvider?: StringFilter[] | undefined;
|
|
2077
2119
|
cloudProviderRegion?: StringFilter[] | undefined;
|
|
2078
2120
|
cloudProviderAccountId?: StringFilter[] | undefined;
|
|
@@ -2108,6 +2150,7 @@ export interface Destination {
|
|
|
2108
2150
|
bucketName: string | undefined;
|
|
2109
2151
|
keyPrefix?: string | undefined;
|
|
2110
2152
|
kmsKeyArn: string | undefined;
|
|
2153
|
+
expectedBucketOwner?: string | undefined;
|
|
2111
2154
|
}
|
|
2112
2155
|
export interface CreateFindingsReportRequest {
|
|
2113
2156
|
filterCriteria?: FilterCriteria | undefined;
|
|
@@ -2379,6 +2422,19 @@ export interface Image {
|
|
|
2379
2422
|
lastInUseAt?: Date | undefined;
|
|
2380
2423
|
platform?: string | undefined;
|
|
2381
2424
|
}
|
|
2425
|
+
export interface MachineImageDetails {
|
|
2426
|
+
machineImageId: string | undefined;
|
|
2427
|
+
name?: string | undefined;
|
|
2428
|
+
ownerAccountId?: string | undefined;
|
|
2429
|
+
platform?: string | undefined;
|
|
2430
|
+
architecture?: Architecture | undefined;
|
|
2431
|
+
creationDate?: Date | undefined;
|
|
2432
|
+
state?: string | undefined;
|
|
2433
|
+
isPublic?: boolean | undefined;
|
|
2434
|
+
rootDeviceType?: string | undefined;
|
|
2435
|
+
virtualizationType?: string | undefined;
|
|
2436
|
+
sourceResourceId?: string | undefined;
|
|
2437
|
+
}
|
|
2382
2438
|
export interface ServerlessFunction {
|
|
2383
2439
|
serverlessFunctionName?: string | undefined;
|
|
2384
2440
|
runtime?: string | undefined;
|
|
@@ -2412,6 +2468,7 @@ export interface ResourceDetails {
|
|
|
2412
2468
|
awsEcrContainerImage?: AwsEcrContainerImageDetails | undefined;
|
|
2413
2469
|
awsLambdaFunction?: AwsLambdaFunctionDetails | undefined;
|
|
2414
2470
|
codeRepository?: CodeRepositoryDetails | undefined;
|
|
2471
|
+
machineImage?: MachineImageDetails | undefined;
|
|
2415
2472
|
vm?: Vm | undefined;
|
|
2416
2473
|
image?: Image | undefined;
|
|
2417
2474
|
serverlessFunction?: ServerlessFunction | undefined;
|
|
@@ -2530,6 +2587,7 @@ export interface GetConfigurationRequest {
|
|
|
2530
2587
|
export interface GetConfigurationResponse {
|
|
2531
2588
|
ecrConfiguration?: EcrConfigurationState | undefined;
|
|
2532
2589
|
ec2Configuration?: Ec2ConfigurationState | undefined;
|
|
2590
|
+
amiConfiguration?: AmiConfigurationState | undefined;
|
|
2533
2591
|
}
|
|
2534
2592
|
export interface GetDelegatedAdminAccountRequest {}
|
|
2535
2593
|
export interface GetDelegatedAdminAccountResponse {
|
|
@@ -2572,6 +2630,20 @@ export interface Member {
|
|
|
2572
2630
|
export interface GetMemberResponse {
|
|
2573
2631
|
member?: Member | undefined;
|
|
2574
2632
|
}
|
|
2633
|
+
export interface GetOnDemandScanStatusRequest {
|
|
2634
|
+
resourceId: string | undefined;
|
|
2635
|
+
scanId: string | undefined;
|
|
2636
|
+
resourceType: OnDemandResourceType | undefined;
|
|
2637
|
+
}
|
|
2638
|
+
export interface GetOnDemandScanStatusResponse {
|
|
2639
|
+
scanId: string | undefined;
|
|
2640
|
+
resourceId: string | undefined;
|
|
2641
|
+
resourceType: OnDemandResourceType | undefined;
|
|
2642
|
+
scanStatus: OnDemandScanStatus | undefined;
|
|
2643
|
+
scanStatusReason?: OnDemandScanStatusReason | undefined;
|
|
2644
|
+
startedAt: Date | undefined;
|
|
2645
|
+
completedAt?: Date | undefined;
|
|
2646
|
+
}
|
|
2575
2647
|
export interface GetSbomExportRequest {
|
|
2576
2648
|
reportId: string | undefined;
|
|
2577
2649
|
}
|
|
@@ -2625,52 +2697,3 @@ export interface ListCisScanResultsAggregatedByChecksResponse {
|
|
|
2625
2697
|
checkAggregations?: CisCheckAggregation[] | undefined;
|
|
2626
2698
|
nextToken?: string | undefined;
|
|
2627
2699
|
}
|
|
2628
|
-
export interface ListCisScanResultsAggregatedByTargetResourceRequest {
|
|
2629
|
-
scanArn: string | undefined;
|
|
2630
|
-
filterCriteria?: CisScanResultsAggregatedByTargetResourceFilterCriteria | undefined;
|
|
2631
|
-
sortBy?: CisScanResultsAggregatedByTargetResourceSortBy | undefined;
|
|
2632
|
-
sortOrder?: CisSortOrder | undefined;
|
|
2633
|
-
nextToken?: string | undefined;
|
|
2634
|
-
maxResults?: number | undefined;
|
|
2635
|
-
}
|
|
2636
|
-
export interface ListCisScanResultsAggregatedByTargetResourceResponse {
|
|
2637
|
-
targetResourceAggregations?: CisTargetResourceAggregation[] | undefined;
|
|
2638
|
-
nextToken?: string | undefined;
|
|
2639
|
-
}
|
|
2640
|
-
export interface ListCisScansFilterCriteria {
|
|
2641
|
-
scanNameFilters?: CisStringFilter[] | undefined;
|
|
2642
|
-
targetResourceTagFilters?: TagFilter[] | undefined;
|
|
2643
|
-
targetResourceIdFilters?: CisStringFilter[] | undefined;
|
|
2644
|
-
scanStatusFilters?: CisScanStatusFilter[] | undefined;
|
|
2645
|
-
scanAtFilters?: CisDateFilter[] | undefined;
|
|
2646
|
-
scanConfigurationArnFilters?: CisStringFilter[] | undefined;
|
|
2647
|
-
scanArnFilters?: CisStringFilter[] | undefined;
|
|
2648
|
-
scheduledByFilters?: CisStringFilter[] | undefined;
|
|
2649
|
-
failedChecksFilters?: CisNumberFilter[] | undefined;
|
|
2650
|
-
targetAccountIdFilters?: CisStringFilter[] | undefined;
|
|
2651
|
-
}
|
|
2652
|
-
export interface ListCisScansRequest {
|
|
2653
|
-
filterCriteria?: ListCisScansFilterCriteria | undefined;
|
|
2654
|
-
detailLevel?: ListCisScansDetailLevel | undefined;
|
|
2655
|
-
sortBy?: ListCisScansSortBy | undefined;
|
|
2656
|
-
sortOrder?: CisSortOrder | undefined;
|
|
2657
|
-
nextToken?: string | undefined;
|
|
2658
|
-
maxResults?: number | undefined;
|
|
2659
|
-
}
|
|
2660
|
-
export interface ListCisScansResponse {
|
|
2661
|
-
scans?: CisScan[] | undefined;
|
|
2662
|
-
nextToken?: string | undefined;
|
|
2663
|
-
}
|
|
2664
|
-
export interface ListCodeSecurityIntegrationsRequest {
|
|
2665
|
-
nextToken?: string | undefined;
|
|
2666
|
-
maxResults?: number | undefined;
|
|
2667
|
-
}
|
|
2668
|
-
export interface ListCodeSecurityIntegrationsResponse {
|
|
2669
|
-
integrations?: CodeSecurityIntegrationSummary[] | undefined;
|
|
2670
|
-
nextToken?: string | undefined;
|
|
2671
|
-
}
|
|
2672
|
-
export interface ListCodeSecurityScanConfigurationAssociationsRequest {
|
|
2673
|
-
scanConfigurationArn: string | undefined;
|
|
2674
|
-
nextToken?: string | undefined;
|
|
2675
|
-
maxResults?: number | undefined;
|
|
2676
|
-
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AggregationType,
|
|
3
|
+
CisScanResultsAggregatedByTargetResourceSortBy,
|
|
3
4
|
CisSecurityLevel,
|
|
5
|
+
CisSortOrder,
|
|
4
6
|
CloudProvider,
|
|
5
7
|
CodeScanStatus,
|
|
6
8
|
Currency,
|
|
@@ -9,6 +11,11 @@ import {
|
|
|
9
11
|
GroupKey,
|
|
10
12
|
InheritanceMode,
|
|
11
13
|
IntegrationStatus,
|
|
14
|
+
ListCisScansDetailLevel,
|
|
15
|
+
ListCisScansSortBy,
|
|
16
|
+
OnDemandResourceType,
|
|
17
|
+
OnDemandScanStatus,
|
|
18
|
+
OnDemandScanStatusReason,
|
|
12
19
|
ResourceType,
|
|
13
20
|
ScanType,
|
|
14
21
|
SortField,
|
|
@@ -20,11 +27,20 @@ import {
|
|
|
20
27
|
import {
|
|
21
28
|
AggregationRequest,
|
|
22
29
|
AggregationResponse,
|
|
30
|
+
AmiConfiguration,
|
|
23
31
|
AtigData,
|
|
24
32
|
AutoEnable,
|
|
25
33
|
AzureProviderDetailUpdate,
|
|
26
34
|
CisaData,
|
|
35
|
+
CisDateFilter,
|
|
36
|
+
CisNumberFilter,
|
|
37
|
+
CisScan,
|
|
38
|
+
CisScanResultsAggregatedByTargetResourceFilterCriteria,
|
|
39
|
+
CisScanStatusFilter,
|
|
27
40
|
CisSessionMessage,
|
|
41
|
+
CisStringFilter,
|
|
42
|
+
CisTargetResourceAggregation,
|
|
43
|
+
CodeSecurityIntegrationSummary,
|
|
28
44
|
CodeSecurityResource,
|
|
29
45
|
CodeSecurityScanConfiguration,
|
|
30
46
|
CodeSecurityScanConfigurationAssociationSummary,
|
|
@@ -51,7 +67,57 @@ import {
|
|
|
51
67
|
Member,
|
|
52
68
|
Schedule,
|
|
53
69
|
StringFilter,
|
|
70
|
+
TagFilter,
|
|
54
71
|
} from "./models_0";
|
|
72
|
+
export interface ListCisScanResultsAggregatedByTargetResourceRequest {
|
|
73
|
+
scanArn: string | undefined;
|
|
74
|
+
filterCriteria?: CisScanResultsAggregatedByTargetResourceFilterCriteria | undefined;
|
|
75
|
+
sortBy?: CisScanResultsAggregatedByTargetResourceSortBy | undefined;
|
|
76
|
+
sortOrder?: CisSortOrder | undefined;
|
|
77
|
+
nextToken?: string | undefined;
|
|
78
|
+
maxResults?: number | undefined;
|
|
79
|
+
}
|
|
80
|
+
export interface ListCisScanResultsAggregatedByTargetResourceResponse {
|
|
81
|
+
targetResourceAggregations?: CisTargetResourceAggregation[] | undefined;
|
|
82
|
+
nextToken?: string | undefined;
|
|
83
|
+
}
|
|
84
|
+
export interface ListCisScansFilterCriteria {
|
|
85
|
+
scanNameFilters?: CisStringFilter[] | undefined;
|
|
86
|
+
targetResourceTagFilters?: TagFilter[] | undefined;
|
|
87
|
+
targetResourceIdFilters?: CisStringFilter[] | undefined;
|
|
88
|
+
scanStatusFilters?: CisScanStatusFilter[] | undefined;
|
|
89
|
+
scanAtFilters?: CisDateFilter[] | undefined;
|
|
90
|
+
scanConfigurationArnFilters?: CisStringFilter[] | undefined;
|
|
91
|
+
scanArnFilters?: CisStringFilter[] | undefined;
|
|
92
|
+
scheduledByFilters?: CisStringFilter[] | undefined;
|
|
93
|
+
failedChecksFilters?: CisNumberFilter[] | undefined;
|
|
94
|
+
targetAccountIdFilters?: CisStringFilter[] | undefined;
|
|
95
|
+
}
|
|
96
|
+
export interface ListCisScansRequest {
|
|
97
|
+
filterCriteria?: ListCisScansFilterCriteria | undefined;
|
|
98
|
+
detailLevel?: ListCisScansDetailLevel | undefined;
|
|
99
|
+
sortBy?: ListCisScansSortBy | undefined;
|
|
100
|
+
sortOrder?: CisSortOrder | undefined;
|
|
101
|
+
nextToken?: string | undefined;
|
|
102
|
+
maxResults?: number | undefined;
|
|
103
|
+
}
|
|
104
|
+
export interface ListCisScansResponse {
|
|
105
|
+
scans?: CisScan[] | undefined;
|
|
106
|
+
nextToken?: string | undefined;
|
|
107
|
+
}
|
|
108
|
+
export interface ListCodeSecurityIntegrationsRequest {
|
|
109
|
+
nextToken?: string | undefined;
|
|
110
|
+
maxResults?: number | undefined;
|
|
111
|
+
}
|
|
112
|
+
export interface ListCodeSecurityIntegrationsResponse {
|
|
113
|
+
integrations?: CodeSecurityIntegrationSummary[] | undefined;
|
|
114
|
+
nextToken?: string | undefined;
|
|
115
|
+
}
|
|
116
|
+
export interface ListCodeSecurityScanConfigurationAssociationsRequest {
|
|
117
|
+
scanConfigurationArn: string | undefined;
|
|
118
|
+
nextToken?: string | undefined;
|
|
119
|
+
maxResults?: number | undefined;
|
|
120
|
+
}
|
|
55
121
|
export interface ListCodeSecurityScanConfigurationAssociationsResponse {
|
|
56
122
|
associations?: CodeSecurityScanConfigurationAssociationSummary[] | undefined;
|
|
57
123
|
nextToken?: string | undefined;
|
|
@@ -154,6 +220,25 @@ export interface ListMembersResponse {
|
|
|
154
220
|
members?: Member[] | undefined;
|
|
155
221
|
nextToken?: string | undefined;
|
|
156
222
|
}
|
|
223
|
+
export interface ListOnDemandScansRequest {
|
|
224
|
+
resourceId: string | undefined;
|
|
225
|
+
resourceType: OnDemandResourceType | undefined;
|
|
226
|
+
maxResults?: number | undefined;
|
|
227
|
+
nextToken?: string | undefined;
|
|
228
|
+
}
|
|
229
|
+
export interface OnDemandScan {
|
|
230
|
+
scanId: string | undefined;
|
|
231
|
+
resourceId: string | undefined;
|
|
232
|
+
resourceType: OnDemandResourceType | undefined;
|
|
233
|
+
scanStatus: OnDemandScanStatus | undefined;
|
|
234
|
+
scanStatusReason?: OnDemandScanStatusReason | undefined;
|
|
235
|
+
startedAt: Date | undefined;
|
|
236
|
+
completedAt?: Date | undefined;
|
|
237
|
+
}
|
|
238
|
+
export interface ListOnDemandScansResponse {
|
|
239
|
+
items: OnDemandScan[] | undefined;
|
|
240
|
+
nextToken?: string | undefined;
|
|
241
|
+
}
|
|
157
242
|
export interface ListTagsForResourceRequest {
|
|
158
243
|
resourceArn: string | undefined;
|
|
159
244
|
}
|
|
@@ -243,6 +328,14 @@ export interface StartCodeSecurityScanResponse {
|
|
|
243
328
|
scanId?: string | undefined;
|
|
244
329
|
status?: CodeScanStatus | undefined;
|
|
245
330
|
}
|
|
331
|
+
export interface StartOnDemandScanRequest {
|
|
332
|
+
resourceId: string | undefined;
|
|
333
|
+
resourceType: OnDemandResourceType | undefined;
|
|
334
|
+
clientToken?: string | undefined;
|
|
335
|
+
}
|
|
336
|
+
export interface StartOnDemandScanResponse {
|
|
337
|
+
scanId: string | undefined;
|
|
338
|
+
}
|
|
246
339
|
export interface StopCisMessageProgress {
|
|
247
340
|
totalChecks?: number | undefined;
|
|
248
341
|
successfulChecks?: number | undefined;
|
|
@@ -342,11 +435,13 @@ export interface UpdateCodeSecurityScanConfigurationResponse {
|
|
|
342
435
|
export interface UpdateConfigurationInheritance {
|
|
343
436
|
ec2Configuration?: InheritanceMode | undefined;
|
|
344
437
|
ecrConfiguration?: InheritanceMode | undefined;
|
|
438
|
+
amiConfiguration?: InheritanceMode | undefined;
|
|
345
439
|
}
|
|
346
440
|
export interface UpdateConfigurationRequest {
|
|
347
441
|
accountId?: string | undefined;
|
|
348
442
|
ecrConfiguration?: EcrConfiguration | undefined;
|
|
349
443
|
ec2Configuration?: Ec2Configuration | undefined;
|
|
444
|
+
amiConfiguration?: AmiConfiguration | undefined;
|
|
350
445
|
updateConfigurationInheritance?: UpdateConfigurationInheritance | undefined;
|
|
351
446
|
}
|
|
352
447
|
export interface UpdateConfigurationResponse {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListOnDemandScansCommandInput,
|
|
4
|
+
ListOnDemandScansCommandOutput,
|
|
5
|
+
} from "../commands/ListOnDemandScansCommand";
|
|
6
|
+
import { Inspector2PaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListOnDemandScans: (
|
|
8
|
+
config: Inspector2PaginationConfiguration,
|
|
9
|
+
input: ListOnDemandScansCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListOnDemandScansCommandOutput>;
|
|
@@ -15,5 +15,6 @@ export * from "./ListFiltersPaginator";
|
|
|
15
15
|
export * from "./ListFindingAggregationsPaginator";
|
|
16
16
|
export * from "./ListFindingsPaginator";
|
|
17
17
|
export * from "./ListMembersPaginator";
|
|
18
|
+
export * from "./ListOnDemandScansPaginator";
|
|
18
19
|
export * from "./ListUsageTotalsPaginator";
|
|
19
20
|
export * from "./SearchVulnerabilitiesPaginator";
|
|
@@ -21,6 +21,10 @@ export declare var AccountAggregationResponse$: StaticStructureSchema;
|
|
|
21
21
|
export declare var AccountState$: StaticStructureSchema;
|
|
22
22
|
export declare var AmiAggregation$: StaticStructureSchema;
|
|
23
23
|
export declare var AmiAggregationResponse$: StaticStructureSchema;
|
|
24
|
+
export declare var AmiConfiguration$: StaticStructureSchema;
|
|
25
|
+
export declare var AmiConfigurationState$: StaticStructureSchema;
|
|
26
|
+
export declare var AmiScanModeConfiguration$: StaticStructureSchema;
|
|
27
|
+
export declare var AmiTagFilter$: StaticStructureSchema;
|
|
24
28
|
export declare var AssociateConfigurationRequest$: StaticStructureSchema;
|
|
25
29
|
export declare var AssociateMemberRequest$: StaticStructureSchema;
|
|
26
30
|
export declare var AssociateMemberResponse$: StaticStructureSchema;
|
|
@@ -221,6 +225,8 @@ export declare var GetFindingsReportStatusRequest$: StaticStructureSchema;
|
|
|
221
225
|
export declare var GetFindingsReportStatusResponse$: StaticStructureSchema;
|
|
222
226
|
export declare var GetMemberRequest$: StaticStructureSchema;
|
|
223
227
|
export declare var GetMemberResponse$: StaticStructureSchema;
|
|
228
|
+
export declare var GetOnDemandScanStatusRequest$: StaticStructureSchema;
|
|
229
|
+
export declare var GetOnDemandScanStatusResponse$: StaticStructureSchema;
|
|
224
230
|
export declare var GetSbomExportRequest$: StaticStructureSchema;
|
|
225
231
|
export declare var GetSbomExportResponse$: StaticStructureSchema;
|
|
226
232
|
export declare var Image$: StaticStructureSchema;
|
|
@@ -269,10 +275,14 @@ export declare var ListFindingsRequest$: StaticStructureSchema;
|
|
|
269
275
|
export declare var ListFindingsResponse$: StaticStructureSchema;
|
|
270
276
|
export declare var ListMembersRequest$: StaticStructureSchema;
|
|
271
277
|
export declare var ListMembersResponse$: StaticStructureSchema;
|
|
278
|
+
export declare var ListOnDemandScansRequest$: StaticStructureSchema;
|
|
279
|
+
export declare var ListOnDemandScansResponse$: StaticStructureSchema;
|
|
272
280
|
export declare var ListTagsForResourceRequest$: StaticStructureSchema;
|
|
273
281
|
export declare var ListTagsForResourceResponse$: StaticStructureSchema;
|
|
274
282
|
export declare var ListUsageTotalsRequest$: StaticStructureSchema;
|
|
275
283
|
export declare var ListUsageTotalsResponse$: StaticStructureSchema;
|
|
284
|
+
export declare var MachineImageDetails$: StaticStructureSchema;
|
|
285
|
+
export declare var MachineImageMetadata$: StaticStructureSchema;
|
|
276
286
|
export declare var MapFilter$: StaticStructureSchema;
|
|
277
287
|
export declare var Member$: StaticStructureSchema;
|
|
278
288
|
export declare var MemberAccountEc2DeepInspectionStatus$: StaticStructureSchema;
|
|
@@ -281,6 +291,7 @@ export declare var MonthlySchedule$: StaticStructureSchema;
|
|
|
281
291
|
export declare var NetworkPath$: StaticStructureSchema;
|
|
282
292
|
export declare var NetworkReachabilityDetails$: StaticStructureSchema;
|
|
283
293
|
export declare var NumberFilter$: StaticStructureSchema;
|
|
294
|
+
export declare var OnDemandScan$: StaticStructureSchema;
|
|
284
295
|
export declare var OneTimeSchedule$: StaticStructureSchema;
|
|
285
296
|
export declare var PackageAggregation$: StaticStructureSchema;
|
|
286
297
|
export declare var PackageAggregationResponse$: StaticStructureSchema;
|
|
@@ -330,6 +341,8 @@ export declare var StartCisSessionRequest$: StaticStructureSchema;
|
|
|
330
341
|
export declare var StartCisSessionResponse$: StaticStructureSchema;
|
|
331
342
|
export declare var StartCodeSecurityScanRequest$: StaticStructureSchema;
|
|
332
343
|
export declare var StartCodeSecurityScanResponse$: StaticStructureSchema;
|
|
344
|
+
export declare var StartOnDemandScanRequest$: StaticStructureSchema;
|
|
345
|
+
export declare var StartOnDemandScanResponse$: StaticStructureSchema;
|
|
333
346
|
export declare var State$: StaticStructureSchema;
|
|
334
347
|
export declare var StatusCounts$: StaticStructureSchema;
|
|
335
348
|
export declare var Step$: StaticStructureSchema;
|
|
@@ -435,6 +448,7 @@ export declare var GetEc2DeepInspectionConfiguration$: StaticOperationSchema;
|
|
|
435
448
|
export declare var GetEncryptionKey$: StaticOperationSchema;
|
|
436
449
|
export declare var GetFindingsReportStatus$: StaticOperationSchema;
|
|
437
450
|
export declare var GetMember$: StaticOperationSchema;
|
|
451
|
+
export declare var GetOnDemandScanStatus$: StaticOperationSchema;
|
|
438
452
|
export declare var GetSbomExport$: StaticOperationSchema;
|
|
439
453
|
export declare var ListAccountPermissions$: StaticOperationSchema;
|
|
440
454
|
export declare var ListCisScanConfigurations$: StaticOperationSchema;
|
|
@@ -453,6 +467,7 @@ export declare var ListFilters$: StaticOperationSchema;
|
|
|
453
467
|
export declare var ListFindingAggregations$: StaticOperationSchema;
|
|
454
468
|
export declare var ListFindings$: StaticOperationSchema;
|
|
455
469
|
export declare var ListMembers$: StaticOperationSchema;
|
|
470
|
+
export declare var ListOnDemandScans$: StaticOperationSchema;
|
|
456
471
|
export declare var ListTagsForResource$: StaticOperationSchema;
|
|
457
472
|
export declare var ListUsageTotals$: StaticOperationSchema;
|
|
458
473
|
export declare var ResetEncryptionKey$: StaticOperationSchema;
|
|
@@ -461,6 +476,7 @@ export declare var SendCisSessionHealth$: StaticOperationSchema;
|
|
|
461
476
|
export declare var SendCisSessionTelemetry$: StaticOperationSchema;
|
|
462
477
|
export declare var StartCisSession$: StaticOperationSchema;
|
|
463
478
|
export declare var StartCodeSecurityScan$: StaticOperationSchema;
|
|
479
|
+
export declare var StartOnDemandScan$: StaticOperationSchema;
|
|
464
480
|
export declare var StopCisSession$: StaticOperationSchema;
|
|
465
481
|
export declare var TagResource$: StaticOperationSchema;
|
|
466
482
|
export declare var UntagResource$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-inspector2",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1158.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Inspector2 Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-inspector2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.978.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
49
|
+
"@aws-sdk/core": "^3.978.6",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.89",
|
|
51
51
|
"@aws-sdk/types": "^3.975.0",
|
|
52
|
-
"@smithy/core": "^3.
|
|
52
|
+
"@smithy/core": "^3.37.0",
|
|
53
53
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
54
|
-
"@smithy/node-http-handler": "^4.
|
|
54
|
+
"@smithy/node-http-handler": "^4.13.0",
|
|
55
55
|
"@smithy/types": "^4.19.0",
|
|
56
56
|
"tslib": "^2.6.2"
|
|
57
57
|
},
|