@aws-sdk/client-inspector2 3.498.0 → 3.501.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,7 @@ __export(src_exports, {
81
81
  Ec2DeepInspectionStatus: () => Ec2DeepInspectionStatus,
82
82
  Ec2InstanceSortBy: () => Ec2InstanceSortBy,
83
83
  Ec2Platform: () => Ec2Platform,
84
+ EcrPullDateRescanDuration: () => EcrPullDateRescanDuration,
84
85
  EcrRescanDuration: () => EcrRescanDuration,
85
86
  EcrRescanDurationStatus: () => EcrRescanDurationStatus,
86
87
  EcrScanFrequency: () => EcrScanFrequency,
@@ -927,9 +928,19 @@ var ResourceScanType = {
927
928
  LAMBDA: "LAMBDA",
928
929
  LAMBDA_CODE: "LAMBDA_CODE"
929
930
  };
931
+ var EcrPullDateRescanDuration = {
932
+ DAYS_14: "DAYS_14",
933
+ DAYS_180: "DAYS_180",
934
+ DAYS_30: "DAYS_30",
935
+ DAYS_60: "DAYS_60",
936
+ DAYS_90: "DAYS_90"
937
+ };
930
938
  var EcrRescanDuration = {
939
+ DAYS_14: "DAYS_14",
931
940
  DAYS_180: "DAYS_180",
932
941
  DAYS_30: "DAYS_30",
942
+ DAYS_60: "DAYS_60",
943
+ DAYS_90: "DAYS_90",
933
944
  LIFETIME: "LIFETIME"
934
945
  };
935
946
  var EcrRescanDurationStatus = {
@@ -4684,6 +4695,7 @@ var se_CoverageFilterCriteria = /* @__PURE__ */ __name((input, context) => {
4684
4695
  ec2InstanceTags: import_smithy_client._json,
4685
4696
  ecrImageTags: import_smithy_client._json,
4686
4697
  ecrRepositoryName: import_smithy_client._json,
4698
+ imagePulledAt: (_) => se_CoverageDateFilterList(_, context),
4687
4699
  lambdaFunctionName: import_smithy_client._json,
4688
4700
  lambdaFunctionRuntime: import_smithy_client._json,
4689
4701
  lambdaFunctionTags: import_smithy_client._json,
@@ -4937,7 +4949,7 @@ var de_CoveredResource = /* @__PURE__ */ __name((output, context) => {
4937
4949
  accountId: import_smithy_client.expectString,
4938
4950
  lastScannedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
4939
4951
  resourceId: import_smithy_client.expectString,
4940
- resourceMetadata: import_smithy_client._json,
4952
+ resourceMetadata: (_) => de_ResourceScanMetadata(_, context),
4941
4953
  resourceType: import_smithy_client.expectString,
4942
4954
  scanStatus: import_smithy_client._json,
4943
4955
  scanType: import_smithy_client.expectString
@@ -5002,8 +5014,15 @@ var de_EcrConfigurationState = /* @__PURE__ */ __name((output, context) => {
5002
5014
  rescanDurationState: (_) => de_EcrRescanDurationState(_, context)
5003
5015
  });
5004
5016
  }, "de_EcrConfigurationState");
5017
+ var de_EcrContainerImageMetadata = /* @__PURE__ */ __name((output, context) => {
5018
+ return (0, import_smithy_client.take)(output, {
5019
+ imagePulledAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
5020
+ tags: import_smithy_client._json
5021
+ });
5022
+ }, "de_EcrContainerImageMetadata");
5005
5023
  var de_EcrRescanDurationState = /* @__PURE__ */ __name((output, context) => {
5006
5024
  return (0, import_smithy_client.take)(output, {
5025
+ pullDateRescanDuration: import_smithy_client.expectString,
5007
5026
  rescanDuration: import_smithy_client.expectString,
5008
5027
  status: import_smithy_client.expectString,
5009
5028
  updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
@@ -5269,6 +5288,14 @@ var de_ResourceList = /* @__PURE__ */ __name((output, context) => {
5269
5288
  });
5270
5289
  return retVal;
5271
5290
  }, "de_ResourceList");
5291
+ var de_ResourceScanMetadata = /* @__PURE__ */ __name((output, context) => {
5292
+ return (0, import_smithy_client.take)(output, {
5293
+ ec2: import_smithy_client._json,
5294
+ ecrImage: (_) => de_EcrContainerImageMetadata(_, context),
5295
+ ecrRepository: import_smithy_client._json,
5296
+ lambdaFunction: import_smithy_client._json
5297
+ });
5298
+ }, "de_ResourceScanMetadata");
5272
5299
  var de_Usage = /* @__PURE__ */ __name((output, context) => {
5273
5300
  return (0, import_smithy_client.take)(output, {
5274
5301
  currency: import_smithy_client.expectString,
@@ -6702,6 +6729,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
6702
6729
  RelationshipStatus,
6703
6730
  DelegatedAdminStatus,
6704
6731
  ResourceScanType,
6732
+ EcrPullDateRescanDuration,
6705
6733
  EcrRescanDuration,
6706
6734
  EcrRescanDurationStatus,
6707
6735
  ExploitAvailable,
@@ -570,9 +570,19 @@ export const ResourceScanType = {
570
570
  LAMBDA: "LAMBDA",
571
571
  LAMBDA_CODE: "LAMBDA_CODE",
572
572
  };
573
+ export const EcrPullDateRescanDuration = {
574
+ DAYS_14: "DAYS_14",
575
+ DAYS_180: "DAYS_180",
576
+ DAYS_30: "DAYS_30",
577
+ DAYS_60: "DAYS_60",
578
+ DAYS_90: "DAYS_90",
579
+ };
573
580
  export const EcrRescanDuration = {
581
+ DAYS_14: "DAYS_14",
574
582
  DAYS_180: "DAYS_180",
575
583
  DAYS_30: "DAYS_30",
584
+ DAYS_60: "DAYS_60",
585
+ DAYS_90: "DAYS_90",
576
586
  LIFETIME: "LIFETIME",
577
587
  };
578
588
  export const EcrRescanDurationStatus = {
@@ -3560,6 +3560,7 @@ const se_CoverageFilterCriteria = (input, context) => {
3560
3560
  ec2InstanceTags: _json,
3561
3561
  ecrImageTags: _json,
3562
3562
  ecrRepositoryName: _json,
3563
+ imagePulledAt: (_) => se_CoverageDateFilterList(_, context),
3563
3564
  lambdaFunctionName: _json,
3564
3565
  lambdaFunctionRuntime: _json,
3565
3566
  lambdaFunctionTags: _json,
@@ -3823,7 +3824,7 @@ const de_CoveredResource = (output, context) => {
3823
3824
  accountId: __expectString,
3824
3825
  lastScannedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3825
3826
  resourceId: __expectString,
3826
- resourceMetadata: _json,
3827
+ resourceMetadata: (_) => de_ResourceScanMetadata(_, context),
3827
3828
  resourceType: __expectString,
3828
3829
  scanStatus: _json,
3829
3830
  scanType: __expectString,
@@ -3894,8 +3895,15 @@ const de_EcrConfigurationState = (output, context) => {
3894
3895
  rescanDurationState: (_) => de_EcrRescanDurationState(_, context),
3895
3896
  });
3896
3897
  };
3898
+ const de_EcrContainerImageMetadata = (output, context) => {
3899
+ return take(output, {
3900
+ imagePulledAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3901
+ tags: _json,
3902
+ });
3903
+ };
3897
3904
  const de_EcrRescanDurationState = (output, context) => {
3898
3905
  return take(output, {
3906
+ pullDateRescanDuration: __expectString,
3899
3907
  rescanDuration: __expectString,
3900
3908
  status: __expectString,
3901
3909
  updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -4179,6 +4187,14 @@ const de_ResourceList = (output, context) => {
4179
4187
  });
4180
4188
  return retVal;
4181
4189
  };
4190
+ const de_ResourceScanMetadata = (output, context) => {
4191
+ return take(output, {
4192
+ ec2: _json,
4193
+ ecrImage: (_) => de_EcrContainerImageMetadata(_, context),
4194
+ ecrRepository: _json,
4195
+ lambdaFunction: _json,
4196
+ });
4197
+ };
4182
4198
  const de_Usage = (output, context) => {
4183
4199
  return take(output, {
4184
4200
  currency: __expectString,
@@ -42,6 +42,7 @@ declare const GetConfigurationCommand_base: {
42
42
  * // rescanDuration: "STRING_VALUE",
43
43
  * // status: "STRING_VALUE",
44
44
  * // updatedAt: new Date("TIMESTAMP"),
45
+ * // pullDateRescanDuration: "STRING_VALUE",
45
46
  * // },
46
47
  * // },
47
48
  * // };
@@ -1,8 +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 { ListCoverageRequest } from "../models/models_0";
5
- import { ListCoverageResponse } from "../models/models_1";
4
+ import { ListCoverageRequest, ListCoverageResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -93,6 +92,12 @@ declare const ListCoverageCommand_base: {
93
92
  * endInclusive: new Date("TIMESTAMP"),
94
93
  * },
95
94
  * ],
95
+ * imagePulledAt: [
96
+ * {
97
+ * startInclusive: new Date("TIMESTAMP"),
98
+ * endInclusive: new Date("TIMESTAMP"),
99
+ * },
100
+ * ],
96
101
  * },
97
102
  * };
98
103
  * const command = new ListCoverageCommand(input);
@@ -118,6 +123,7 @@ declare const ListCoverageCommand_base: {
118
123
  * // tags: [ // TagList
119
124
  * // "STRING_VALUE",
120
125
  * // ],
126
+ * // imagePulledAt: new Date("TIMESTAMP"),
121
127
  * // },
122
128
  * // ec2: { // Ec2Metadata
123
129
  * // tags: { // TagMap
@@ -90,6 +90,12 @@ declare const ListCoverageStatisticsCommand_base: {
90
90
  * endInclusive: new Date("TIMESTAMP"),
91
91
  * },
92
92
  * ],
93
+ * imagePulledAt: [
94
+ * {
95
+ * startInclusive: new Date("TIMESTAMP"),
96
+ * endInclusive: new Date("TIMESTAMP"),
97
+ * },
98
+ * ],
93
99
  * },
94
100
  * groupBy: "STRING_VALUE",
95
101
  * nextToken: "STRING_VALUE",
@@ -36,6 +36,7 @@ declare const UpdateConfigurationCommand_base: {
36
36
  * const input = { // UpdateConfigurationRequest
37
37
  * ecrConfiguration: { // EcrConfiguration
38
38
  * rescanDuration: "STRING_VALUE", // required
39
+ * pullDateRescanDuration: "STRING_VALUE",
39
40
  * },
40
41
  * };
41
42
  * const command = new UpdateConfigurationCommand(input);
@@ -26,7 +26,7 @@ declare const UpdateEncryptionKeyCommand_base: {
26
26
  };
27
27
  /**
28
28
  * @public
29
- * <p>Updates an encryption key. A <code>ResourceNotFoundException</code> means that an AWS owned key is being used for encryption.</p>
29
+ * <p>Updates an encryption key. A <code>ResourceNotFoundException</code> means that an Amazon Web Services owned key is being used for encryption.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
32
32
  * ```javascript
@@ -45,7 +45,7 @@ export interface ResourceStatus {
45
45
  ecr: Status | undefined;
46
46
  /**
47
47
  * @public
48
- * <p>The status of Amazon Inspector scanning for AWS Lambda function.</p>
48
+ * <p>The status of Amazon Inspector scanning for Amazon Web Services Lambda function.</p>
49
49
  */
50
50
  lambda?: Status;
51
51
  /**
@@ -617,7 +617,7 @@ export declare const LambdaFunctionSortBy: {
617
617
  export type LambdaFunctionSortBy = (typeof LambdaFunctionSortBy)[keyof typeof LambdaFunctionSortBy];
618
618
  /**
619
619
  * @public
620
- * <p>The details that define a findings aggregation based on AWS Lambda functions.</p>
620
+ * <p>The details that define a findings aggregation based on Amazon Web Services Lambda functions.</p>
621
621
  */
622
622
  export interface LambdaFunctionAggregation {
623
623
  /**
@@ -627,12 +627,12 @@ export interface LambdaFunctionAggregation {
627
627
  resourceIds?: StringFilter[];
628
628
  /**
629
629
  * @public
630
- * <p>The AWS Lambda function names to include in the aggregation results.</p>
630
+ * <p>The Amazon Web Services Lambda function names to include in the aggregation results.</p>
631
631
  */
632
632
  functionNames?: StringFilter[];
633
633
  /**
634
634
  * @public
635
- * <p>Returns findings aggregated by AWS Lambda function runtime environments.</p>
635
+ * <p>Returns findings aggregated by Amazon Web Services Lambda function runtime environments.</p>
636
636
  */
637
637
  runtimes?: StringFilter[];
638
638
  /**
@@ -666,22 +666,22 @@ export declare const LambdaLayerSortBy: {
666
666
  export type LambdaLayerSortBy = (typeof LambdaLayerSortBy)[keyof typeof LambdaLayerSortBy];
667
667
  /**
668
668
  * @public
669
- * <p>The details that define a findings aggregation based on an AWS Lambda function's layers.</p>
669
+ * <p>The details that define a findings aggregation based on an Amazon Web Services Lambda function's layers.</p>
670
670
  */
671
671
  export interface LambdaLayerAggregation {
672
672
  /**
673
673
  * @public
674
- * <p>The names of the AWS Lambda functions associated with the layers.</p>
674
+ * <p>The names of the Amazon Web Services Lambda functions associated with the layers.</p>
675
675
  */
676
676
  functionNames?: StringFilter[];
677
677
  /**
678
678
  * @public
679
- * <p>The resource IDs for the AWS Lambda function layers.</p>
679
+ * <p>The resource IDs for the Amazon Web Services Lambda function layers.</p>
680
680
  */
681
681
  resourceIds?: StringFilter[];
682
682
  /**
683
683
  * @public
684
- * <p>The Amazon Resource Name (ARN) of the AWS Lambda function layer.
684
+ * <p>The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function layer.
685
685
  * </p>
686
686
  */
687
687
  layerArns?: StringFilter[];
@@ -993,7 +993,7 @@ export declare namespace AggregationRequest {
993
993
  }
994
994
  /**
995
995
  * @public
996
- * <p>Returns an object with findings aggregated by AWS Lambda layer.</p>
996
+ * <p>Returns an object with findings aggregated by Amazon Web Services Lambda layer.</p>
997
997
  */
998
998
  interface LambdaLayerAggregationMember {
999
999
  accountAggregation?: never;
@@ -1011,7 +1011,7 @@ export declare namespace AggregationRequest {
1011
1011
  }
1012
1012
  /**
1013
1013
  * @public
1014
- * <p>Returns an object with findings aggregated by AWS Lambda function.</p>
1014
+ * <p>Returns an object with findings aggregated by Amazon Web Services Lambda function.</p>
1015
1015
  */
1016
1016
  interface LambdaFunctionAggregationMember {
1017
1017
  accountAggregation?: never;
@@ -1217,7 +1217,7 @@ export interface ImageLayerAggregationResponse {
1217
1217
  }
1218
1218
  /**
1219
1219
  * @public
1220
- * <p>A response that contains the results of an AWS Lambda function finding aggregation.</p>
1220
+ * <p>A response that contains the results of an Amazon Web Services Lambda function finding aggregation.</p>
1221
1221
  */
1222
1222
  export interface LambdaFunctionAggregationResponse {
1223
1223
  /**
@@ -1227,7 +1227,7 @@ export interface LambdaFunctionAggregationResponse {
1227
1227
  resourceId: string | undefined;
1228
1228
  /**
1229
1229
  * @public
1230
- * <p>The AWS Lambda function names included in the aggregation results.</p>
1230
+ * <p>The Amazon Web Services Lambda function names included in the aggregation results.</p>
1231
1231
  */
1232
1232
  functionName?: string;
1233
1233
  /**
@@ -1242,7 +1242,7 @@ export interface LambdaFunctionAggregationResponse {
1242
1242
  lambdaTags?: Record<string, string>;
1243
1243
  /**
1244
1244
  * @public
1245
- * <p>The ID of the AWS account that owns the AWS Lambda function.
1245
+ * <p>The ID of the Amazon Web Services account that owns the Amazon Web Services Lambda function.
1246
1246
  * </p>
1247
1247
  */
1248
1248
  accountId?: string;
@@ -1253,33 +1253,33 @@ export interface LambdaFunctionAggregationResponse {
1253
1253
  severityCounts?: SeverityCounts;
1254
1254
  /**
1255
1255
  * @public
1256
- * <p>The date that the AWS Lambda function included in the aggregation results was last changed.</p>
1256
+ * <p>The date that the Amazon Web Services Lambda function included in the aggregation results was last changed.</p>
1257
1257
  */
1258
1258
  lastModifiedAt?: Date;
1259
1259
  }
1260
1260
  /**
1261
1261
  * @public
1262
- * <p>A response that contains the results of an AWS Lambda function layer finding aggregation.</p>
1262
+ * <p>A response that contains the results of an Amazon Web Services Lambda function layer finding aggregation.</p>
1263
1263
  */
1264
1264
  export interface LambdaLayerAggregationResponse {
1265
1265
  /**
1266
1266
  * @public
1267
- * <p>The names of the AWS Lambda functions associated with the layers.</p>
1267
+ * <p>The names of the Amazon Web Services Lambda functions associated with the layers.</p>
1268
1268
  */
1269
1269
  functionName: string | undefined;
1270
1270
  /**
1271
1271
  * @public
1272
- * <p>The Resource ID of the AWS Lambda function layer.</p>
1272
+ * <p>The Resource ID of the Amazon Web Services Lambda function layer.</p>
1273
1273
  */
1274
1274
  resourceId: string | undefined;
1275
1275
  /**
1276
1276
  * @public
1277
- * <p>The Amazon Resource Name (ARN) of the AWS Lambda function layer.</p>
1277
+ * <p>The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function layer.</p>
1278
1278
  */
1279
1279
  layerArn: string | undefined;
1280
1280
  /**
1281
1281
  * @public
1282
- * <p>The account ID of the AWS Lambda function layer.</p>
1282
+ * <p>The account ID of the Amazon Web Services Lambda function layer.</p>
1283
1283
  */
1284
1284
  accountId: string | undefined;
1285
1285
  /**
@@ -1541,7 +1541,7 @@ export declare namespace AggregationResponse {
1541
1541
  }
1542
1542
  /**
1543
1543
  * @public
1544
- * <p>An aggregation of findings by AWS Lambda layer.</p>
1544
+ * <p>An aggregation of findings by Amazon Web Services Lambda layer.</p>
1545
1545
  */
1546
1546
  interface LambdaLayerAggregationMember {
1547
1547
  accountAggregation?: never;
@@ -1559,7 +1559,7 @@ export declare namespace AggregationResponse {
1559
1559
  }
1560
1560
  /**
1561
1561
  * @public
1562
- * <p>An aggregation of findings by AWS Lambda function.</p>
1562
+ * <p>An aggregation of findings by Amazon Web Services Lambda function.</p>
1563
1563
  */
1564
1564
  interface LambdaFunctionAggregationMember {
1565
1565
  accountAggregation?: never;
@@ -1796,13 +1796,13 @@ export interface AutoEnable {
1796
1796
  ecr: boolean | undefined;
1797
1797
  /**
1798
1798
  * @public
1799
- * <p>Represents whether AWS Lambda standard scans are automatically enabled for new members of your Amazon Inspector organization.
1799
+ * <p>Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of your Amazon Inspector organization.
1800
1800
  * </p>
1801
1801
  */
1802
1802
  lambda?: boolean;
1803
1803
  /**
1804
1804
  * @public
1805
- * <p>Represents whether AWS Lambda code scans are automatically enabled for new members of your Amazon Inspector organization.
1805
+ * <p>Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector organization.
1806
1806
  *
1807
1807
  * </p>
1808
1808
  */
@@ -1949,7 +1949,7 @@ export declare const Runtime: {
1949
1949
  export type Runtime = (typeof Runtime)[keyof typeof Runtime];
1950
1950
  /**
1951
1951
  * @public
1952
- * <p>The VPC security groups and subnets that are attached to an AWS Lambda function. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html">VPC Settings</a>.</p>
1952
+ * <p>The VPC security groups and subnets that are attached to an Amazon Web Services Lambda function. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html">VPC Settings</a>.</p>
1953
1953
  */
1954
1954
  export interface LambdaVpcConfig {
1955
1955
  /**
@@ -1959,7 +1959,7 @@ export interface LambdaVpcConfig {
1959
1959
  subnetIds?: string[];
1960
1960
  /**
1961
1961
  * @public
1962
- * <p>The VPC security groups and subnets that are attached to an AWS Lambda function. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html">VPC Settings</a>.</p>
1962
+ * <p>The VPC security groups and subnets that are attached to an Amazon Web Services Lambda function. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html">VPC Settings</a>.</p>
1963
1963
  */
1964
1964
  securityGroupIds?: string[];
1965
1965
  /**
@@ -1970,43 +1970,43 @@ export interface LambdaVpcConfig {
1970
1970
  }
1971
1971
  /**
1972
1972
  * @public
1973
- * <p> A summary of information about the AWS Lambda function.</p>
1973
+ * <p> A summary of information about the Amazon Web Services Lambda function.</p>
1974
1974
  */
1975
1975
  export interface AwsLambdaFunctionDetails {
1976
1976
  /**
1977
1977
  * @public
1978
- * <p>The name of the AWS Lambda function.</p>
1978
+ * <p>The name of the Amazon Web Services Lambda function.</p>
1979
1979
  */
1980
1980
  functionName: string | undefined;
1981
1981
  /**
1982
1982
  * @public
1983
- * <p>The runtime environment for the AWS Lambda function.</p>
1983
+ * <p>The runtime environment for the Amazon Web Services Lambda function.</p>
1984
1984
  */
1985
1985
  runtime: Runtime | undefined;
1986
1986
  /**
1987
1987
  * @public
1988
- * <p>The SHA256 hash of the AWS Lambda function's deployment package.</p>
1988
+ * <p>The SHA256 hash of the Amazon Web Services Lambda function's deployment package.</p>
1989
1989
  */
1990
1990
  codeSha256: string | undefined;
1991
1991
  /**
1992
1992
  * @public
1993
- * <p>The version of the AWS Lambda function.</p>
1993
+ * <p>The version of the Amazon Web Services Lambda function.</p>
1994
1994
  */
1995
1995
  version: string | undefined;
1996
1996
  /**
1997
1997
  * @public
1998
- * <p>The AWS Lambda function's execution role.</p>
1998
+ * <p>The Amazon Web Services Lambda function's execution role.</p>
1999
1999
  */
2000
2000
  executionRoleArn: string | undefined;
2001
2001
  /**
2002
2002
  * @public
2003
- * <p>The AWS Lambda function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">
2003
+ * <p>The Amazon Web Services Lambda function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">
2004
2004
  * layers</a>. A Lambda function can have up to five layers.</p>
2005
2005
  */
2006
2006
  layers?: string[];
2007
2007
  /**
2008
2008
  * @public
2009
- * <p>The AWS Lambda function's networking configuration.</p>
2009
+ * <p>The Amazon Web Services Lambda function's networking configuration.</p>
2010
2010
  */
2011
2011
  vpcConfig?: LambdaVpcConfig;
2012
2012
  /**
@@ -2016,7 +2016,7 @@ export interface AwsLambdaFunctionDetails {
2016
2016
  packageType?: PackageType;
2017
2017
  /**
2018
2018
  * @public
2019
- * <p>The instruction set architecture that the AWS Lambda function supports. Architecture is a string array with one of the
2019
+ * <p>The instruction set architecture that the Amazon Web Services Lambda function supports. Architecture is a string array with one of the
2020
2020
  * valid values. The default architecture value is <code>x86_64</code>.</p>
2021
2021
  */
2022
2022
  architectures?: Architecture[];
@@ -3960,17 +3960,17 @@ export interface CoverageFilterCriteria {
3960
3960
  ec2InstanceTags?: CoverageMapFilter[];
3961
3961
  /**
3962
3962
  * @public
3963
- * <p>Returns coverage statistics for AWS Lambda functions filtered by function names.</p>
3963
+ * <p>Returns coverage statistics for Amazon Web Services Lambda functions filtered by function names.</p>
3964
3964
  */
3965
3965
  lambdaFunctionName?: CoverageStringFilter[];
3966
3966
  /**
3967
3967
  * @public
3968
- * <p>Returns coverage statistics for AWS Lambda functions filtered by tag.</p>
3968
+ * <p>Returns coverage statistics for Amazon Web Services Lambda functions filtered by tag.</p>
3969
3969
  */
3970
3970
  lambdaFunctionTags?: CoverageMapFilter[];
3971
3971
  /**
3972
3972
  * @public
3973
- * <p>Returns coverage statistics for AWS Lambda functions filtered by runtime.</p>
3973
+ * <p>Returns coverage statistics for Amazon Web Services Lambda functions filtered by runtime.</p>
3974
3974
  */
3975
3975
  lambdaFunctionRuntime?: CoverageStringFilter[];
3976
3976
  /**
@@ -3978,6 +3978,11 @@ export interface CoverageFilterCriteria {
3978
3978
  * <p>Filters Amazon Web Services resources based on whether Amazon Inspector has checked them for vulnerabilities within the specified time range.</p>
3979
3979
  */
3980
3980
  lastScannedAt?: CoverageDateFilter[];
3981
+ /**
3982
+ * @public
3983
+ * <p>The date an image was last pulled at.</p>
3984
+ */
3985
+ imagePulledAt?: CoverageDateFilter[];
3981
3986
  }
3982
3987
  /**
3983
3988
  * @public
@@ -4038,6 +4043,11 @@ export interface EcrContainerImageMetadata {
4038
4043
  * <p>Tags associated with the Amazon ECR image metadata.</p>
4039
4044
  */
4040
4045
  tags?: string[];
4046
+ /**
4047
+ * @public
4048
+ * <p>The date an image was last pulled at.</p>
4049
+ */
4050
+ imagePulledAt?: Date;
4041
4051
  }
4042
4052
  /**
4043
4053
  * @public
@@ -4070,17 +4080,17 @@ export interface EcrRepositoryMetadata {
4070
4080
  }
4071
4081
  /**
4072
4082
  * @public
4073
- * <p>The AWS Lambda function metadata.</p>
4083
+ * <p>The Amazon Web Services Lambda function metadata.</p>
4074
4084
  */
4075
4085
  export interface LambdaFunctionMetadata {
4076
4086
  /**
4077
4087
  * @public
4078
- * <p>The resource tags on an AWS Lambda function.</p>
4088
+ * <p>The resource tags on an Amazon Web Services Lambda function.</p>
4079
4089
  */
4080
4090
  functionTags?: Record<string, string>;
4081
4091
  /**
4082
4092
  * @public
4083
- * <p>The layers for an AWS Lambda function. A Lambda function can have up to five layers.</p>
4093
+ * <p>The layers for an Amazon Web Services Lambda function. A Lambda function can have up to five layers.</p>
4084
4094
  */
4085
4095
  layers?: string[];
4086
4096
  /**
@@ -4090,7 +4100,7 @@ export interface LambdaFunctionMetadata {
4090
4100
  functionName?: string;
4091
4101
  /**
4092
4102
  * @public
4093
- * <p>An AWS Lambda function's runtime.</p>
4103
+ * <p>An Amazon Web Services Lambda function's runtime.</p>
4094
4104
  */
4095
4105
  runtime?: Runtime;
4096
4106
  }
@@ -4116,7 +4126,7 @@ export interface ResourceScanMetadata {
4116
4126
  ec2?: Ec2Metadata;
4117
4127
  /**
4118
4128
  * @public
4119
- * <p>An object that contains metadata details for an AWS Lambda function.</p>
4129
+ * <p>An object that contains metadata details for an Amazon Web Services Lambda function.</p>
4120
4130
  */
4121
4131
  lambdaFunction?: LambdaFunctionMetadata;
4122
4132
  }
@@ -4612,34 +4622,34 @@ export interface FilterCriteria {
4612
4622
  fixAvailable?: StringFilter[];
4613
4623
  /**
4614
4624
  * @public
4615
- * <p>Filters the list of AWS Lambda functions by the name of the function.</p>
4625
+ * <p>Filters the list of Amazon Web Services Lambda functions by the name of the function.</p>
4616
4626
  */
4617
4627
  lambdaFunctionName?: StringFilter[];
4618
4628
  /**
4619
4629
  * @public
4620
- * <p>Filters the list of AWS Lambda functions by the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">
4630
+ * <p>Filters the list of Amazon Web Services Lambda functions by the function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">
4621
4631
  * layers</a>. A Lambda function can have up to five layers.</p>
4622
4632
  */
4623
4633
  lambdaFunctionLayers?: StringFilter[];
4624
4634
  /**
4625
4635
  * @public
4626
- * <p>Filters the list of AWS Lambda functions by the runtime environment for the Lambda function.</p>
4636
+ * <p>Filters the list of Amazon Web Services Lambda functions by the runtime environment for the Lambda function.</p>
4627
4637
  */
4628
4638
  lambdaFunctionRuntime?: StringFilter[];
4629
4639
  /**
4630
4640
  * @public
4631
- * <p>Filters the list of AWS Lambda functions by the date and time that a user last updated the configuration, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601 format</a>
4641
+ * <p>Filters the list of Amazon Web Services Lambda functions by the date and time that a user last updated the configuration, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601 format</a>
4632
4642
  * </p>
4633
4643
  */
4634
4644
  lambdaFunctionLastModifiedAt?: DateFilter[];
4635
4645
  /**
4636
4646
  * @public
4637
- * <p>Filters the list of AWS Lambda functions by execution role.</p>
4647
+ * <p>Filters the list of Amazon Web Services Lambda functions by execution role.</p>
4638
4648
  */
4639
4649
  lambdaFunctionExecutionRoleArn?: StringFilter[];
4640
4650
  /**
4641
4651
  * @public
4642
- * <p>Filters the list of AWS Lambda findings by the availability of exploits.</p>
4652
+ * <p>Filters the list of Amazon Web Services Lambda findings by the availability of exploits.</p>
4643
4653
  */
4644
4654
  exploitAvailable?: StringFilter[];
4645
4655
  /**
@@ -4890,7 +4900,7 @@ export interface ResourceFilterCriteria {
4890
4900
  ecrRepositoryName?: ResourceStringFilter[];
4891
4901
  /**
4892
4902
  * @public
4893
- * <p>The AWS Lambda function name used as resource filter criteria.</p>
4903
+ * <p>The Amazon Web Services Lambda function name used as resource filter criteria.</p>
4894
4904
  */
4895
4905
  lambdaFunctionName?: ResourceStringFilter[];
4896
4906
  /**
@@ -4905,7 +4915,7 @@ export interface ResourceFilterCriteria {
4905
4915
  ec2InstanceTags?: ResourceMapFilter[];
4906
4916
  /**
4907
4917
  * @public
4908
- * <p>The AWS Lambda function tags used as resource filter criteria.</p>
4918
+ * <p>The Amazon Web Services Lambda function tags used as resource filter criteria.</p>
4909
4919
  */
4910
4920
  lambdaFunctionTags?: ResourceMapFilter[];
4911
4921
  }
@@ -5272,13 +5282,31 @@ export interface DisassociateMemberResponse {
5272
5282
  */
5273
5283
  accountId: string | undefined;
5274
5284
  }
5285
+ /**
5286
+ * @public
5287
+ * @enum
5288
+ */
5289
+ export declare const EcrPullDateRescanDuration: {
5290
+ readonly DAYS_14: "DAYS_14";
5291
+ readonly DAYS_180: "DAYS_180";
5292
+ readonly DAYS_30: "DAYS_30";
5293
+ readonly DAYS_60: "DAYS_60";
5294
+ readonly DAYS_90: "DAYS_90";
5295
+ };
5296
+ /**
5297
+ * @public
5298
+ */
5299
+ export type EcrPullDateRescanDuration = (typeof EcrPullDateRescanDuration)[keyof typeof EcrPullDateRescanDuration];
5275
5300
  /**
5276
5301
  * @public
5277
5302
  * @enum
5278
5303
  */
5279
5304
  export declare const EcrRescanDuration: {
5305
+ readonly DAYS_14: "DAYS_14";
5280
5306
  readonly DAYS_180: "DAYS_180";
5281
5307
  readonly DAYS_30: "DAYS_30";
5308
+ readonly DAYS_60: "DAYS_60";
5309
+ readonly DAYS_90: "DAYS_90";
5282
5310
  readonly LIFETIME: "LIFETIME";
5283
5311
  };
5284
5312
  /**
@@ -5292,9 +5320,14 @@ export type EcrRescanDuration = (typeof EcrRescanDuration)[keyof typeof EcrResca
5292
5320
  export interface EcrConfiguration {
5293
5321
  /**
5294
5322
  * @public
5295
- * <p>The ECR automated re-scan duration defines how long an ECR image will be actively scanned by Amazon Inspector. When the number of days since an image was last pushed exceeds the automated re-scan duration the monitoring state of that image becomes <code>inactive</code> and all associated findings are scheduled for closure.</p>
5323
+ * <p>The rescan duration configured for image push date.</p>
5296
5324
  */
5297
5325
  rescanDuration: EcrRescanDuration | undefined;
5326
+ /**
5327
+ * @public
5328
+ * <p>The rescan duration configured for image pull date.</p>
5329
+ */
5330
+ pullDateRescanDuration?: EcrPullDateRescanDuration;
5298
5331
  }
5299
5332
  /**
5300
5333
  * @public
@@ -5311,12 +5344,14 @@ export declare const EcrRescanDurationStatus: {
5311
5344
  export type EcrRescanDurationStatus = (typeof EcrRescanDurationStatus)[keyof typeof EcrRescanDurationStatus];
5312
5345
  /**
5313
5346
  * @public
5314
- * <p>Details about the state of any changes to the ECR automated re-scan duration setting.</p>
5347
+ * <p>Details about the state of your ECR re-scan duration settings. The ECR re-scan duration defines how long an ECR image will be actively scanned by Amazon Inspector. When the number of days since an image was last pushed exceeds the duration configured for image pull date, and the duration configured for image pull date, the monitoring state of that image becomes <code>inactive</code> and all associated findings are scheduled for closure.</p>
5315
5348
  */
5316
5349
  export interface EcrRescanDurationState {
5317
5350
  /**
5318
5351
  * @public
5319
- * <p>The ECR automated re-scan duration defines how long an ECR image will be actively scanned by Amazon Inspector. When the number of days since an image was last pushed exceeds the automated re-scan duration the monitoring state of that image becomes <code>inactive</code> and all associated findings are scheduled for closure.</p>
5352
+ * <p>The rescan duration configured for image push date.
5353
+ *
5354
+ * </p>
5320
5355
  */
5321
5356
  rescanDuration?: EcrRescanDuration;
5322
5357
  /**
@@ -5329,6 +5364,11 @@ export interface EcrRescanDurationState {
5329
5364
  * <p>A timestamp representing when the last time the ECR scan duration setting was changed.</p>
5330
5365
  */
5331
5366
  updatedAt?: Date;
5367
+ /**
5368
+ * @public
5369
+ * <p>The rescan duration configured for image pull date.</p>
5370
+ */
5371
+ pullDateRescanDuration?: EcrPullDateRescanDuration;
5332
5372
  }
5333
5373
  /**
5334
5374
  * @public
@@ -5337,7 +5377,7 @@ export interface EcrRescanDurationState {
5337
5377
  export interface EcrConfigurationState {
5338
5378
  /**
5339
5379
  * @public
5340
- * <p>An object that contains details about the state of the ECR automated re-scan setting.</p>
5380
+ * <p>An object that contains details about the state of the ECR re-scan settings.</p>
5341
5381
  */
5342
5382
  rescanDurationState?: EcrRescanDurationState;
5343
5383
  }
@@ -5702,7 +5742,7 @@ export interface VulnerablePackage {
5702
5742
  remediation?: string;
5703
5743
  /**
5704
5744
  * @public
5705
- * <p>The Amazon Resource Number (ARN) of the AWS Lambda function affected by a finding.</p>
5745
+ * <p>The Amazon Resource Number (ARN) of the Amazon Web Services Lambda function affected by a finding.</p>
5706
5746
  */
5707
5747
  sourceLambdaLayerArn?: string;
5708
5748
  }
@@ -5806,7 +5846,7 @@ export interface ResourceDetails {
5806
5846
  awsEcrContainerImage?: AwsEcrContainerImageDetails;
5807
5847
  /**
5808
5848
  * @public
5809
- * <p>A summary of the information about an AWS Lambda function affected by a finding.</p>
5849
+ * <p>A summary of the information about an Amazon Web Services Lambda function affected by a finding.</p>
5810
5850
  */
5811
5851
  awsLambdaFunction?: AwsLambdaFunctionDetails;
5812
5852
  }
@@ -6726,24 +6766,3 @@ export interface ListCisScansResponse {
6726
6766
  */
6727
6767
  nextToken?: string;
6728
6768
  }
6729
- /**
6730
- * @public
6731
- */
6732
- export interface ListCoverageRequest {
6733
- /**
6734
- * @public
6735
- * <p>The maximum number of results the response can return. If your request would return more than the maximum the response will return a <code>nextToken</code> value, use this value when you call the action again to get the remaining results.</p>
6736
- */
6737
- maxResults?: number;
6738
- /**
6739
- * @public
6740
- * <p>A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the <code>maxResults</code> maximum value it will also return a <code>nextToken</code> value. For subsequent calls, use the <code>nextToken</code> value returned from the previous request to continue listing results after the first page.</p>
6741
- */
6742
- nextToken?: string;
6743
- /**
6744
- * @public
6745
- * <p>An object that contains details on the filters to apply to the coverage data for your
6746
- * environment.</p>
6747
- */
6748
- filterCriteria?: CoverageFilterCriteria;
6749
- }
@@ -1,4 +1,25 @@
1
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";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ListCoverageRequest {
6
+ /**
7
+ * @public
8
+ * <p>The maximum number of results the response can return. If your request would return more than the maximum the response will return a <code>nextToken</code> value, use this value when you call the action again to get the remaining results.</p>
9
+ */
10
+ maxResults?: number;
11
+ /**
12
+ * @public
13
+ * <p>A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the <code>maxResults</code> maximum value it will also return a <code>nextToken</code> value. For subsequent calls, use the <code>nextToken</code> value returned from the previous request to continue listing results after the first page.</p>
14
+ */
15
+ nextToken?: string;
16
+ /**
17
+ * @public
18
+ * <p>An object that contains details on the filters to apply to the coverage data for your
19
+ * environment.</p>
20
+ */
21
+ filterCriteria?: CoverageFilterCriteria;
22
+ }
2
23
  /**
3
24
  * @public
4
25
  */
@@ -5,8 +5,7 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../Inspector2Client";
8
- import { ListCoverageRequest } from "../models/models_0";
9
- import { ListCoverageResponse } from "../models/models_1";
8
+ import { ListCoverageRequest, ListCoverageResponse } from "../models/models_1";
10
9
  export { __MetadataBearer, $Command };
11
10
  export interface ListCoverageCommandInput extends ListCoverageRequest {}
12
11
  export interface ListCoverageCommandOutput
@@ -1484,6 +1484,7 @@ export interface CoverageFilterCriteria {
1484
1484
  lambdaFunctionTags?: CoverageMapFilter[];
1485
1485
  lambdaFunctionRuntime?: CoverageStringFilter[];
1486
1486
  lastScannedAt?: CoverageDateFilter[];
1487
+ imagePulledAt?: CoverageDateFilter[];
1487
1488
  }
1488
1489
  export declare const CoverageResourceType: {
1489
1490
  readonly AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE";
@@ -1507,6 +1508,7 @@ export interface Ec2Metadata {
1507
1508
  }
1508
1509
  export interface EcrContainerImageMetadata {
1509
1510
  tags?: string[];
1511
+ imagePulledAt?: Date;
1510
1512
  }
1511
1513
  export declare const EcrScanFrequency: {
1512
1514
  readonly CONTINUOUS_SCAN: "CONTINUOUS_SCAN";
@@ -1854,15 +1856,28 @@ export interface DisassociateMemberRequest {
1854
1856
  export interface DisassociateMemberResponse {
1855
1857
  accountId: string | undefined;
1856
1858
  }
1859
+ export declare const EcrPullDateRescanDuration: {
1860
+ readonly DAYS_14: "DAYS_14";
1861
+ readonly DAYS_180: "DAYS_180";
1862
+ readonly DAYS_30: "DAYS_30";
1863
+ readonly DAYS_60: "DAYS_60";
1864
+ readonly DAYS_90: "DAYS_90";
1865
+ };
1866
+ export type EcrPullDateRescanDuration =
1867
+ (typeof EcrPullDateRescanDuration)[keyof typeof EcrPullDateRescanDuration];
1857
1868
  export declare const EcrRescanDuration: {
1869
+ readonly DAYS_14: "DAYS_14";
1858
1870
  readonly DAYS_180: "DAYS_180";
1859
1871
  readonly DAYS_30: "DAYS_30";
1872
+ readonly DAYS_60: "DAYS_60";
1873
+ readonly DAYS_90: "DAYS_90";
1860
1874
  readonly LIFETIME: "LIFETIME";
1861
1875
  };
1862
1876
  export type EcrRescanDuration =
1863
1877
  (typeof EcrRescanDuration)[keyof typeof EcrRescanDuration];
1864
1878
  export interface EcrConfiguration {
1865
1879
  rescanDuration: EcrRescanDuration | undefined;
1880
+ pullDateRescanDuration?: EcrPullDateRescanDuration;
1866
1881
  }
1867
1882
  export declare const EcrRescanDurationStatus: {
1868
1883
  readonly FAILED: "FAILED";
@@ -1875,6 +1890,7 @@ export interface EcrRescanDurationState {
1875
1890
  rescanDuration?: EcrRescanDuration;
1876
1891
  status?: EcrRescanDurationStatus;
1877
1892
  updatedAt?: Date;
1893
+ pullDateRescanDuration?: EcrPullDateRescanDuration;
1878
1894
  }
1879
1895
  export interface EcrConfigurationState {
1880
1896
  rescanDurationState?: EcrRescanDurationState;
@@ -2271,8 +2287,3 @@ export interface ListCisScansResponse {
2271
2287
  scans?: CisScan[];
2272
2288
  nextToken?: string;
2273
2289
  }
2274
- export interface ListCoverageRequest {
2275
- maxResults?: number;
2276
- nextToken?: string;
2277
- filterCriteria?: CoverageFilterCriteria;
2278
- }
@@ -31,6 +31,11 @@ import {
31
31
  SortOrder,
32
32
  StringFilter,
33
33
  } from "./models_0";
34
+ export interface ListCoverageRequest {
35
+ maxResults?: number;
36
+ nextToken?: string;
37
+ filterCriteria?: CoverageFilterCriteria;
38
+ }
34
39
  export interface ListCoverageResponse {
35
40
  nextToken?: string;
36
41
  coveredResources?: CoveredResource[];
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.498.0",
4
+ "version": "3.501.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",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.496.0",
23
+ "@aws-sdk/client-sts": "3.501.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.496.0",
25
+ "@aws-sdk/credential-provider-node": "3.501.0",
26
26
  "@aws-sdk/middleware-host-header": "3.496.0",
27
27
  "@aws-sdk/middleware-logger": "3.496.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.496.0",