@aws-sdk/client-securityhub 3.858.0 → 3.859.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
@@ -5118,6 +5118,7 @@ var se_ResourceDetails = /* @__PURE__ */ __name((input, context) => {
5118
5118
  AwsWafv2RuleGroup: import_smithy_client._json,
5119
5119
  AwsWafv2WebAcl: import_smithy_client._json,
5120
5120
  AwsXrayEncryptionConfig: import_smithy_client._json,
5121
+ CodeRepository: import_smithy_client._json,
5121
5122
  Container: import_smithy_client._json,
5122
5123
  Other: import_smithy_client._json
5123
5124
  });
@@ -6367,6 +6368,7 @@ var de_ResourceDetails = /* @__PURE__ */ __name((output, context) => {
6367
6368
  AwsWafv2RuleGroup: import_smithy_client._json,
6368
6369
  AwsWafv2WebAcl: import_smithy_client._json,
6369
6370
  AwsXrayEncryptionConfig: import_smithy_client._json,
6371
+ CodeRepository: import_smithy_client._json,
6370
6372
  Container: import_smithy_client._json,
6371
6373
  Other: import_smithy_client._json
6372
6374
  });
@@ -3888,6 +3888,7 @@ const se_ResourceDetails = (input, context) => {
3888
3888
  AwsWafv2RuleGroup: _json,
3889
3889
  AwsWafv2WebAcl: _json,
3890
3890
  AwsXrayEncryptionConfig: _json,
3891
+ CodeRepository: _json,
3891
3892
  Container: _json,
3892
3893
  Other: _json,
3893
3894
  });
@@ -5195,6 +5196,7 @@ const de_ResourceDetails = (output, context) => {
5195
5196
  AwsWafv2RuleGroup: _json,
5196
5197
  AwsWafv2WebAcl: _json,
5197
5198
  AwsXrayEncryptionConfig: _json,
5199
+ CodeRepository: _json,
5198
5200
  Container: _json,
5199
5201
  Other: _json,
5200
5202
  });
@@ -4041,6 +4041,11 @@ declare const BatchImportFindingsCommand_base: {
4041
4041
  * BannerText: "STRING_VALUE",
4042
4042
  * },
4043
4043
  * },
4044
+ * CodeRepository: { // CodeRepositoryDetails
4045
+ * ProviderType: "STRING_VALUE",
4046
+ * ProjectName: "STRING_VALUE",
4047
+ * CodeSecurityIntegrationArn: "STRING_VALUE",
4048
+ * },
4044
4049
  * },
4045
4050
  * ApplicationName: "STRING_VALUE",
4046
4051
  * ApplicationArn: "STRING_VALUE",
@@ -28,7 +28,7 @@ declare const GetFindingHistoryCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>
31
- * Returns the history of a Security Hub finding for the past 90 days. The history includes changes made to any fields in
31
+ * Returns the history of a Security Hub finding. The history includes changes made to any fields in
32
32
  * the Amazon Web Services Security Finding Format (ASFF) except top-level timestamp fields, such as the <code>CreatedAt</code> and
33
33
  * <code>UpdatedAt</code> fields.
34
34
  * </p>
@@ -1,7 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { GetFindingsRequest } from "../models/models_2";
4
- import { GetFindingsResponse } from "../models/models_3";
3
+ import { GetFindingsRequest, GetFindingsResponse } from "../models/models_3";
5
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
6
5
  /**
7
6
  * @public
@@ -4249,6 +4248,11 @@ declare const GetFindingsCommand_base: {
4249
4248
  * // BannerText: "STRING_VALUE",
4250
4249
  * // },
4251
4250
  * // },
4251
+ * // CodeRepository: { // CodeRepositoryDetails
4252
+ * // ProviderType: "STRING_VALUE",
4253
+ * // ProjectName: "STRING_VALUE",
4254
+ * // CodeSecurityIntegrationArn: "STRING_VALUE",
4255
+ * // },
4252
4256
  * // },
4253
4257
  * // ApplicationName: "STRING_VALUE",
4254
4258
  * // ApplicationArn: "STRING_VALUE",
@@ -1629,6 +1629,36 @@ export interface AwsXrayEncryptionConfigDetails {
1629
1629
  */
1630
1630
  Type?: string | undefined;
1631
1631
  }
1632
+ /**
1633
+ * <p>
1634
+ * Details about an external code repository with which you can connect your Amazon Web Services resources.
1635
+ * The connection is established through Amazon Inspector.
1636
+ * </p>
1637
+ * @public
1638
+ */
1639
+ export interface CodeRepositoryDetails {
1640
+ /**
1641
+ * <p>
1642
+ * The type of repository provider.
1643
+ * </p>
1644
+ * @public
1645
+ */
1646
+ ProviderType?: string | undefined;
1647
+ /**
1648
+ * <p>
1649
+ * The name of the project in the code repository.
1650
+ * </p>
1651
+ * @public
1652
+ */
1653
+ ProjectName?: string | undefined;
1654
+ /**
1655
+ * <p>
1656
+ * The Amazon Resource Name (ARN) of the code security integration associated with the repository.
1657
+ * </p>
1658
+ * @public
1659
+ */
1660
+ CodeSecurityIntegrationArn?: string | undefined;
1661
+ }
1632
1662
  /**
1633
1663
  * <p>Describes the mounting of a volume in a container.
1634
1664
  * </p>
@@ -2274,6 +2304,14 @@ export interface ResourceDetails {
2274
2304
  * @public
2275
2305
  */
2276
2306
  AwsEc2ClientVpnEndpoint?: AwsEc2ClientVpnEndpointDetails | undefined;
2307
+ /**
2308
+ * <p>
2309
+ * Details about an external code repository with which you can connect your Amazon Web Services resources.
2310
+ * The connection is established through Amazon Inspector.
2311
+ * </p>
2312
+ * @public
2313
+ */
2314
+ CodeRepository?: CodeRepositoryDetails | undefined;
2277
2315
  }
2278
2316
  /**
2279
2317
  * @public
@@ -9036,9 +9074,8 @@ export interface GetFindingHistoryRequest {
9036
9074
  * which the API is called. If you provide a value for <code>EndTime</code> but not for
9037
9075
  * <code>StartTime</code>, Security Hub returns finding history from the <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_AwsSecurityFindingFilters.html#securityhub-Type-AwsSecurityFindingFilters-CreatedAt">CreatedAt</a> timestamp of the finding to the <code>EndTime</code>. If you
9038
9076
  * provide neither <code>StartTime</code> nor <code>EndTime</code>, Security Hub
9039
- * returns finding history from the CreatedAt timestamp of the finding to the time at which
9040
- * the API is called. In all of these scenarios, the response is limited to 100 results, and the maximum time period is
9041
- * limited to 90 days.</p>
9077
+ * returns finding history from the <code>CreatedAt</code> timestamp of the finding to the time at which
9078
+ * the API is called. In all of these scenarios, the response is limited to 100 results.</p>
9042
9079
  * <p>For more information about the validation and formatting of timestamp fields in Security Hub, see <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/Welcome.html#timestamps">Timestamps</a>.</p>
9043
9080
  * @public
9044
9081
  */
@@ -9052,9 +9089,8 @@ export interface GetFindingHistoryRequest {
9052
9089
  * which the API is called. If you provide a value for <code>EndTime</code> but not for
9053
9090
  * <code>StartTime</code>, Security Hub returns finding history from the <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_AwsSecurityFindingFilters.html#securityhub-Type-AwsSecurityFindingFilters-CreatedAt">CreatedAt</a> timestamp of the finding to the <code>EndTime</code>. If you
9054
9091
  * provide neither <code>StartTime</code> nor <code>EndTime</code>, Security Hub
9055
- * returns finding history from the CreatedAt timestamp of the finding to the time at which
9056
- * the API is called. In all of these scenarios, the response is limited to 100 results, and the maximum time period is
9057
- * limited to 90 days.</p>
9092
+ * returns finding history from the <code>CreatedAt</code> timestamp of the finding to the time at which
9093
+ * the API is called. In all of these scenarios, the response is limited to 100 results.</p>
9058
9094
  * <p>For more information about the validation and formatting of timestamp fields in Security Hub, see <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/Welcome.html#timestamps">Timestamps</a>.</p>
9059
9095
  * @public
9060
9096
  */
@@ -9124,40 +9160,6 @@ export interface SortCriterion {
9124
9160
  */
9125
9161
  SortOrder?: SortOrder | undefined;
9126
9162
  }
9127
- /**
9128
- * @public
9129
- */
9130
- export interface GetFindingsRequest {
9131
- /**
9132
- * <p>The finding attributes used to define a condition to filter the returned
9133
- * findings.</p>
9134
- * <p>You can filter by up to 10 finding attributes. For each attribute, you can provide up to
9135
- * 20 filter values.</p>
9136
- * <p>Note that in the available filter fields, <code>WorkflowState</code> is deprecated. To
9137
- * search for a finding based on its workflow status, use <code>WorkflowStatus</code>.</p>
9138
- * @public
9139
- */
9140
- Filters?: AwsSecurityFindingFilters | undefined;
9141
- /**
9142
- * <p>The finding attributes used to sort the list of returned findings.</p>
9143
- * @public
9144
- */
9145
- SortCriteria?: SortCriterion[] | undefined;
9146
- /**
9147
- * <p>The token that is required for pagination. On your first call to the
9148
- * <code>GetFindings</code> operation, set the value of this parameter to
9149
- * <code>NULL</code>.</p>
9150
- * <p>For subsequent calls to the operation, to continue listing data, set the value of this
9151
- * parameter to the value returned from the previous response.</p>
9152
- * @public
9153
- */
9154
- NextToken?: string | undefined;
9155
- /**
9156
- * <p>The maximum number of findings to return.</p>
9157
- * @public
9158
- */
9159
- MaxResults?: number | undefined;
9160
- }
9161
9163
  /**
9162
9164
  * @internal
9163
9165
  */
@@ -4,6 +4,40 @@ import { AdminAccount, AggregatorV2, AllowedOperators, AssociationFilters, Assoc
4
4
  import { RecordState } from "./models_1";
5
5
  import { AwsSecurityFinding, AwsSecurityFindingFilters, ConfigurationOptions, ConfigurationPolicyAssociationSummary, ConfigurationPolicySummary, ConnectorProviderName, ConnectorStatus, ConnectorSummary, ControlFindingGenerator, ControlStatus, Criteria, FindingAggregator, Invitation, OcsfFindingFilters, OrganizationConfiguration, ParameterConfiguration, Policy, Result, SecurityControlProperty, SecurityHubFeature, SeverityRating, SortCriterion, SortOrder, Target, TargetType } from "./models_2";
6
6
  import { SecurityHubServiceException as __BaseException } from "./SecurityHubServiceException";
7
+ /**
8
+ * @public
9
+ */
10
+ export interface GetFindingsRequest {
11
+ /**
12
+ * <p>The finding attributes used to define a condition to filter the returned
13
+ * findings.</p>
14
+ * <p>You can filter by up to 10 finding attributes. For each attribute, you can provide up to
15
+ * 20 filter values.</p>
16
+ * <p>Note that in the available filter fields, <code>WorkflowState</code> is deprecated. To
17
+ * search for a finding based on its workflow status, use <code>WorkflowStatus</code>.</p>
18
+ * @public
19
+ */
20
+ Filters?: AwsSecurityFindingFilters | undefined;
21
+ /**
22
+ * <p>The finding attributes used to sort the list of returned findings.</p>
23
+ * @public
24
+ */
25
+ SortCriteria?: SortCriterion[] | undefined;
26
+ /**
27
+ * <p>The token that is required for pagination. On your first call to the
28
+ * <code>GetFindings</code> operation, set the value of this parameter to
29
+ * <code>NULL</code>.</p>
30
+ * <p>For subsequent calls to the operation, to continue listing data, set the value of this
31
+ * parameter to the value returned from the previous response.</p>
32
+ * @public
33
+ */
34
+ NextToken?: string | undefined;
35
+ /**
36
+ * <p>The maximum number of findings to return.</p>
37
+ * @public
38
+ */
39
+ MaxResults?: number | undefined;
40
+ }
7
41
  /**
8
42
  * @public
9
43
  */
@@ -1,7 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { GetFindingsRequest } from "../models/models_2";
4
- import { GetFindingsResponse } from "../models/models_3";
3
+ import { GetFindingsRequest, GetFindingsResponse } from "../models/models_3";
5
4
  import {
6
5
  SecurityHubClientResolvedConfig,
7
6
  ServiceInputTypes,
@@ -414,6 +414,11 @@ export interface AwsXrayEncryptionConfigDetails {
414
414
  Status?: string | undefined;
415
415
  Type?: string | undefined;
416
416
  }
417
+ export interface CodeRepositoryDetails {
418
+ ProviderType?: string | undefined;
419
+ ProjectName?: string | undefined;
420
+ CodeSecurityIntegrationArn?: string | undefined;
421
+ }
417
422
  export interface VolumeMount {
418
423
  Name?: string | undefined;
419
424
  MountPath?: string | undefined;
@@ -541,6 +546,7 @@ export interface ResourceDetails {
541
546
  AwsMskCluster?: AwsMskClusterDetails | undefined;
542
547
  AwsS3AccessPoint?: AwsS3AccessPointDetails | undefined;
543
548
  AwsEc2ClientVpnEndpoint?: AwsEc2ClientVpnEndpointDetails | undefined;
549
+ CodeRepository?: CodeRepositoryDetails | undefined;
544
550
  }
545
551
  export declare const Partition: {
546
552
  readonly AWS: "aws";
@@ -2300,12 +2306,6 @@ export interface SortCriterion {
2300
2306
  Field?: string | undefined;
2301
2307
  SortOrder?: SortOrder | undefined;
2302
2308
  }
2303
- export interface GetFindingsRequest {
2304
- Filters?: AwsSecurityFindingFilters | undefined;
2305
- SortCriteria?: SortCriterion[] | undefined;
2306
- NextToken?: string | undefined;
2307
- MaxResults?: number | undefined;
2308
- }
2309
2309
  export declare const ServiceNowProviderConfigurationFilterSensitiveLog: (
2310
2310
  obj: ServiceNowProviderConfiguration
2311
2311
  ) => any;
@@ -48,6 +48,12 @@ import {
48
48
  TargetType,
49
49
  } from "./models_2";
50
50
  import { SecurityHubServiceException as __BaseException } from "./SecurityHubServiceException";
51
+ export interface GetFindingsRequest {
52
+ Filters?: AwsSecurityFindingFilters | undefined;
53
+ SortCriteria?: SortCriterion[] | undefined;
54
+ NextToken?: string | undefined;
55
+ MaxResults?: number | undefined;
56
+ }
51
57
  export interface GetFindingsResponse {
52
58
  Findings: AwsSecurityFinding[] | undefined;
53
59
  NextToken?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-securityhub",
3
3
  "description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
4
- "version": "3.858.0",
4
+ "version": "3.859.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-securityhub",
@@ -21,7 +21,7 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.858.0",
24
- "@aws-sdk/credential-provider-node": "3.858.0",
24
+ "@aws-sdk/credential-provider-node": "3.859.0",
25
25
  "@aws-sdk/middleware-host-header": "3.840.0",
26
26
  "@aws-sdk/middleware-logger": "3.840.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.840.0",