Skip to content

Commit fb750f9

Browse files
author
awstools
committed
feat(client-securityhub): Release new resource detail type CodeRepository
1 parent 32d73d7 commit fb750f9

File tree

7 files changed

+138
-50
lines changed

7 files changed

+138
-50
lines changed

clients/client-securityhub/src/commands/BatchImportFindingsCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4042,6 +4042,11 @@ export interface BatchImportFindingsCommandOutput extends BatchImportFindingsRes
40424042
* BannerText: "STRING_VALUE",
40434043
* },
40444044
* },
4045+
* CodeRepository: { // CodeRepositoryDetails
4046+
* ProviderType: "STRING_VALUE",
4047+
* ProjectName: "STRING_VALUE",
4048+
* CodeSecurityIntegrationArn: "STRING_VALUE",
4049+
* },
40454050
* },
40464051
* ApplicationName: "STRING_VALUE",
40474052
* ApplicationArn: "STRING_VALUE",

clients/client-securityhub/src/commands/GetFindingHistoryCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface GetFindingHistoryCommandOutput extends GetFindingHistoryRespons
2929

3030
/**
3131
* <p>
32-
* Returns the history of a Security Hub finding for the past 90 days. The history includes changes made to any fields in
32+
* Returns the history of a Security Hub finding. The history includes changes made to any fields in
3333
* the Amazon Web Services Security Finding Format (ASFF) except top-level timestamp fields, such as the <code>CreatedAt</code> and
3434
* <code>UpdatedAt</code> fields.
3535
* </p>

clients/client-securityhub/src/commands/GetFindingsCommand.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { GetFindingsRequest } from "../models/models_2";
9-
import { GetFindingsResponse } from "../models/models_3";
8+
import { GetFindingsRequest, GetFindingsResponse } from "../models/models_3";
109
import { de_GetFindingsCommand, se_GetFindingsCommand } from "../protocols/Aws_restJson1";
1110
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
1211

@@ -4250,6 +4249,11 @@ export interface GetFindingsCommandOutput extends GetFindingsResponse, __Metadat
42504249
* // BannerText: "STRING_VALUE",
42514250
* // },
42524251
* // },
4252+
* // CodeRepository: { // CodeRepositoryDetails
4253+
* // ProviderType: "STRING_VALUE",
4254+
* // ProjectName: "STRING_VALUE",
4255+
* // CodeSecurityIntegrationArn: "STRING_VALUE",
4256+
* // },
42534257
* // },
42544258
* // ApplicationName: "STRING_VALUE",
42554259
* // ApplicationArn: "STRING_VALUE",

clients/client-securityhub/src/models/models_2.ts

Lines changed: 46 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,6 +1934,39 @@ export interface AwsXrayEncryptionConfigDetails {
19341934
Type?: string | undefined;
19351935
}
19361936

1937+
/**
1938+
* <p>
1939+
* Details about an external code repository with which you can connect your Amazon Web Services resources.
1940+
* The connection is established through Amazon Inspector.
1941+
* </p>
1942+
* @public
1943+
*/
1944+
export interface CodeRepositoryDetails {
1945+
/**
1946+
* <p>
1947+
* The type of repository provider.
1948+
* </p>
1949+
* @public
1950+
*/
1951+
ProviderType?: string | undefined;
1952+
1953+
/**
1954+
* <p>
1955+
* The name of the project in the code repository.
1956+
* </p>
1957+
* @public
1958+
*/
1959+
ProjectName?: string | undefined;
1960+
1961+
/**
1962+
* <p>
1963+
* The Amazon Resource Name (ARN) of the code security integration associated with the repository.
1964+
* </p>
1965+
* @public
1966+
*/
1967+
CodeSecurityIntegrationArn?: string | undefined;
1968+
}
1969+
19371970
/**
19381971
* <p>Describes the mounting of a volume in a container.
19391972
* </p>
@@ -2686,6 +2719,15 @@ export interface ResourceDetails {
26862719
* @public
26872720
*/
26882721
AwsEc2ClientVpnEndpoint?: AwsEc2ClientVpnEndpointDetails | undefined;
2722+
2723+
/**
2724+
* <p>
2725+
* Details about an external code repository with which you can connect your Amazon Web Services resources.
2726+
* The connection is established through Amazon Inspector.
2727+
* </p>
2728+
* @public
2729+
*/
2730+
CodeRepository?: CodeRepositoryDetails | undefined;
26892731
}
26902732

26912733
/**
@@ -10363,9 +10405,8 @@ export interface GetFindingHistoryRequest {
1036310405
* which the API is called. If you provide a value for <code>EndTime</code> but not for
1036410406
* <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
1036510407
* provide neither <code>StartTime</code> nor <code>EndTime</code>, Security Hub
10366-
* returns finding history from the CreatedAt timestamp of the finding to the time at which
10367-
* the API is called. In all of these scenarios, the response is limited to 100 results, and the maximum time period is
10368-
* limited to 90 days.</p>
10408+
* returns finding history from the <code>CreatedAt</code> timestamp of the finding to the time at which
10409+
* the API is called. In all of these scenarios, the response is limited to 100 results.</p>
1036910410
* <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>
1037010411
* @public
1037110412
*/
@@ -10380,9 +10421,8 @@ export interface GetFindingHistoryRequest {
1038010421
* which the API is called. If you provide a value for <code>EndTime</code> but not for
1038110422
* <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
1038210423
* provide neither <code>StartTime</code> nor <code>EndTime</code>, Security Hub
10383-
* returns finding history from the CreatedAt timestamp of the finding to the time at which
10384-
* the API is called. In all of these scenarios, the response is limited to 100 results, and the maximum time period is
10385-
* limited to 90 days.</p>
10424+
* returns finding history from the <code>CreatedAt</code> timestamp of the finding to the time at which
10425+
* the API is called. In all of these scenarios, the response is limited to 100 results.</p>
1038610426
* <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>
1038710427
* @public
1038810428
*/
@@ -10461,44 +10501,6 @@ export interface SortCriterion {
1046110501
SortOrder?: SortOrder | undefined;
1046210502
}
1046310503

10464-
/**
10465-
* @public
10466-
*/
10467-
export interface GetFindingsRequest {
10468-
/**
10469-
* <p>The finding attributes used to define a condition to filter the returned
10470-
* findings.</p>
10471-
* <p>You can filter by up to 10 finding attributes. For each attribute, you can provide up to
10472-
* 20 filter values.</p>
10473-
* <p>Note that in the available filter fields, <code>WorkflowState</code> is deprecated. To
10474-
* search for a finding based on its workflow status, use <code>WorkflowStatus</code>.</p>
10475-
* @public
10476-
*/
10477-
Filters?: AwsSecurityFindingFilters | undefined;
10478-
10479-
/**
10480-
* <p>The finding attributes used to sort the list of returned findings.</p>
10481-
* @public
10482-
*/
10483-
SortCriteria?: SortCriterion[] | undefined;
10484-
10485-
/**
10486-
* <p>The token that is required for pagination. On your first call to the
10487-
* <code>GetFindings</code> operation, set the value of this parameter to
10488-
* <code>NULL</code>.</p>
10489-
* <p>For subsequent calls to the operation, to continue listing data, set the value of this
10490-
* parameter to the value returned from the previous response.</p>
10491-
* @public
10492-
*/
10493-
NextToken?: string | undefined;
10494-
10495-
/**
10496-
* <p>The maximum number of findings to return.</p>
10497-
* @public
10498-
*/
10499-
MaxResults?: number | undefined;
10500-
}
10501-
1050210504
/**
1050310505
* @internal
1050410506
*/

clients/client-securityhub/src/models/models_3.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,44 @@ import {
5555

5656
import { SecurityHubServiceException as __BaseException } from "./SecurityHubServiceException";
5757

58+
/**
59+
* @public
60+
*/
61+
export interface GetFindingsRequest {
62+
/**
63+
* <p>The finding attributes used to define a condition to filter the returned
64+
* findings.</p>
65+
* <p>You can filter by up to 10 finding attributes. For each attribute, you can provide up to
66+
* 20 filter values.</p>
67+
* <p>Note that in the available filter fields, <code>WorkflowState</code> is deprecated. To
68+
* search for a finding based on its workflow status, use <code>WorkflowStatus</code>.</p>
69+
* @public
70+
*/
71+
Filters?: AwsSecurityFindingFilters | undefined;
72+
73+
/**
74+
* <p>The finding attributes used to sort the list of returned findings.</p>
75+
* @public
76+
*/
77+
SortCriteria?: SortCriterion[] | undefined;
78+
79+
/**
80+
* <p>The token that is required for pagination. On your first call to the
81+
* <code>GetFindings</code> operation, set the value of this parameter to
82+
* <code>NULL</code>.</p>
83+
* <p>For subsequent calls to the operation, to continue listing data, set the value of this
84+
* parameter to the value returned from the previous response.</p>
85+
* @public
86+
*/
87+
NextToken?: string | undefined;
88+
89+
/**
90+
* <p>The maximum number of findings to return.</p>
91+
* @public
92+
*/
93+
MaxResults?: number | undefined;
94+
}
95+
5896
/**
5997
* @public
6098
*/

clients/client-securityhub/src/protocols/Aws_restJson1.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ import {
953953
AwsWafWebAclRule,
954954
AwsXrayEncryptionConfigDetails,
955955
BooleanFilter,
956+
CodeRepositoryDetails,
956957
CodeVulnerabilitiesFilePath,
957958
CompositeFilter,
958959
ConfigurationOptions,
@@ -7728,6 +7729,8 @@ const se_BatchImportFindingsRequestFindingList = (input: AwsSecurityFinding[], c
77287729

77297730
// se_CloudWatchLogsLogGroupArnConfigDetails omitted.
77307731

7732+
// se_CodeRepositoryDetails omitted.
7733+
77317734
// se_CodeVulnerabilitiesFilePath omitted.
77327735

77337736
// se_Compliance omitted.
@@ -8320,6 +8323,7 @@ const se_ResourceDetails = (input: ResourceDetails, context: __SerdeContext): an
83208323
AwsWafv2RuleGroup: _json,
83218324
AwsWafv2WebAcl: _json,
83228325
AwsXrayEncryptionConfig: _json,
8326+
CodeRepository: _json,
83238327
Container: _json,
83248328
Other: _json,
83258329
});
@@ -10850,6 +10854,8 @@ const de_AwsSecurityFindingList = (output: any, context: __SerdeContext): AwsSec
1085010854

1085110855
// de_CloudWatchLogsLogGroupArnConfigDetails omitted.
1085210856

10857+
// de_CodeRepositoryDetails omitted.
10858+
1085310859
// de_CodeVulnerabilitiesFilePath omitted.
1085410860

1085510861
// de_Compliance omitted.
@@ -11814,6 +11820,7 @@ const de_ResourceDetails = (output: any, context: __SerdeContext): ResourceDetai
1181411820
AwsWafv2RuleGroup: _json,
1181511821
AwsWafv2WebAcl: _json,
1181611822
AwsXrayEncryptionConfig: _json,
11823+
CodeRepository: _json,
1181711824
Container: _json,
1181811825
Other: _json,
1181911826
}) as any;

0 commit comments

Comments
 (0)