@aws-sdk/client-securityhub 3.391.0 → 3.395.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/README.md +4 -2
- package/dist-cjs/SecurityHubClient.js +4 -2
- package/dist-cjs/clientConfiguration.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_1.js +5 -8
- package/dist-cjs/models/models_2.js +8 -1
- package/dist-cjs/protocols/Aws_restJson1.js +8 -0
- package/dist-cjs/runtimeConfig.shared.js +1 -0
- package/dist-cjs/runtimeExtensions.js +16 -0
- package/dist-es/SecurityHubClient.js +4 -2
- package/dist-es/clientConfiguration.js +1 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_1.js +4 -7
- package/dist-es/models/models_2.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +8 -0
- package/dist-es/runtimeConfig.shared.js +1 -0
- package/dist-es/runtimeExtensions.js +12 -0
- package/dist-types/SecurityHub.d.ts +4 -2
- package/dist-types/SecurityHubClient.d.ts +10 -3
- package/dist-types/clientConfiguration.d.ts +6 -0
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +22 -3
- package/dist-types/commands/DeleteMembersCommand.d.ts +2 -2
- package/dist-types/commands/DisableSecurityHubCommand.d.ts +2 -3
- package/dist-types/commands/GetFindingsCommand.d.ts +22 -3
- package/dist-types/index.d.ts +4 -2
- package/dist-types/models/models_1.d.ts +110 -189
- package/dist-types/models/models_2.d.ts +218 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +3 -0
- package/dist-types/ts3.4/clientConfiguration.d.ts +3 -0
- package/dist-types/ts3.4/models/models_1.d.ts +22 -34
- package/dist-types/ts3.4/models/models_2.d.ts +44 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +3 -3
|
@@ -46,7 +46,6 @@ import {
|
|
|
46
46
|
AwsEfsAccessPointRootDirectoryCreationInfoDetails,
|
|
47
47
|
RelatedFinding,
|
|
48
48
|
SeverityLabel,
|
|
49
|
-
WorkflowStatus,
|
|
50
49
|
} from "./models_0";
|
|
51
50
|
export interface AwsEfsAccessPointRootDirectoryDetails {
|
|
52
51
|
CreationInfo?: AwsEfsAccessPointRootDirectoryCreationInfoDetails;
|
|
@@ -1380,6 +1379,11 @@ export interface FindingProviderFields {
|
|
|
1380
1379
|
Severity?: FindingProviderSeverity;
|
|
1381
1380
|
Types?: string[];
|
|
1382
1381
|
}
|
|
1382
|
+
export interface GeneratorDetails {
|
|
1383
|
+
Name?: string;
|
|
1384
|
+
Description?: string;
|
|
1385
|
+
Labels?: string[];
|
|
1386
|
+
}
|
|
1383
1387
|
export declare const MalwareState: {
|
|
1384
1388
|
readonly OBSERVED: "OBSERVED";
|
|
1385
1389
|
readonly REMOVAL_FAILED: "REMOVAL_FAILED";
|
|
@@ -1995,6 +1999,17 @@ export interface Threat {
|
|
|
1995
1999
|
ItemCount?: number;
|
|
1996
2000
|
FilePaths?: FilePaths[];
|
|
1997
2001
|
}
|
|
2002
|
+
export interface CodeVulnerabilitiesFilePath {
|
|
2003
|
+
EndLine?: number;
|
|
2004
|
+
FileName?: string;
|
|
2005
|
+
FilePath?: string;
|
|
2006
|
+
StartLine?: number;
|
|
2007
|
+
}
|
|
2008
|
+
export interface VulnerabilityCodeVulnerabilities {
|
|
2009
|
+
Cwes?: string[];
|
|
2010
|
+
FilePath?: CodeVulnerabilitiesFilePath;
|
|
2011
|
+
SourceArn?: string;
|
|
2012
|
+
}
|
|
1998
2013
|
export interface Cvss {
|
|
1999
2014
|
Version?: string;
|
|
2000
2015
|
BaseScore?: number;
|
|
@@ -2002,6 +2017,12 @@ export interface Cvss {
|
|
|
2002
2017
|
Source?: string;
|
|
2003
2018
|
Adjustments?: Adjustment[];
|
|
2004
2019
|
}
|
|
2020
|
+
export declare const VulnerabilityExploitAvailable: {
|
|
2021
|
+
readonly NO: "NO";
|
|
2022
|
+
readonly YES: "YES";
|
|
2023
|
+
};
|
|
2024
|
+
export type VulnerabilityExploitAvailable =
|
|
2025
|
+
(typeof VulnerabilityExploitAvailable)[keyof typeof VulnerabilityExploitAvailable];
|
|
2005
2026
|
export declare const VulnerabilityFixAvailable: {
|
|
2006
2027
|
readonly NO: "NO";
|
|
2007
2028
|
readonly PARTIAL: "PARTIAL";
|
|
@@ -2016,36 +2037,3 @@ export interface VulnerabilityVendor {
|
|
|
2016
2037
|
VendorCreatedAt?: string;
|
|
2017
2038
|
VendorUpdatedAt?: string;
|
|
2018
2039
|
}
|
|
2019
|
-
export interface SoftwarePackage {
|
|
2020
|
-
Name?: string;
|
|
2021
|
-
Version?: string;
|
|
2022
|
-
Epoch?: string;
|
|
2023
|
-
Release?: string;
|
|
2024
|
-
Architecture?: string;
|
|
2025
|
-
PackageManager?: string;
|
|
2026
|
-
FilePath?: string;
|
|
2027
|
-
FixedInVersion?: string;
|
|
2028
|
-
Remediation?: string;
|
|
2029
|
-
SourceLayerHash?: string;
|
|
2030
|
-
SourceLayerArn?: string;
|
|
2031
|
-
}
|
|
2032
|
-
export interface Vulnerability {
|
|
2033
|
-
Id: string | undefined;
|
|
2034
|
-
VulnerablePackages?: SoftwarePackage[];
|
|
2035
|
-
Cvss?: Cvss[];
|
|
2036
|
-
RelatedVulnerabilities?: string[];
|
|
2037
|
-
Vendor?: VulnerabilityVendor;
|
|
2038
|
-
ReferenceUrls?: string[];
|
|
2039
|
-
FixAvailable?: VulnerabilityFixAvailable | string;
|
|
2040
|
-
}
|
|
2041
|
-
export interface Workflow {
|
|
2042
|
-
Status?: WorkflowStatus | string;
|
|
2043
|
-
}
|
|
2044
|
-
export declare const WorkflowState: {
|
|
2045
|
-
readonly ASSIGNED: "ASSIGNED";
|
|
2046
|
-
readonly DEFERRED: "DEFERRED";
|
|
2047
|
-
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
2048
|
-
readonly NEW: "NEW";
|
|
2049
|
-
readonly RESOLVED: "RESOLVED";
|
|
2050
|
-
};
|
|
2051
|
-
export type WorkflowState = (typeof WorkflowState)[keyof typeof WorkflowState];
|
|
@@ -19,11 +19,14 @@ import {
|
|
|
19
19
|
SeverityUpdate,
|
|
20
20
|
StringFilter,
|
|
21
21
|
VerificationState,
|
|
22
|
+
WorkflowStatus,
|
|
22
23
|
WorkflowUpdate,
|
|
23
24
|
} from "./models_0";
|
|
24
25
|
import {
|
|
25
26
|
Compliance,
|
|
27
|
+
Cvss,
|
|
26
28
|
FindingProviderFields,
|
|
29
|
+
GeneratorDetails,
|
|
27
30
|
Malware,
|
|
28
31
|
Network,
|
|
29
32
|
NetworkPathComponent,
|
|
@@ -36,11 +39,48 @@ import {
|
|
|
36
39
|
Severity,
|
|
37
40
|
Threat,
|
|
38
41
|
ThreatIntelIndicator,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
VulnerabilityCodeVulnerabilities,
|
|
43
|
+
VulnerabilityExploitAvailable,
|
|
44
|
+
VulnerabilityFixAvailable,
|
|
45
|
+
VulnerabilityVendor,
|
|
42
46
|
} from "./models_1";
|
|
43
47
|
import { SecurityHubServiceException as __BaseException } from "./SecurityHubServiceException";
|
|
48
|
+
export interface SoftwarePackage {
|
|
49
|
+
Name?: string;
|
|
50
|
+
Version?: string;
|
|
51
|
+
Epoch?: string;
|
|
52
|
+
Release?: string;
|
|
53
|
+
Architecture?: string;
|
|
54
|
+
PackageManager?: string;
|
|
55
|
+
FilePath?: string;
|
|
56
|
+
FixedInVersion?: string;
|
|
57
|
+
Remediation?: string;
|
|
58
|
+
SourceLayerHash?: string;
|
|
59
|
+
SourceLayerArn?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface Vulnerability {
|
|
62
|
+
Id: string | undefined;
|
|
63
|
+
VulnerablePackages?: SoftwarePackage[];
|
|
64
|
+
Cvss?: Cvss[];
|
|
65
|
+
RelatedVulnerabilities?: string[];
|
|
66
|
+
Vendor?: VulnerabilityVendor;
|
|
67
|
+
ReferenceUrls?: string[];
|
|
68
|
+
FixAvailable?: VulnerabilityFixAvailable | string;
|
|
69
|
+
EpssScore?: number;
|
|
70
|
+
ExploitAvailable?: VulnerabilityExploitAvailable | string;
|
|
71
|
+
CodeVulnerabilities?: VulnerabilityCodeVulnerabilities[];
|
|
72
|
+
}
|
|
73
|
+
export interface Workflow {
|
|
74
|
+
Status?: WorkflowStatus | string;
|
|
75
|
+
}
|
|
76
|
+
export declare const WorkflowState: {
|
|
77
|
+
readonly ASSIGNED: "ASSIGNED";
|
|
78
|
+
readonly DEFERRED: "DEFERRED";
|
|
79
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
80
|
+
readonly NEW: "NEW";
|
|
81
|
+
readonly RESOLVED: "RESOLVED";
|
|
82
|
+
};
|
|
83
|
+
export type WorkflowState = (typeof WorkflowState)[keyof typeof WorkflowState];
|
|
44
84
|
export interface AwsSecurityFinding {
|
|
45
85
|
SchemaVersion: string | undefined;
|
|
46
86
|
Id: string | undefined;
|
|
@@ -83,6 +123,7 @@ export interface AwsSecurityFinding {
|
|
|
83
123
|
Action?: Action;
|
|
84
124
|
FindingProviderFields?: FindingProviderFields;
|
|
85
125
|
Sample?: boolean;
|
|
126
|
+
GeneratorDetails?: GeneratorDetails;
|
|
86
127
|
}
|
|
87
128
|
export interface KeywordFilter {
|
|
88
129
|
Value?: string;
|
|
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: SecurityHubClientConfig) => {
|
|
|
36
36
|
disableHostPrefix: boolean;
|
|
37
37
|
serviceId: string;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
39
40
|
endpoint?:
|
|
40
41
|
| ((
|
|
41
42
|
| string
|
|
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: SecurityHubClientConfig) => {
|
|
|
36
36
|
disableHostPrefix: boolean;
|
|
37
37
|
serviceId: string;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
39
40
|
endpoint?:
|
|
40
41
|
| ((
|
|
41
42
|
| string
|
|
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: SecurityHubClientConfig) => {
|
|
|
32
32
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
33
33
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
34
34
|
logger: import("@smithy/types").Logger;
|
|
35
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
35
36
|
defaultsMode:
|
|
36
37
|
| import("@smithy/smithy-client").DefaultsMode
|
|
37
38
|
| import("@smithy/types").Provider<
|
|
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: SecurityHubClientConfig) => {
|
|
|
10
10
|
logger?: import("@smithy/types").Logger | undefined;
|
|
11
11
|
}
|
|
12
12
|
) => import("@smithy/types").EndpointV2;
|
|
13
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
13
14
|
logger: import("@smithy/types").Logger;
|
|
14
15
|
serviceId: string;
|
|
15
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SecurityHubClientConfiguration } from "./clientConfiguration";
|
|
2
|
+
export interface RuntimeExtension {
|
|
3
|
+
configureClient(clientConfiguration: SecurityHubClientConfiguration): void;
|
|
4
|
+
}
|
|
5
|
+
export interface RuntimeExtensionsConfig {
|
|
6
|
+
extensions: RuntimeExtension[];
|
|
7
|
+
}
|
|
8
|
+
export declare const resolveRuntimeExtensions: (
|
|
9
|
+
runtimeConfig: any,
|
|
10
|
+
extensions: RuntimeExtension[]
|
|
11
|
+
) => any;
|
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.
|
|
4
|
+
"version": "3.395.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.395.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.395.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.391.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.391.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.391.0",
|