@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.
Files changed (48) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +169 -15
  3. package/dist-es/Inspector2.js +2 -0
  4. package/dist-es/commands/GetClustersForImageCommand.js +22 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +15 -11
  7. package/dist-es/models/models_1.js +11 -0
  8. package/dist-es/pagination/GetClustersForImagePaginator.js +4 -0
  9. package/dist-es/pagination/index.js +1 -0
  10. package/dist-es/protocols/Aws_restJson1.js +118 -3
  11. package/dist-types/Inspector2.d.ts +7 -0
  12. package/dist-types/Inspector2Client.d.ts +3 -2
  13. package/dist-types/commands/CreateFilterCommand.d.ts +13 -6
  14. package/dist-types/commands/CreateFindingsReportCommand.d.ts +13 -6
  15. package/dist-types/commands/GetClustersForImageCommand.d.ts +116 -0
  16. package/dist-types/commands/GetConfigurationCommand.d.ts +1 -0
  17. package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +13 -6
  18. package/dist-types/commands/GetSbomExportCommand.d.ts +2 -1
  19. package/dist-types/commands/ListAccountPermissionsCommand.d.ts +1 -1
  20. package/dist-types/commands/ListCisScanConfigurationsCommand.d.ts +1 -1
  21. package/dist-types/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +1 -1
  22. package/dist-types/commands/ListCoverageCommand.d.ts +14 -0
  23. package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +12 -0
  24. package/dist-types/commands/ListFiltersCommand.d.ts +13 -6
  25. package/dist-types/commands/ListFindingAggregationsCommand.d.ts +14 -0
  26. package/dist-types/commands/ListFindingsCommand.d.ts +15 -6
  27. package/dist-types/commands/UpdateConfigurationCommand.d.ts +1 -0
  28. package/dist-types/commands/UpdateFilterCommand.d.ts +13 -6
  29. package/dist-types/commands/index.d.ts +1 -0
  30. package/dist-types/models/models_0.d.ts +309 -269
  31. package/dist-types/models/models_1.d.ts +238 -1
  32. package/dist-types/pagination/GetClustersForImagePaginator.d.ts +7 -0
  33. package/dist-types/pagination/index.d.ts +1 -0
  34. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  35. package/dist-types/ts3.4/Inspector2.d.ts +17 -0
  36. package/dist-types/ts3.4/Inspector2Client.d.ts +6 -0
  37. package/dist-types/ts3.4/commands/GetClustersForImageCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +2 -4
  39. package/dist-types/ts3.4/commands/ListAccountPermissionsCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/ListCisScanConfigurationsCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +94 -71
  44. package/dist-types/ts3.4/models/models_1.d.ts +73 -0
  45. package/dist-types/ts3.4/pagination/GetClustersForImagePaginator.d.ts +11 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  47. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  48. package/package.json +1 -1
package/README.md CHANGED
@@ -387,6 +387,14 @@ GetCisScanResultDetails
387
387
 
388
388
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/inspector2/command/GetCisScanResultDetailsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-inspector2/Interface/GetCisScanResultDetailsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-inspector2/Interface/GetCisScanResultDetailsCommandOutput/)
389
389
 
390
+ </details>
391
+ <details>
392
+ <summary>
393
+ GetClustersForImage
394
+ </summary>
395
+
396
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/inspector2/command/GetClustersForImageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-inspector2/Interface/GetClustersForImageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-inspector2/Interface/GetClustersForImageCommandOutput/)
397
+
390
398
  </details>
391
399
  <details>
392
400
  <summary>
package/dist-cjs/index.js CHANGED
@@ -61,6 +61,7 @@ __export(index_exports, {
61
61
  CisTargetStatus: () => CisTargetStatus,
62
62
  CisTargetStatusComparison: () => CisTargetStatusComparison,
63
63
  CisTargetStatusReason: () => CisTargetStatusReason,
64
+ ClusterMetadata: () => ClusterMetadata,
64
65
  CodeSnippetErrorCode: () => CodeSnippetErrorCode,
65
66
  ConflictException: () => ConflictException,
66
67
  CoverageMapComparison: () => CoverageMapComparison,
@@ -85,6 +86,7 @@ __export(index_exports, {
85
86
  Ec2ScanMode: () => Ec2ScanMode,
86
87
  Ec2ScanModeStatus: () => Ec2ScanModeStatus,
87
88
  EcrPullDateRescanDuration: () => EcrPullDateRescanDuration,
89
+ EcrPullDateRescanMode: () => EcrPullDateRescanMode,
88
90
  EcrRescanDuration: () => EcrRescanDuration,
89
91
  EcrRescanDurationStatus: () => EcrRescanDurationStatus,
90
92
  EcrScanFrequency: () => EcrScanFrequency,
@@ -104,6 +106,7 @@ __export(index_exports, {
104
106
  FreeTrialType: () => FreeTrialType,
105
107
  GetCisScanReportCommand: () => GetCisScanReportCommand,
106
108
  GetCisScanResultDetailsCommand: () => GetCisScanResultDetailsCommand,
109
+ GetClustersForImageCommand: () => GetClustersForImageCommand,
107
110
  GetConfigurationCommand: () => GetConfigurationCommand,
108
111
  GetDelegatedAdminAccountCommand: () => GetDelegatedAdminAccountCommand,
109
112
  GetEc2DeepInspectionConfigurationCommand: () => GetEc2DeepInspectionConfigurationCommand,
@@ -189,6 +192,7 @@ __export(index_exports, {
189
192
  VulnerabilitySource: () => VulnerabilitySource,
190
193
  __Client: () => import_smithy_client.Client,
191
194
  paginateGetCisScanResultDetails: () => paginateGetCisScanResultDetails,
195
+ paginateGetClustersForImage: () => paginateGetClustersForImage,
192
196
  paginateListAccountPermissions: () => paginateListAccountPermissions,
193
197
  paginateListCisScanConfigurations: () => paginateListCisScanConfigurations,
194
198
  paginateListCisScanResultsAggregatedByChecks: () => paginateListCisScanResultsAggregatedByChecks,
@@ -507,8 +511,8 @@ var TitleSortBy = {
507
511
  HIGH: "HIGH"
508
512
  };
509
513
  var AggregationRequest;
510
- ((AggregationRequest3) => {
511
- AggregationRequest3.visit = /* @__PURE__ */ __name((value, visitor) => {
514
+ ((AggregationRequest2) => {
515
+ AggregationRequest2.visit = /* @__PURE__ */ __name((value, visitor) => {
512
516
  if (value.accountAggregation !== void 0) return visitor.accountAggregation(value.accountAggregation);
513
517
  if (value.amiAggregation !== void 0) return visitor.amiAggregation(value.amiAggregation);
514
518
  if (value.awsEcrContainerAggregation !== void 0)
@@ -879,6 +883,14 @@ var CisSortOrder = {
879
883
  ASC: "ASC",
880
884
  DESC: "DESC"
881
885
  };
886
+ var ClusterMetadata;
887
+ ((ClusterMetadata2) => {
888
+ ClusterMetadata2.visit = /* @__PURE__ */ __name((value, visitor) => {
889
+ if (value.awsEcsMetadataDetails !== void 0) return visitor.awsEcsMetadataDetails(value.awsEcsMetadataDetails);
890
+ if (value.awsEksMetadataDetails !== void 0) return visitor.awsEksMetadataDetails(value.awsEksMetadataDetails);
891
+ return visitor._(value.$unknown[0], value.$unknown[1]);
892
+ }, "visit");
893
+ })(ClusterMetadata || (ClusterMetadata = {}));
882
894
  var ConflictException = class _ConflictException extends Inspector2ServiceException {
883
895
  static {
884
896
  __name(this, "ConflictException");
@@ -960,6 +972,7 @@ var ScanStatusReason = {
960
972
  NO_RESOURCES_FOUND: "NO_RESOURCES_FOUND",
961
973
  PENDING_DISABLE: "PENDING_DISABLE",
962
974
  PENDING_INITIAL_SCAN: "PENDING_INITIAL_SCAN",
975
+ PENDING_REVIVAL_SCAN: "PENDING_REVIVAL_SCAN",
963
976
  RESOURCE_TERMINATED: "RESOURCE_TERMINATED",
964
977
  SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED",
965
978
  SCAN_FREQUENCY_MANUAL: "SCAN_FREQUENCY_MANUAL",
@@ -1042,6 +1055,10 @@ var EcrPullDateRescanDuration = {
1042
1055
  DAYS_60: "DAYS_60",
1043
1056
  DAYS_90: "DAYS_90"
1044
1057
  };
1058
+ var EcrPullDateRescanMode = {
1059
+ LAST_IN_USE_AT: "LAST_IN_USE_AT",
1060
+ LAST_PULL_DATE: "LAST_PULL_DATE"
1061
+ };
1045
1062
  var EcrRescanDuration = {
1046
1063
  DAYS_14: "DAYS_14",
1047
1064
  DAYS_180: "DAYS_180",
@@ -1126,17 +1143,6 @@ var ReportingErrorCode = {
1126
1143
  MALFORMED_KMS_KEY: "MALFORMED_KMS_KEY",
1127
1144
  NO_FINDINGS_FOUND: "NO_FINDINGS_FOUND"
1128
1145
  };
1129
- var Service = {
1130
- EC2: "EC2",
1131
- ECR: "ECR",
1132
- LAMBDA: "LAMBDA"
1133
- };
1134
- var Operation = {
1135
- DISABLE_REPOSITORY: "DISABLE_REPOSITORY",
1136
- DISABLE_SCANNING: "DISABLE_SCANNING",
1137
- ENABLE_REPOSITORY: "ENABLE_REPOSITORY",
1138
- ENABLE_SCANNING: "ENABLE_SCANNING"
1139
- };
1140
1146
 
1141
1147
  // src/protocols/Aws_restJson1.ts
1142
1148
  var se_AssociateMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -1503,6 +1509,23 @@ var se_GetCisScanResultDetailsCommand = /* @__PURE__ */ __name(async (input, con
1503
1509
  b.m("POST").h(headers).b(body);
1504
1510
  return b.build();
1505
1511
  }, "se_GetCisScanResultDetailsCommand");
1512
+ var se_GetClustersForImageCommand = /* @__PURE__ */ __name(async (input, context) => {
1513
+ const b = (0, import_core.requestBuilder)(input, context);
1514
+ const headers = {
1515
+ "content-type": "application/json"
1516
+ };
1517
+ b.bp("/cluster/get");
1518
+ let body;
1519
+ body = JSON.stringify(
1520
+ (0, import_smithy_client.take)(input, {
1521
+ filter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filter"),
1522
+ maxResults: [],
1523
+ nextToken: []
1524
+ })
1525
+ );
1526
+ b.m("POST").h(headers).b(body);
1527
+ return b.build();
1528
+ }, "se_GetClustersForImageCommand");
1506
1529
  var se_GetConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
1507
1530
  const b = (0, import_core.requestBuilder)(input, context);
1508
1531
  const headers = {};
@@ -1758,7 +1781,7 @@ var se_ListFindingAggregationsCommand = /* @__PURE__ */ __name(async (input, con
1758
1781
  body = JSON.stringify(
1759
1782
  (0, import_smithy_client.take)(input, {
1760
1783
  accountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "accountIds"),
1761
- aggregationRequest: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "aggregationRequest"),
1784
+ aggregationRequest: /* @__PURE__ */ __name((_) => se_AggregationRequest(_, context), "aggregationRequest"),
1762
1785
  aggregationType: [],
1763
1786
  maxResults: [],
1764
1787
  nextToken: []
@@ -2405,6 +2428,21 @@ var de_GetCisScanResultDetailsCommand = /* @__PURE__ */ __name(async (output, co
2405
2428
  Object.assign(contents, doc);
2406
2429
  return contents;
2407
2430
  }, "de_GetCisScanResultDetailsCommand");
2431
+ var de_GetClustersForImageCommand = /* @__PURE__ */ __name(async (output, context) => {
2432
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2433
+ return de_CommandError(output, context);
2434
+ }
2435
+ const contents = (0, import_smithy_client.map)({
2436
+ $metadata: deserializeMetadata(output)
2437
+ });
2438
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2439
+ const doc = (0, import_smithy_client.take)(data, {
2440
+ cluster: /* @__PURE__ */ __name((_) => de_ClusterInformationList(_, context), "cluster"),
2441
+ nextToken: import_smithy_client.expectString
2442
+ });
2443
+ Object.assign(contents, doc);
2444
+ return contents;
2445
+ }, "de_GetClustersForImageCommand");
2408
2446
  var de_GetConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2409
2447
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2410
2448
  return de_CommandError(output, context);
@@ -3057,6 +3095,37 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
3057
3095
  });
3058
3096
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3059
3097
  }, "de_ValidationExceptionRes");
3098
+ var se_AggregationRequest = /* @__PURE__ */ __name((input, context) => {
3099
+ return AggregationRequest.visit(input, {
3100
+ accountAggregation: /* @__PURE__ */ __name((value) => ({ accountAggregation: (0, import_smithy_client._json)(value) }), "accountAggregation"),
3101
+ amiAggregation: /* @__PURE__ */ __name((value) => ({ amiAggregation: (0, import_smithy_client._json)(value) }), "amiAggregation"),
3102
+ awsEcrContainerAggregation: /* @__PURE__ */ __name((value) => ({
3103
+ awsEcrContainerAggregation: se_AwsEcrContainerAggregation(value, context)
3104
+ }), "awsEcrContainerAggregation"),
3105
+ ec2InstanceAggregation: /* @__PURE__ */ __name((value) => ({ ec2InstanceAggregation: (0, import_smithy_client._json)(value) }), "ec2InstanceAggregation"),
3106
+ findingTypeAggregation: /* @__PURE__ */ __name((value) => ({ findingTypeAggregation: (0, import_smithy_client._json)(value) }), "findingTypeAggregation"),
3107
+ imageLayerAggregation: /* @__PURE__ */ __name((value) => ({ imageLayerAggregation: (0, import_smithy_client._json)(value) }), "imageLayerAggregation"),
3108
+ lambdaFunctionAggregation: /* @__PURE__ */ __name((value) => ({ lambdaFunctionAggregation: (0, import_smithy_client._json)(value) }), "lambdaFunctionAggregation"),
3109
+ lambdaLayerAggregation: /* @__PURE__ */ __name((value) => ({ lambdaLayerAggregation: (0, import_smithy_client._json)(value) }), "lambdaLayerAggregation"),
3110
+ packageAggregation: /* @__PURE__ */ __name((value) => ({ packageAggregation: (0, import_smithy_client._json)(value) }), "packageAggregation"),
3111
+ repositoryAggregation: /* @__PURE__ */ __name((value) => ({ repositoryAggregation: (0, import_smithy_client._json)(value) }), "repositoryAggregation"),
3112
+ titleAggregation: /* @__PURE__ */ __name((value) => ({ titleAggregation: (0, import_smithy_client._json)(value) }), "titleAggregation"),
3113
+ _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
3114
+ });
3115
+ }, "se_AggregationRequest");
3116
+ var se_AwsEcrContainerAggregation = /* @__PURE__ */ __name((input, context) => {
3117
+ return (0, import_smithy_client.take)(input, {
3118
+ architectures: import_smithy_client._json,
3119
+ imageShas: import_smithy_client._json,
3120
+ imageTags: import_smithy_client._json,
3121
+ inUseCount: /* @__PURE__ */ __name((_) => se_NumberFilterList(_, context), "inUseCount"),
3122
+ lastInUseAt: /* @__PURE__ */ __name((_) => se_DateFilterList(_, context), "lastInUseAt"),
3123
+ repositories: import_smithy_client._json,
3124
+ resourceIds: import_smithy_client._json,
3125
+ sortBy: [],
3126
+ sortOrder: []
3127
+ });
3128
+ }, "se_AwsEcrContainerAggregation");
3060
3129
  var se_CisDateFilter = /* @__PURE__ */ __name((input, context) => {
3061
3130
  return (0, import_smithy_client.take)(input, {
3062
3131
  earliestScanStartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "earliestScanStartTime"),
@@ -3095,6 +3164,8 @@ var se_CoverageFilterCriteria = /* @__PURE__ */ __name((input, context) => {
3095
3164
  return (0, import_smithy_client.take)(input, {
3096
3165
  accountId: import_smithy_client._json,
3097
3166
  ec2InstanceTags: import_smithy_client._json,
3167
+ ecrImageInUseCount: import_smithy_client._json,
3168
+ ecrImageLastInUseAt: /* @__PURE__ */ __name((_) => se_CoverageDateFilterList(_, context), "ecrImageLastInUseAt"),
3098
3169
  ecrImageTags: import_smithy_client._json,
3099
3170
  ecrRepositoryName: import_smithy_client._json,
3100
3171
  imagePulledAt: /* @__PURE__ */ __name((_) => se_CoverageDateFilterList(_, context), "imagePulledAt"),
@@ -3134,6 +3205,8 @@ var se_FilterCriteria = /* @__PURE__ */ __name((input, context) => {
3134
3205
  ec2InstanceVpcId: import_smithy_client._json,
3135
3206
  ecrImageArchitecture: import_smithy_client._json,
3136
3207
  ecrImageHash: import_smithy_client._json,
3208
+ ecrImageInUseCount: /* @__PURE__ */ __name((_) => se_NumberFilterList(_, context), "ecrImageInUseCount"),
3209
+ ecrImageLastInUseAt: /* @__PURE__ */ __name((_) => se_DateFilterList(_, context), "ecrImageLastInUseAt"),
3137
3210
  ecrImagePushedAt: /* @__PURE__ */ __name((_) => se_DateFilterList(_, context), "ecrImagePushedAt"),
3138
3211
  ecrImageRegistry: import_smithy_client._json,
3139
3212
  ecrImageRepositoryName: import_smithy_client._json,
@@ -3222,7 +3295,7 @@ var de_AggregationResponse = /* @__PURE__ */ __name((output, context) => {
3222
3295
  }
3223
3296
  if (output.awsEcrContainerAggregation != null) {
3224
3297
  return {
3225
- awsEcrContainerAggregation: (0, import_smithy_client._json)(output.awsEcrContainerAggregation)
3298
+ awsEcrContainerAggregation: de_AwsEcrContainerAggregationResponse(output.awsEcrContainerAggregation, context)
3226
3299
  };
3227
3300
  }
3228
3301
  if (output.ec2InstanceAggregation != null) {
@@ -3295,12 +3368,27 @@ var de_AwsEc2InstanceDetails = /* @__PURE__ */ __name((output, context) => {
3295
3368
  vpcId: import_smithy_client.expectString
3296
3369
  });
3297
3370
  }, "de_AwsEc2InstanceDetails");
3371
+ var de_AwsEcrContainerAggregationResponse = /* @__PURE__ */ __name((output, context) => {
3372
+ return (0, import_smithy_client.take)(output, {
3373
+ accountId: import_smithy_client.expectString,
3374
+ architecture: import_smithy_client.expectString,
3375
+ imageSha: import_smithy_client.expectString,
3376
+ imageTags: import_smithy_client._json,
3377
+ inUseCount: import_smithy_client.expectLong,
3378
+ lastInUseAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastInUseAt"),
3379
+ repository: import_smithy_client.expectString,
3380
+ resourceId: import_smithy_client.expectString,
3381
+ severityCounts: import_smithy_client._json
3382
+ });
3383
+ }, "de_AwsEcrContainerAggregationResponse");
3298
3384
  var de_AwsEcrContainerImageDetails = /* @__PURE__ */ __name((output, context) => {
3299
3385
  return (0, import_smithy_client.take)(output, {
3300
3386
  architecture: import_smithy_client.expectString,
3301
3387
  author: import_smithy_client.expectString,
3302
3388
  imageHash: import_smithy_client.expectString,
3303
3389
  imageTags: import_smithy_client._json,
3390
+ inUseCount: import_smithy_client.expectLong,
3391
+ lastInUseAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastInUseAt"),
3304
3392
  platform: import_smithy_client.expectString,
3305
3393
  pushedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "pushedAt"),
3306
3394
  registry: import_smithy_client.expectString,
@@ -3348,6 +3436,32 @@ var de_CisScanList = /* @__PURE__ */ __name((output, context) => {
3348
3436
  });
3349
3437
  return retVal;
3350
3438
  }, "de_CisScanList");
3439
+ var de_ClusterDetails = /* @__PURE__ */ __name((output, context) => {
3440
+ return (0, import_smithy_client.take)(output, {
3441
+ clusterMetadata: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "clusterMetadata"),
3442
+ lastInUse: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastInUse"),
3443
+ runningUnitCount: import_smithy_client.expectLong,
3444
+ stoppedUnitCount: import_smithy_client.expectLong
3445
+ });
3446
+ }, "de_ClusterDetails");
3447
+ var de_ClusterDetailsList = /* @__PURE__ */ __name((output, context) => {
3448
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3449
+ return de_ClusterDetails(entry, context);
3450
+ });
3451
+ return retVal;
3452
+ }, "de_ClusterDetailsList");
3453
+ var de_ClusterInformation = /* @__PURE__ */ __name((output, context) => {
3454
+ return (0, import_smithy_client.take)(output, {
3455
+ clusterArn: import_smithy_client.expectString,
3456
+ clusterDetails: /* @__PURE__ */ __name((_) => de_ClusterDetailsList(_, context), "clusterDetails")
3457
+ });
3458
+ }, "de_ClusterInformation");
3459
+ var de_ClusterInformationList = /* @__PURE__ */ __name((output, context) => {
3460
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3461
+ return de_ClusterInformation(entry, context);
3462
+ });
3463
+ return retVal;
3464
+ }, "de_ClusterInformationList");
3351
3465
  var de_CoveredResource = /* @__PURE__ */ __name((output, context) => {
3352
3466
  return (0, import_smithy_client.take)(output, {
3353
3467
  accountId: import_smithy_client.expectString,
@@ -3422,12 +3536,15 @@ var de_EcrConfigurationState = /* @__PURE__ */ __name((output, context) => {
3422
3536
  var de_EcrContainerImageMetadata = /* @__PURE__ */ __name((output, context) => {
3423
3537
  return (0, import_smithy_client.take)(output, {
3424
3538
  imagePulledAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "imagePulledAt"),
3539
+ inUseCount: import_smithy_client.expectLong,
3540
+ lastInUseAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastInUseAt"),
3425
3541
  tags: import_smithy_client._json
3426
3542
  });
3427
3543
  }, "de_EcrContainerImageMetadata");
3428
3544
  var de_EcrRescanDurationState = /* @__PURE__ */ __name((output, context) => {
3429
3545
  return (0, import_smithy_client.take)(output, {
3430
3546
  pullDateRescanDuration: import_smithy_client.expectString,
3547
+ pullDateRescanMode: import_smithy_client.expectString,
3431
3548
  rescanDuration: import_smithy_client.expectString,
3432
3549
  status: import_smithy_client.expectString,
3433
3550
  updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
@@ -3481,6 +3598,8 @@ var de_FilterCriteria = /* @__PURE__ */ __name((output, context) => {
3481
3598
  ec2InstanceVpcId: import_smithy_client._json,
3482
3599
  ecrImageArchitecture: import_smithy_client._json,
3483
3600
  ecrImageHash: import_smithy_client._json,
3601
+ ecrImageInUseCount: /* @__PURE__ */ __name((_) => de_NumberFilterList(_, context), "ecrImageInUseCount"),
3602
+ ecrImageLastInUseAt: /* @__PURE__ */ __name((_) => de_DateFilterList(_, context), "ecrImageLastInUseAt"),
3484
3603
  ecrImagePushedAt: /* @__PURE__ */ __name((_) => de_DateFilterList(_, context), "ecrImagePushedAt"),
3485
3604
  ecrImageRegistry: import_smithy_client._json,
3486
3605
  ecrImageRepositoryName: import_smithy_client._json,
@@ -4109,6 +4228,21 @@ var GetCisScanResultDetailsCommand = class extends import_smithy_client.Command.
4109
4228
  }
4110
4229
  };
4111
4230
 
4231
+ // src/commands/GetClustersForImageCommand.ts
4232
+
4233
+
4234
+
4235
+ var GetClustersForImageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4236
+ return [
4237
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4238
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4239
+ ];
4240
+ }).s("Inspector2", "GetClustersForImage", {}).n("Inspector2Client", "GetClustersForImageCommand").f(void 0, void 0).ser(se_GetClustersForImageCommand).de(de_GetClustersForImageCommand).build() {
4241
+ static {
4242
+ __name(this, "GetClustersForImageCommand");
4243
+ }
4244
+ };
4245
+
4112
4246
  // src/commands/GetConfigurationCommand.ts
4113
4247
 
4114
4248
 
@@ -4674,6 +4808,7 @@ var commands = {
4674
4808
  EnableDelegatedAdminAccountCommand,
4675
4809
  GetCisScanReportCommand,
4676
4810
  GetCisScanResultDetailsCommand,
4811
+ GetClustersForImageCommand,
4677
4812
  GetConfigurationCommand,
4678
4813
  GetDelegatedAdminAccountCommand,
4679
4814
  GetEc2DeepInspectionConfigurationCommand,
@@ -4722,6 +4857,10 @@ var Inspector2 = class extends Inspector2Client {
4722
4857
 
4723
4858
  var paginateGetCisScanResultDetails = (0, import_core.createPaginator)(Inspector2Client, GetCisScanResultDetailsCommand, "nextToken", "nextToken", "maxResults");
4724
4859
 
4860
+ // src/pagination/GetClustersForImagePaginator.ts
4861
+
4862
+ var paginateGetClustersForImage = (0, import_core.createPaginator)(Inspector2Client, GetClustersForImageCommand, "nextToken", "nextToken", "maxResults");
4863
+
4725
4864
  // src/pagination/ListAccountPermissionsPaginator.ts
4726
4865
 
4727
4866
  var paginateListAccountPermissions = (0, import_core.createPaginator)(Inspector2Client, ListAccountPermissionsCommand, "nextToken", "nextToken", "maxResults");
@@ -4779,6 +4918,17 @@ var paginateListUsageTotals = (0, import_core.createPaginator)(Inspector2Client,
4779
4918
  var paginateSearchVulnerabilities = (0, import_core.createPaginator)(Inspector2Client, SearchVulnerabilitiesCommand, "nextToken", "nextToken", "");
4780
4919
 
4781
4920
  // src/models/models_1.ts
4921
+ var Service = {
4922
+ EC2: "EC2",
4923
+ ECR: "ECR",
4924
+ LAMBDA: "LAMBDA"
4925
+ };
4926
+ var Operation = {
4927
+ DISABLE_REPOSITORY: "DISABLE_REPOSITORY",
4928
+ DISABLE_SCANNING: "DISABLE_SCANNING",
4929
+ ENABLE_REPOSITORY: "ENABLE_REPOSITORY",
4930
+ ENABLE_SCANNING: "ENABLE_SCANNING"
4931
+ };
4782
4932
  var ListCisScansDetailLevel = {
4783
4933
  MEMBER: "MEMBER",
4784
4934
  ORGANIZATION: "ORGANIZATION"
@@ -4855,6 +5005,7 @@ var StopCisSessionStatus = {
4855
5005
  EnableDelegatedAdminAccountCommand,
4856
5006
  GetCisScanReportCommand,
4857
5007
  GetCisScanResultDetailsCommand,
5008
+ GetClustersForImageCommand,
4858
5009
  GetConfigurationCommand,
4859
5010
  GetDelegatedAdminAccountCommand,
4860
5011
  GetEc2DeepInspectionConfigurationCommand,
@@ -4892,6 +5043,7 @@ var StopCisSessionStatus = {
4892
5043
  UpdateOrgEc2DeepInspectionConfigurationCommand,
4893
5044
  UpdateOrganizationConfigurationCommand,
4894
5045
  paginateGetCisScanResultDetails,
5046
+ paginateGetClustersForImage,
4895
5047
  paginateListAccountPermissions,
4896
5048
  paginateListCisScanConfigurations,
4897
5049
  paginateListCisScanResultsAggregatedByChecks,
@@ -4967,6 +5119,7 @@ var StopCisSessionStatus = {
4967
5119
  CisScanResultsAggregatedByTargetResourceSortBy,
4968
5120
  CisScanStatusComparison,
4969
5121
  CisSortOrder,
5122
+ ClusterMetadata,
4970
5123
  ConflictException,
4971
5124
  GroupKey,
4972
5125
  CoverageStringComparison,
@@ -4990,6 +5143,7 @@ var StopCisSessionStatus = {
4990
5143
  Ec2ScanMode,
4991
5144
  Ec2ScanModeStatus,
4992
5145
  EcrPullDateRescanDuration,
5146
+ EcrPullDateRescanMode,
4993
5147
  EcrRescanDuration,
4994
5148
  EcrRescanDurationStatus,
4995
5149
  ExploitAvailable,
@@ -22,6 +22,7 @@ import { EnableCommand } from "./commands/EnableCommand";
22
22
  import { EnableDelegatedAdminAccountCommand, } from "./commands/EnableDelegatedAdminAccountCommand";
23
23
  import { GetCisScanReportCommand, } from "./commands/GetCisScanReportCommand";
24
24
  import { GetCisScanResultDetailsCommand, } from "./commands/GetCisScanResultDetailsCommand";
25
+ import { GetClustersForImageCommand, } from "./commands/GetClustersForImageCommand";
25
26
  import { GetConfigurationCommand, } from "./commands/GetConfigurationCommand";
26
27
  import { GetDelegatedAdminAccountCommand, } from "./commands/GetDelegatedAdminAccountCommand";
27
28
  import { GetEc2DeepInspectionConfigurationCommand, } from "./commands/GetEc2DeepInspectionConfigurationCommand";
@@ -83,6 +84,7 @@ const commands = {
83
84
  EnableDelegatedAdminAccountCommand,
84
85
  GetCisScanReportCommand,
85
86
  GetCisScanResultDetailsCommand,
87
+ GetClustersForImageCommand,
86
88
  GetConfigurationCommand,
87
89
  GetDelegatedAdminAccountCommand,
88
90
  GetEc2DeepInspectionConfigurationCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetClustersForImageCommand, se_GetClustersForImageCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetClustersForImageCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Inspector2", "GetClustersForImage", {})
17
+ .n("Inspector2Client", "GetClustersForImageCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetClustersForImageCommand)
20
+ .de(de_GetClustersForImageCommand)
21
+ .build() {
22
+ }
@@ -21,6 +21,7 @@ export * from "./EnableCommand";
21
21
  export * from "./EnableDelegatedAdminAccountCommand";
22
22
  export * from "./GetCisScanReportCommand";
23
23
  export * from "./GetCisScanResultDetailsCommand";
24
+ export * from "./GetClustersForImageCommand";
24
25
  export * from "./GetConfigurationCommand";
25
26
  export * from "./GetDelegatedAdminAccountCommand";
26
27
  export * from "./GetEc2DeepInspectionConfigurationCommand";
@@ -461,6 +461,16 @@ export const CisSortOrder = {
461
461
  ASC: "ASC",
462
462
  DESC: "DESC",
463
463
  };
464
+ export var ClusterMetadata;
465
+ (function (ClusterMetadata) {
466
+ ClusterMetadata.visit = (value, visitor) => {
467
+ if (value.awsEcsMetadataDetails !== undefined)
468
+ return visitor.awsEcsMetadataDetails(value.awsEcsMetadataDetails);
469
+ if (value.awsEksMetadataDetails !== undefined)
470
+ return visitor.awsEksMetadataDetails(value.awsEksMetadataDetails);
471
+ return visitor._(value.$unknown[0], value.$unknown[1]);
472
+ };
473
+ })(ClusterMetadata || (ClusterMetadata = {}));
464
474
  export class ConflictException extends __BaseException {
465
475
  name = "ConflictException";
466
476
  $fault = "client";
@@ -528,6 +538,7 @@ export const ScanStatusReason = {
528
538
  NO_RESOURCES_FOUND: "NO_RESOURCES_FOUND",
529
539
  PENDING_DISABLE: "PENDING_DISABLE",
530
540
  PENDING_INITIAL_SCAN: "PENDING_INITIAL_SCAN",
541
+ PENDING_REVIVAL_SCAN: "PENDING_REVIVAL_SCAN",
531
542
  RESOURCE_TERMINATED: "RESOURCE_TERMINATED",
532
543
  SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED",
533
544
  SCAN_FREQUENCY_MANUAL: "SCAN_FREQUENCY_MANUAL",
@@ -610,6 +621,10 @@ export const EcrPullDateRescanDuration = {
610
621
  DAYS_60: "DAYS_60",
611
622
  DAYS_90: "DAYS_90",
612
623
  };
624
+ export const EcrPullDateRescanMode = {
625
+ LAST_IN_USE_AT: "LAST_IN_USE_AT",
626
+ LAST_PULL_DATE: "LAST_PULL_DATE",
627
+ };
613
628
  export const EcrRescanDuration = {
614
629
  DAYS_14: "DAYS_14",
615
630
  DAYS_180: "DAYS_180",
@@ -694,14 +709,3 @@ export const ReportingErrorCode = {
694
709
  MALFORMED_KMS_KEY: "MALFORMED_KMS_KEY",
695
710
  NO_FINDINGS_FOUND: "NO_FINDINGS_FOUND",
696
711
  };
697
- export const Service = {
698
- EC2: "EC2",
699
- ECR: "ECR",
700
- LAMBDA: "LAMBDA",
701
- };
702
- export const Operation = {
703
- DISABLE_REPOSITORY: "DISABLE_REPOSITORY",
704
- DISABLE_SCANNING: "DISABLE_SCANNING",
705
- ENABLE_REPOSITORY: "ENABLE_REPOSITORY",
706
- ENABLE_SCANNING: "ENABLE_SCANNING",
707
- };
@@ -1,3 +1,14 @@
1
+ export const Service = {
2
+ EC2: "EC2",
3
+ ECR: "ECR",
4
+ LAMBDA: "LAMBDA",
5
+ };
6
+ export const Operation = {
7
+ DISABLE_REPOSITORY: "DISABLE_REPOSITORY",
8
+ DISABLE_SCANNING: "DISABLE_SCANNING",
9
+ ENABLE_REPOSITORY: "ENABLE_REPOSITORY",
10
+ ENABLE_SCANNING: "ENABLE_SCANNING",
11
+ };
1
12
  export const ListCisScansDetailLevel = {
2
13
  MEMBER: "MEMBER",
3
14
  ORGANIZATION: "ORGANIZATION",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { GetClustersForImageCommand, } from "../commands/GetClustersForImageCommand";
3
+ import { Inspector2Client } from "../Inspector2Client";
4
+ export const paginateGetClustersForImage = createPaginator(Inspector2Client, GetClustersForImageCommand, "nextToken", "nextToken", "maxResults");
@@ -1,4 +1,5 @@
1
1
  export * from "./GetCisScanResultDetailsPaginator";
2
+ export * from "./GetClustersForImagePaginator";
2
3
  export * from "./Interfaces";
3
4
  export * from "./ListAccountPermissionsPaginator";
4
5
  export * from "./ListCisScanConfigurationsPaginator";