@aws-sdk/client-inspector2 3.568.0 → 3.569.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 +7 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/commands/GetCisScanReportCommand.d.ts +4 -0
- package/dist-types/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +22 -36
- package/dist-types/models/models_1.d.ts +36 -1
- package/dist-types/ts3.4/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +4 -2
- package/dist-types/ts3.4/models/models_0.d.ts +7 -8
- package/dist-types/ts3.4/models/models_1.d.ts +10 -0
- package/package.json +4 -2
package/dist-cjs/index.js
CHANGED
|
@@ -43,6 +43,7 @@ __export(src_exports, {
|
|
|
43
43
|
CancelSbomExportCommand: () => CancelSbomExportCommand,
|
|
44
44
|
CisFindingStatus: () => CisFindingStatus,
|
|
45
45
|
CisFindingStatusComparison: () => CisFindingStatusComparison,
|
|
46
|
+
CisReportFormat: () => CisReportFormat,
|
|
46
47
|
CisReportStatus: () => CisReportStatus,
|
|
47
48
|
CisResultStatus: () => CisResultStatus,
|
|
48
49
|
CisResultStatusComparison: () => CisResultStatusComparison,
|
|
@@ -740,6 +741,10 @@ var CisFindingStatus = {
|
|
|
740
741
|
var CisFindingStatusComparison = {
|
|
741
742
|
EQUALS: "EQUALS"
|
|
742
743
|
};
|
|
744
|
+
var CisReportFormat = {
|
|
745
|
+
CSV: "CSV",
|
|
746
|
+
PDF: "PDF"
|
|
747
|
+
};
|
|
743
748
|
var CisReportStatus = {
|
|
744
749
|
FAILED: "FAILED",
|
|
745
750
|
IN_PROGRESS: "IN_PROGRESS",
|
|
@@ -1441,6 +1446,7 @@ var se_GetCisScanReportCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
1441
1446
|
let body;
|
|
1442
1447
|
body = JSON.stringify(
|
|
1443
1448
|
(0, import_smithy_client.take)(input, {
|
|
1449
|
+
reportFormat: [],
|
|
1444
1450
|
scanArn: [],
|
|
1445
1451
|
targetAccounts: (_) => (0, import_smithy_client._json)(_)
|
|
1446
1452
|
})
|
|
@@ -5040,6 +5046,7 @@ var StopCisSessionStatus = {
|
|
|
5040
5046
|
CisSecurityLevel,
|
|
5041
5047
|
CisFindingStatus,
|
|
5042
5048
|
CisFindingStatusComparison,
|
|
5049
|
+
CisReportFormat,
|
|
5043
5050
|
CisReportStatus,
|
|
5044
5051
|
CisResultStatus,
|
|
5045
5052
|
CisResultStatusComparison,
|
|
@@ -331,6 +331,10 @@ export const CisFindingStatus = {
|
|
|
331
331
|
export const CisFindingStatusComparison = {
|
|
332
332
|
EQUALS: "EQUALS",
|
|
333
333
|
};
|
|
334
|
+
export const CisReportFormat = {
|
|
335
|
+
CSV: "CSV",
|
|
336
|
+
PDF: "PDF",
|
|
337
|
+
};
|
|
334
338
|
export const CisReportStatus = {
|
|
335
339
|
FAILED: "FAILED",
|
|
336
340
|
IN_PROGRESS: "IN_PROGRESS",
|
|
@@ -38,6 +38,7 @@ declare const GetCisScanReportCommand_base: {
|
|
|
38
38
|
* targetAccounts: [ // ReportTargetAccounts
|
|
39
39
|
* "STRING_VALUE",
|
|
40
40
|
* ],
|
|
41
|
+
* reportFormat: "PDF" || "CSV",
|
|
41
42
|
* };
|
|
42
43
|
* const command = new GetCisScanReportCommand(input);
|
|
43
44
|
* const response = await client.send(command);
|
|
@@ -60,6 +61,9 @@ declare const GetCisScanReportCommand_base: {
|
|
|
60
61
|
* @throws {@link InternalServerException} (server fault)
|
|
61
62
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
62
63
|
*
|
|
64
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
65
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
|
|
66
|
+
*
|
|
63
67
|
* @throws {@link ThrottlingException} (client fault)
|
|
64
68
|
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
65
69
|
*
|
|
@@ -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 { ListCisScanResultsAggregatedByTargetResourceRequest } from "../models/
|
|
5
|
-
import { ListCisScanResultsAggregatedByTargetResourceResponse } from "../models/models_1";
|
|
4
|
+
import { ListCisScanResultsAggregatedByTargetResourceRequest, ListCisScanResultsAggregatedByTargetResourceResponse } from "../models/models_1";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|
|
@@ -2852,6 +2852,18 @@ export interface CisNumberFilter {
|
|
|
2852
2852
|
*/
|
|
2853
2853
|
lowerInclusive?: number;
|
|
2854
2854
|
}
|
|
2855
|
+
/**
|
|
2856
|
+
* @public
|
|
2857
|
+
* @enum
|
|
2858
|
+
*/
|
|
2859
|
+
export declare const CisReportFormat: {
|
|
2860
|
+
readonly CSV: "CSV";
|
|
2861
|
+
readonly PDF: "PDF";
|
|
2862
|
+
};
|
|
2863
|
+
/**
|
|
2864
|
+
* @public
|
|
2865
|
+
*/
|
|
2866
|
+
export type CisReportFormat = (typeof CisReportFormat)[keyof typeof CisReportFormat];
|
|
2855
2867
|
/**
|
|
2856
2868
|
* @public
|
|
2857
2869
|
* @enum
|
|
@@ -6154,6 +6166,15 @@ export interface GetCisScanReportRequest {
|
|
|
6154
6166
|
* @public
|
|
6155
6167
|
*/
|
|
6156
6168
|
targetAccounts?: string[];
|
|
6169
|
+
/**
|
|
6170
|
+
* <p>
|
|
6171
|
+
* The format of the report.
|
|
6172
|
+
* Valid values are <code>PDF</code> and <code>CSV</code>.
|
|
6173
|
+
* If no value is specified, the report format defaults to <code>PDF</code>.
|
|
6174
|
+
* </p>
|
|
6175
|
+
* @public
|
|
6176
|
+
*/
|
|
6177
|
+
reportFormat?: CisReportFormat;
|
|
6157
6178
|
}
|
|
6158
6179
|
/**
|
|
6159
6180
|
* @public
|
|
@@ -6161,7 +6182,7 @@ export interface GetCisScanReportRequest {
|
|
|
6161
6182
|
export interface GetCisScanReportResponse {
|
|
6162
6183
|
/**
|
|
6163
6184
|
* <p>
|
|
6164
|
-
* The URL where a PDF of the CIS scan report can be downloaded.
|
|
6185
|
+
* The URL where a PDF or CSV of the CIS scan report can be downloaded.
|
|
6165
6186
|
* </p>
|
|
6166
6187
|
* @public
|
|
6167
6188
|
*/
|
|
@@ -6676,38 +6697,3 @@ export interface ListCisScanResultsAggregatedByChecksResponse {
|
|
|
6676
6697
|
*/
|
|
6677
6698
|
nextToken?: string;
|
|
6678
6699
|
}
|
|
6679
|
-
/**
|
|
6680
|
-
* @public
|
|
6681
|
-
*/
|
|
6682
|
-
export interface ListCisScanResultsAggregatedByTargetResourceRequest {
|
|
6683
|
-
/**
|
|
6684
|
-
* <p>The scan ARN.</p>
|
|
6685
|
-
* @public
|
|
6686
|
-
*/
|
|
6687
|
-
scanArn: string | undefined;
|
|
6688
|
-
/**
|
|
6689
|
-
* <p>The filter criteria.</p>
|
|
6690
|
-
* @public
|
|
6691
|
-
*/
|
|
6692
|
-
filterCriteria?: CisScanResultsAggregatedByTargetResourceFilterCriteria;
|
|
6693
|
-
/**
|
|
6694
|
-
* <p>The sort by order.</p>
|
|
6695
|
-
* @public
|
|
6696
|
-
*/
|
|
6697
|
-
sortBy?: CisScanResultsAggregatedByTargetResourceSortBy;
|
|
6698
|
-
/**
|
|
6699
|
-
* <p>The sort order.</p>
|
|
6700
|
-
* @public
|
|
6701
|
-
*/
|
|
6702
|
-
sortOrder?: CisSortOrder;
|
|
6703
|
-
/**
|
|
6704
|
-
* <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
|
|
6705
|
-
* @public
|
|
6706
|
-
*/
|
|
6707
|
-
nextToken?: string;
|
|
6708
|
-
/**
|
|
6709
|
-
* <p>The maximum number of scan results aggregated by a target resource to be returned in a single page of results.</p>
|
|
6710
|
-
* @public
|
|
6711
|
-
*/
|
|
6712
|
-
maxResults?: number;
|
|
6713
|
-
}
|
|
@@ -1,4 +1,39 @@
|
|
|
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";
|
|
1
|
+
import { AggregationRequest, AggregationResponse, AggregationType, AtigData, AutoEnable, CisaData, CisDateFilter, CisNumberFilter, CisScan, CisScanResultsAggregatedByTargetResourceFilterCriteria, CisScanResultsAggregatedByTargetResourceSortBy, 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 ListCisScanResultsAggregatedByTargetResourceRequest {
|
|
6
|
+
/**
|
|
7
|
+
* <p>The scan ARN.</p>
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
scanArn: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* <p>The filter criteria.</p>
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
filterCriteria?: CisScanResultsAggregatedByTargetResourceFilterCriteria;
|
|
16
|
+
/**
|
|
17
|
+
* <p>The sort by order.</p>
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
sortBy?: CisScanResultsAggregatedByTargetResourceSortBy;
|
|
21
|
+
/**
|
|
22
|
+
* <p>The sort order.</p>
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
sortOrder?: CisSortOrder;
|
|
26
|
+
/**
|
|
27
|
+
* <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
nextToken?: string;
|
|
31
|
+
/**
|
|
32
|
+
* <p>The maximum number of scan results aggregated by a target resource to be returned in a single page of results.</p>
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
maxResults?: number;
|
|
36
|
+
}
|
|
2
37
|
/**
|
|
3
38
|
* @public
|
|
4
39
|
*/
|
|
@@ -5,8 +5,10 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../Inspector2Client";
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import {
|
|
9
|
+
ListCisScanResultsAggregatedByTargetResourceRequest,
|
|
10
|
+
ListCisScanResultsAggregatedByTargetResourceResponse,
|
|
11
|
+
} from "../models/models_1";
|
|
10
12
|
export { __MetadataBearer, $Command };
|
|
11
13
|
export interface ListCisScanResultsAggregatedByTargetResourceCommandInput
|
|
12
14
|
extends ListCisScanResultsAggregatedByTargetResourceRequest {}
|
|
@@ -1119,6 +1119,12 @@ export interface CisNumberFilter {
|
|
|
1119
1119
|
upperInclusive?: number;
|
|
1120
1120
|
lowerInclusive?: number;
|
|
1121
1121
|
}
|
|
1122
|
+
export declare const CisReportFormat: {
|
|
1123
|
+
readonly CSV: "CSV";
|
|
1124
|
+
readonly PDF: "PDF";
|
|
1125
|
+
};
|
|
1126
|
+
export type CisReportFormat =
|
|
1127
|
+
(typeof CisReportFormat)[keyof typeof CisReportFormat];
|
|
1122
1128
|
export declare const CisReportStatus: {
|
|
1123
1129
|
readonly FAILED: "FAILED";
|
|
1124
1130
|
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
@@ -2125,6 +2131,7 @@ export interface Finding {
|
|
|
2125
2131
|
export interface GetCisScanReportRequest {
|
|
2126
2132
|
scanArn: string | undefined;
|
|
2127
2133
|
targetAccounts?: string[];
|
|
2134
|
+
reportFormat?: CisReportFormat;
|
|
2128
2135
|
}
|
|
2129
2136
|
export interface GetCisScanReportResponse {
|
|
2130
2137
|
url?: string;
|
|
@@ -2266,11 +2273,3 @@ export interface ListCisScanResultsAggregatedByChecksResponse {
|
|
|
2266
2273
|
checkAggregations?: CisCheckAggregation[];
|
|
2267
2274
|
nextToken?: string;
|
|
2268
2275
|
}
|
|
2269
|
-
export interface ListCisScanResultsAggregatedByTargetResourceRequest {
|
|
2270
|
-
scanArn: string | undefined;
|
|
2271
|
-
filterCriteria?: CisScanResultsAggregatedByTargetResourceFilterCriteria;
|
|
2272
|
-
sortBy?: CisScanResultsAggregatedByTargetResourceSortBy;
|
|
2273
|
-
sortOrder?: CisSortOrder;
|
|
2274
|
-
nextToken?: string;
|
|
2275
|
-
maxResults?: number;
|
|
2276
|
-
}
|
|
@@ -8,6 +8,8 @@ import {
|
|
|
8
8
|
CisDateFilter,
|
|
9
9
|
CisNumberFilter,
|
|
10
10
|
CisScan,
|
|
11
|
+
CisScanResultsAggregatedByTargetResourceFilterCriteria,
|
|
12
|
+
CisScanResultsAggregatedByTargetResourceSortBy,
|
|
11
13
|
CisScanStatusFilter,
|
|
12
14
|
CisSecurityLevel,
|
|
13
15
|
CisSessionMessage,
|
|
@@ -40,6 +42,14 @@ import {
|
|
|
40
42
|
StringFilter,
|
|
41
43
|
TagFilter,
|
|
42
44
|
} from "./models_0";
|
|
45
|
+
export interface ListCisScanResultsAggregatedByTargetResourceRequest {
|
|
46
|
+
scanArn: string | undefined;
|
|
47
|
+
filterCriteria?: CisScanResultsAggregatedByTargetResourceFilterCriteria;
|
|
48
|
+
sortBy?: CisScanResultsAggregatedByTargetResourceSortBy;
|
|
49
|
+
sortOrder?: CisSortOrder;
|
|
50
|
+
nextToken?: string;
|
|
51
|
+
maxResults?: number;
|
|
52
|
+
}
|
|
43
53
|
export interface ListCisScanResultsAggregatedByTargetResourceResponse {
|
|
44
54
|
targetResourceAggregations?: CisTargetResourceAggregation[];
|
|
45
55
|
nextToken?: string;
|
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.
|
|
4
|
+
"version": "3.569.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,8 +20,10 @@
|
|
|
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-sso-oidc": "3.569.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.569.0",
|
|
23
25
|
"@aws-sdk/core": "3.567.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.569.0",
|
|
25
27
|
"@aws-sdk/middleware-host-header": "3.567.0",
|
|
26
28
|
"@aws-sdk/middleware-logger": "3.568.0",
|
|
27
29
|
"@aws-sdk/middleware-recursion-detection": "3.567.0",
|