@aws-sdk/client-inspector2 3.564.0 → 3.565.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/dist-cjs/index.js CHANGED
@@ -81,6 +81,8 @@ __export(src_exports, {
81
81
  Ec2DeepInspectionStatus: () => Ec2DeepInspectionStatus,
82
82
  Ec2InstanceSortBy: () => Ec2InstanceSortBy,
83
83
  Ec2Platform: () => Ec2Platform,
84
+ Ec2ScanMode: () => Ec2ScanMode,
85
+ Ec2ScanModeStatus: () => Ec2ScanModeStatus,
84
86
  EcrPullDateRescanDuration: () => EcrPullDateRescanDuration,
85
87
  EcrRescanDuration: () => EcrRescanDuration,
86
88
  EcrRescanDurationStatus: () => EcrRescanDurationStatus,
@@ -150,6 +152,7 @@ __export(src_exports, {
150
152
  ResourceType: () => ResourceType,
151
153
  Runtime: () => Runtime,
152
154
  SbomReportFormat: () => SbomReportFormat,
155
+ ScanMode: () => ScanMode,
153
156
  ScanStatusCode: () => ScanStatusCode,
154
157
  ScanStatusReason: () => ScanStatusReason,
155
158
  ScanType: () => ScanType,
@@ -887,6 +890,10 @@ var EcrScanFrequency = {
887
890
  MANUAL: "MANUAL",
888
891
  SCAN_ON_PUSH: "SCAN_ON_PUSH"
889
892
  };
893
+ var ScanMode = {
894
+ EC2_AGENTLESS: "EC2_AGENTLESS",
895
+ EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED"
896
+ };
890
897
  var ScanStatusReason = {
891
898
  ACCESS_DENIED: "ACCESS_DENIED",
892
899
  DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED: "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED",
@@ -986,6 +993,14 @@ var ResourceScanType = {
986
993
  LAMBDA: "LAMBDA",
987
994
  LAMBDA_CODE: "LAMBDA_CODE"
988
995
  };
996
+ var Ec2ScanMode = {
997
+ EC2_HYBRID: "EC2_HYBRID",
998
+ EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED"
999
+ };
1000
+ var Ec2ScanModeStatus = {
1001
+ PENDING: "PENDING",
1002
+ SUCCESS: "SUCCESS"
1003
+ };
989
1004
  var EcrPullDateRescanDuration = {
990
1005
  DAYS_14: "DAYS_14",
991
1006
  DAYS_180: "DAYS_180",
@@ -1087,16 +1102,6 @@ var Operation = {
1087
1102
  ENABLE_REPOSITORY: "ENABLE_REPOSITORY",
1088
1103
  ENABLE_SCANNING: "ENABLE_SCANNING"
1089
1104
  };
1090
- var ListCisScansDetailLevel = {
1091
- MEMBER: "MEMBER",
1092
- ORGANIZATION: "ORGANIZATION"
1093
- };
1094
- var ListCisScansSortBy = {
1095
- FAILED_CHECKS: "FAILED_CHECKS",
1096
- SCAN_START_DATE: "SCAN_START_DATE",
1097
- SCHEDULED_BY: "SCHEDULED_BY",
1098
- STATUS: "STATUS"
1099
- };
1100
1105
 
1101
1106
  // src/protocols/Aws_restJson1.ts
1102
1107
  var se_AssociateMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -1956,6 +1961,7 @@ var se_UpdateConfigurationCommand = /* @__PURE__ */ __name(async (input, context
1956
1961
  let body;
1957
1962
  body = JSON.stringify(
1958
1963
  (0, import_smithy_client.take)(input, {
1964
+ ec2Configuration: (_) => (0, import_smithy_client._json)(_),
1959
1965
  ecrConfiguration: (_) => (0, import_smithy_client._json)(_)
1960
1966
  })
1961
1967
  );
@@ -2387,6 +2393,7 @@ var de_GetConfigurationCommand = /* @__PURE__ */ __name(async (output, context)
2387
2393
  });
2388
2394
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2389
2395
  const doc = (0, import_smithy_client.take)(data, {
2396
+ ec2Configuration: import_smithy_client._json,
2390
2397
  ecrConfiguration: (_) => de_EcrConfigurationState(_, context)
2391
2398
  });
2392
2399
  Object.assign(contents, doc);
@@ -3076,6 +3083,7 @@ var se_CoverageFilterCriteria = /* @__PURE__ */ __name((input, context) => {
3076
3083
  lastScannedAt: (_) => se_CoverageDateFilterList(_, context),
3077
3084
  resourceId: import_smithy_client._json,
3078
3085
  resourceType: import_smithy_client._json,
3086
+ scanMode: import_smithy_client._json,
3079
3087
  scanStatusCode: import_smithy_client._json,
3080
3088
  scanStatusReason: import_smithy_client._json,
3081
3089
  scanType: import_smithy_client._json
@@ -3325,6 +3333,7 @@ var de_CoveredResource = /* @__PURE__ */ __name((output, context) => {
3325
3333
  resourceId: import_smithy_client.expectString,
3326
3334
  resourceMetadata: (_) => de_ResourceScanMetadata(_, context),
3327
3335
  resourceType: import_smithy_client.expectString,
3336
+ scanMode: import_smithy_client.expectString,
3328
3337
  scanStatus: import_smithy_client._json,
3329
3338
  scanType: import_smithy_client.expectString
3330
3339
  });
@@ -4863,6 +4872,16 @@ var paginateListUsageTotals = (0, import_core.createPaginator)(Inspector2Client,
4863
4872
  var paginateSearchVulnerabilities = (0, import_core.createPaginator)(Inspector2Client, SearchVulnerabilitiesCommand, "nextToken", "nextToken", "");
4864
4873
 
4865
4874
  // src/models/models_1.ts
4875
+ var ListCisScansDetailLevel = {
4876
+ MEMBER: "MEMBER",
4877
+ ORGANIZATION: "ORGANIZATION"
4878
+ };
4879
+ var ListCisScansSortBy = {
4880
+ FAILED_CHECKS: "FAILED_CHECKS",
4881
+ SCAN_START_DATE: "SCAN_START_DATE",
4882
+ SCHEDULED_BY: "SCHEDULED_BY",
4883
+ STATUS: "STATUS"
4884
+ };
4866
4885
  var SortField = {
4867
4886
  AWS_ACCOUNT_ID: "AWS_ACCOUNT_ID",
4868
4887
  COMPONENT_TYPE: "COMPONENT_TYPE",
@@ -5046,6 +5065,7 @@ var StopCisSessionStatus = {
5046
5065
  CoverageResourceType,
5047
5066
  Ec2Platform,
5048
5067
  EcrScanFrequency,
5068
+ ScanMode,
5049
5069
  ScanStatusReason,
5050
5070
  ScanStatusCode,
5051
5071
  ScanType,
@@ -5059,6 +5079,8 @@ var StopCisSessionStatus = {
5059
5079
  RelationshipStatus,
5060
5080
  DelegatedAdminStatus,
5061
5081
  ResourceScanType,
5082
+ Ec2ScanMode,
5083
+ Ec2ScanModeStatus,
5062
5084
  EcrPullDateRescanDuration,
5063
5085
  EcrRescanDuration,
5064
5086
  EcrRescanDurationStatus,
@@ -476,6 +476,10 @@ export const EcrScanFrequency = {
476
476
  MANUAL: "MANUAL",
477
477
  SCAN_ON_PUSH: "SCAN_ON_PUSH",
478
478
  };
479
+ export const ScanMode = {
480
+ EC2_AGENTLESS: "EC2_AGENTLESS",
481
+ EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED",
482
+ };
479
483
  export const ScanStatusReason = {
480
484
  ACCESS_DENIED: "ACCESS_DENIED",
481
485
  DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED: "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED",
@@ -570,6 +574,14 @@ export const ResourceScanType = {
570
574
  LAMBDA: "LAMBDA",
571
575
  LAMBDA_CODE: "LAMBDA_CODE",
572
576
  };
577
+ export const Ec2ScanMode = {
578
+ EC2_HYBRID: "EC2_HYBRID",
579
+ EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED",
580
+ };
581
+ export const Ec2ScanModeStatus = {
582
+ PENDING: "PENDING",
583
+ SUCCESS: "SUCCESS",
584
+ };
573
585
  export const EcrPullDateRescanDuration = {
574
586
  DAYS_14: "DAYS_14",
575
587
  DAYS_180: "DAYS_180",
@@ -671,13 +683,3 @@ export const Operation = {
671
683
  ENABLE_REPOSITORY: "ENABLE_REPOSITORY",
672
684
  ENABLE_SCANNING: "ENABLE_SCANNING",
673
685
  };
674
- export const ListCisScansDetailLevel = {
675
- MEMBER: "MEMBER",
676
- ORGANIZATION: "ORGANIZATION",
677
- };
678
- export const ListCisScansSortBy = {
679
- FAILED_CHECKS: "FAILED_CHECKS",
680
- SCAN_START_DATE: "SCAN_START_DATE",
681
- SCHEDULED_BY: "SCHEDULED_BY",
682
- STATUS: "STATUS",
683
- };
@@ -1,3 +1,13 @@
1
+ export const ListCisScansDetailLevel = {
2
+ MEMBER: "MEMBER",
3
+ ORGANIZATION: "ORGANIZATION",
4
+ };
5
+ export const ListCisScansSortBy = {
6
+ FAILED_CHECKS: "FAILED_CHECKS",
7
+ SCAN_START_DATE: "SCAN_START_DATE",
8
+ SCHEDULED_BY: "SCHEDULED_BY",
9
+ STATUS: "STATUS",
10
+ };
1
11
  export const SortField = {
2
12
  AWS_ACCOUNT_ID: "AWS_ACCOUNT_ID",
3
13
  COMPONENT_TYPE: "COMPONENT_TYPE",
@@ -768,6 +768,7 @@ export const se_UpdateConfigurationCommand = async (input, context) => {
768
768
  b.bp("/configuration/update");
769
769
  let body;
770
770
  body = JSON.stringify(take(input, {
771
+ ec2Configuration: (_) => _json(_),
771
772
  ecrConfiguration: (_) => _json(_),
772
773
  }));
773
774
  b.m("POST").h(headers).b(body);
@@ -1188,6 +1189,7 @@ export const de_GetConfigurationCommand = async (output, context) => {
1188
1189
  });
1189
1190
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1190
1191
  const doc = take(data, {
1192
+ ec2Configuration: _json,
1191
1193
  ecrConfiguration: (_) => de_EcrConfigurationState(_, context),
1192
1194
  });
1193
1195
  Object.assign(contents, doc);
@@ -1883,6 +1885,7 @@ const se_CoverageFilterCriteria = (input, context) => {
1883
1885
  lastScannedAt: (_) => se_CoverageDateFilterList(_, context),
1884
1886
  resourceId: _json,
1885
1887
  resourceType: _json,
1888
+ scanMode: _json,
1886
1889
  scanStatusCode: _json,
1887
1890
  scanStatusReason: _json,
1888
1891
  scanType: _json,
@@ -2142,6 +2145,7 @@ const de_CoveredResource = (output, context) => {
2142
2145
  resourceId: __expectString,
2143
2146
  resourceMetadata: (_) => de_ResourceScanMetadata(_, context),
2144
2147
  resourceType: __expectString,
2148
+ scanMode: __expectString,
2145
2149
  scanStatus: _json,
2146
2150
  scanType: __expectString,
2147
2151
  });
@@ -399,6 +399,7 @@ export interface Inspector2 {
399
399
  /**
400
400
  * @see {@link UpdateConfigurationCommand}
401
401
  */
402
+ updateConfiguration(): Promise<UpdateConfigurationCommandOutput>;
402
403
  updateConfiguration(args: UpdateConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConfigurationCommandOutput>;
403
404
  updateConfiguration(args: UpdateConfigurationCommandInput, cb: (err: any, data?: UpdateConfigurationCommandOutput) => void): void;
404
405
  updateConfiguration(args: UpdateConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConfigurationCommandOutput) => void): void;
@@ -45,6 +45,12 @@ declare const GetConfigurationCommand_base: {
45
45
  * // pullDateRescanDuration: "STRING_VALUE",
46
46
  * // },
47
47
  * // },
48
+ * // ec2Configuration: { // Ec2ConfigurationState
49
+ * // scanModeState: { // Ec2ScanModeState
50
+ * // scanMode: "STRING_VALUE",
51
+ * // scanModeStatus: "STRING_VALUE",
52
+ * // },
53
+ * // },
48
54
  * // };
49
55
  *
50
56
  * ```
@@ -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 { ListCisScanResultsAggregatedByTargetResourceRequest, ListCisScanResultsAggregatedByTargetResourceResponse } from "../models/models_0";
4
+ import { ListCisScanResultsAggregatedByTargetResourceRequest } from "../models/models_0";
5
+ import { ListCisScanResultsAggregatedByTargetResourceResponse } 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 { ListCisScansRequest, ListCisScansResponse } from "../models/models_0";
4
+ import { ListCisScansRequest, ListCisScansResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -92,6 +92,7 @@ declare const ListCoverageCommand_base: {
92
92
  * endInclusive: new Date("TIMESTAMP"),
93
93
  * },
94
94
  * ],
95
+ * scanMode: "<CoverageStringFilterList>",
95
96
  * imagePulledAt: [
96
97
  * {
97
98
  * startInclusive: new Date("TIMESTAMP"),
@@ -144,6 +145,7 @@ declare const ListCoverageCommand_base: {
144
145
  * // },
145
146
  * // },
146
147
  * // lastScannedAt: new Date("TIMESTAMP"),
148
+ * // scanMode: "STRING_VALUE",
147
149
  * // },
148
150
  * // ],
149
151
  * // };
@@ -90,6 +90,7 @@ declare const ListCoverageStatisticsCommand_base: {
90
90
  * endInclusive: new Date("TIMESTAMP"),
91
91
  * },
92
92
  * ],
93
+ * scanMode: "<CoverageStringFilterList>",
93
94
  * imagePulledAt: [
94
95
  * {
95
96
  * startInclusive: new Date("TIMESTAMP"),
@@ -22,7 +22,7 @@ export interface UpdateConfigurationCommandOutput extends UpdateConfigurationRes
22
22
  }
23
23
  declare const UpdateConfigurationCommand_base: {
24
24
  new (input: UpdateConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
- new (__0_0: UpdateConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [UpdateConfigurationCommandInput]): import("@smithy/smithy-client").CommandImpl<UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput, Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
@@ -38,6 +38,9 @@ declare const UpdateConfigurationCommand_base: {
38
38
  * rescanDuration: "STRING_VALUE", // required
39
39
  * pullDateRescanDuration: "STRING_VALUE",
40
40
  * },
41
+ * ec2Configuration: { // Ec2Configuration
42
+ * scanMode: "STRING_VALUE", // required
43
+ * },
41
44
  * };
42
45
  * const command = new UpdateConfigurationCommand(input);
43
46
  * const response = await client.send(command);
@@ -3978,6 +3978,11 @@ export interface CoverageFilterCriteria {
3978
3978
  * @public
3979
3979
  */
3980
3980
  lastScannedAt?: CoverageDateFilter[];
3981
+ /**
3982
+ * <p>The filter to search for Amazon EC2 instance coverage by scan mode. Valid values are <code>EC2_SSM_AGENT_BASED</code> and <code>EC2_HYBRID</code>.</p>
3983
+ * @public
3984
+ */
3985
+ scanMode?: CoverageStringFilter[];
3981
3986
  /**
3982
3987
  * <p>The date an image was last pulled at.</p>
3983
3988
  * @public
@@ -4130,6 +4135,18 @@ export interface ResourceScanMetadata {
4130
4135
  */
4131
4136
  lambdaFunction?: LambdaFunctionMetadata;
4132
4137
  }
4138
+ /**
4139
+ * @public
4140
+ * @enum
4141
+ */
4142
+ export declare const ScanMode: {
4143
+ readonly EC2_AGENTLESS: "EC2_AGENTLESS";
4144
+ readonly EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED";
4145
+ };
4146
+ /**
4147
+ * @public
4148
+ */
4149
+ export type ScanMode = (typeof ScanMode)[keyof typeof ScanMode];
4133
4150
  /**
4134
4151
  * @public
4135
4152
  * @enum
@@ -4294,6 +4311,11 @@ export interface CoveredResource {
4294
4311
  * @public
4295
4312
  */
4296
4313
  lastScannedAt?: Date;
4314
+ /**
4315
+ * <p>The scan method that is applied to the instance.</p>
4316
+ * @public
4317
+ */
4318
+ scanMode?: ScanMode;
4297
4319
  }
4298
4320
  /**
4299
4321
  * <p>Creates CIS targets.</p>
@@ -5282,6 +5304,68 @@ export interface DisassociateMemberResponse {
5282
5304
  */
5283
5305
  accountId: string | undefined;
5284
5306
  }
5307
+ /**
5308
+ * @public
5309
+ * @enum
5310
+ */
5311
+ export declare const Ec2ScanMode: {
5312
+ readonly EC2_HYBRID: "EC2_HYBRID";
5313
+ readonly EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED";
5314
+ };
5315
+ /**
5316
+ * @public
5317
+ */
5318
+ export type Ec2ScanMode = (typeof Ec2ScanMode)[keyof typeof Ec2ScanMode];
5319
+ /**
5320
+ * <p>Enables agent-based scanning, which scans instances that are not managed by SSM.</p>
5321
+ * @public
5322
+ */
5323
+ export interface Ec2Configuration {
5324
+ /**
5325
+ * <p>The scan method that is applied to the instance.</p>
5326
+ * @public
5327
+ */
5328
+ scanMode: Ec2ScanMode | undefined;
5329
+ }
5330
+ /**
5331
+ * @public
5332
+ * @enum
5333
+ */
5334
+ export declare const Ec2ScanModeStatus: {
5335
+ readonly PENDING: "PENDING";
5336
+ readonly SUCCESS: "SUCCESS";
5337
+ };
5338
+ /**
5339
+ * @public
5340
+ */
5341
+ export type Ec2ScanModeStatus = (typeof Ec2ScanModeStatus)[keyof typeof Ec2ScanModeStatus];
5342
+ /**
5343
+ * <p>The state of your Amazon EC2 scan mode configuration.</p>
5344
+ * @public
5345
+ */
5346
+ export interface Ec2ScanModeState {
5347
+ /**
5348
+ * <p>The scan method that is applied to the instance.</p>
5349
+ * @public
5350
+ */
5351
+ scanMode?: Ec2ScanMode;
5352
+ /**
5353
+ * <p>The status of the Amazon EC2 scan mode setting.</p>
5354
+ * @public
5355
+ */
5356
+ scanModeStatus?: Ec2ScanModeStatus;
5357
+ }
5358
+ /**
5359
+ * <p>Details about the state of the EC2 scan configuration for your environment.</p>
5360
+ * @public
5361
+ */
5362
+ export interface Ec2ConfigurationState {
5363
+ /**
5364
+ * <p>An object that contains details about the state of the Amazon EC2 scan mode.</p>
5365
+ * @public
5366
+ */
5367
+ scanModeState?: Ec2ScanModeState;
5368
+ }
5285
5369
  /**
5286
5370
  * @public
5287
5371
  * @enum
@@ -5988,7 +6072,10 @@ export interface Finding {
5988
6072
  */
5989
6073
  firstObservedAt: Date | undefined;
5990
6074
  /**
5991
- * <p>The date and time that the finding was last observed.</p>
6075
+ * <p>
6076
+ * The date and time the finding was last observed.
6077
+ * This timestamp for this field remains unchanged until a finding is updated.
6078
+ * </p>
5992
6079
  * @public
5993
6080
  */
5994
6081
  lastObservedAt: Date | undefined;
@@ -6074,7 +6161,7 @@ export interface GetCisScanReportRequest {
6074
6161
  export interface GetCisScanReportResponse {
6075
6162
  /**
6076
6163
  * <p>
6077
- * The URL where the CIS scan report PDF can be downloaded.
6164
+ * The URL where a PDF of the CIS scan report can be downloaded.
6078
6165
  * </p>
6079
6166
  * @public
6080
6167
  */
@@ -6159,6 +6246,11 @@ export interface GetConfigurationResponse {
6159
6246
  * @public
6160
6247
  */
6161
6248
  ecrConfiguration?: EcrConfigurationState;
6249
+ /**
6250
+ * <p>Specifies how the Amazon EC2 automated scan mode is currently configured for your environment.</p>
6251
+ * @public
6252
+ */
6253
+ ec2Configuration?: Ec2ConfigurationState;
6162
6254
  }
6163
6255
  /**
6164
6256
  * @public
@@ -6619,150 +6711,3 @@ export interface ListCisScanResultsAggregatedByTargetResourceRequest {
6619
6711
  */
6620
6712
  maxResults?: number;
6621
6713
  }
6622
- /**
6623
- * @public
6624
- */
6625
- export interface ListCisScanResultsAggregatedByTargetResourceResponse {
6626
- /**
6627
- * <p>The resource aggregations.</p>
6628
- * @public
6629
- */
6630
- targetResourceAggregations?: CisTargetResourceAggregation[];
6631
- /**
6632
- * <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
6633
- * @public
6634
- */
6635
- nextToken?: string;
6636
- }
6637
- /**
6638
- * @public
6639
- * @enum
6640
- */
6641
- export declare const ListCisScansDetailLevel: {
6642
- readonly MEMBER: "MEMBER";
6643
- readonly ORGANIZATION: "ORGANIZATION";
6644
- };
6645
- /**
6646
- * @public
6647
- */
6648
- export type ListCisScansDetailLevel = (typeof ListCisScansDetailLevel)[keyof typeof ListCisScansDetailLevel];
6649
- /**
6650
- * <p>A list of CIS scans filter criteria.</p>
6651
- * @public
6652
- */
6653
- export interface ListCisScansFilterCriteria {
6654
- /**
6655
- * <p>The list of scan name filters.</p>
6656
- * @public
6657
- */
6658
- scanNameFilters?: CisStringFilter[];
6659
- /**
6660
- * <p>The list of target resource tag filters.</p>
6661
- * @public
6662
- */
6663
- targetResourceTagFilters?: TagFilter[];
6664
- /**
6665
- * <p>The list of target resource ID filters.</p>
6666
- * @public
6667
- */
6668
- targetResourceIdFilters?: CisStringFilter[];
6669
- /**
6670
- * <p>The list of scan status filters.</p>
6671
- * @public
6672
- */
6673
- scanStatusFilters?: CisScanStatusFilter[];
6674
- /**
6675
- * <p>The list of scan at filters.</p>
6676
- * @public
6677
- */
6678
- scanAtFilters?: CisDateFilter[];
6679
- /**
6680
- * <p>The list of scan configuration ARN filters.</p>
6681
- * @public
6682
- */
6683
- scanConfigurationArnFilters?: CisStringFilter[];
6684
- /**
6685
- * <p>The list of scan ARN filters.</p>
6686
- * @public
6687
- */
6688
- scanArnFilters?: CisStringFilter[];
6689
- /**
6690
- * <p>The list of scheduled by filters.</p>
6691
- * @public
6692
- */
6693
- scheduledByFilters?: CisStringFilter[];
6694
- /**
6695
- * <p>The list of failed checks filters.</p>
6696
- * @public
6697
- */
6698
- failedChecksFilters?: CisNumberFilter[];
6699
- /**
6700
- * <p>The list of target account ID filters.</p>
6701
- * @public
6702
- */
6703
- targetAccountIdFilters?: CisStringFilter[];
6704
- }
6705
- /**
6706
- * @public
6707
- * @enum
6708
- */
6709
- export declare const ListCisScansSortBy: {
6710
- readonly FAILED_CHECKS: "FAILED_CHECKS";
6711
- readonly SCAN_START_DATE: "SCAN_START_DATE";
6712
- readonly SCHEDULED_BY: "SCHEDULED_BY";
6713
- readonly STATUS: "STATUS";
6714
- };
6715
- /**
6716
- * @public
6717
- */
6718
- export type ListCisScansSortBy = (typeof ListCisScansSortBy)[keyof typeof ListCisScansSortBy];
6719
- /**
6720
- * @public
6721
- */
6722
- export interface ListCisScansRequest {
6723
- /**
6724
- * <p>The CIS scan filter criteria.</p>
6725
- * @public
6726
- */
6727
- filterCriteria?: ListCisScansFilterCriteria;
6728
- /**
6729
- * <p>The detail applied to the CIS scan.</p>
6730
- * @public
6731
- */
6732
- detailLevel?: ListCisScansDetailLevel;
6733
- /**
6734
- * <p>The CIS scans sort by order.</p>
6735
- * @public
6736
- */
6737
- sortBy?: ListCisScansSortBy;
6738
- /**
6739
- * <p>The CIS scans sort order.</p>
6740
- * @public
6741
- */
6742
- sortOrder?: CisSortOrder;
6743
- /**
6744
- * <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
6745
- * @public
6746
- */
6747
- nextToken?: string;
6748
- /**
6749
- * <p>The maximum number of results to be returned.</p>
6750
- * @public
6751
- */
6752
- maxResults?: number;
6753
- }
6754
- /**
6755
- * @public
6756
- */
6757
- export interface ListCisScansResponse {
6758
- /**
6759
- * <p>The CIS scans.</p>
6760
- * @public
6761
- */
6762
- scans?: CisScan[];
6763
- /**
6764
- * <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
6765
- * @public
6766
- */
6767
- nextToken?: string;
6768
- }
@@ -1,4 +1,151 @@
1
- import { AggregationRequest, AggregationResponse, AggregationType, AtigData, AutoEnable, CisaData, CisSecurityLevel, CisSessionMessage, ComputePlatform, Counts, CoverageFilterCriteria, CoveredResource, Currency, Cvss2, Cvss3, DelegatedAdminAccount, Ec2DeepInspectionStatus, EcrConfiguration, Epss, ExploitObserved, Filter, FilterAction, FilterCriteria, Finding, GroupKey, Member, ResourceType, ScanType, Schedule, SortOrder, StringFilter } from "./models_0";
1
+ import { AggregationRequest, AggregationResponse, AggregationType, AtigData, AutoEnable, CisaData, CisDateFilter, CisNumberFilter, CisScan, CisScanStatusFilter, CisSecurityLevel, CisSessionMessage, CisSortOrder, CisStringFilter, CisTargetResourceAggregation, ComputePlatform, Counts, CoverageFilterCriteria, CoveredResource, Currency, Cvss2, Cvss3, DelegatedAdminAccount, Ec2Configuration, Ec2DeepInspectionStatus, EcrConfiguration, Epss, ExploitObserved, Filter, FilterAction, FilterCriteria, Finding, GroupKey, Member, ResourceType, ScanType, Schedule, SortOrder, StringFilter, TagFilter } from "./models_0";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ListCisScanResultsAggregatedByTargetResourceResponse {
6
+ /**
7
+ * <p>The resource aggregations.</p>
8
+ * @public
9
+ */
10
+ targetResourceAggregations?: CisTargetResourceAggregation[];
11
+ /**
12
+ * <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
13
+ * @public
14
+ */
15
+ nextToken?: string;
16
+ }
17
+ /**
18
+ * @public
19
+ * @enum
20
+ */
21
+ export declare const ListCisScansDetailLevel: {
22
+ readonly MEMBER: "MEMBER";
23
+ readonly ORGANIZATION: "ORGANIZATION";
24
+ };
25
+ /**
26
+ * @public
27
+ */
28
+ export type ListCisScansDetailLevel = (typeof ListCisScansDetailLevel)[keyof typeof ListCisScansDetailLevel];
29
+ /**
30
+ * <p>A list of CIS scans filter criteria.</p>
31
+ * @public
32
+ */
33
+ export interface ListCisScansFilterCriteria {
34
+ /**
35
+ * <p>The list of scan name filters.</p>
36
+ * @public
37
+ */
38
+ scanNameFilters?: CisStringFilter[];
39
+ /**
40
+ * <p>The list of target resource tag filters.</p>
41
+ * @public
42
+ */
43
+ targetResourceTagFilters?: TagFilter[];
44
+ /**
45
+ * <p>The list of target resource ID filters.</p>
46
+ * @public
47
+ */
48
+ targetResourceIdFilters?: CisStringFilter[];
49
+ /**
50
+ * <p>The list of scan status filters.</p>
51
+ * @public
52
+ */
53
+ scanStatusFilters?: CisScanStatusFilter[];
54
+ /**
55
+ * <p>The list of scan at filters.</p>
56
+ * @public
57
+ */
58
+ scanAtFilters?: CisDateFilter[];
59
+ /**
60
+ * <p>The list of scan configuration ARN filters.</p>
61
+ * @public
62
+ */
63
+ scanConfigurationArnFilters?: CisStringFilter[];
64
+ /**
65
+ * <p>The list of scan ARN filters.</p>
66
+ * @public
67
+ */
68
+ scanArnFilters?: CisStringFilter[];
69
+ /**
70
+ * <p>The list of scheduled by filters.</p>
71
+ * @public
72
+ */
73
+ scheduledByFilters?: CisStringFilter[];
74
+ /**
75
+ * <p>The list of failed checks filters.</p>
76
+ * @public
77
+ */
78
+ failedChecksFilters?: CisNumberFilter[];
79
+ /**
80
+ * <p>The list of target account ID filters.</p>
81
+ * @public
82
+ */
83
+ targetAccountIdFilters?: CisStringFilter[];
84
+ }
85
+ /**
86
+ * @public
87
+ * @enum
88
+ */
89
+ export declare const ListCisScansSortBy: {
90
+ readonly FAILED_CHECKS: "FAILED_CHECKS";
91
+ readonly SCAN_START_DATE: "SCAN_START_DATE";
92
+ readonly SCHEDULED_BY: "SCHEDULED_BY";
93
+ readonly STATUS: "STATUS";
94
+ };
95
+ /**
96
+ * @public
97
+ */
98
+ export type ListCisScansSortBy = (typeof ListCisScansSortBy)[keyof typeof ListCisScansSortBy];
99
+ /**
100
+ * @public
101
+ */
102
+ export interface ListCisScansRequest {
103
+ /**
104
+ * <p>The CIS scan filter criteria.</p>
105
+ * @public
106
+ */
107
+ filterCriteria?: ListCisScansFilterCriteria;
108
+ /**
109
+ * <p>The detail applied to the CIS scan.</p>
110
+ * @public
111
+ */
112
+ detailLevel?: ListCisScansDetailLevel;
113
+ /**
114
+ * <p>The CIS scans sort by order.</p>
115
+ * @public
116
+ */
117
+ sortBy?: ListCisScansSortBy;
118
+ /**
119
+ * <p>The CIS scans sort order.</p>
120
+ * @public
121
+ */
122
+ sortOrder?: CisSortOrder;
123
+ /**
124
+ * <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
125
+ * @public
126
+ */
127
+ nextToken?: string;
128
+ /**
129
+ * <p>The maximum number of results to be returned.</p>
130
+ * @public
131
+ */
132
+ maxResults?: number;
133
+ }
134
+ /**
135
+ * @public
136
+ */
137
+ export interface ListCisScansResponse {
138
+ /**
139
+ * <p>The CIS scans.</p>
140
+ * @public
141
+ */
142
+ scans?: CisScan[];
143
+ /**
144
+ * <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
145
+ * @public
146
+ */
147
+ nextToken?: string;
148
+ }
2
149
  /**
3
150
  * @public
4
151
  */
@@ -920,7 +1067,12 @@ export interface UpdateConfigurationRequest {
920
1067
  * <p>Specifies how the ECR automated re-scan will be updated for your environment.</p>
921
1068
  * @public
922
1069
  */
923
- ecrConfiguration: EcrConfiguration | undefined;
1070
+ ecrConfiguration?: EcrConfiguration;
1071
+ /**
1072
+ * <p>Specifies how the Amazon EC2 automated scan will be updated for your environment.</p>
1073
+ * @public
1074
+ */
1075
+ ec2Configuration?: Ec2Configuration;
924
1076
  }
925
1077
  /**
926
1078
  * @public
@@ -980,6 +980,7 @@ export interface Inspector2 {
980
980
  options: __HttpHandlerOptions,
981
981
  cb: (err: any, data?: UpdateCisScanConfigurationCommandOutput) => void
982
982
  ): void;
983
+ updateConfiguration(): Promise<UpdateConfigurationCommandOutput>;
983
984
  updateConfiguration(
984
985
  args: UpdateConfigurationCommandInput,
985
986
  options?: __HttpHandlerOptions
@@ -5,10 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../Inspector2Client";
8
- import {
9
- ListCisScanResultsAggregatedByTargetResourceRequest,
10
- ListCisScanResultsAggregatedByTargetResourceResponse,
11
- } from "../models/models_0";
8
+ import { ListCisScanResultsAggregatedByTargetResourceRequest } from "../models/models_0";
9
+ import { ListCisScanResultsAggregatedByTargetResourceResponse } from "../models/models_1";
12
10
  export { __MetadataBearer, $Command };
13
11
  export interface ListCisScanResultsAggregatedByTargetResourceCommandInput
14
12
  extends ListCisScanResultsAggregatedByTargetResourceRequest {}
@@ -5,7 +5,7 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../Inspector2Client";
8
- import { ListCisScansRequest, ListCisScansResponse } from "../models/models_0";
8
+ import { ListCisScansRequest, ListCisScansResponse } from "../models/models_1";
9
9
  export { __MetadataBearer, $Command };
10
10
  export interface ListCisScansCommandInput extends ListCisScansRequest {}
11
11
  export interface ListCisScansCommandOutput
@@ -26,7 +26,7 @@ declare const UpdateConfigurationCommand_base: {
26
26
  ServiceOutputTypes
27
27
  >;
28
28
  new (
29
- __0_0: UpdateConfigurationCommandInput
29
+ ...[input]: [] | [UpdateConfigurationCommandInput]
30
30
  ): import("@smithy/smithy-client").CommandImpl<
31
31
  UpdateConfigurationCommandInput,
32
32
  UpdateConfigurationCommandOutput,
@@ -1484,6 +1484,7 @@ export interface CoverageFilterCriteria {
1484
1484
  lambdaFunctionTags?: CoverageMapFilter[];
1485
1485
  lambdaFunctionRuntime?: CoverageStringFilter[];
1486
1486
  lastScannedAt?: CoverageDateFilter[];
1487
+ scanMode?: CoverageStringFilter[];
1487
1488
  imagePulledAt?: CoverageDateFilter[];
1488
1489
  }
1489
1490
  export declare const CoverageResourceType: {
@@ -1533,6 +1534,11 @@ export interface ResourceScanMetadata {
1533
1534
  ec2?: Ec2Metadata;
1534
1535
  lambdaFunction?: LambdaFunctionMetadata;
1535
1536
  }
1537
+ export declare const ScanMode: {
1538
+ readonly EC2_AGENTLESS: "EC2_AGENTLESS";
1539
+ readonly EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED";
1540
+ };
1541
+ export type ScanMode = (typeof ScanMode)[keyof typeof ScanMode];
1536
1542
  export declare const ScanStatusReason: {
1537
1543
  readonly ACCESS_DENIED: "ACCESS_DENIED";
1538
1544
  readonly DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED: "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED";
@@ -1585,6 +1591,7 @@ export interface CoveredResource {
1585
1591
  scanStatus?: ScanStatus;
1586
1592
  resourceMetadata?: ResourceScanMetadata;
1587
1593
  lastScannedAt?: Date;
1594
+ scanMode?: ScanMode;
1588
1595
  }
1589
1596
  export interface CreateCisTargets {
1590
1597
  accountIds: string[] | undefined;
@@ -1856,6 +1863,27 @@ export interface DisassociateMemberRequest {
1856
1863
  export interface DisassociateMemberResponse {
1857
1864
  accountId: string | undefined;
1858
1865
  }
1866
+ export declare const Ec2ScanMode: {
1867
+ readonly EC2_HYBRID: "EC2_HYBRID";
1868
+ readonly EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED";
1869
+ };
1870
+ export type Ec2ScanMode = (typeof Ec2ScanMode)[keyof typeof Ec2ScanMode];
1871
+ export interface Ec2Configuration {
1872
+ scanMode: Ec2ScanMode | undefined;
1873
+ }
1874
+ export declare const Ec2ScanModeStatus: {
1875
+ readonly PENDING: "PENDING";
1876
+ readonly SUCCESS: "SUCCESS";
1877
+ };
1878
+ export type Ec2ScanModeStatus =
1879
+ (typeof Ec2ScanModeStatus)[keyof typeof Ec2ScanModeStatus];
1880
+ export interface Ec2ScanModeState {
1881
+ scanMode?: Ec2ScanMode;
1882
+ scanModeStatus?: Ec2ScanModeStatus;
1883
+ }
1884
+ export interface Ec2ConfigurationState {
1885
+ scanModeState?: Ec2ScanModeState;
1886
+ }
1859
1887
  export declare const EcrPullDateRescanDuration: {
1860
1888
  readonly DAYS_14: "DAYS_14";
1861
1889
  readonly DAYS_180: "DAYS_180";
@@ -2119,6 +2147,7 @@ export interface GetCisScanResultDetailsResponse {
2119
2147
  export interface GetConfigurationRequest {}
2120
2148
  export interface GetConfigurationResponse {
2121
2149
  ecrConfiguration?: EcrConfigurationState;
2150
+ ec2Configuration?: Ec2ConfigurationState;
2122
2151
  }
2123
2152
  export interface GetDelegatedAdminAccountRequest {}
2124
2153
  export interface GetDelegatedAdminAccountResponse {
@@ -2245,45 +2274,3 @@ export interface ListCisScanResultsAggregatedByTargetResourceRequest {
2245
2274
  nextToken?: string;
2246
2275
  maxResults?: number;
2247
2276
  }
2248
- export interface ListCisScanResultsAggregatedByTargetResourceResponse {
2249
- targetResourceAggregations?: CisTargetResourceAggregation[];
2250
- nextToken?: string;
2251
- }
2252
- export declare const ListCisScansDetailLevel: {
2253
- readonly MEMBER: "MEMBER";
2254
- readonly ORGANIZATION: "ORGANIZATION";
2255
- };
2256
- export type ListCisScansDetailLevel =
2257
- (typeof ListCisScansDetailLevel)[keyof typeof ListCisScansDetailLevel];
2258
- export interface ListCisScansFilterCriteria {
2259
- scanNameFilters?: CisStringFilter[];
2260
- targetResourceTagFilters?: TagFilter[];
2261
- targetResourceIdFilters?: CisStringFilter[];
2262
- scanStatusFilters?: CisScanStatusFilter[];
2263
- scanAtFilters?: CisDateFilter[];
2264
- scanConfigurationArnFilters?: CisStringFilter[];
2265
- scanArnFilters?: CisStringFilter[];
2266
- scheduledByFilters?: CisStringFilter[];
2267
- failedChecksFilters?: CisNumberFilter[];
2268
- targetAccountIdFilters?: CisStringFilter[];
2269
- }
2270
- export declare const ListCisScansSortBy: {
2271
- readonly FAILED_CHECKS: "FAILED_CHECKS";
2272
- readonly SCAN_START_DATE: "SCAN_START_DATE";
2273
- readonly SCHEDULED_BY: "SCHEDULED_BY";
2274
- readonly STATUS: "STATUS";
2275
- };
2276
- export type ListCisScansSortBy =
2277
- (typeof ListCisScansSortBy)[keyof typeof ListCisScansSortBy];
2278
- export interface ListCisScansRequest {
2279
- filterCriteria?: ListCisScansFilterCriteria;
2280
- detailLevel?: ListCisScansDetailLevel;
2281
- sortBy?: ListCisScansSortBy;
2282
- sortOrder?: CisSortOrder;
2283
- nextToken?: string;
2284
- maxResults?: number;
2285
- }
2286
- export interface ListCisScansResponse {
2287
- scans?: CisScan[];
2288
- nextToken?: string;
2289
- }
@@ -5,8 +5,15 @@ import {
5
5
  AtigData,
6
6
  AutoEnable,
7
7
  CisaData,
8
+ CisDateFilter,
9
+ CisNumberFilter,
10
+ CisScan,
11
+ CisScanStatusFilter,
8
12
  CisSecurityLevel,
9
13
  CisSessionMessage,
14
+ CisSortOrder,
15
+ CisStringFilter,
16
+ CisTargetResourceAggregation,
10
17
  ComputePlatform,
11
18
  Counts,
12
19
  CoverageFilterCriteria,
@@ -15,6 +22,7 @@ import {
15
22
  Cvss2,
16
23
  Cvss3,
17
24
  DelegatedAdminAccount,
25
+ Ec2Configuration,
18
26
  Ec2DeepInspectionStatus,
19
27
  EcrConfiguration,
20
28
  Epss,
@@ -30,7 +38,50 @@ import {
30
38
  Schedule,
31
39
  SortOrder,
32
40
  StringFilter,
41
+ TagFilter,
33
42
  } from "./models_0";
43
+ export interface ListCisScanResultsAggregatedByTargetResourceResponse {
44
+ targetResourceAggregations?: CisTargetResourceAggregation[];
45
+ nextToken?: string;
46
+ }
47
+ export declare const ListCisScansDetailLevel: {
48
+ readonly MEMBER: "MEMBER";
49
+ readonly ORGANIZATION: "ORGANIZATION";
50
+ };
51
+ export type ListCisScansDetailLevel =
52
+ (typeof ListCisScansDetailLevel)[keyof typeof ListCisScansDetailLevel];
53
+ export interface ListCisScansFilterCriteria {
54
+ scanNameFilters?: CisStringFilter[];
55
+ targetResourceTagFilters?: TagFilter[];
56
+ targetResourceIdFilters?: CisStringFilter[];
57
+ scanStatusFilters?: CisScanStatusFilter[];
58
+ scanAtFilters?: CisDateFilter[];
59
+ scanConfigurationArnFilters?: CisStringFilter[];
60
+ scanArnFilters?: CisStringFilter[];
61
+ scheduledByFilters?: CisStringFilter[];
62
+ failedChecksFilters?: CisNumberFilter[];
63
+ targetAccountIdFilters?: CisStringFilter[];
64
+ }
65
+ export declare const ListCisScansSortBy: {
66
+ readonly FAILED_CHECKS: "FAILED_CHECKS";
67
+ readonly SCAN_START_DATE: "SCAN_START_DATE";
68
+ readonly SCHEDULED_BY: "SCHEDULED_BY";
69
+ readonly STATUS: "STATUS";
70
+ };
71
+ export type ListCisScansSortBy =
72
+ (typeof ListCisScansSortBy)[keyof typeof ListCisScansSortBy];
73
+ export interface ListCisScansRequest {
74
+ filterCriteria?: ListCisScansFilterCriteria;
75
+ detailLevel?: ListCisScansDetailLevel;
76
+ sortBy?: ListCisScansSortBy;
77
+ sortOrder?: CisSortOrder;
78
+ nextToken?: string;
79
+ maxResults?: number;
80
+ }
81
+ export interface ListCisScansResponse {
82
+ scans?: CisScan[];
83
+ nextToken?: string;
84
+ }
34
85
  export interface ListCoverageRequest {
35
86
  maxResults?: number;
36
87
  nextToken?: string;
@@ -272,7 +323,8 @@ export interface UpdateCisScanConfigurationResponse {
272
323
  scanConfigurationArn: string | undefined;
273
324
  }
274
325
  export interface UpdateConfigurationRequest {
275
- ecrConfiguration: EcrConfiguration | undefined;
326
+ ecrConfiguration?: EcrConfiguration;
327
+ ec2Configuration?: Ec2Configuration;
276
328
  }
277
329
  export interface UpdateConfigurationResponse {}
278
330
  export interface UpdateEc2DeepInspectionConfigurationRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-inspector2",
3
3
  "description": "AWS SDK for JavaScript Inspector2 Client for Node.js, Browser and React Native",
4
- "version": "3.564.0",
4
+ "version": "3.565.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-inspector2",
@@ -21,7 +21,7 @@
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
23
  "@aws-sdk/core": "3.556.0",
24
- "@aws-sdk/credential-provider-node": "3.564.0",
24
+ "@aws-sdk/credential-provider-node": "3.565.0",
25
25
  "@aws-sdk/middleware-host-header": "3.535.0",
26
26
  "@aws-sdk/middleware-logger": "3.535.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.535.0",