@aws-sdk/client-securityhub 3.338.0 → 3.342.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/models/models_1.js +1 -37
- package/dist-cjs/models/models_2.js +37 -1
- package/dist-cjs/protocols/Aws_restJson1.js +12 -2
- package/dist-es/models/models_1.js +0 -35
- package/dist-es/models/models_2.js +35 -0
- package/dist-es/protocols/Aws_restJson1.js +11 -1
- package/dist-types/commands/BatchEnableStandardsCommand.d.ts +3 -3
- package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +39 -1
- package/dist-types/commands/BatchGetStandardsControlAssociationsCommand.d.ts +51 -1
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +172 -1
- package/dist-types/commands/BatchUpdateFindingsCommand.d.ts +1 -1
- package/dist-types/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +41 -1
- package/dist-types/commands/CreateActionTargetCommand.d.ts +1 -1
- package/dist-types/commands/CreateFindingAggregatorCommand.d.ts +1 -1
- package/dist-types/commands/GetFindingsCommand.d.ts +171 -0
- package/dist-types/models/models_0.d.ts +551 -367
- package/dist-types/models/models_1.d.ts +6083 -6124
- package/dist-types/models/models_2.d.ts +841 -3
- package/dist-types/ts3.4/commands/BatchGetSecurityControlsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchGetStandardsControlAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchImportFindingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchUpdateFindingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateActionTargetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateFindingAggregatorCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +98 -84
- package/dist-types/ts3.4/models/models_1.d.ts +175 -177
- package/dist-types/ts3.4/models/models_2.d.ts +178 -4
- package/package.json +28 -28
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
1
2
|
import {
|
|
2
3
|
AccountDetails,
|
|
3
4
|
ActionTarget,
|
|
@@ -9,13 +10,186 @@ import {
|
|
|
9
10
|
AwsSecurityFinding,
|
|
10
11
|
AwsSecurityFindingFilters,
|
|
11
12
|
AwsSecurityFindingIdentifier,
|
|
12
|
-
ControlFindingGenerator,
|
|
13
|
-
ControlStatus,
|
|
14
|
-
NoteUpdate,
|
|
15
13
|
RecordState,
|
|
16
|
-
|
|
14
|
+
RelatedFinding,
|
|
15
|
+
SeverityLabel,
|
|
17
16
|
StandardsSubscription,
|
|
17
|
+
VerificationState,
|
|
18
|
+
WorkflowStatus,
|
|
18
19
|
} from "./models_1";
|
|
20
|
+
import { SecurityHubServiceException as __BaseException } from "./SecurityHubServiceException";
|
|
21
|
+
export interface BatchGetSecurityControlsRequest {
|
|
22
|
+
SecurityControlIds: string[] | undefined;
|
|
23
|
+
}
|
|
24
|
+
export declare const ControlStatus: {
|
|
25
|
+
readonly DISABLED: "DISABLED";
|
|
26
|
+
readonly ENABLED: "ENABLED";
|
|
27
|
+
};
|
|
28
|
+
export type ControlStatus = (typeof ControlStatus)[keyof typeof ControlStatus];
|
|
29
|
+
export declare const SeverityRating: {
|
|
30
|
+
readonly CRITICAL: "CRITICAL";
|
|
31
|
+
readonly HIGH: "HIGH";
|
|
32
|
+
readonly LOW: "LOW";
|
|
33
|
+
readonly MEDIUM: "MEDIUM";
|
|
34
|
+
};
|
|
35
|
+
export type SeverityRating =
|
|
36
|
+
(typeof SeverityRating)[keyof typeof SeverityRating];
|
|
37
|
+
export interface SecurityControl {
|
|
38
|
+
SecurityControlId: string | undefined;
|
|
39
|
+
SecurityControlArn: string | undefined;
|
|
40
|
+
Title: string | undefined;
|
|
41
|
+
Description: string | undefined;
|
|
42
|
+
RemediationUrl: string | undefined;
|
|
43
|
+
SeverityRating: SeverityRating | string | undefined;
|
|
44
|
+
SecurityControlStatus: ControlStatus | string | undefined;
|
|
45
|
+
}
|
|
46
|
+
export declare const UnprocessedErrorCode: {
|
|
47
|
+
readonly ACCESS_DENIED: "ACCESS_DENIED";
|
|
48
|
+
readonly INVALID_INPUT: "INVALID_INPUT";
|
|
49
|
+
readonly LIMIT_EXCEEDED: "LIMIT_EXCEEDED";
|
|
50
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
51
|
+
};
|
|
52
|
+
export type UnprocessedErrorCode =
|
|
53
|
+
(typeof UnprocessedErrorCode)[keyof typeof UnprocessedErrorCode];
|
|
54
|
+
export interface UnprocessedSecurityControl {
|
|
55
|
+
SecurityControlId: string | undefined;
|
|
56
|
+
ErrorCode: UnprocessedErrorCode | string | undefined;
|
|
57
|
+
ErrorReason?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface BatchGetSecurityControlsResponse {
|
|
60
|
+
SecurityControls: SecurityControl[] | undefined;
|
|
61
|
+
UnprocessedIds?: UnprocessedSecurityControl[];
|
|
62
|
+
}
|
|
63
|
+
export interface StandardsControlAssociationId {
|
|
64
|
+
SecurityControlId: string | undefined;
|
|
65
|
+
StandardsArn: string | undefined;
|
|
66
|
+
}
|
|
67
|
+
export interface BatchGetStandardsControlAssociationsRequest {
|
|
68
|
+
StandardsControlAssociationIds: StandardsControlAssociationId[] | undefined;
|
|
69
|
+
}
|
|
70
|
+
export interface StandardsControlAssociationDetail {
|
|
71
|
+
StandardsArn: string | undefined;
|
|
72
|
+
SecurityControlId: string | undefined;
|
|
73
|
+
SecurityControlArn: string | undefined;
|
|
74
|
+
AssociationStatus: AssociationStatus | string | undefined;
|
|
75
|
+
RelatedRequirements?: string[];
|
|
76
|
+
UpdatedAt?: Date;
|
|
77
|
+
UpdatedReason?: string;
|
|
78
|
+
StandardsControlTitle?: string;
|
|
79
|
+
StandardsControlDescription?: string;
|
|
80
|
+
StandardsControlArns?: string[];
|
|
81
|
+
}
|
|
82
|
+
export interface UnprocessedStandardsControlAssociation {
|
|
83
|
+
StandardsControlAssociationId: StandardsControlAssociationId | undefined;
|
|
84
|
+
ErrorCode: UnprocessedErrorCode | string | undefined;
|
|
85
|
+
ErrorReason?: string;
|
|
86
|
+
}
|
|
87
|
+
export interface BatchGetStandardsControlAssociationsResponse {
|
|
88
|
+
StandardsControlAssociationDetails:
|
|
89
|
+
| StandardsControlAssociationDetail[]
|
|
90
|
+
| undefined;
|
|
91
|
+
UnprocessedAssociations?: UnprocessedStandardsControlAssociation[];
|
|
92
|
+
}
|
|
93
|
+
export interface BatchImportFindingsRequest {
|
|
94
|
+
Findings: AwsSecurityFinding[] | undefined;
|
|
95
|
+
}
|
|
96
|
+
export interface ImportFindingsError {
|
|
97
|
+
Id: string | undefined;
|
|
98
|
+
ErrorCode: string | undefined;
|
|
99
|
+
ErrorMessage: string | undefined;
|
|
100
|
+
}
|
|
101
|
+
export interface BatchImportFindingsResponse {
|
|
102
|
+
FailedCount: number | undefined;
|
|
103
|
+
SuccessCount: number | undefined;
|
|
104
|
+
FailedFindings?: ImportFindingsError[];
|
|
105
|
+
}
|
|
106
|
+
export interface NoteUpdate {
|
|
107
|
+
Text: string | undefined;
|
|
108
|
+
UpdatedBy: string | undefined;
|
|
109
|
+
}
|
|
110
|
+
export interface SeverityUpdate {
|
|
111
|
+
Normalized?: number;
|
|
112
|
+
Product?: number;
|
|
113
|
+
Label?: SeverityLabel | string;
|
|
114
|
+
}
|
|
115
|
+
export interface WorkflowUpdate {
|
|
116
|
+
Status?: WorkflowStatus | string;
|
|
117
|
+
}
|
|
118
|
+
export interface BatchUpdateFindingsRequest {
|
|
119
|
+
FindingIdentifiers: AwsSecurityFindingIdentifier[] | undefined;
|
|
120
|
+
Note?: NoteUpdate;
|
|
121
|
+
Severity?: SeverityUpdate;
|
|
122
|
+
VerificationState?: VerificationState | string;
|
|
123
|
+
Confidence?: number;
|
|
124
|
+
Criticality?: number;
|
|
125
|
+
Types?: string[];
|
|
126
|
+
UserDefinedFields?: Record<string, string>;
|
|
127
|
+
Workflow?: WorkflowUpdate;
|
|
128
|
+
RelatedFindings?: RelatedFinding[];
|
|
129
|
+
}
|
|
130
|
+
export interface BatchUpdateFindingsUnprocessedFinding {
|
|
131
|
+
FindingIdentifier: AwsSecurityFindingIdentifier | undefined;
|
|
132
|
+
ErrorCode: string | undefined;
|
|
133
|
+
ErrorMessage: string | undefined;
|
|
134
|
+
}
|
|
135
|
+
export interface BatchUpdateFindingsResponse {
|
|
136
|
+
ProcessedFindings: AwsSecurityFindingIdentifier[] | undefined;
|
|
137
|
+
UnprocessedFindings: BatchUpdateFindingsUnprocessedFinding[] | undefined;
|
|
138
|
+
}
|
|
139
|
+
export interface StandardsControlAssociationUpdate {
|
|
140
|
+
StandardsArn: string | undefined;
|
|
141
|
+
SecurityControlId: string | undefined;
|
|
142
|
+
AssociationStatus: AssociationStatus | string | undefined;
|
|
143
|
+
UpdatedReason?: string;
|
|
144
|
+
}
|
|
145
|
+
export interface BatchUpdateStandardsControlAssociationsRequest {
|
|
146
|
+
StandardsControlAssociationUpdates:
|
|
147
|
+
| StandardsControlAssociationUpdate[]
|
|
148
|
+
| undefined;
|
|
149
|
+
}
|
|
150
|
+
export interface UnprocessedStandardsControlAssociationUpdate {
|
|
151
|
+
StandardsControlAssociationUpdate:
|
|
152
|
+
| StandardsControlAssociationUpdate
|
|
153
|
+
| undefined;
|
|
154
|
+
ErrorCode: UnprocessedErrorCode | string | undefined;
|
|
155
|
+
ErrorReason?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface BatchUpdateStandardsControlAssociationsResponse {
|
|
158
|
+
UnprocessedAssociationUpdates?: UnprocessedStandardsControlAssociationUpdate[];
|
|
159
|
+
}
|
|
160
|
+
export declare const ControlFindingGenerator: {
|
|
161
|
+
readonly SECURITY_CONTROL: "SECURITY_CONTROL";
|
|
162
|
+
readonly STANDARD_CONTROL: "STANDARD_CONTROL";
|
|
163
|
+
};
|
|
164
|
+
export type ControlFindingGenerator =
|
|
165
|
+
(typeof ControlFindingGenerator)[keyof typeof ControlFindingGenerator];
|
|
166
|
+
export interface CreateActionTargetRequest {
|
|
167
|
+
Name: string | undefined;
|
|
168
|
+
Description: string | undefined;
|
|
169
|
+
Id: string | undefined;
|
|
170
|
+
}
|
|
171
|
+
export interface CreateActionTargetResponse {
|
|
172
|
+
ActionTargetArn: string | undefined;
|
|
173
|
+
}
|
|
174
|
+
export declare class ResourceConflictException extends __BaseException {
|
|
175
|
+
readonly name: "ResourceConflictException";
|
|
176
|
+
readonly $fault: "client";
|
|
177
|
+
Message?: string;
|
|
178
|
+
Code?: string;
|
|
179
|
+
constructor(
|
|
180
|
+
opts: __ExceptionOptionType<ResourceConflictException, __BaseException>
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
export interface CreateFindingAggregatorRequest {
|
|
184
|
+
RegionLinkingMode: string | undefined;
|
|
185
|
+
Regions?: string[];
|
|
186
|
+
}
|
|
187
|
+
export interface CreateFindingAggregatorResponse {
|
|
188
|
+
FindingAggregatorArn?: string;
|
|
189
|
+
FindingAggregationRegion?: string;
|
|
190
|
+
RegionLinkingMode?: string;
|
|
191
|
+
Regions?: string[];
|
|
192
|
+
}
|
|
19
193
|
export interface CreateInsightRequest {
|
|
20
194
|
Name: string | undefined;
|
|
21
195
|
Filters: AwsSecurityFindingFilters | 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.
|
|
4
|
+
"version": "3.342.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,36 +21,36 @@
|
|
|
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/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.342.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.342.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.342.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.342.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.342.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.342.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.342.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.342.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.342.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.342.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.342.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.342.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.342.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.342.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.342.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.342.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.342.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.342.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.342.0",
|
|
43
|
+
"@aws-sdk/types": "3.342.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.342.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.342.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.342.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.342.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.342.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.342.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.342.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
55
|
"@smithy/protocol-http": "^1.0.1",
|
|
56
56
|
"@smithy/types": "^1.0.0",
|