@aws-sdk/client-inspector2 3.810.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 +5 -5
|
@@ -3,7 +3,7 @@ import { requestBuilder as rb } from "@smithy/core";
|
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { Inspector2ServiceException as __BaseException } from "../models/Inspector2ServiceException";
|
|
6
|
-
import { AccessDeniedException, BadRequestException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
+
import { AccessDeniedException, AggregationRequest, BadRequestException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
7
|
export const se_AssociateMemberCommand = async (input, context) => {
|
|
8
8
|
const b = rb(input, context);
|
|
9
9
|
const headers = {
|
|
@@ -324,6 +324,21 @@ export const se_GetCisScanResultDetailsCommand = async (input, context) => {
|
|
|
324
324
|
b.m("POST").h(headers).b(body);
|
|
325
325
|
return b.build();
|
|
326
326
|
};
|
|
327
|
+
export const se_GetClustersForImageCommand = async (input, context) => {
|
|
328
|
+
const b = rb(input, context);
|
|
329
|
+
const headers = {
|
|
330
|
+
"content-type": "application/json",
|
|
331
|
+
};
|
|
332
|
+
b.bp("/cluster/get");
|
|
333
|
+
let body;
|
|
334
|
+
body = JSON.stringify(take(input, {
|
|
335
|
+
filter: (_) => _json(_),
|
|
336
|
+
maxResults: [],
|
|
337
|
+
nextToken: [],
|
|
338
|
+
}));
|
|
339
|
+
b.m("POST").h(headers).b(body);
|
|
340
|
+
return b.build();
|
|
341
|
+
};
|
|
327
342
|
export const se_GetConfigurationCommand = async (input, context) => {
|
|
328
343
|
const b = rb(input, context);
|
|
329
344
|
const headers = {};
|
|
@@ -554,7 +569,7 @@ export const se_ListFindingAggregationsCommand = async (input, context) => {
|
|
|
554
569
|
let body;
|
|
555
570
|
body = JSON.stringify(take(input, {
|
|
556
571
|
accountIds: (_) => _json(_),
|
|
557
|
-
aggregationRequest: (_) =>
|
|
572
|
+
aggregationRequest: (_) => se_AggregationRequest(_, context),
|
|
558
573
|
aggregationType: [],
|
|
559
574
|
maxResults: [],
|
|
560
575
|
nextToken: [],
|
|
@@ -1166,6 +1181,21 @@ export const de_GetCisScanResultDetailsCommand = async (output, context) => {
|
|
|
1166
1181
|
Object.assign(contents, doc);
|
|
1167
1182
|
return contents;
|
|
1168
1183
|
};
|
|
1184
|
+
export const de_GetClustersForImageCommand = async (output, context) => {
|
|
1185
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1186
|
+
return de_CommandError(output, context);
|
|
1187
|
+
}
|
|
1188
|
+
const contents = map({
|
|
1189
|
+
$metadata: deserializeMetadata(output),
|
|
1190
|
+
});
|
|
1191
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1192
|
+
const doc = take(data, {
|
|
1193
|
+
cluster: (_) => de_ClusterInformationList(_, context),
|
|
1194
|
+
nextToken: __expectString,
|
|
1195
|
+
});
|
|
1196
|
+
Object.assign(contents, doc);
|
|
1197
|
+
return contents;
|
|
1198
|
+
};
|
|
1169
1199
|
export const de_GetConfigurationCommand = async (output, context) => {
|
|
1170
1200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1171
1201
|
return de_CommandError(output, context);
|
|
@@ -1818,6 +1848,37 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1818
1848
|
});
|
|
1819
1849
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1820
1850
|
};
|
|
1851
|
+
const se_AggregationRequest = (input, context) => {
|
|
1852
|
+
return AggregationRequest.visit(input, {
|
|
1853
|
+
accountAggregation: (value) => ({ accountAggregation: _json(value) }),
|
|
1854
|
+
amiAggregation: (value) => ({ amiAggregation: _json(value) }),
|
|
1855
|
+
awsEcrContainerAggregation: (value) => ({
|
|
1856
|
+
awsEcrContainerAggregation: se_AwsEcrContainerAggregation(value, context),
|
|
1857
|
+
}),
|
|
1858
|
+
ec2InstanceAggregation: (value) => ({ ec2InstanceAggregation: _json(value) }),
|
|
1859
|
+
findingTypeAggregation: (value) => ({ findingTypeAggregation: _json(value) }),
|
|
1860
|
+
imageLayerAggregation: (value) => ({ imageLayerAggregation: _json(value) }),
|
|
1861
|
+
lambdaFunctionAggregation: (value) => ({ lambdaFunctionAggregation: _json(value) }),
|
|
1862
|
+
lambdaLayerAggregation: (value) => ({ lambdaLayerAggregation: _json(value) }),
|
|
1863
|
+
packageAggregation: (value) => ({ packageAggregation: _json(value) }),
|
|
1864
|
+
repositoryAggregation: (value) => ({ repositoryAggregation: _json(value) }),
|
|
1865
|
+
titleAggregation: (value) => ({ titleAggregation: _json(value) }),
|
|
1866
|
+
_: (name, value) => ({ [name]: value }),
|
|
1867
|
+
});
|
|
1868
|
+
};
|
|
1869
|
+
const se_AwsEcrContainerAggregation = (input, context) => {
|
|
1870
|
+
return take(input, {
|
|
1871
|
+
architectures: _json,
|
|
1872
|
+
imageShas: _json,
|
|
1873
|
+
imageTags: _json,
|
|
1874
|
+
inUseCount: (_) => se_NumberFilterList(_, context),
|
|
1875
|
+
lastInUseAt: (_) => se_DateFilterList(_, context),
|
|
1876
|
+
repositories: _json,
|
|
1877
|
+
resourceIds: _json,
|
|
1878
|
+
sortBy: [],
|
|
1879
|
+
sortOrder: [],
|
|
1880
|
+
});
|
|
1881
|
+
};
|
|
1821
1882
|
const se_CisDateFilter = (input, context) => {
|
|
1822
1883
|
return take(input, {
|
|
1823
1884
|
earliestScanStartTime: (_) => _.getTime() / 1_000,
|
|
@@ -1862,6 +1923,8 @@ const se_CoverageFilterCriteria = (input, context) => {
|
|
|
1862
1923
|
return take(input, {
|
|
1863
1924
|
accountId: _json,
|
|
1864
1925
|
ec2InstanceTags: _json,
|
|
1926
|
+
ecrImageInUseCount: _json,
|
|
1927
|
+
ecrImageLastInUseAt: (_) => se_CoverageDateFilterList(_, context),
|
|
1865
1928
|
ecrImageTags: _json,
|
|
1866
1929
|
ecrRepositoryName: _json,
|
|
1867
1930
|
imagePulledAt: (_) => se_CoverageDateFilterList(_, context),
|
|
@@ -1903,6 +1966,8 @@ const se_FilterCriteria = (input, context) => {
|
|
|
1903
1966
|
ec2InstanceVpcId: _json,
|
|
1904
1967
|
ecrImageArchitecture: _json,
|
|
1905
1968
|
ecrImageHash: _json,
|
|
1969
|
+
ecrImageInUseCount: (_) => se_NumberFilterList(_, context),
|
|
1970
|
+
ecrImageLastInUseAt: (_) => se_DateFilterList(_, context),
|
|
1906
1971
|
ecrImagePushedAt: (_) => se_DateFilterList(_, context),
|
|
1907
1972
|
ecrImageRegistry: _json,
|
|
1908
1973
|
ecrImageRepositoryName: _json,
|
|
@@ -1995,7 +2060,7 @@ const de_AggregationResponse = (output, context) => {
|
|
|
1995
2060
|
}
|
|
1996
2061
|
if (output.awsEcrContainerAggregation != null) {
|
|
1997
2062
|
return {
|
|
1998
|
-
awsEcrContainerAggregation:
|
|
2063
|
+
awsEcrContainerAggregation: de_AwsEcrContainerAggregationResponse(output.awsEcrContainerAggregation, context),
|
|
1999
2064
|
};
|
|
2000
2065
|
}
|
|
2001
2066
|
if (output.ec2InstanceAggregation != null) {
|
|
@@ -2070,12 +2135,27 @@ const de_AwsEc2InstanceDetails = (output, context) => {
|
|
|
2070
2135
|
vpcId: __expectString,
|
|
2071
2136
|
});
|
|
2072
2137
|
};
|
|
2138
|
+
const de_AwsEcrContainerAggregationResponse = (output, context) => {
|
|
2139
|
+
return take(output, {
|
|
2140
|
+
accountId: __expectString,
|
|
2141
|
+
architecture: __expectString,
|
|
2142
|
+
imageSha: __expectString,
|
|
2143
|
+
imageTags: _json,
|
|
2144
|
+
inUseCount: __expectLong,
|
|
2145
|
+
lastInUseAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2146
|
+
repository: __expectString,
|
|
2147
|
+
resourceId: __expectString,
|
|
2148
|
+
severityCounts: _json,
|
|
2149
|
+
});
|
|
2150
|
+
};
|
|
2073
2151
|
const de_AwsEcrContainerImageDetails = (output, context) => {
|
|
2074
2152
|
return take(output, {
|
|
2075
2153
|
architecture: __expectString,
|
|
2076
2154
|
author: __expectString,
|
|
2077
2155
|
imageHash: __expectString,
|
|
2078
2156
|
imageTags: _json,
|
|
2157
|
+
inUseCount: __expectLong,
|
|
2158
|
+
lastInUseAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2079
2159
|
platform: __expectString,
|
|
2080
2160
|
pushedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2081
2161
|
registry: __expectString,
|
|
@@ -2125,6 +2205,36 @@ const de_CisScanList = (output, context) => {
|
|
|
2125
2205
|
});
|
|
2126
2206
|
return retVal;
|
|
2127
2207
|
};
|
|
2208
|
+
const de_ClusterDetails = (output, context) => {
|
|
2209
|
+
return take(output, {
|
|
2210
|
+
clusterMetadata: (_) => _json(__expectUnion(_)),
|
|
2211
|
+
lastInUse: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2212
|
+
runningUnitCount: __expectLong,
|
|
2213
|
+
stoppedUnitCount: __expectLong,
|
|
2214
|
+
});
|
|
2215
|
+
};
|
|
2216
|
+
const de_ClusterDetailsList = (output, context) => {
|
|
2217
|
+
const retVal = (output || [])
|
|
2218
|
+
.filter((e) => e != null)
|
|
2219
|
+
.map((entry) => {
|
|
2220
|
+
return de_ClusterDetails(entry, context);
|
|
2221
|
+
});
|
|
2222
|
+
return retVal;
|
|
2223
|
+
};
|
|
2224
|
+
const de_ClusterInformation = (output, context) => {
|
|
2225
|
+
return take(output, {
|
|
2226
|
+
clusterArn: __expectString,
|
|
2227
|
+
clusterDetails: (_) => de_ClusterDetailsList(_, context),
|
|
2228
|
+
});
|
|
2229
|
+
};
|
|
2230
|
+
const de_ClusterInformationList = (output, context) => {
|
|
2231
|
+
const retVal = (output || [])
|
|
2232
|
+
.filter((e) => e != null)
|
|
2233
|
+
.map((entry) => {
|
|
2234
|
+
return de_ClusterInformation(entry, context);
|
|
2235
|
+
});
|
|
2236
|
+
return retVal;
|
|
2237
|
+
};
|
|
2128
2238
|
const de_CoveredResource = (output, context) => {
|
|
2129
2239
|
return take(output, {
|
|
2130
2240
|
accountId: __expectString,
|
|
@@ -2205,12 +2315,15 @@ const de_EcrConfigurationState = (output, context) => {
|
|
|
2205
2315
|
const de_EcrContainerImageMetadata = (output, context) => {
|
|
2206
2316
|
return take(output, {
|
|
2207
2317
|
imagePulledAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2318
|
+
inUseCount: __expectLong,
|
|
2319
|
+
lastInUseAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2208
2320
|
tags: _json,
|
|
2209
2321
|
});
|
|
2210
2322
|
};
|
|
2211
2323
|
const de_EcrRescanDurationState = (output, context) => {
|
|
2212
2324
|
return take(output, {
|
|
2213
2325
|
pullDateRescanDuration: __expectString,
|
|
2326
|
+
pullDateRescanMode: __expectString,
|
|
2214
2327
|
rescanDuration: __expectString,
|
|
2215
2328
|
status: __expectString,
|
|
2216
2329
|
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -2264,6 +2377,8 @@ const de_FilterCriteria = (output, context) => {
|
|
|
2264
2377
|
ec2InstanceVpcId: _json,
|
|
2265
2378
|
ecrImageArchitecture: _json,
|
|
2266
2379
|
ecrImageHash: _json,
|
|
2380
|
+
ecrImageInUseCount: (_) => de_NumberFilterList(_, context),
|
|
2381
|
+
ecrImageLastInUseAt: (_) => de_DateFilterList(_, context),
|
|
2267
2382
|
ecrImagePushedAt: (_) => de_DateFilterList(_, context),
|
|
2268
2383
|
ecrImageRegistry: _json,
|
|
2269
2384
|
ecrImageRepositoryName: _json,
|
|
@@ -22,6 +22,7 @@ import { EnableCommandInput, EnableCommandOutput } from "./commands/EnableComman
|
|
|
22
22
|
import { EnableDelegatedAdminAccountCommandInput, EnableDelegatedAdminAccountCommandOutput } from "./commands/EnableDelegatedAdminAccountCommand";
|
|
23
23
|
import { GetCisScanReportCommandInput, GetCisScanReportCommandOutput } from "./commands/GetCisScanReportCommand";
|
|
24
24
|
import { GetCisScanResultDetailsCommandInput, GetCisScanResultDetailsCommandOutput } from "./commands/GetCisScanResultDetailsCommand";
|
|
25
|
+
import { GetClustersForImageCommandInput, GetClustersForImageCommandOutput } from "./commands/GetClustersForImageCommand";
|
|
25
26
|
import { GetConfigurationCommandInput, GetConfigurationCommandOutput } from "./commands/GetConfigurationCommand";
|
|
26
27
|
import { GetDelegatedAdminAccountCommandInput, GetDelegatedAdminAccountCommandOutput } from "./commands/GetDelegatedAdminAccountCommand";
|
|
27
28
|
import { GetEc2DeepInspectionConfigurationCommandInput, GetEc2DeepInspectionConfigurationCommandOutput } from "./commands/GetEc2DeepInspectionConfigurationCommand";
|
|
@@ -202,6 +203,12 @@ export interface Inspector2 {
|
|
|
202
203
|
getCisScanResultDetails(args: GetCisScanResultDetailsCommandInput, options?: __HttpHandlerOptions): Promise<GetCisScanResultDetailsCommandOutput>;
|
|
203
204
|
getCisScanResultDetails(args: GetCisScanResultDetailsCommandInput, cb: (err: any, data?: GetCisScanResultDetailsCommandOutput) => void): void;
|
|
204
205
|
getCisScanResultDetails(args: GetCisScanResultDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCisScanResultDetailsCommandOutput) => void): void;
|
|
206
|
+
/**
|
|
207
|
+
* @see {@link GetClustersForImageCommand}
|
|
208
|
+
*/
|
|
209
|
+
getClustersForImage(args: GetClustersForImageCommandInput, options?: __HttpHandlerOptions): Promise<GetClustersForImageCommandOutput>;
|
|
210
|
+
getClustersForImage(args: GetClustersForImageCommandInput, cb: (err: any, data?: GetClustersForImageCommandOutput) => void): void;
|
|
211
|
+
getClustersForImage(args: GetClustersForImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetClustersForImageCommandOutput) => void): void;
|
|
205
212
|
/**
|
|
206
213
|
* @see {@link GetConfigurationCommand}
|
|
207
214
|
*/
|
|
@@ -30,6 +30,7 @@ import { EnableCommandInput, EnableCommandOutput } from "./commands/EnableComman
|
|
|
30
30
|
import { EnableDelegatedAdminAccountCommandInput, EnableDelegatedAdminAccountCommandOutput } from "./commands/EnableDelegatedAdminAccountCommand";
|
|
31
31
|
import { GetCisScanReportCommandInput, GetCisScanReportCommandOutput } from "./commands/GetCisScanReportCommand";
|
|
32
32
|
import { GetCisScanResultDetailsCommandInput, GetCisScanResultDetailsCommandOutput } from "./commands/GetCisScanResultDetailsCommand";
|
|
33
|
+
import { GetClustersForImageCommandInput, GetClustersForImageCommandOutput } from "./commands/GetClustersForImageCommand";
|
|
33
34
|
import { GetConfigurationCommandInput, GetConfigurationCommandOutput } from "./commands/GetConfigurationCommand";
|
|
34
35
|
import { GetDelegatedAdminAccountCommandInput, GetDelegatedAdminAccountCommandOutput } from "./commands/GetDelegatedAdminAccountCommand";
|
|
35
36
|
import { GetEc2DeepInspectionConfigurationCommandInput, GetEc2DeepInspectionConfigurationCommandOutput } from "./commands/GetEc2DeepInspectionConfigurationCommand";
|
|
@@ -72,11 +73,11 @@ export { __Client };
|
|
|
72
73
|
/**
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
|
-
export type ServiceInputTypes = AssociateMemberCommandInput | BatchGetAccountStatusCommandInput | BatchGetCodeSnippetCommandInput | BatchGetFindingDetailsCommandInput | BatchGetFreeTrialInfoCommandInput | BatchGetMemberEc2DeepInspectionStatusCommandInput | BatchUpdateMemberEc2DeepInspectionStatusCommandInput | CancelFindingsReportCommandInput | CancelSbomExportCommandInput | CreateCisScanConfigurationCommandInput | CreateFilterCommandInput | CreateFindingsReportCommandInput | CreateSbomExportCommandInput | DeleteCisScanConfigurationCommandInput | DeleteFilterCommandInput | DescribeOrganizationConfigurationCommandInput | DisableCommandInput | DisableDelegatedAdminAccountCommandInput | DisassociateMemberCommandInput | EnableCommandInput | EnableDelegatedAdminAccountCommandInput | GetCisScanReportCommandInput | GetCisScanResultDetailsCommandInput | GetConfigurationCommandInput | GetDelegatedAdminAccountCommandInput | GetEc2DeepInspectionConfigurationCommandInput | GetEncryptionKeyCommandInput | GetFindingsReportStatusCommandInput | GetMemberCommandInput | GetSbomExportCommandInput | ListAccountPermissionsCommandInput | ListCisScanConfigurationsCommandInput | ListCisScanResultsAggregatedByChecksCommandInput | ListCisScanResultsAggregatedByTargetResourceCommandInput | ListCisScansCommandInput | ListCoverageCommandInput | ListCoverageStatisticsCommandInput | ListDelegatedAdminAccountsCommandInput | ListFiltersCommandInput | ListFindingAggregationsCommandInput | ListFindingsCommandInput | ListMembersCommandInput | ListTagsForResourceCommandInput | ListUsageTotalsCommandInput | ResetEncryptionKeyCommandInput | SearchVulnerabilitiesCommandInput | SendCisSessionHealthCommandInput | SendCisSessionTelemetryCommandInput | StartCisSessionCommandInput | StopCisSessionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCisScanConfigurationCommandInput | UpdateConfigurationCommandInput | UpdateEc2DeepInspectionConfigurationCommandInput | UpdateEncryptionKeyCommandInput | UpdateFilterCommandInput | UpdateOrgEc2DeepInspectionConfigurationCommandInput | UpdateOrganizationConfigurationCommandInput;
|
|
76
|
+
export type ServiceInputTypes = AssociateMemberCommandInput | BatchGetAccountStatusCommandInput | BatchGetCodeSnippetCommandInput | BatchGetFindingDetailsCommandInput | BatchGetFreeTrialInfoCommandInput | BatchGetMemberEc2DeepInspectionStatusCommandInput | BatchUpdateMemberEc2DeepInspectionStatusCommandInput | CancelFindingsReportCommandInput | CancelSbomExportCommandInput | CreateCisScanConfigurationCommandInput | CreateFilterCommandInput | CreateFindingsReportCommandInput | CreateSbomExportCommandInput | DeleteCisScanConfigurationCommandInput | DeleteFilterCommandInput | DescribeOrganizationConfigurationCommandInput | DisableCommandInput | DisableDelegatedAdminAccountCommandInput | DisassociateMemberCommandInput | EnableCommandInput | EnableDelegatedAdminAccountCommandInput | GetCisScanReportCommandInput | GetCisScanResultDetailsCommandInput | GetClustersForImageCommandInput | GetConfigurationCommandInput | GetDelegatedAdminAccountCommandInput | GetEc2DeepInspectionConfigurationCommandInput | GetEncryptionKeyCommandInput | GetFindingsReportStatusCommandInput | GetMemberCommandInput | GetSbomExportCommandInput | ListAccountPermissionsCommandInput | ListCisScanConfigurationsCommandInput | ListCisScanResultsAggregatedByChecksCommandInput | ListCisScanResultsAggregatedByTargetResourceCommandInput | ListCisScansCommandInput | ListCoverageCommandInput | ListCoverageStatisticsCommandInput | ListDelegatedAdminAccountsCommandInput | ListFiltersCommandInput | ListFindingAggregationsCommandInput | ListFindingsCommandInput | ListMembersCommandInput | ListTagsForResourceCommandInput | ListUsageTotalsCommandInput | ResetEncryptionKeyCommandInput | SearchVulnerabilitiesCommandInput | SendCisSessionHealthCommandInput | SendCisSessionTelemetryCommandInput | StartCisSessionCommandInput | StopCisSessionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCisScanConfigurationCommandInput | UpdateConfigurationCommandInput | UpdateEc2DeepInspectionConfigurationCommandInput | UpdateEncryptionKeyCommandInput | UpdateFilterCommandInput | UpdateOrgEc2DeepInspectionConfigurationCommandInput | UpdateOrganizationConfigurationCommandInput;
|
|
76
77
|
/**
|
|
77
78
|
* @public
|
|
78
79
|
*/
|
|
79
|
-
export type ServiceOutputTypes = AssociateMemberCommandOutput | BatchGetAccountStatusCommandOutput | BatchGetCodeSnippetCommandOutput | BatchGetFindingDetailsCommandOutput | BatchGetFreeTrialInfoCommandOutput | BatchGetMemberEc2DeepInspectionStatusCommandOutput | BatchUpdateMemberEc2DeepInspectionStatusCommandOutput | CancelFindingsReportCommandOutput | CancelSbomExportCommandOutput | CreateCisScanConfigurationCommandOutput | CreateFilterCommandOutput | CreateFindingsReportCommandOutput | CreateSbomExportCommandOutput | DeleteCisScanConfigurationCommandOutput | DeleteFilterCommandOutput | DescribeOrganizationConfigurationCommandOutput | DisableCommandOutput | DisableDelegatedAdminAccountCommandOutput | DisassociateMemberCommandOutput | EnableCommandOutput | EnableDelegatedAdminAccountCommandOutput | GetCisScanReportCommandOutput | GetCisScanResultDetailsCommandOutput | GetConfigurationCommandOutput | GetDelegatedAdminAccountCommandOutput | GetEc2DeepInspectionConfigurationCommandOutput | GetEncryptionKeyCommandOutput | GetFindingsReportStatusCommandOutput | GetMemberCommandOutput | GetSbomExportCommandOutput | ListAccountPermissionsCommandOutput | ListCisScanConfigurationsCommandOutput | ListCisScanResultsAggregatedByChecksCommandOutput | ListCisScanResultsAggregatedByTargetResourceCommandOutput | ListCisScansCommandOutput | ListCoverageCommandOutput | ListCoverageStatisticsCommandOutput | ListDelegatedAdminAccountsCommandOutput | ListFiltersCommandOutput | ListFindingAggregationsCommandOutput | ListFindingsCommandOutput | ListMembersCommandOutput | ListTagsForResourceCommandOutput | ListUsageTotalsCommandOutput | ResetEncryptionKeyCommandOutput | SearchVulnerabilitiesCommandOutput | SendCisSessionHealthCommandOutput | SendCisSessionTelemetryCommandOutput | StartCisSessionCommandOutput | StopCisSessionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCisScanConfigurationCommandOutput | UpdateConfigurationCommandOutput | UpdateEc2DeepInspectionConfigurationCommandOutput | UpdateEncryptionKeyCommandOutput | UpdateFilterCommandOutput | UpdateOrgEc2DeepInspectionConfigurationCommandOutput | UpdateOrganizationConfigurationCommandOutput;
|
|
80
|
+
export type ServiceOutputTypes = AssociateMemberCommandOutput | BatchGetAccountStatusCommandOutput | BatchGetCodeSnippetCommandOutput | BatchGetFindingDetailsCommandOutput | BatchGetFreeTrialInfoCommandOutput | BatchGetMemberEc2DeepInspectionStatusCommandOutput | BatchUpdateMemberEc2DeepInspectionStatusCommandOutput | CancelFindingsReportCommandOutput | CancelSbomExportCommandOutput | CreateCisScanConfigurationCommandOutput | CreateFilterCommandOutput | CreateFindingsReportCommandOutput | CreateSbomExportCommandOutput | DeleteCisScanConfigurationCommandOutput | DeleteFilterCommandOutput | DescribeOrganizationConfigurationCommandOutput | DisableCommandOutput | DisableDelegatedAdminAccountCommandOutput | DisassociateMemberCommandOutput | EnableCommandOutput | EnableDelegatedAdminAccountCommandOutput | GetCisScanReportCommandOutput | GetCisScanResultDetailsCommandOutput | GetClustersForImageCommandOutput | GetConfigurationCommandOutput | GetDelegatedAdminAccountCommandOutput | GetEc2DeepInspectionConfigurationCommandOutput | GetEncryptionKeyCommandOutput | GetFindingsReportStatusCommandOutput | GetMemberCommandOutput | GetSbomExportCommandOutput | ListAccountPermissionsCommandOutput | ListCisScanConfigurationsCommandOutput | ListCisScanResultsAggregatedByChecksCommandOutput | ListCisScanResultsAggregatedByTargetResourceCommandOutput | ListCisScansCommandOutput | ListCoverageCommandOutput | ListCoverageStatisticsCommandOutput | ListDelegatedAdminAccountsCommandOutput | ListFiltersCommandOutput | ListFindingAggregationsCommandOutput | ListFindingsCommandOutput | ListMembersCommandOutput | ListTagsForResourceCommandOutput | ListUsageTotalsCommandOutput | ResetEncryptionKeyCommandOutput | SearchVulnerabilitiesCommandOutput | SendCisSessionHealthCommandOutput | SendCisSessionTelemetryCommandOutput | StartCisSessionCommandOutput | StopCisSessionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCisScanConfigurationCommandOutput | UpdateConfigurationCommandOutput | UpdateEc2DeepInspectionConfigurationCommandOutput | UpdateEncryptionKeyCommandOutput | UpdateFilterCommandOutput | UpdateOrgEc2DeepInspectionConfigurationCommandOutput | UpdateOrganizationConfigurationCommandOutput;
|
|
80
81
|
/**
|
|
81
82
|
* @public
|
|
82
83
|
*/
|
|
@@ -116,6 +116,18 @@ declare const CreateFilterCommand_base: {
|
|
|
116
116
|
* ecrImageRepositoryName: "<StringFilterList>",
|
|
117
117
|
* ecrImageTags: "<StringFilterList>",
|
|
118
118
|
* ecrImageHash: "<StringFilterList>",
|
|
119
|
+
* ecrImageLastInUseAt: [
|
|
120
|
+
* {
|
|
121
|
+
* startInclusive: new Date("TIMESTAMP"),
|
|
122
|
+
* endInclusive: new Date("TIMESTAMP"),
|
|
123
|
+
* },
|
|
124
|
+
* ],
|
|
125
|
+
* ecrImageInUseCount: [
|
|
126
|
+
* {
|
|
127
|
+
* upperInclusive: Number("double"),
|
|
128
|
+
* lowerInclusive: Number("double"),
|
|
129
|
+
* },
|
|
130
|
+
* ],
|
|
119
131
|
* portRange: [ // PortRangeFilterList
|
|
120
132
|
* { // PortRangeFilter
|
|
121
133
|
* beginInclusive: Number("int"),
|
|
@@ -148,12 +160,7 @@ declare const CreateFilterCommand_base: {
|
|
|
148
160
|
* lambdaFunctionName: "<StringFilterList>",
|
|
149
161
|
* lambdaFunctionLayers: "<StringFilterList>",
|
|
150
162
|
* lambdaFunctionRuntime: "<StringFilterList>",
|
|
151
|
-
* lambdaFunctionLastModifiedAt:
|
|
152
|
-
* {
|
|
153
|
-
* startInclusive: new Date("TIMESTAMP"),
|
|
154
|
-
* endInclusive: new Date("TIMESTAMP"),
|
|
155
|
-
* },
|
|
156
|
-
* ],
|
|
163
|
+
* lambdaFunctionLastModifiedAt: "<DateFilterList>",
|
|
157
164
|
* lambdaFunctionExecutionRoleArn: "<StringFilterList>",
|
|
158
165
|
* exploitAvailable: "<StringFilterList>",
|
|
159
166
|
* codeVulnerabilityDetectorName: "<StringFilterList>",
|
|
@@ -114,6 +114,18 @@ declare const CreateFindingsReportCommand_base: {
|
|
|
114
114
|
* ecrImageRepositoryName: "<StringFilterList>",
|
|
115
115
|
* ecrImageTags: "<StringFilterList>",
|
|
116
116
|
* ecrImageHash: "<StringFilterList>",
|
|
117
|
+
* ecrImageLastInUseAt: [
|
|
118
|
+
* {
|
|
119
|
+
* startInclusive: new Date("TIMESTAMP"),
|
|
120
|
+
* endInclusive: new Date("TIMESTAMP"),
|
|
121
|
+
* },
|
|
122
|
+
* ],
|
|
123
|
+
* ecrImageInUseCount: [
|
|
124
|
+
* {
|
|
125
|
+
* upperInclusive: Number("double"),
|
|
126
|
+
* lowerInclusive: Number("double"),
|
|
127
|
+
* },
|
|
128
|
+
* ],
|
|
117
129
|
* portRange: [ // PortRangeFilterList
|
|
118
130
|
* { // PortRangeFilter
|
|
119
131
|
* beginInclusive: Number("int"),
|
|
@@ -146,12 +158,7 @@ declare const CreateFindingsReportCommand_base: {
|
|
|
146
158
|
* lambdaFunctionName: "<StringFilterList>",
|
|
147
159
|
* lambdaFunctionLayers: "<StringFilterList>",
|
|
148
160
|
* lambdaFunctionRuntime: "<StringFilterList>",
|
|
149
|
-
* lambdaFunctionLastModifiedAt:
|
|
150
|
-
* {
|
|
151
|
-
* startInclusive: new Date("TIMESTAMP"),
|
|
152
|
-
* endInclusive: new Date("TIMESTAMP"),
|
|
153
|
-
* },
|
|
154
|
-
* ],
|
|
161
|
+
* lambdaFunctionLastModifiedAt: "<DateFilterList>",
|
|
155
162
|
* lambdaFunctionExecutionRoleArn: "<StringFilterList>",
|
|
156
163
|
* exploitAvailable: "<StringFilterList>",
|
|
157
164
|
* codeVulnerabilityDetectorName: "<StringFilterList>",
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
4
|
+
import { GetClustersForImageRequest, GetClustersForImageResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetClustersForImageCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetClustersForImageCommandInput extends GetClustersForImageRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetClustersForImageCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetClustersForImageCommandOutput extends GetClustersForImageResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetClustersForImageCommand_base: {
|
|
25
|
+
new (input: GetClustersForImageCommandInput): import("@smithy/smithy-client").CommandImpl<GetClustersForImageCommandInput, GetClustersForImageCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetClustersForImageCommandInput): import("@smithy/smithy-client").CommandImpl<GetClustersForImageCommandInput, GetClustersForImageCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of clusters and metadata associated with an image.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { Inspector2Client, GetClustersForImageCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
35
|
+
* // const { Inspector2Client, GetClustersForImageCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
36
|
+
* const client = new Inspector2Client(config);
|
|
37
|
+
* const input = { // GetClustersForImageRequest
|
|
38
|
+
* filter: { // ClusterForImageFilterCriteria
|
|
39
|
+
* resourceId: "STRING_VALUE", // required
|
|
40
|
+
* },
|
|
41
|
+
* maxResults: Number("int"),
|
|
42
|
+
* nextToken: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new GetClustersForImageCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // GetClustersForImageResponse
|
|
47
|
+
* // cluster: [ // ClusterInformationList // required
|
|
48
|
+
* // { // ClusterInformation
|
|
49
|
+
* // clusterArn: "STRING_VALUE", // required
|
|
50
|
+
* // clusterDetails: [ // ClusterDetailsList
|
|
51
|
+
* // { // ClusterDetails
|
|
52
|
+
* // lastInUse: new Date("TIMESTAMP"), // required
|
|
53
|
+
* // runningUnitCount: Number("long"),
|
|
54
|
+
* // stoppedUnitCount: Number("long"),
|
|
55
|
+
* // clusterMetadata: { // ClusterMetadata Union: only one key present
|
|
56
|
+
* // awsEcsMetadataDetails: { // AwsEcsMetadataDetails
|
|
57
|
+
* // detailsGroup: "STRING_VALUE", // required
|
|
58
|
+
* // taskDefinitionArn: "STRING_VALUE", // required
|
|
59
|
+
* // },
|
|
60
|
+
* // awsEksMetadataDetails: { // AwsEksMetadataDetails
|
|
61
|
+
* // namespace: "STRING_VALUE",
|
|
62
|
+
* // workloadInfoList: [ // AwsEksWorkloadInfoList
|
|
63
|
+
* // { // AwsEksWorkloadInfo
|
|
64
|
+
* // name: "STRING_VALUE", // required
|
|
65
|
+
* // type: "STRING_VALUE", // required
|
|
66
|
+
* // },
|
|
67
|
+
* // ],
|
|
68
|
+
* // },
|
|
69
|
+
* // },
|
|
70
|
+
* // },
|
|
71
|
+
* // ],
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
74
|
+
* // nextToken: "STRING_VALUE",
|
|
75
|
+
* // };
|
|
76
|
+
*
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @param GetClustersForImageCommandInput - {@link GetClustersForImageCommandInput}
|
|
80
|
+
* @returns {@link GetClustersForImageCommandOutput}
|
|
81
|
+
* @see {@link GetClustersForImageCommandInput} for command's `input` shape.
|
|
82
|
+
* @see {@link GetClustersForImageCommandOutput} for command's `response` shape.
|
|
83
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
86
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link InternalServerException} (server fault)
|
|
89
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
92
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ValidationException} (client fault)
|
|
95
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
96
|
+
* inputs.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link Inspector2ServiceException}
|
|
99
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
100
|
+
*
|
|
101
|
+
*
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export declare class GetClustersForImageCommand extends GetClustersForImageCommand_base {
|
|
105
|
+
/** @internal type navigation helper, not in runtime. */
|
|
106
|
+
protected static __types: {
|
|
107
|
+
api: {
|
|
108
|
+
input: GetClustersForImageRequest;
|
|
109
|
+
output: GetClustersForImageResponse;
|
|
110
|
+
};
|
|
111
|
+
sdk: {
|
|
112
|
+
input: GetClustersForImageCommandInput;
|
|
113
|
+
output: GetClustersForImageCommandOutput;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}
|
|
@@ -44,6 +44,7 @@ declare const GetConfigurationCommand_base: {
|
|
|
44
44
|
* // status: "STRING_VALUE",
|
|
45
45
|
* // updatedAt: new Date("TIMESTAMP"),
|
|
46
46
|
* // pullDateRescanDuration: "STRING_VALUE",
|
|
47
|
+
* // pullDateRescanMode: "STRING_VALUE",
|
|
47
48
|
* // },
|
|
48
49
|
* // },
|
|
49
50
|
* // ec2Configuration: { // Ec2ConfigurationState
|
|
@@ -128,6 +128,18 @@ declare const GetFindingsReportStatusCommand_base: {
|
|
|
128
128
|
* // ecrImageRepositoryName: "<StringFilterList>",
|
|
129
129
|
* // ecrImageTags: "<StringFilterList>",
|
|
130
130
|
* // ecrImageHash: "<StringFilterList>",
|
|
131
|
+
* // ecrImageLastInUseAt: [
|
|
132
|
+
* // {
|
|
133
|
+
* // startInclusive: new Date("TIMESTAMP"),
|
|
134
|
+
* // endInclusive: new Date("TIMESTAMP"),
|
|
135
|
+
* // },
|
|
136
|
+
* // ],
|
|
137
|
+
* // ecrImageInUseCount: [
|
|
138
|
+
* // {
|
|
139
|
+
* // upperInclusive: Number("double"),
|
|
140
|
+
* // lowerInclusive: Number("double"),
|
|
141
|
+
* // },
|
|
142
|
+
* // ],
|
|
131
143
|
* // portRange: [ // PortRangeFilterList
|
|
132
144
|
* // { // PortRangeFilter
|
|
133
145
|
* // beginInclusive: Number("int"),
|
|
@@ -160,12 +172,7 @@ declare const GetFindingsReportStatusCommand_base: {
|
|
|
160
172
|
* // lambdaFunctionName: "<StringFilterList>",
|
|
161
173
|
* // lambdaFunctionLayers: "<StringFilterList>",
|
|
162
174
|
* // lambdaFunctionRuntime: "<StringFilterList>",
|
|
163
|
-
* // lambdaFunctionLastModifiedAt:
|
|
164
|
-
* // {
|
|
165
|
-
* // startInclusive: new Date("TIMESTAMP"),
|
|
166
|
-
* // endInclusive: new Date("TIMESTAMP"),
|
|
167
|
-
* // },
|
|
168
|
-
* // ],
|
|
175
|
+
* // lambdaFunctionLastModifiedAt: "<DateFilterList>",
|
|
169
176
|
* // lambdaFunctionExecutionRoleArn: "<StringFilterList>",
|
|
170
177
|
* // exploitAvailable: "<StringFilterList>",
|
|
171
178
|
* // codeVulnerabilityDetectorName: "<StringFilterList>",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
4
|
-
import { GetSbomExportRequest
|
|
4
|
+
import { GetSbomExportRequest } from "../models/models_0";
|
|
5
|
+
import { GetSbomExportResponse } from "../models/models_1";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
4
|
-
import { ListAccountPermissionsRequest, ListAccountPermissionsResponse } from "../models/
|
|
4
|
+
import { ListAccountPermissionsRequest, ListAccountPermissionsResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
4
|
-
import { ListCisScanConfigurationsRequest, ListCisScanConfigurationsResponse } from "../models/
|
|
4
|
+
import { ListCisScanConfigurationsRequest, ListCisScanConfigurationsResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
4
|
-
import { ListCisScanResultsAggregatedByChecksRequest, ListCisScanResultsAggregatedByChecksResponse } from "../models/
|
|
4
|
+
import { ListCisScanResultsAggregatedByChecksRequest, ListCisScanResultsAggregatedByChecksResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -100,6 +100,18 @@ declare const ListCoverageCommand_base: {
|
|
|
100
100
|
* endInclusive: new Date("TIMESTAMP"),
|
|
101
101
|
* },
|
|
102
102
|
* ],
|
|
103
|
+
* ecrImageLastInUseAt: [
|
|
104
|
+
* {
|
|
105
|
+
* startInclusive: new Date("TIMESTAMP"),
|
|
106
|
+
* endInclusive: new Date("TIMESTAMP"),
|
|
107
|
+
* },
|
|
108
|
+
* ],
|
|
109
|
+
* ecrImageInUseCount: [ // CoverageNumberFilterList
|
|
110
|
+
* { // CoverageNumberFilter
|
|
111
|
+
* upperInclusive: Number("long"),
|
|
112
|
+
* lowerInclusive: Number("long"),
|
|
113
|
+
* },
|
|
114
|
+
* ],
|
|
103
115
|
* },
|
|
104
116
|
* };
|
|
105
117
|
* const command = new ListCoverageCommand(input);
|
|
@@ -126,6 +138,8 @@ declare const ListCoverageCommand_base: {
|
|
|
126
138
|
* // "STRING_VALUE",
|
|
127
139
|
* // ],
|
|
128
140
|
* // imagePulledAt: new Date("TIMESTAMP"),
|
|
141
|
+
* // lastInUseAt: new Date("TIMESTAMP"),
|
|
142
|
+
* // inUseCount: Number("long"),
|
|
129
143
|
* // },
|
|
130
144
|
* // ec2: { // Ec2Metadata
|
|
131
145
|
* // tags: { // TagMap
|
|
@@ -98,6 +98,18 @@ declare const ListCoverageStatisticsCommand_base: {
|
|
|
98
98
|
* endInclusive: new Date("TIMESTAMP"),
|
|
99
99
|
* },
|
|
100
100
|
* ],
|
|
101
|
+
* ecrImageLastInUseAt: [
|
|
102
|
+
* {
|
|
103
|
+
* startInclusive: new Date("TIMESTAMP"),
|
|
104
|
+
* endInclusive: new Date("TIMESTAMP"),
|
|
105
|
+
* },
|
|
106
|
+
* ],
|
|
107
|
+
* ecrImageInUseCount: [ // CoverageNumberFilterList
|
|
108
|
+
* { // CoverageNumberFilter
|
|
109
|
+
* upperInclusive: Number("long"),
|
|
110
|
+
* lowerInclusive: Number("long"),
|
|
111
|
+
* },
|
|
112
|
+
* ],
|
|
101
113
|
* },
|
|
102
114
|
* groupBy: "STRING_VALUE",
|
|
103
115
|
* nextToken: "STRING_VALUE",
|
|
@@ -129,6 +129,18 @@ declare const ListFiltersCommand_base: {
|
|
|
129
129
|
* // ecrImageRepositoryName: "<StringFilterList>",
|
|
130
130
|
* // ecrImageTags: "<StringFilterList>",
|
|
131
131
|
* // ecrImageHash: "<StringFilterList>",
|
|
132
|
+
* // ecrImageLastInUseAt: [
|
|
133
|
+
* // {
|
|
134
|
+
* // startInclusive: new Date("TIMESTAMP"),
|
|
135
|
+
* // endInclusive: new Date("TIMESTAMP"),
|
|
136
|
+
* // },
|
|
137
|
+
* // ],
|
|
138
|
+
* // ecrImageInUseCount: [
|
|
139
|
+
* // {
|
|
140
|
+
* // upperInclusive: Number("double"),
|
|
141
|
+
* // lowerInclusive: Number("double"),
|
|
142
|
+
* // },
|
|
143
|
+
* // ],
|
|
132
144
|
* // portRange: [ // PortRangeFilterList
|
|
133
145
|
* // { // PortRangeFilter
|
|
134
146
|
* // beginInclusive: Number("int"),
|
|
@@ -161,12 +173,7 @@ declare const ListFiltersCommand_base: {
|
|
|
161
173
|
* // lambdaFunctionName: "<StringFilterList>",
|
|
162
174
|
* // lambdaFunctionLayers: "<StringFilterList>",
|
|
163
175
|
* // lambdaFunctionRuntime: "<StringFilterList>",
|
|
164
|
-
* // lambdaFunctionLastModifiedAt:
|
|
165
|
-
* // {
|
|
166
|
-
* // startInclusive: new Date("TIMESTAMP"),
|
|
167
|
-
* // endInclusive: new Date("TIMESTAMP"),
|
|
168
|
-
* // },
|
|
169
|
-
* // ],
|
|
176
|
+
* // lambdaFunctionLastModifiedAt: "<DateFilterList>",
|
|
170
177
|
* // lambdaFunctionExecutionRoleArn: "<StringFilterList>",
|
|
171
178
|
* // exploitAvailable: "<StringFilterList>",
|
|
172
179
|
* // codeVulnerabilityDetectorName: "<StringFilterList>",
|
|
@@ -84,6 +84,18 @@ declare const ListFindingAggregationsCommand_base: {
|
|
|
84
84
|
* imageTags: "<StringFilterList>",
|
|
85
85
|
* sortOrder: "STRING_VALUE",
|
|
86
86
|
* sortBy: "STRING_VALUE",
|
|
87
|
+
* lastInUseAt: [ // DateFilterList
|
|
88
|
+
* { // DateFilter
|
|
89
|
+
* startInclusive: new Date("TIMESTAMP"),
|
|
90
|
+
* endInclusive: new Date("TIMESTAMP"),
|
|
91
|
+
* },
|
|
92
|
+
* ],
|
|
93
|
+
* inUseCount: [ // NumberFilterList
|
|
94
|
+
* { // NumberFilter
|
|
95
|
+
* upperInclusive: Number("double"),
|
|
96
|
+
* lowerInclusive: Number("double"),
|
|
97
|
+
* },
|
|
98
|
+
* ],
|
|
87
99
|
* },
|
|
88
100
|
* ec2InstanceAggregation: { // Ec2InstanceAggregation
|
|
89
101
|
* amis: "<StringFilterList>",
|
|
@@ -196,6 +208,8 @@ declare const ListFindingAggregationsCommand_base: {
|
|
|
196
208
|
* // high: Number("long"),
|
|
197
209
|
* // critical: Number("long"),
|
|
198
210
|
* // },
|
|
211
|
+
* // lastInUseAt: new Date("TIMESTAMP"),
|
|
212
|
+
* // inUseCount: Number("long"),
|
|
199
213
|
* // },
|
|
200
214
|
* // ec2InstanceAggregation: { // Ec2InstanceAggregationResponse
|
|
201
215
|
* // instanceId: "STRING_VALUE", // required
|