@aws-sdk/client-security-ir 3.1147.0 → 3.1149.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 +7 -0
- package/dist-cjs/index.js +48 -1
- package/dist-es/SecurityIR.js +2 -0
- package/dist-es/commands/GetFindingMetricsCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/SecurityIRServiceException.js +1 -0
- package/dist-es/models/errors.js +9 -0
- package/dist-es/schemas/schemas_0.js +29 -0
- package/dist-types/SecurityIR.d.ts +7 -0
- package/dist-types/SecurityIRClient.d.ts +3 -2
- package/dist-types/commands/GetFindingMetricsCommand.d.ts +137 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/SecurityIRServiceException.d.ts +1 -0
- package/dist-types/models/errors.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +81 -0
- package/dist-types/schemas/schemas_0.d.ts +3 -0
- package/dist-types/ts3.4/SecurityIR.d.ts +17 -0
- package/dist-types/ts3.4/SecurityIRClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetFindingMetricsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/SecurityIRServiceException.d.ts +1 -0
- package/dist-types/ts3.4/models/errors.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +18 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -244,6 +244,13 @@ GetCaseAttachmentUploadUrl
|
|
|
244
244
|
</details>
|
|
245
245
|
<details>
|
|
246
246
|
<summary>
|
|
247
|
+
GetFindingMetrics
|
|
248
|
+
</summary>
|
|
249
|
+
|
|
250
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/security-ir/command/GetFindingMetricsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-security-ir/Interface/GetFindingMetricsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-security-ir/Interface/GetFindingMetricsCommandOutput/)
|
|
251
|
+
</details>
|
|
252
|
+
<details>
|
|
253
|
+
<summary>
|
|
247
254
|
GetMembership
|
|
248
255
|
</summary>
|
|
249
256
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -67,7 +67,7 @@ const commonParams = {
|
|
|
67
67
|
Region: { type: "builtInParams", name: "region" },
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
var version = "3.
|
|
70
|
+
var version = "3.1148.0";
|
|
71
71
|
var packageInfo = {
|
|
72
72
|
version: version};
|
|
73
73
|
|
|
@@ -113,6 +113,7 @@ const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
113
113
|
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
114
114
|
|
|
115
115
|
class SecurityIRServiceException extends ServiceException {
|
|
116
|
+
static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.securityir#SecurityIRServiceException";
|
|
116
117
|
constructor(options) {
|
|
117
118
|
super(options);
|
|
118
119
|
Object.setPrototypeOf(this, SecurityIRServiceException.prototype);
|
|
@@ -120,6 +121,7 @@ class SecurityIRServiceException extends ServiceException {
|
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
class AccessDeniedException extends SecurityIRServiceException {
|
|
124
|
+
static shapeId = "com.amazonaws.securityir#AccessDeniedException";
|
|
123
125
|
name = "AccessDeniedException";
|
|
124
126
|
$fault = "client";
|
|
125
127
|
constructor(opts) {
|
|
@@ -132,6 +134,7 @@ class AccessDeniedException extends SecurityIRServiceException {
|
|
|
132
134
|
}
|
|
133
135
|
}
|
|
134
136
|
class ConflictException extends SecurityIRServiceException {
|
|
137
|
+
static shapeId = "com.amazonaws.securityir#ConflictException";
|
|
135
138
|
name = "ConflictException";
|
|
136
139
|
$fault = "client";
|
|
137
140
|
resourceId;
|
|
@@ -148,6 +151,7 @@ class ConflictException extends SecurityIRServiceException {
|
|
|
148
151
|
}
|
|
149
152
|
}
|
|
150
153
|
class InternalServerException extends SecurityIRServiceException {
|
|
154
|
+
static shapeId = "com.amazonaws.securityir#InternalServerException";
|
|
151
155
|
name = "InternalServerException";
|
|
152
156
|
$fault = "server";
|
|
153
157
|
$retryable = {};
|
|
@@ -163,6 +167,7 @@ class InternalServerException extends SecurityIRServiceException {
|
|
|
163
167
|
}
|
|
164
168
|
}
|
|
165
169
|
class InvalidTokenException extends SecurityIRServiceException {
|
|
170
|
+
static shapeId = "com.amazonaws.securityir#InvalidTokenException";
|
|
166
171
|
name = "InvalidTokenException";
|
|
167
172
|
$fault = "client";
|
|
168
173
|
$retryable = {};
|
|
@@ -176,6 +181,7 @@ class InvalidTokenException extends SecurityIRServiceException {
|
|
|
176
181
|
}
|
|
177
182
|
}
|
|
178
183
|
class ResourceNotFoundException extends SecurityIRServiceException {
|
|
184
|
+
static shapeId = "com.amazonaws.securityir#ResourceNotFoundException";
|
|
179
185
|
name = "ResourceNotFoundException";
|
|
180
186
|
$fault = "client";
|
|
181
187
|
constructor(opts) {
|
|
@@ -188,6 +194,7 @@ class ResourceNotFoundException extends SecurityIRServiceException {
|
|
|
188
194
|
}
|
|
189
195
|
}
|
|
190
196
|
class SecurityIncidentResponseNotActiveException extends SecurityIRServiceException {
|
|
197
|
+
static shapeId = "com.amazonaws.securityir#SecurityIncidentResponseNotActiveException";
|
|
191
198
|
name = "SecurityIncidentResponseNotActiveException";
|
|
192
199
|
$fault = "client";
|
|
193
200
|
constructor(opts) {
|
|
@@ -200,6 +207,7 @@ class SecurityIncidentResponseNotActiveException extends SecurityIRServiceExcept
|
|
|
200
207
|
}
|
|
201
208
|
}
|
|
202
209
|
class ServiceQuotaExceededException extends SecurityIRServiceException {
|
|
210
|
+
static shapeId = "com.amazonaws.securityir#ServiceQuotaExceededException";
|
|
203
211
|
name = "ServiceQuotaExceededException";
|
|
204
212
|
$fault = "client";
|
|
205
213
|
resourceId;
|
|
@@ -220,6 +228,7 @@ class ServiceQuotaExceededException extends SecurityIRServiceException {
|
|
|
220
228
|
}
|
|
221
229
|
}
|
|
222
230
|
class ThrottlingException extends SecurityIRServiceException {
|
|
231
|
+
static shapeId = "com.amazonaws.securityir#ThrottlingException";
|
|
223
232
|
name = "ThrottlingException";
|
|
224
233
|
$fault = "client";
|
|
225
234
|
$retryable = {
|
|
@@ -241,6 +250,7 @@ class ThrottlingException extends SecurityIRServiceException {
|
|
|
241
250
|
}
|
|
242
251
|
}
|
|
243
252
|
class ValidationException extends SecurityIRServiceException {
|
|
253
|
+
static shapeId = "com.amazonaws.securityir#ValidationException";
|
|
244
254
|
name = "ValidationException";
|
|
245
255
|
$fault = "client";
|
|
246
256
|
reason;
|
|
@@ -297,6 +307,9 @@ const _GCAUUR = "GetCaseAttachmentUploadUrlRequest";
|
|
|
297
307
|
const _GCAUURe = "GetCaseAttachmentUploadUrlResponse";
|
|
298
308
|
const _GCR = "GetCaseRequest";
|
|
299
309
|
const _GCRe = "GetCaseResponse";
|
|
310
|
+
const _GFM = "GetFindingMetrics";
|
|
311
|
+
const _GFMR = "GetFindingMetricsRequest";
|
|
312
|
+
const _GFMRe = "GetFindingMetricsResponse";
|
|
300
313
|
const _GM = "GetMembership";
|
|
301
314
|
const _GMADE = "GetMembershipAccountDetailError";
|
|
302
315
|
const _GMADEe = "GetMembershipAccountDetailErrors";
|
|
@@ -412,14 +425,26 @@ const _com = "comment";
|
|
|
412
425
|
const _cr = "creator";
|
|
413
426
|
const _d = "description";
|
|
414
427
|
const _e = "error";
|
|
428
|
+
const _eD = "endDate";
|
|
415
429
|
const _eT = "eventTimestamp";
|
|
416
430
|
const _eTn = "engagementType";
|
|
417
431
|
const _em = "email";
|
|
418
432
|
const _er = "errors";
|
|
419
433
|
const _f = "feedback";
|
|
434
|
+
const _fE = "findingsEscalated";
|
|
435
|
+
const _fEFP = "findingsEscalatedFalsePositive";
|
|
436
|
+
const _fEIP = "findingsEscalatedInProgress";
|
|
437
|
+
const _fI = "findingsInvestigated";
|
|
438
|
+
const _fIFP = "findingsInvestigatedFalsePositive";
|
|
439
|
+
const _fIGD = "findingsIngestedGuardDuty";
|
|
440
|
+
const _fIIP = "findingsInvestigatedInProgress";
|
|
441
|
+
const _fISH = "findingsIngestedSecurityHub";
|
|
420
442
|
const _fL = "fieldList";
|
|
421
443
|
const _fN = "fileName";
|
|
422
444
|
const _fNe = "featureName";
|
|
445
|
+
const _fT = "findingsTriaged";
|
|
446
|
+
const _fTFP = "findingsTriagedFalsePositive";
|
|
447
|
+
const _fTP = "findingsTruePositive";
|
|
423
448
|
const _h = "http";
|
|
424
449
|
const _hE = "httpError";
|
|
425
450
|
const _hH = "httpHeader";
|
|
@@ -478,6 +503,7 @@ const _re = "region";
|
|
|
478
503
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.securityir";
|
|
479
504
|
const _sA = "submittedAt";
|
|
480
505
|
const _sC = "serviceCode";
|
|
506
|
+
const _sD = "startDate";
|
|
481
507
|
const _se = "server";
|
|
482
508
|
const _st = "status";
|
|
483
509
|
const _t = "title";
|
|
@@ -673,6 +699,16 @@ var GetCaseResponse$ = [3, n0, _GCRe,
|
|
|
673
699
|
[_t, _cA, _d, _cS, _eTn, _rISD, _aISD, _iAR, _tAIA, _pA, _iA, _w, _cD, _lUD, _cC, _rTe, _iS, _cAa, _cDl, _cM],
|
|
674
700
|
[[() => CaseTitle, 0], 0, [() => CaseDescription, 0], 0, 0, 4, 4, () => ImpactedAwsRegionList, [() => ThreatActorIpList, 0], 0, 64 | 0, [() => Watchers, 0], 4, 4, 0, 0, 64 | 0, [() => CaseAttachmentsList, 0], 4, () => CaseMetadata]
|
|
675
701
|
];
|
|
702
|
+
var GetFindingMetricsRequest$ = [3, n0, _GFMR,
|
|
703
|
+
0,
|
|
704
|
+
[_mI, _sD, _eD],
|
|
705
|
+
[[0, 1], [4, { [_hQ]: _sD }], [4, { [_hQ]: _eD }]], 3
|
|
706
|
+
];
|
|
707
|
+
var GetFindingMetricsResponse$ = [3, n0, _GFMRe,
|
|
708
|
+
0,
|
|
709
|
+
[_fISH, _fIGD, _fT, _fTFP, _fI, _fIFP, _fE, _fEFP, _fTP, _fIIP, _fEIP],
|
|
710
|
+
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 11
|
|
711
|
+
];
|
|
676
712
|
var GetMembershipAccountDetailError$ = [3, n0, _GMADE,
|
|
677
713
|
0,
|
|
678
714
|
[_aIc, _e, _m],
|
|
@@ -976,6 +1012,9 @@ var GetCaseAttachmentDownloadUrl$ = [9, n0, _GCADU,
|
|
|
976
1012
|
var GetCaseAttachmentUploadUrl$ = [9, n0, _GCAUU,
|
|
977
1013
|
{ [_h]: ["POST", "/v1/cases/{caseId}/get-presigned-url", 201] }, () => GetCaseAttachmentUploadUrlRequest$, () => GetCaseAttachmentUploadUrlResponse$
|
|
978
1014
|
];
|
|
1015
|
+
var GetFindingMetrics$ = [9, n0, _GFM,
|
|
1016
|
+
{ [_h]: ["GET", "/v1/membership/{membershipId}/finding-metrics", 200] }, () => GetFindingMetricsRequest$, () => GetFindingMetricsResponse$
|
|
1017
|
+
];
|
|
979
1018
|
var GetMembership$ = [9, n0, _GM,
|
|
980
1019
|
{ [_h]: ["GET", "/v1/membership/{membershipId}", 200] }, () => GetMembershipRequest$, () => GetMembershipResponse$
|
|
981
1020
|
];
|
|
@@ -1199,6 +1238,9 @@ class GetCaseAttachmentUploadUrlCommand extends command(_ep0, _mw0, "GetCaseAtta
|
|
|
1199
1238
|
class GetCaseCommand extends command(_ep0, _mw0, "GetCase", GetCase$) {
|
|
1200
1239
|
}
|
|
1201
1240
|
|
|
1241
|
+
class GetFindingMetricsCommand extends command(_ep0, _mw0, "GetFindingMetrics", GetFindingMetrics$) {
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1202
1244
|
class GetMembershipCommand extends command(_ep0, _mw0, "GetMembership", GetMembership$) {
|
|
1203
1245
|
}
|
|
1204
1246
|
|
|
@@ -1264,6 +1306,7 @@ const commands = {
|
|
|
1264
1306
|
GetCaseCommand,
|
|
1265
1307
|
GetCaseAttachmentDownloadUrlCommand,
|
|
1266
1308
|
GetCaseAttachmentUploadUrlCommand,
|
|
1309
|
+
GetFindingMetricsCommand,
|
|
1267
1310
|
GetMembershipCommand,
|
|
1268
1311
|
ListCaseEditsCommand,
|
|
1269
1312
|
ListCasesCommand,
|
|
@@ -1482,6 +1525,10 @@ exports.GetCaseAttachmentUploadUrlResponse$ = GetCaseAttachmentUploadUrlResponse
|
|
|
1482
1525
|
exports.GetCaseCommand = GetCaseCommand;
|
|
1483
1526
|
exports.GetCaseRequest$ = GetCaseRequest$;
|
|
1484
1527
|
exports.GetCaseResponse$ = GetCaseResponse$;
|
|
1528
|
+
exports.GetFindingMetrics$ = GetFindingMetrics$;
|
|
1529
|
+
exports.GetFindingMetricsCommand = GetFindingMetricsCommand;
|
|
1530
|
+
exports.GetFindingMetricsRequest$ = GetFindingMetricsRequest$;
|
|
1531
|
+
exports.GetFindingMetricsResponse$ = GetFindingMetricsResponse$;
|
|
1485
1532
|
exports.GetMembership$ = GetMembership$;
|
|
1486
1533
|
exports.GetMembershipAccountDetailError$ = GetMembershipAccountDetailError$;
|
|
1487
1534
|
exports.GetMembershipAccountDetailItem$ = GetMembershipAccountDetailItem$;
|
package/dist-es/SecurityIR.js
CHANGED
|
@@ -8,6 +8,7 @@ import { CreateMembershipCommand, } from "./commands/CreateMembershipCommand";
|
|
|
8
8
|
import { GetCaseAttachmentDownloadUrlCommand, } from "./commands/GetCaseAttachmentDownloadUrlCommand";
|
|
9
9
|
import { GetCaseAttachmentUploadUrlCommand, } from "./commands/GetCaseAttachmentUploadUrlCommand";
|
|
10
10
|
import { GetCaseCommand } from "./commands/GetCaseCommand";
|
|
11
|
+
import { GetFindingMetricsCommand, } from "./commands/GetFindingMetricsCommand";
|
|
11
12
|
import { GetMembershipCommand, } from "./commands/GetMembershipCommand";
|
|
12
13
|
import { ListCaseEditsCommand, } from "./commands/ListCaseEditsCommand";
|
|
13
14
|
import { ListCasesCommand } from "./commands/ListCasesCommand";
|
|
@@ -39,6 +40,7 @@ const commands = {
|
|
|
39
40
|
GetCaseCommand,
|
|
40
41
|
GetCaseAttachmentDownloadUrlCommand,
|
|
41
42
|
GetCaseAttachmentUploadUrlCommand,
|
|
43
|
+
GetFindingMetricsCommand,
|
|
42
44
|
GetMembershipCommand,
|
|
43
45
|
ListCaseEditsCommand,
|
|
44
46
|
ListCasesCommand,
|
|
@@ -7,6 +7,7 @@ export * from "./CreateMembershipCommand";
|
|
|
7
7
|
export * from "./GetCaseAttachmentDownloadUrlCommand";
|
|
8
8
|
export * from "./GetCaseAttachmentUploadUrlCommand";
|
|
9
9
|
export * from "./GetCaseCommand";
|
|
10
|
+
export * from "./GetFindingMetricsCommand";
|
|
10
11
|
export * from "./GetMembershipCommand";
|
|
11
12
|
export * from "./ListCaseEditsCommand";
|
|
12
13
|
export * from "./ListCasesCommand";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
2
|
export { __ServiceException };
|
|
3
3
|
export class SecurityIRServiceException extends __ServiceException {
|
|
4
|
+
static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.securityir#SecurityIRServiceException";
|
|
4
5
|
constructor(options) {
|
|
5
6
|
super(options);
|
|
6
7
|
Object.setPrototypeOf(this, SecurityIRServiceException.prototype);
|
package/dist-es/models/errors.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SecurityIRServiceException as __BaseException } from "./SecurityIRServiceException";
|
|
2
2
|
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
static shapeId = "com.amazonaws.securityir#AccessDeniedException";
|
|
3
4
|
name = "AccessDeniedException";
|
|
4
5
|
$fault = "client";
|
|
5
6
|
constructor(opts) {
|
|
@@ -12,6 +13,7 @@ export class AccessDeniedException extends __BaseException {
|
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
export class ConflictException extends __BaseException {
|
|
16
|
+
static shapeId = "com.amazonaws.securityir#ConflictException";
|
|
15
17
|
name = "ConflictException";
|
|
16
18
|
$fault = "client";
|
|
17
19
|
resourceId;
|
|
@@ -28,6 +30,7 @@ export class ConflictException extends __BaseException {
|
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
export class InternalServerException extends __BaseException {
|
|
33
|
+
static shapeId = "com.amazonaws.securityir#InternalServerException";
|
|
31
34
|
name = "InternalServerException";
|
|
32
35
|
$fault = "server";
|
|
33
36
|
$retryable = {};
|
|
@@ -43,6 +46,7 @@ export class InternalServerException extends __BaseException {
|
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
export class InvalidTokenException extends __BaseException {
|
|
49
|
+
static shapeId = "com.amazonaws.securityir#InvalidTokenException";
|
|
46
50
|
name = "InvalidTokenException";
|
|
47
51
|
$fault = "client";
|
|
48
52
|
$retryable = {};
|
|
@@ -56,6 +60,7 @@ export class InvalidTokenException extends __BaseException {
|
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
62
|
export class ResourceNotFoundException extends __BaseException {
|
|
63
|
+
static shapeId = "com.amazonaws.securityir#ResourceNotFoundException";
|
|
59
64
|
name = "ResourceNotFoundException";
|
|
60
65
|
$fault = "client";
|
|
61
66
|
constructor(opts) {
|
|
@@ -68,6 +73,7 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
68
73
|
}
|
|
69
74
|
}
|
|
70
75
|
export class SecurityIncidentResponseNotActiveException extends __BaseException {
|
|
76
|
+
static shapeId = "com.amazonaws.securityir#SecurityIncidentResponseNotActiveException";
|
|
71
77
|
name = "SecurityIncidentResponseNotActiveException";
|
|
72
78
|
$fault = "client";
|
|
73
79
|
constructor(opts) {
|
|
@@ -80,6 +86,7 @@ export class SecurityIncidentResponseNotActiveException extends __BaseException
|
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
88
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
89
|
+
static shapeId = "com.amazonaws.securityir#ServiceQuotaExceededException";
|
|
83
90
|
name = "ServiceQuotaExceededException";
|
|
84
91
|
$fault = "client";
|
|
85
92
|
resourceId;
|
|
@@ -100,6 +107,7 @@ export class ServiceQuotaExceededException extends __BaseException {
|
|
|
100
107
|
}
|
|
101
108
|
}
|
|
102
109
|
export class ThrottlingException extends __BaseException {
|
|
110
|
+
static shapeId = "com.amazonaws.securityir#ThrottlingException";
|
|
103
111
|
name = "ThrottlingException";
|
|
104
112
|
$fault = "client";
|
|
105
113
|
$retryable = {
|
|
@@ -121,6 +129,7 @@ export class ThrottlingException extends __BaseException {
|
|
|
121
129
|
}
|
|
122
130
|
}
|
|
123
131
|
export class ValidationException extends __BaseException {
|
|
132
|
+
static shapeId = "com.amazonaws.securityir#ValidationException";
|
|
124
133
|
name = "ValidationException";
|
|
125
134
|
$fault = "client";
|
|
126
135
|
reason;
|
|
@@ -38,6 +38,9 @@ const _GCAUUR = "GetCaseAttachmentUploadUrlRequest";
|
|
|
38
38
|
const _GCAUURe = "GetCaseAttachmentUploadUrlResponse";
|
|
39
39
|
const _GCR = "GetCaseRequest";
|
|
40
40
|
const _GCRe = "GetCaseResponse";
|
|
41
|
+
const _GFM = "GetFindingMetrics";
|
|
42
|
+
const _GFMR = "GetFindingMetricsRequest";
|
|
43
|
+
const _GFMRe = "GetFindingMetricsResponse";
|
|
41
44
|
const _GM = "GetMembership";
|
|
42
45
|
const _GMADE = "GetMembershipAccountDetailError";
|
|
43
46
|
const _GMADEe = "GetMembershipAccountDetailErrors";
|
|
@@ -153,14 +156,26 @@ const _com = "comment";
|
|
|
153
156
|
const _cr = "creator";
|
|
154
157
|
const _d = "description";
|
|
155
158
|
const _e = "error";
|
|
159
|
+
const _eD = "endDate";
|
|
156
160
|
const _eT = "eventTimestamp";
|
|
157
161
|
const _eTn = "engagementType";
|
|
158
162
|
const _em = "email";
|
|
159
163
|
const _er = "errors";
|
|
160
164
|
const _f = "feedback";
|
|
165
|
+
const _fE = "findingsEscalated";
|
|
166
|
+
const _fEFP = "findingsEscalatedFalsePositive";
|
|
167
|
+
const _fEIP = "findingsEscalatedInProgress";
|
|
168
|
+
const _fI = "findingsInvestigated";
|
|
169
|
+
const _fIFP = "findingsInvestigatedFalsePositive";
|
|
170
|
+
const _fIGD = "findingsIngestedGuardDuty";
|
|
171
|
+
const _fIIP = "findingsInvestigatedInProgress";
|
|
172
|
+
const _fISH = "findingsIngestedSecurityHub";
|
|
161
173
|
const _fL = "fieldList";
|
|
162
174
|
const _fN = "fileName";
|
|
163
175
|
const _fNe = "featureName";
|
|
176
|
+
const _fT = "findingsTriaged";
|
|
177
|
+
const _fTFP = "findingsTriagedFalsePositive";
|
|
178
|
+
const _fTP = "findingsTruePositive";
|
|
164
179
|
const _h = "http";
|
|
165
180
|
const _hE = "httpError";
|
|
166
181
|
const _hH = "httpHeader";
|
|
@@ -219,6 +234,7 @@ const _re = "region";
|
|
|
219
234
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.securityir";
|
|
220
235
|
const _sA = "submittedAt";
|
|
221
236
|
const _sC = "serviceCode";
|
|
237
|
+
const _sD = "startDate";
|
|
222
238
|
const _se = "server";
|
|
223
239
|
const _st = "status";
|
|
224
240
|
const _t = "title";
|
|
@@ -417,6 +433,16 @@ export var GetCaseResponse$ = [3, n0, _GCRe,
|
|
|
417
433
|
[_t, _cA, _d, _cS, _eTn, _rISD, _aISD, _iAR, _tAIA, _pA, _iA, _w, _cD, _lUD, _cC, _rTe, _iS, _cAa, _cDl, _cM],
|
|
418
434
|
[[() => CaseTitle, 0], 0, [() => CaseDescription, 0], 0, 0, 4, 4, () => ImpactedAwsRegionList, [() => ThreatActorIpList, 0], 0, 64 | 0, [() => Watchers, 0], 4, 4, 0, 0, 64 | 0, [() => CaseAttachmentsList, 0], 4, () => CaseMetadata]
|
|
419
435
|
];
|
|
436
|
+
export var GetFindingMetricsRequest$ = [3, n0, _GFMR,
|
|
437
|
+
0,
|
|
438
|
+
[_mI, _sD, _eD],
|
|
439
|
+
[[0, 1], [4, { [_hQ]: _sD }], [4, { [_hQ]: _eD }]], 3
|
|
440
|
+
];
|
|
441
|
+
export var GetFindingMetricsResponse$ = [3, n0, _GFMRe,
|
|
442
|
+
0,
|
|
443
|
+
[_fISH, _fIGD, _fT, _fTFP, _fI, _fIFP, _fE, _fEFP, _fTP, _fIIP, _fEIP],
|
|
444
|
+
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 11
|
|
445
|
+
];
|
|
420
446
|
export var GetMembershipAccountDetailError$ = [3, n0, _GMADE,
|
|
421
447
|
0,
|
|
422
448
|
[_aIc, _e, _m],
|
|
@@ -727,6 +753,9 @@ export var GetCaseAttachmentDownloadUrl$ = [9, n0, _GCADU,
|
|
|
727
753
|
export var GetCaseAttachmentUploadUrl$ = [9, n0, _GCAUU,
|
|
728
754
|
{ [_h]: ["POST", "/v1/cases/{caseId}/get-presigned-url", 201] }, () => GetCaseAttachmentUploadUrlRequest$, () => GetCaseAttachmentUploadUrlResponse$
|
|
729
755
|
];
|
|
756
|
+
export var GetFindingMetrics$ = [9, n0, _GFM,
|
|
757
|
+
{ [_h]: ["GET", "/v1/membership/{membershipId}/finding-metrics", 200] }, () => GetFindingMetricsRequest$, () => GetFindingMetricsResponse$
|
|
758
|
+
];
|
|
730
759
|
export var GetMembership$ = [9, n0, _GM,
|
|
731
760
|
{ [_h]: ["GET", "/v1/membership/{membershipId}", 200] }, () => GetMembershipRequest$, () => GetMembershipResponse$
|
|
732
761
|
];
|
|
@@ -8,6 +8,7 @@ import { type CreateMembershipCommandInput, type CreateMembershipCommandOutput }
|
|
|
8
8
|
import { type GetCaseAttachmentDownloadUrlCommandInput, type GetCaseAttachmentDownloadUrlCommandOutput } from "./commands/GetCaseAttachmentDownloadUrlCommand";
|
|
9
9
|
import { type GetCaseAttachmentUploadUrlCommandInput, type GetCaseAttachmentUploadUrlCommandOutput } from "./commands/GetCaseAttachmentUploadUrlCommand";
|
|
10
10
|
import { type GetCaseCommandInput, type GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
11
|
+
import { type GetFindingMetricsCommandInput, type GetFindingMetricsCommandOutput } from "./commands/GetFindingMetricsCommand";
|
|
11
12
|
import { type GetMembershipCommandInput, type GetMembershipCommandOutput } from "./commands/GetMembershipCommand";
|
|
12
13
|
import { type ListCaseEditsCommandInput, type ListCaseEditsCommandOutput } from "./commands/ListCaseEditsCommand";
|
|
13
14
|
import { type ListCasesCommandInput, type ListCasesCommandOutput } from "./commands/ListCasesCommand";
|
|
@@ -85,6 +86,12 @@ export interface SecurityIR {
|
|
|
85
86
|
getCaseAttachmentUploadUrl(args: GetCaseAttachmentUploadUrlCommandInput, options?: SecurityIRRequestOptions): Promise<GetCaseAttachmentUploadUrlCommandOutput>;
|
|
86
87
|
getCaseAttachmentUploadUrl(args: GetCaseAttachmentUploadUrlCommandInput, cb: (err: any, data?: GetCaseAttachmentUploadUrlCommandOutput) => void): void;
|
|
87
88
|
getCaseAttachmentUploadUrl(args: GetCaseAttachmentUploadUrlCommandInput, options: SecurityIRRequestOptions, cb: (err: any, data?: GetCaseAttachmentUploadUrlCommandOutput) => void): void;
|
|
89
|
+
/**
|
|
90
|
+
* @see {@link GetFindingMetricsCommand}
|
|
91
|
+
*/
|
|
92
|
+
getFindingMetrics(args: GetFindingMetricsCommandInput, options?: SecurityIRRequestOptions): Promise<GetFindingMetricsCommandOutput>;
|
|
93
|
+
getFindingMetrics(args: GetFindingMetricsCommandInput, cb: (err: any, data?: GetFindingMetricsCommandOutput) => void): void;
|
|
94
|
+
getFindingMetrics(args: GetFindingMetricsCommandInput, options: SecurityIRRequestOptions, cb: (err: any, data?: GetFindingMetricsCommandOutput) => void): void;
|
|
88
95
|
/**
|
|
89
96
|
* @see {@link GetMembershipCommand}
|
|
90
97
|
*/
|
|
@@ -15,6 +15,7 @@ import type { CreateMembershipCommandInput, CreateMembershipCommandOutput } from
|
|
|
15
15
|
import type { GetCaseAttachmentDownloadUrlCommandInput, GetCaseAttachmentDownloadUrlCommandOutput } from "./commands/GetCaseAttachmentDownloadUrlCommand";
|
|
16
16
|
import type { GetCaseAttachmentUploadUrlCommandInput, GetCaseAttachmentUploadUrlCommandOutput } from "./commands/GetCaseAttachmentUploadUrlCommand";
|
|
17
17
|
import type { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
18
|
+
import type { GetFindingMetricsCommandInput, GetFindingMetricsCommandOutput } from "./commands/GetFindingMetricsCommand";
|
|
18
19
|
import type { GetMembershipCommandInput, GetMembershipCommandOutput } from "./commands/GetMembershipCommand";
|
|
19
20
|
import type { ListCaseEditsCommandInput, ListCaseEditsCommandOutput } from "./commands/ListCaseEditsCommand";
|
|
20
21
|
import type { ListCasesCommandInput, ListCasesCommandOutput } from "./commands/ListCasesCommand";
|
|
@@ -36,11 +37,11 @@ export { __Client };
|
|
|
36
37
|
/**
|
|
37
38
|
* @public
|
|
38
39
|
*/
|
|
39
|
-
export type ServiceInputTypes = BatchGetMemberAccountDetailsCommandInput | CancelMembershipCommandInput | CloseCaseCommandInput | CreateCaseCommandInput | CreateCaseCommentCommandInput | CreateMembershipCommandInput | GetCaseAttachmentDownloadUrlCommandInput | GetCaseAttachmentUploadUrlCommandInput | GetCaseCommandInput | GetMembershipCommandInput | ListCaseEditsCommandInput | ListCasesCommandInput | ListCommentsCommandInput | ListInvestigationsCommandInput | ListMembershipsCommandInput | ListTagsForResourceCommandInput | SendFeedbackCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateCaseCommentCommandInput | UpdateCaseStatusCommandInput | UpdateMembershipCommandInput | UpdateResolverTypeCommandInput;
|
|
40
|
+
export type ServiceInputTypes = BatchGetMemberAccountDetailsCommandInput | CancelMembershipCommandInput | CloseCaseCommandInput | CreateCaseCommandInput | CreateCaseCommentCommandInput | CreateMembershipCommandInput | GetCaseAttachmentDownloadUrlCommandInput | GetCaseAttachmentUploadUrlCommandInput | GetCaseCommandInput | GetFindingMetricsCommandInput | GetMembershipCommandInput | ListCaseEditsCommandInput | ListCasesCommandInput | ListCommentsCommandInput | ListInvestigationsCommandInput | ListMembershipsCommandInput | ListTagsForResourceCommandInput | SendFeedbackCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateCaseCommentCommandInput | UpdateCaseStatusCommandInput | UpdateMembershipCommandInput | UpdateResolverTypeCommandInput;
|
|
40
41
|
/**
|
|
41
42
|
* @public
|
|
42
43
|
*/
|
|
43
|
-
export type ServiceOutputTypes = BatchGetMemberAccountDetailsCommandOutput | CancelMembershipCommandOutput | CloseCaseCommandOutput | CreateCaseCommandOutput | CreateCaseCommentCommandOutput | CreateMembershipCommandOutput | GetCaseAttachmentDownloadUrlCommandOutput | GetCaseAttachmentUploadUrlCommandOutput | GetCaseCommandOutput | GetMembershipCommandOutput | ListCaseEditsCommandOutput | ListCasesCommandOutput | ListCommentsCommandOutput | ListInvestigationsCommandOutput | ListMembershipsCommandOutput | ListTagsForResourceCommandOutput | SendFeedbackCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateCaseCommentCommandOutput | UpdateCaseStatusCommandOutput | UpdateMembershipCommandOutput | UpdateResolverTypeCommandOutput;
|
|
44
|
+
export type ServiceOutputTypes = BatchGetMemberAccountDetailsCommandOutput | CancelMembershipCommandOutput | CloseCaseCommandOutput | CreateCaseCommandOutput | CreateCaseCommentCommandOutput | CreateMembershipCommandOutput | GetCaseAttachmentDownloadUrlCommandOutput | GetCaseAttachmentUploadUrlCommandOutput | GetCaseCommandOutput | GetFindingMetricsCommandOutput | GetMembershipCommandOutput | ListCaseEditsCommandOutput | ListCasesCommandOutput | ListCommentsCommandOutput | ListInvestigationsCommandOutput | ListMembershipsCommandOutput | ListTagsForResourceCommandOutput | SendFeedbackCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateCaseCommentCommandOutput | UpdateCaseStatusCommandOutput | UpdateMembershipCommandOutput | UpdateResolverTypeCommandOutput;
|
|
44
45
|
/**
|
|
45
46
|
* @public
|
|
46
47
|
*/
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetFindingMetricsRequest, GetFindingMetricsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetFindingMetricsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetFindingMetricsCommandInput extends GetFindingMetricsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetFindingMetricsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetFindingMetricsCommandOutput extends GetFindingMetricsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetFindingMetricsCommand_base: {
|
|
22
|
+
new (input: GetFindingMetricsCommandInput): import("@smithy/core/client").CommandImpl<GetFindingMetricsCommandInput, GetFindingMetricsCommandOutput, import("..").SecurityIRClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetFindingMetricsCommandInput): import("@smithy/core/client").CommandImpl<GetFindingMetricsCommandInput, GetFindingMetricsCommandOutput, import("..").SecurityIRClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Returns finding-lifecycle metrics for a membership over a date range.
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SecurityIRClient, GetFindingMetricsCommand } from "@aws-sdk/client-security-ir"; // ES Modules import
|
|
32
|
+
* // const { SecurityIRClient, GetFindingMetricsCommand } = require("@aws-sdk/client-security-ir"); // CommonJS import
|
|
33
|
+
* // import type { SecurityIRClientConfig } from "@aws-sdk/client-security-ir";
|
|
34
|
+
* const config = {}; // type is SecurityIRClientConfig
|
|
35
|
+
* const client = new SecurityIRClient(config);
|
|
36
|
+
* const input = { // GetFindingMetricsRequest
|
|
37
|
+
* membershipId: "STRING_VALUE", // required
|
|
38
|
+
* startDate: new Date("TIMESTAMP"), // required
|
|
39
|
+
* endDate: new Date("TIMESTAMP"), // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetFindingMetricsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetFindingMetricsResponse
|
|
44
|
+
* // findingsIngestedSecurityHub: Number("long"), // required
|
|
45
|
+
* // findingsIngestedGuardDuty: Number("long"), // required
|
|
46
|
+
* // findingsTriaged: Number("long"), // required
|
|
47
|
+
* // findingsTriagedFalsePositive: Number("long"), // required
|
|
48
|
+
* // findingsInvestigated: Number("long"), // required
|
|
49
|
+
* // findingsInvestigatedFalsePositive: Number("long"), // required
|
|
50
|
+
* // findingsEscalated: Number("long"), // required
|
|
51
|
+
* // findingsEscalatedFalsePositive: Number("long"), // required
|
|
52
|
+
* // findingsTruePositive: Number("long"), // required
|
|
53
|
+
* // findingsInvestigatedInProgress: Number("long"), // required
|
|
54
|
+
* // findingsEscalatedInProgress: Number("long"), // required
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param GetFindingMetricsCommandInput - {@link GetFindingMetricsCommandInput}
|
|
60
|
+
* @returns {@link GetFindingMetricsCommandOutput}
|
|
61
|
+
* @see {@link GetFindingMetricsCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link GetFindingMetricsCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link SecurityIRClientResolvedConfig | config} for SecurityIRClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
66
|
+
* <p/>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ConflictException} (client fault)
|
|
69
|
+
* <p/>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InternalServerException} (server fault)
|
|
72
|
+
* <p/>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InvalidTokenException} (client fault)
|
|
75
|
+
* <p/>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p/>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link SecurityIncidentResponseNotActiveException} (client fault)
|
|
81
|
+
* <p/>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
84
|
+
* <p/>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
87
|
+
* <p/>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ValidationException} (client fault)
|
|
90
|
+
* <p/>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link SecurityIRServiceException}
|
|
93
|
+
* <p>Base exception class for all service exceptions from SecurityIR service.</p>
|
|
94
|
+
*
|
|
95
|
+
*
|
|
96
|
+
* @example Retrieve finding-lifecycle metrics for a membership
|
|
97
|
+
* ```javascript
|
|
98
|
+
* //
|
|
99
|
+
* const input = {
|
|
100
|
+
* endDate: "2026-08-18T00:00:00Z",
|
|
101
|
+
* membershipId: "m-a1b2c3d4e5f",
|
|
102
|
+
* startDate: "2026-08-01T00:00:00Z"
|
|
103
|
+
* };
|
|
104
|
+
* const command = new GetFindingMetricsCommand(input);
|
|
105
|
+
* const response = await client.send(command);
|
|
106
|
+
* /* response is
|
|
107
|
+
* {
|
|
108
|
+
* findingsEscalated: 8,
|
|
109
|
+
* findingsEscalatedFalsePositive: 2,
|
|
110
|
+
* findingsEscalatedInProgress: 0,
|
|
111
|
+
* findingsIngestedGuardDuty: 45,
|
|
112
|
+
* findingsIngestedSecurityHub: 120,
|
|
113
|
+
* findingsInvestigated: 60,
|
|
114
|
+
* findingsInvestigatedFalsePositive: 12,
|
|
115
|
+
* findingsInvestigatedInProgress: 40,
|
|
116
|
+
* findingsTriaged: 165,
|
|
117
|
+
* findingsTriagedFalsePositive: 30,
|
|
118
|
+
* findingsTruePositive: 6
|
|
119
|
+
* }
|
|
120
|
+
* *\/
|
|
121
|
+
* ```
|
|
122
|
+
*
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
export declare class GetFindingMetricsCommand extends GetFindingMetricsCommand_base {
|
|
126
|
+
/** @internal type navigation helper, not in runtime. */
|
|
127
|
+
protected static __types: {
|
|
128
|
+
api: {
|
|
129
|
+
input: GetFindingMetricsRequest;
|
|
130
|
+
output: GetFindingMetricsResponse;
|
|
131
|
+
};
|
|
132
|
+
sdk: {
|
|
133
|
+
input: GetFindingMetricsCommandInput;
|
|
134
|
+
output: GetFindingMetricsCommandOutput;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
}
|
|
@@ -7,6 +7,7 @@ export * from "./CreateMembershipCommand";
|
|
|
7
7
|
export * from "./GetCaseAttachmentDownloadUrlCommand";
|
|
8
8
|
export * from "./GetCaseAttachmentUploadUrlCommand";
|
|
9
9
|
export * from "./GetCaseCommand";
|
|
10
|
+
export * from "./GetFindingMetricsCommand";
|
|
10
11
|
export * from "./GetMembershipCommand";
|
|
11
12
|
export * from "./ListCaseEditsCommand";
|
|
12
13
|
export * from "./ListCasesCommand";
|
|
@@ -7,6 +7,7 @@ import { SecurityIRServiceException as __BaseException } from "./SecurityIRServi
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export declare class AccessDeniedException extends __BaseException {
|
|
10
|
+
static readonly shapeId: string;
|
|
10
11
|
readonly name: "AccessDeniedException";
|
|
11
12
|
readonly $fault: "client";
|
|
12
13
|
/**
|
|
@@ -19,6 +20,7 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
19
20
|
* @public
|
|
20
21
|
*/
|
|
21
22
|
export declare class ConflictException extends __BaseException {
|
|
23
|
+
static readonly shapeId: string;
|
|
22
24
|
readonly name: "ConflictException";
|
|
23
25
|
readonly $fault: "client";
|
|
24
26
|
/**
|
|
@@ -41,6 +43,7 @@ export declare class ConflictException extends __BaseException {
|
|
|
41
43
|
* @public
|
|
42
44
|
*/
|
|
43
45
|
export declare class InternalServerException extends __BaseException {
|
|
46
|
+
static readonly shapeId: string;
|
|
44
47
|
readonly name: "InternalServerException";
|
|
45
48
|
readonly $fault: "server";
|
|
46
49
|
$retryable: {};
|
|
@@ -59,6 +62,7 @@ export declare class InternalServerException extends __BaseException {
|
|
|
59
62
|
* @public
|
|
60
63
|
*/
|
|
61
64
|
export declare class InvalidTokenException extends __BaseException {
|
|
65
|
+
static readonly shapeId: string;
|
|
62
66
|
readonly name: "InvalidTokenException";
|
|
63
67
|
readonly $fault: "client";
|
|
64
68
|
$retryable: {};
|
|
@@ -72,6 +76,7 @@ export declare class InvalidTokenException extends __BaseException {
|
|
|
72
76
|
* @public
|
|
73
77
|
*/
|
|
74
78
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
79
|
+
static readonly shapeId: string;
|
|
75
80
|
readonly name: "ResourceNotFoundException";
|
|
76
81
|
readonly $fault: "client";
|
|
77
82
|
/**
|
|
@@ -84,6 +89,7 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
84
89
|
* @public
|
|
85
90
|
*/
|
|
86
91
|
export declare class SecurityIncidentResponseNotActiveException extends __BaseException {
|
|
92
|
+
static readonly shapeId: string;
|
|
87
93
|
readonly name: "SecurityIncidentResponseNotActiveException";
|
|
88
94
|
readonly $fault: "client";
|
|
89
95
|
/**
|
|
@@ -96,6 +102,7 @@ export declare class SecurityIncidentResponseNotActiveException extends __BaseEx
|
|
|
96
102
|
* @public
|
|
97
103
|
*/
|
|
98
104
|
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
105
|
+
static readonly shapeId: string;
|
|
99
106
|
readonly name: "ServiceQuotaExceededException";
|
|
100
107
|
readonly $fault: "client";
|
|
101
108
|
/**
|
|
@@ -128,6 +135,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
|
|
|
128
135
|
* @public
|
|
129
136
|
*/
|
|
130
137
|
export declare class ThrottlingException extends __BaseException {
|
|
138
|
+
static readonly shapeId: string;
|
|
131
139
|
readonly name: "ThrottlingException";
|
|
132
140
|
readonly $fault: "client";
|
|
133
141
|
$retryable: {
|
|
@@ -158,6 +166,7 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
158
166
|
* @public
|
|
159
167
|
*/
|
|
160
168
|
export declare class ValidationException extends __BaseException {
|
|
169
|
+
static readonly shapeId: string;
|
|
161
170
|
readonly name: "ValidationException";
|
|
162
171
|
readonly $fault: "client";
|
|
163
172
|
/**
|
|
@@ -1144,6 +1144,87 @@ export interface CreateMembershipResponse {
|
|
|
1144
1144
|
*/
|
|
1145
1145
|
membershipId: string | undefined;
|
|
1146
1146
|
}
|
|
1147
|
+
/**
|
|
1148
|
+
* @public
|
|
1149
|
+
*/
|
|
1150
|
+
export interface GetFindingMetricsRequest {
|
|
1151
|
+
/**
|
|
1152
|
+
* The membership ID to retrieve metrics for.
|
|
1153
|
+
* @public
|
|
1154
|
+
*/
|
|
1155
|
+
membershipId: string | undefined;
|
|
1156
|
+
/**
|
|
1157
|
+
* The start of the day-aligned UTC window, inclusive.
|
|
1158
|
+
* @public
|
|
1159
|
+
*/
|
|
1160
|
+
startDate: Date | undefined;
|
|
1161
|
+
/**
|
|
1162
|
+
* The end of the day-aligned UTC window, inclusive.
|
|
1163
|
+
* @public
|
|
1164
|
+
*/
|
|
1165
|
+
endDate: Date | undefined;
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* Finding-lifecycle metrics for a membership over the requested date range.
|
|
1169
|
+
* @public
|
|
1170
|
+
*/
|
|
1171
|
+
export interface GetFindingMetricsResponse {
|
|
1172
|
+
/**
|
|
1173
|
+
* The number of findings ingested from AWS Security Hub during the requested date range.
|
|
1174
|
+
* @public
|
|
1175
|
+
*/
|
|
1176
|
+
findingsIngestedSecurityHub: number | undefined;
|
|
1177
|
+
/**
|
|
1178
|
+
* The number of findings ingested from Amazon GuardDuty during the requested date range.
|
|
1179
|
+
* @public
|
|
1180
|
+
*/
|
|
1181
|
+
findingsIngestedGuardDuty: number | undefined;
|
|
1182
|
+
/**
|
|
1183
|
+
* The number of findings triaged during the requested date range.
|
|
1184
|
+
* @public
|
|
1185
|
+
*/
|
|
1186
|
+
findingsTriaged: number | undefined;
|
|
1187
|
+
/**
|
|
1188
|
+
* The number of triaged findings that were closed as false positives during the requested date range.
|
|
1189
|
+
* @public
|
|
1190
|
+
*/
|
|
1191
|
+
findingsTriagedFalsePositive: number | undefined;
|
|
1192
|
+
/**
|
|
1193
|
+
* The number of findings investigated during the requested date range.
|
|
1194
|
+
* @public
|
|
1195
|
+
*/
|
|
1196
|
+
findingsInvestigated: number | undefined;
|
|
1197
|
+
/**
|
|
1198
|
+
* The number of investigated findings that were closed as false positives during the requested date range.
|
|
1199
|
+
* @public
|
|
1200
|
+
*/
|
|
1201
|
+
findingsInvestigatedFalsePositive: number | undefined;
|
|
1202
|
+
/**
|
|
1203
|
+
* The number of findings escalated during the requested date range.
|
|
1204
|
+
* @public
|
|
1205
|
+
*/
|
|
1206
|
+
findingsEscalated: number | undefined;
|
|
1207
|
+
/**
|
|
1208
|
+
* The number of escalated findings that were closed as false positives during the requested date range.
|
|
1209
|
+
* @public
|
|
1210
|
+
*/
|
|
1211
|
+
findingsEscalatedFalsePositive: number | undefined;
|
|
1212
|
+
/**
|
|
1213
|
+
* The number of findings confirmed as true positives during the requested date range.
|
|
1214
|
+
* @public
|
|
1215
|
+
*/
|
|
1216
|
+
findingsTruePositive: number | undefined;
|
|
1217
|
+
/**
|
|
1218
|
+
* The number of findings whose investigation was in progress during the requested date range.
|
|
1219
|
+
* @public
|
|
1220
|
+
*/
|
|
1221
|
+
findingsInvestigatedInProgress: number | undefined;
|
|
1222
|
+
/**
|
|
1223
|
+
* The number of findings whose escalation was in progress during the requested date range.
|
|
1224
|
+
* @public
|
|
1225
|
+
*/
|
|
1226
|
+
findingsEscalatedInProgress: number | undefined;
|
|
1227
|
+
}
|
|
1147
1228
|
/**
|
|
1148
1229
|
* @public
|
|
1149
1230
|
*/
|
|
@@ -37,6 +37,8 @@ export declare var GetCaseAttachmentUploadUrlRequest$: StaticStructureSchema;
|
|
|
37
37
|
export declare var GetCaseAttachmentUploadUrlResponse$: StaticStructureSchema;
|
|
38
38
|
export declare var GetCaseRequest$: StaticStructureSchema;
|
|
39
39
|
export declare var GetCaseResponse$: StaticStructureSchema;
|
|
40
|
+
export declare var GetFindingMetricsRequest$: StaticStructureSchema;
|
|
41
|
+
export declare var GetFindingMetricsResponse$: StaticStructureSchema;
|
|
40
42
|
export declare var GetMembershipAccountDetailError$: StaticStructureSchema;
|
|
41
43
|
export declare var GetMembershipAccountDetailItem$: StaticStructureSchema;
|
|
42
44
|
export declare var GetMembershipRequest$: StaticStructureSchema;
|
|
@@ -91,6 +93,7 @@ export declare var CreateMembership$: StaticOperationSchema;
|
|
|
91
93
|
export declare var GetCase$: StaticOperationSchema;
|
|
92
94
|
export declare var GetCaseAttachmentDownloadUrl$: StaticOperationSchema;
|
|
93
95
|
export declare var GetCaseAttachmentUploadUrl$: StaticOperationSchema;
|
|
96
|
+
export declare var GetFindingMetrics$: StaticOperationSchema;
|
|
94
97
|
export declare var GetMembership$: StaticOperationSchema;
|
|
95
98
|
export declare var ListCaseEdits$: StaticOperationSchema;
|
|
96
99
|
export declare var ListCases$: StaticOperationSchema;
|
|
@@ -31,6 +31,10 @@ import {
|
|
|
31
31
|
GetCaseAttachmentUploadUrlCommandOutput,
|
|
32
32
|
} from "./commands/GetCaseAttachmentUploadUrlCommand";
|
|
33
33
|
import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
34
|
+
import {
|
|
35
|
+
GetFindingMetricsCommandInput,
|
|
36
|
+
GetFindingMetricsCommandOutput,
|
|
37
|
+
} from "./commands/GetFindingMetricsCommand";
|
|
34
38
|
import {
|
|
35
39
|
GetMembershipCommandInput,
|
|
36
40
|
GetMembershipCommandOutput,
|
|
@@ -201,6 +205,19 @@ export interface SecurityIR {
|
|
|
201
205
|
options: SecurityIRRequestOptions,
|
|
202
206
|
cb: (err: any, data?: GetCaseAttachmentUploadUrlCommandOutput) => void,
|
|
203
207
|
): void;
|
|
208
|
+
getFindingMetrics(
|
|
209
|
+
args: GetFindingMetricsCommandInput,
|
|
210
|
+
options?: SecurityIRRequestOptions,
|
|
211
|
+
): Promise<GetFindingMetricsCommandOutput>;
|
|
212
|
+
getFindingMetrics(
|
|
213
|
+
args: GetFindingMetricsCommandInput,
|
|
214
|
+
cb: (err: any, data?: GetFindingMetricsCommandOutput) => void,
|
|
215
|
+
): void;
|
|
216
|
+
getFindingMetrics(
|
|
217
|
+
args: GetFindingMetricsCommandInput,
|
|
218
|
+
options: SecurityIRRequestOptions,
|
|
219
|
+
cb: (err: any, data?: GetFindingMetricsCommandOutput) => void,
|
|
220
|
+
): void;
|
|
204
221
|
getMembership(
|
|
205
222
|
args: GetMembershipCommandInput,
|
|
206
223
|
options?: SecurityIRRequestOptions,
|
|
@@ -60,6 +60,10 @@ import {
|
|
|
60
60
|
GetCaseAttachmentUploadUrlCommandOutput,
|
|
61
61
|
} from "./commands/GetCaseAttachmentUploadUrlCommand";
|
|
62
62
|
import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
63
|
+
import {
|
|
64
|
+
GetFindingMetricsCommandInput,
|
|
65
|
+
GetFindingMetricsCommandOutput,
|
|
66
|
+
} from "./commands/GetFindingMetricsCommand";
|
|
63
67
|
import {
|
|
64
68
|
GetMembershipCommandInput,
|
|
65
69
|
GetMembershipCommandOutput,
|
|
@@ -128,6 +132,7 @@ export type ServiceInputTypes =
|
|
|
128
132
|
| GetCaseAttachmentDownloadUrlCommandInput
|
|
129
133
|
| GetCaseAttachmentUploadUrlCommandInput
|
|
130
134
|
| GetCaseCommandInput
|
|
135
|
+
| GetFindingMetricsCommandInput
|
|
131
136
|
| GetMembershipCommandInput
|
|
132
137
|
| ListCaseEditsCommandInput
|
|
133
138
|
| ListCasesCommandInput
|
|
@@ -153,6 +158,7 @@ export type ServiceOutputTypes =
|
|
|
153
158
|
| GetCaseAttachmentDownloadUrlCommandOutput
|
|
154
159
|
| GetCaseAttachmentUploadUrlCommandOutput
|
|
155
160
|
| GetCaseCommandOutput
|
|
161
|
+
| GetFindingMetricsCommandOutput
|
|
156
162
|
| GetMembershipCommandOutput
|
|
157
163
|
| ListCaseEditsCommandOutput
|
|
158
164
|
| ListCasesCommandOutput
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { GetFindingMetricsRequest, GetFindingMetricsResponse } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface GetFindingMetricsCommandInput extends GetFindingMetricsRequest {}
|
|
5
|
+
export interface GetFindingMetricsCommandOutput
|
|
6
|
+
extends GetFindingMetricsResponse, __MetadataBearer {}
|
|
7
|
+
declare const GetFindingMetricsCommand_base: {
|
|
8
|
+
new (
|
|
9
|
+
input: GetFindingMetricsCommandInput,
|
|
10
|
+
): import("@smithy/core/client").CommandImpl<
|
|
11
|
+
GetFindingMetricsCommandInput,
|
|
12
|
+
GetFindingMetricsCommandOutput,
|
|
13
|
+
import("..").SecurityIRClientResolvedConfig,
|
|
14
|
+
import("..").ServiceInputTypes,
|
|
15
|
+
import("..").ServiceOutputTypes
|
|
16
|
+
>;
|
|
17
|
+
new (
|
|
18
|
+
input: GetFindingMetricsCommandInput,
|
|
19
|
+
): import("@smithy/core/client").CommandImpl<
|
|
20
|
+
GetFindingMetricsCommandInput,
|
|
21
|
+
GetFindingMetricsCommandOutput,
|
|
22
|
+
import("..").SecurityIRClientResolvedConfig,
|
|
23
|
+
import("..").ServiceInputTypes,
|
|
24
|
+
import("..").ServiceOutputTypes
|
|
25
|
+
>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
export declare class GetFindingMetricsCommand extends GetFindingMetricsCommand_base {
|
|
29
|
+
protected static __types: {
|
|
30
|
+
api: {
|
|
31
|
+
input: GetFindingMetricsRequest;
|
|
32
|
+
output: GetFindingMetricsResponse;
|
|
33
|
+
};
|
|
34
|
+
sdk: {
|
|
35
|
+
input: GetFindingMetricsCommandInput;
|
|
36
|
+
output: GetFindingMetricsCommandOutput;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -7,6 +7,7 @@ export * from "./CreateMembershipCommand";
|
|
|
7
7
|
export * from "./GetCaseAttachmentDownloadUrlCommand";
|
|
8
8
|
export * from "./GetCaseAttachmentUploadUrlCommand";
|
|
9
9
|
export * from "./GetCaseCommand";
|
|
10
|
+
export * from "./GetFindingMetricsCommand";
|
|
10
11
|
export * from "./GetMembershipCommand";
|
|
11
12
|
export * from "./ListCaseEditsCommand";
|
|
12
13
|
export * from "./ListCasesCommand";
|
|
@@ -3,11 +3,13 @@ import { ValidationExceptionReason } from "./enums";
|
|
|
3
3
|
import { ValidationExceptionField } from "./models_0";
|
|
4
4
|
import { SecurityIRServiceException as __BaseException } from "./SecurityIRServiceException";
|
|
5
5
|
export declare class AccessDeniedException extends __BaseException {
|
|
6
|
+
static readonly shapeId: string;
|
|
6
7
|
readonly name: "AccessDeniedException";
|
|
7
8
|
readonly $fault: "client";
|
|
8
9
|
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
9
10
|
}
|
|
10
11
|
export declare class ConflictException extends __BaseException {
|
|
12
|
+
static readonly shapeId: string;
|
|
11
13
|
readonly name: "ConflictException";
|
|
12
14
|
readonly $fault: "client";
|
|
13
15
|
resourceId: string | undefined;
|
|
@@ -15,6 +17,7 @@ export declare class ConflictException extends __BaseException {
|
|
|
15
17
|
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
16
18
|
}
|
|
17
19
|
export declare class InternalServerException extends __BaseException {
|
|
20
|
+
static readonly shapeId: string;
|
|
18
21
|
readonly name: "InternalServerException";
|
|
19
22
|
readonly $fault: "server";
|
|
20
23
|
$retryable: {};
|
|
@@ -22,17 +25,20 @@ export declare class InternalServerException extends __BaseException {
|
|
|
22
25
|
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
23
26
|
}
|
|
24
27
|
export declare class InvalidTokenException extends __BaseException {
|
|
28
|
+
static readonly shapeId: string;
|
|
25
29
|
readonly name: "InvalidTokenException";
|
|
26
30
|
readonly $fault: "client";
|
|
27
31
|
$retryable: {};
|
|
28
32
|
constructor(opts: __ExceptionOptionType<InvalidTokenException, __BaseException>);
|
|
29
33
|
}
|
|
30
34
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
35
|
+
static readonly shapeId: string;
|
|
31
36
|
readonly name: "ResourceNotFoundException";
|
|
32
37
|
readonly $fault: "client";
|
|
33
38
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
34
39
|
}
|
|
35
40
|
export declare class SecurityIncidentResponseNotActiveException extends __BaseException {
|
|
41
|
+
static readonly shapeId: string;
|
|
36
42
|
readonly name: "SecurityIncidentResponseNotActiveException";
|
|
37
43
|
readonly $fault: "client";
|
|
38
44
|
constructor(
|
|
@@ -40,6 +46,7 @@ export declare class SecurityIncidentResponseNotActiveException extends __BaseEx
|
|
|
40
46
|
);
|
|
41
47
|
}
|
|
42
48
|
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
49
|
+
static readonly shapeId: string;
|
|
43
50
|
readonly name: "ServiceQuotaExceededException";
|
|
44
51
|
readonly $fault: "client";
|
|
45
52
|
resourceId: string | undefined;
|
|
@@ -49,6 +56,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
|
|
|
49
56
|
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
50
57
|
}
|
|
51
58
|
export declare class ThrottlingException extends __BaseException {
|
|
59
|
+
static readonly shapeId: string;
|
|
52
60
|
readonly name: "ThrottlingException";
|
|
53
61
|
readonly $fault: "client";
|
|
54
62
|
$retryable: {
|
|
@@ -60,6 +68,7 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
60
68
|
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
61
69
|
}
|
|
62
70
|
export declare class ValidationException extends __BaseException {
|
|
71
|
+
static readonly shapeId: string;
|
|
63
72
|
readonly name: "ValidationException";
|
|
64
73
|
readonly $fault: "client";
|
|
65
74
|
reason: ValidationExceptionReason | undefined;
|
|
@@ -292,6 +292,24 @@ export interface CreateMembershipRequest {
|
|
|
292
292
|
export interface CreateMembershipResponse {
|
|
293
293
|
membershipId: string | undefined;
|
|
294
294
|
}
|
|
295
|
+
export interface GetFindingMetricsRequest {
|
|
296
|
+
membershipId: string | undefined;
|
|
297
|
+
startDate: Date | undefined;
|
|
298
|
+
endDate: Date | undefined;
|
|
299
|
+
}
|
|
300
|
+
export interface GetFindingMetricsResponse {
|
|
301
|
+
findingsIngestedSecurityHub: number | undefined;
|
|
302
|
+
findingsIngestedGuardDuty: number | undefined;
|
|
303
|
+
findingsTriaged: number | undefined;
|
|
304
|
+
findingsTriagedFalsePositive: number | undefined;
|
|
305
|
+
findingsInvestigated: number | undefined;
|
|
306
|
+
findingsInvestigatedFalsePositive: number | undefined;
|
|
307
|
+
findingsEscalated: number | undefined;
|
|
308
|
+
findingsEscalatedFalsePositive: number | undefined;
|
|
309
|
+
findingsTruePositive: number | undefined;
|
|
310
|
+
findingsInvestigatedInProgress: number | undefined;
|
|
311
|
+
findingsEscalatedInProgress: number | undefined;
|
|
312
|
+
}
|
|
295
313
|
export interface GetMembershipRequest {
|
|
296
314
|
membershipId: string | undefined;
|
|
297
315
|
}
|
|
@@ -32,6 +32,8 @@ export declare var GetCaseAttachmentUploadUrlRequest$: StaticStructureSchema;
|
|
|
32
32
|
export declare var GetCaseAttachmentUploadUrlResponse$: StaticStructureSchema;
|
|
33
33
|
export declare var GetCaseRequest$: StaticStructureSchema;
|
|
34
34
|
export declare var GetCaseResponse$: StaticStructureSchema;
|
|
35
|
+
export declare var GetFindingMetricsRequest$: StaticStructureSchema;
|
|
36
|
+
export declare var GetFindingMetricsResponse$: StaticStructureSchema;
|
|
35
37
|
export declare var GetMembershipAccountDetailError$: StaticStructureSchema;
|
|
36
38
|
export declare var GetMembershipAccountDetailItem$: StaticStructureSchema;
|
|
37
39
|
export declare var GetMembershipRequest$: StaticStructureSchema;
|
|
@@ -86,6 +88,7 @@ export declare var CreateMembership$: StaticOperationSchema;
|
|
|
86
88
|
export declare var GetCase$: StaticOperationSchema;
|
|
87
89
|
export declare var GetCaseAttachmentDownloadUrl$: StaticOperationSchema;
|
|
88
90
|
export declare var GetCaseAttachmentUploadUrl$: StaticOperationSchema;
|
|
91
|
+
export declare var GetFindingMetrics$: StaticOperationSchema;
|
|
89
92
|
export declare var GetMembership$: StaticOperationSchema;
|
|
90
93
|
export declare var ListCaseEdits$: StaticOperationSchema;
|
|
91
94
|
export declare var ListCases$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-security-ir",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1149.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Security Ir Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-security-ir",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.978.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
49
|
+
"@aws-sdk/core": "^3.978.2",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.85",
|
|
51
51
|
"@aws-sdk/types": "^3.974.6",
|
|
52
|
-
"@smithy/core": "^3.35.
|
|
52
|
+
"@smithy/core": "^3.35.2",
|
|
53
53
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
54
54
|
"@smithy/node-http-handler": "^4.12.1",
|
|
55
55
|
"@smithy/types": "^4.19.0",
|