@aws-sdk/client-detective 3.451.0 → 3.458.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.
Files changed (41) hide show
  1. package/README.md +64 -24
  2. package/dist-cjs/Detective.js +10 -0
  3. package/dist-cjs/commands/GetInvestigationCommand.js +51 -0
  4. package/dist-cjs/commands/ListIndicatorsCommand.js +51 -0
  5. package/dist-cjs/commands/ListInvestigationsCommand.js +51 -0
  6. package/dist-cjs/commands/StartInvestigationCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateInvestigationStateCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +43 -1
  10. package/dist-cjs/protocols/Aws_restJson1.js +394 -1
  11. package/dist-es/Detective.js +10 -0
  12. package/dist-es/commands/GetInvestigationCommand.js +47 -0
  13. package/dist-es/commands/ListIndicatorsCommand.js +47 -0
  14. package/dist-es/commands/ListInvestigationsCommand.js +47 -0
  15. package/dist-es/commands/StartInvestigationCommand.js +47 -0
  16. package/dist-es/commands/UpdateInvestigationStateCommand.js +47 -0
  17. package/dist-es/commands/index.js +5 -0
  18. package/dist-es/models/models_0.js +42 -0
  19. package/dist-es/protocols/Aws_restJson1.js +382 -0
  20. package/dist-types/Detective.d.ts +35 -0
  21. package/dist-types/DetectiveClient.d.ts +7 -2
  22. package/dist-types/commands/CreateMembersCommand.d.ts +2 -2
  23. package/dist-types/commands/GetInvestigationCommand.d.ts +100 -0
  24. package/dist-types/commands/ListIndicatorsCommand.d.ts +144 -0
  25. package/dist-types/commands/ListInvestigationsCommand.d.ts +125 -0
  26. package/dist-types/commands/StartInvestigationCommand.d.ts +93 -0
  27. package/dist-types/commands/UpdateInvestigationStateCommand.d.ts +90 -0
  28. package/dist-types/commands/index.d.ts +5 -0
  29. package/dist-types/models/models_0.d.ts +687 -0
  30. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  31. package/dist-types/ts3.4/Detective.d.ts +85 -0
  32. package/dist-types/ts3.4/DetectiveClient.d.ts +30 -0
  33. package/dist-types/ts3.4/commands/GetInvestigationCommand.d.ts +38 -0
  34. package/dist-types/ts3.4/commands/ListIndicatorsCommand.d.ts +38 -0
  35. package/dist-types/ts3.4/commands/ListInvestigationsCommand.d.ts +39 -0
  36. package/dist-types/ts3.4/commands/StartInvestigationCommand.d.ts +39 -0
  37. package/dist-types/ts3.4/commands/UpdateInvestigationStateCommand.d.ts +38 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  39. package/dist-types/ts3.4/models/models_0.d.ts +186 -0
  40. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  41. package/package.json +3 -3
@@ -214,6 +214,46 @@ export interface DisassociateMembershipRequest {
214
214
  export interface EnableOrganizationAdminAccountRequest {
215
215
  AccountId: string | undefined;
216
216
  }
217
+ export interface GetInvestigationRequest {
218
+ GraphArn: string | undefined;
219
+ InvestigationId: string | undefined;
220
+ }
221
+ export declare const EntityType: {
222
+ readonly IAM_ROLE: "IAM_ROLE";
223
+ readonly IAM_USER: "IAM_USER";
224
+ };
225
+ export type EntityType = (typeof EntityType)[keyof typeof EntityType];
226
+ export declare const Severity: {
227
+ readonly CRITICAL: "CRITICAL";
228
+ readonly HIGH: "HIGH";
229
+ readonly INFORMATIONAL: "INFORMATIONAL";
230
+ readonly LOW: "LOW";
231
+ readonly MEDIUM: "MEDIUM";
232
+ };
233
+ export type Severity = (typeof Severity)[keyof typeof Severity];
234
+ export declare const State: {
235
+ readonly ACTIVE: "ACTIVE";
236
+ readonly ARCHIVED: "ARCHIVED";
237
+ };
238
+ export type State = (typeof State)[keyof typeof State];
239
+ export declare const Status: {
240
+ readonly FAILED: "FAILED";
241
+ readonly RUNNING: "RUNNING";
242
+ readonly SUCCESSFUL: "SUCCESSFUL";
243
+ };
244
+ export type Status = (typeof Status)[keyof typeof Status];
245
+ export interface GetInvestigationResponse {
246
+ GraphArn?: string;
247
+ InvestigationId?: string;
248
+ EntityArn?: string;
249
+ EntityType?: EntityType;
250
+ CreatedTime?: Date;
251
+ ScopeStartTime?: Date;
252
+ ScopeEndTime?: Date;
253
+ Status?: Status;
254
+ Severity?: Severity;
255
+ State?: State;
256
+ }
217
257
  export interface GetMembersRequest {
218
258
  GraphArn: string | undefined;
219
259
  AccountIds: string[] | undefined;
@@ -251,6 +291,138 @@ export interface ListGraphsResponse {
251
291
  GraphList?: Graph[];
252
292
  NextToken?: string;
253
293
  }
294
+ export declare const IndicatorType: {
295
+ readonly FLAGGED_IP_ADDRESS: "FLAGGED_IP_ADDRESS";
296
+ readonly IMPOSSIBLE_TRAVEL: "IMPOSSIBLE_TRAVEL";
297
+ readonly NEW_ASO: "NEW_ASO";
298
+ readonly NEW_GEOLOCATION: "NEW_GEOLOCATION";
299
+ readonly NEW_USER_AGENT: "NEW_USER_AGENT";
300
+ readonly RELATED_FINDING: "RELATED_FINDING";
301
+ readonly RELATED_FINDING_GROUP: "RELATED_FINDING_GROUP";
302
+ readonly TTP_OBSERVED: "TTP_OBSERVED";
303
+ };
304
+ export type IndicatorType = (typeof IndicatorType)[keyof typeof IndicatorType];
305
+ export interface ListIndicatorsRequest {
306
+ GraphArn: string | undefined;
307
+ InvestigationId: string | undefined;
308
+ IndicatorType?: IndicatorType;
309
+ NextToken?: string;
310
+ MaxResults?: number;
311
+ }
312
+ export declare const Reason: {
313
+ readonly AWS_THREAT_INTELLIGENCE: "AWS_THREAT_INTELLIGENCE";
314
+ };
315
+ export type Reason = (typeof Reason)[keyof typeof Reason];
316
+ export interface FlaggedIpAddressDetail {
317
+ IpAddress?: string;
318
+ Reason?: Reason;
319
+ }
320
+ export interface ImpossibleTravelDetail {
321
+ StartingIpAddress?: string;
322
+ EndingIpAddress?: string;
323
+ StartingLocation?: string;
324
+ EndingLocation?: string;
325
+ HourlyTimeDelta?: number;
326
+ }
327
+ export interface NewAsoDetail {
328
+ Aso?: string;
329
+ IsNewForEntireAccount?: boolean;
330
+ }
331
+ export interface NewGeolocationDetail {
332
+ Location?: string;
333
+ IpAddress?: string;
334
+ IsNewForEntireAccount?: boolean;
335
+ }
336
+ export interface NewUserAgentDetail {
337
+ UserAgent?: string;
338
+ IsNewForEntireAccount?: boolean;
339
+ }
340
+ export interface RelatedFindingDetail {
341
+ Arn?: string;
342
+ Type?: string;
343
+ IpAddress?: string;
344
+ }
345
+ export interface RelatedFindingGroupDetail {
346
+ Id?: string;
347
+ }
348
+ export interface TTPsObservedDetail {
349
+ Tactic?: string;
350
+ Technique?: string;
351
+ Procedure?: string;
352
+ IpAddress?: string;
353
+ APIName?: string;
354
+ APISuccessCount?: number;
355
+ APIFailureCount?: number;
356
+ }
357
+ export interface IndicatorDetail {
358
+ TTPsObservedDetail?: TTPsObservedDetail;
359
+ ImpossibleTravelDetail?: ImpossibleTravelDetail;
360
+ FlaggedIpAddressDetail?: FlaggedIpAddressDetail;
361
+ NewGeolocationDetail?: NewGeolocationDetail;
362
+ NewAsoDetail?: NewAsoDetail;
363
+ NewUserAgentDetail?: NewUserAgentDetail;
364
+ RelatedFindingDetail?: RelatedFindingDetail;
365
+ RelatedFindingGroupDetail?: RelatedFindingGroupDetail;
366
+ }
367
+ export interface Indicator {
368
+ IndicatorType?: IndicatorType;
369
+ IndicatorDetail?: IndicatorDetail;
370
+ }
371
+ export interface ListIndicatorsResponse {
372
+ GraphArn?: string;
373
+ InvestigationId?: string;
374
+ NextToken?: string;
375
+ Indicators?: Indicator[];
376
+ }
377
+ export interface DateFilter {
378
+ StartInclusive: Date | undefined;
379
+ EndInclusive: Date | undefined;
380
+ }
381
+ export interface StringFilter {
382
+ Value: string | undefined;
383
+ }
384
+ export interface FilterCriteria {
385
+ Severity?: StringFilter;
386
+ Status?: StringFilter;
387
+ State?: StringFilter;
388
+ EntityArn?: StringFilter;
389
+ CreatedTime?: DateFilter;
390
+ }
391
+ export declare const Field: {
392
+ readonly CREATED_TIME: "CREATED_TIME";
393
+ readonly SEVERITY: "SEVERITY";
394
+ readonly STATUS: "STATUS";
395
+ };
396
+ export type Field = (typeof Field)[keyof typeof Field];
397
+ export declare const SortOrder: {
398
+ readonly ASC: "ASC";
399
+ readonly DESC: "DESC";
400
+ };
401
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
402
+ export interface SortCriteria {
403
+ Field?: Field;
404
+ SortOrder?: SortOrder;
405
+ }
406
+ export interface ListInvestigationsRequest {
407
+ GraphArn: string | undefined;
408
+ NextToken?: string;
409
+ MaxResults?: number;
410
+ FilterCriteria?: FilterCriteria;
411
+ SortCriteria?: SortCriteria;
412
+ }
413
+ export interface InvestigationDetail {
414
+ InvestigationId?: string;
415
+ Severity?: Severity;
416
+ Status?: Status;
417
+ State?: State;
418
+ CreatedTime?: Date;
419
+ EntityArn?: string;
420
+ EntityType?: EntityType;
421
+ }
422
+ export interface ListInvestigationsResponse {
423
+ InvestigationDetails?: InvestigationDetail[];
424
+ NextToken?: string;
425
+ }
254
426
  export interface ListInvitationsRequest {
255
427
  NextToken?: string;
256
428
  MaxResults?: number;
@@ -285,6 +457,15 @@ export interface ListTagsForResourceResponse {
285
457
  export interface RejectInvitationRequest {
286
458
  GraphArn: string | undefined;
287
459
  }
460
+ export interface StartInvestigationRequest {
461
+ GraphArn: string | undefined;
462
+ EntityArn: string | undefined;
463
+ ScopeStartTime: Date | undefined;
464
+ ScopeEndTime: Date | undefined;
465
+ }
466
+ export interface StartInvestigationResponse {
467
+ InvestigationId?: string;
468
+ }
288
469
  export interface StartMonitoringMemberRequest {
289
470
  GraphArn: string | undefined;
290
471
  AccountId: string | undefined;
@@ -303,6 +484,11 @@ export interface UpdateDatasourcePackagesRequest {
303
484
  GraphArn: string | undefined;
304
485
  DatasourcePackages: DatasourcePackage[] | undefined;
305
486
  }
487
+ export interface UpdateInvestigationStateRequest {
488
+ GraphArn: string | undefined;
489
+ InvestigationId: string | undefined;
490
+ State: State | undefined;
491
+ }
306
492
  export interface UpdateOrganizationConfigurationRequest {
307
493
  GraphArn: string | undefined;
308
494
  AutoEnable?: boolean;
@@ -47,6 +47,10 @@ import {
47
47
  EnableOrganizationAdminAccountCommandInput,
48
48
  EnableOrganizationAdminAccountCommandOutput,
49
49
  } from "../commands/EnableOrganizationAdminAccountCommand";
50
+ import {
51
+ GetInvestigationCommandInput,
52
+ GetInvestigationCommandOutput,
53
+ } from "../commands/GetInvestigationCommand";
50
54
  import {
51
55
  GetMembersCommandInput,
52
56
  GetMembersCommandOutput,
@@ -59,6 +63,14 @@ import {
59
63
  ListGraphsCommandInput,
60
64
  ListGraphsCommandOutput,
61
65
  } from "../commands/ListGraphsCommand";
66
+ import {
67
+ ListIndicatorsCommandInput,
68
+ ListIndicatorsCommandOutput,
69
+ } from "../commands/ListIndicatorsCommand";
70
+ import {
71
+ ListInvestigationsCommandInput,
72
+ ListInvestigationsCommandOutput,
73
+ } from "../commands/ListInvestigationsCommand";
62
74
  import {
63
75
  ListInvitationsCommandInput,
64
76
  ListInvitationsCommandOutput,
@@ -79,6 +91,10 @@ import {
79
91
  RejectInvitationCommandInput,
80
92
  RejectInvitationCommandOutput,
81
93
  } from "../commands/RejectInvitationCommand";
94
+ import {
95
+ StartInvestigationCommandInput,
96
+ StartInvestigationCommandOutput,
97
+ } from "../commands/StartInvestigationCommand";
82
98
  import {
83
99
  StartMonitoringMemberCommandInput,
84
100
  StartMonitoringMemberCommandOutput,
@@ -95,6 +111,10 @@ import {
95
111
  UpdateDatasourcePackagesCommandInput,
96
112
  UpdateDatasourcePackagesCommandOutput,
97
113
  } from "../commands/UpdateDatasourcePackagesCommand";
114
+ import {
115
+ UpdateInvestigationStateCommandInput,
116
+ UpdateInvestigationStateCommandOutput,
117
+ } from "../commands/UpdateInvestigationStateCommand";
98
118
  import {
99
119
  UpdateOrganizationConfigurationCommandInput,
100
120
  UpdateOrganizationConfigurationCommandOutput,
@@ -143,6 +163,10 @@ export declare const se_EnableOrganizationAdminAccountCommand: (
143
163
  input: EnableOrganizationAdminAccountCommandInput,
144
164
  context: __SerdeContext
145
165
  ) => Promise<__HttpRequest>;
166
+ export declare const se_GetInvestigationCommand: (
167
+ input: GetInvestigationCommandInput,
168
+ context: __SerdeContext
169
+ ) => Promise<__HttpRequest>;
146
170
  export declare const se_GetMembersCommand: (
147
171
  input: GetMembersCommandInput,
148
172
  context: __SerdeContext
@@ -155,6 +179,14 @@ export declare const se_ListGraphsCommand: (
155
179
  input: ListGraphsCommandInput,
156
180
  context: __SerdeContext
157
181
  ) => Promise<__HttpRequest>;
182
+ export declare const se_ListIndicatorsCommand: (
183
+ input: ListIndicatorsCommandInput,
184
+ context: __SerdeContext
185
+ ) => Promise<__HttpRequest>;
186
+ export declare const se_ListInvestigationsCommand: (
187
+ input: ListInvestigationsCommandInput,
188
+ context: __SerdeContext
189
+ ) => Promise<__HttpRequest>;
158
190
  export declare const se_ListInvitationsCommand: (
159
191
  input: ListInvitationsCommandInput,
160
192
  context: __SerdeContext
@@ -175,6 +207,10 @@ export declare const se_RejectInvitationCommand: (
175
207
  input: RejectInvitationCommandInput,
176
208
  context: __SerdeContext
177
209
  ) => Promise<__HttpRequest>;
210
+ export declare const se_StartInvestigationCommand: (
211
+ input: StartInvestigationCommandInput,
212
+ context: __SerdeContext
213
+ ) => Promise<__HttpRequest>;
178
214
  export declare const se_StartMonitoringMemberCommand: (
179
215
  input: StartMonitoringMemberCommandInput,
180
216
  context: __SerdeContext
@@ -191,6 +227,10 @@ export declare const se_UpdateDatasourcePackagesCommand: (
191
227
  input: UpdateDatasourcePackagesCommandInput,
192
228
  context: __SerdeContext
193
229
  ) => Promise<__HttpRequest>;
230
+ export declare const se_UpdateInvestigationStateCommand: (
231
+ input: UpdateInvestigationStateCommandInput,
232
+ context: __SerdeContext
233
+ ) => Promise<__HttpRequest>;
194
234
  export declare const se_UpdateOrganizationConfigurationCommand: (
195
235
  input: UpdateOrganizationConfigurationCommandInput,
196
236
  context: __SerdeContext
@@ -239,6 +279,10 @@ export declare const de_EnableOrganizationAdminAccountCommand: (
239
279
  output: __HttpResponse,
240
280
  context: __SerdeContext
241
281
  ) => Promise<EnableOrganizationAdminAccountCommandOutput>;
282
+ export declare const de_GetInvestigationCommand: (
283
+ output: __HttpResponse,
284
+ context: __SerdeContext
285
+ ) => Promise<GetInvestigationCommandOutput>;
242
286
  export declare const de_GetMembersCommand: (
243
287
  output: __HttpResponse,
244
288
  context: __SerdeContext
@@ -251,6 +295,14 @@ export declare const de_ListGraphsCommand: (
251
295
  output: __HttpResponse,
252
296
  context: __SerdeContext
253
297
  ) => Promise<ListGraphsCommandOutput>;
298
+ export declare const de_ListIndicatorsCommand: (
299
+ output: __HttpResponse,
300
+ context: __SerdeContext
301
+ ) => Promise<ListIndicatorsCommandOutput>;
302
+ export declare const de_ListInvestigationsCommand: (
303
+ output: __HttpResponse,
304
+ context: __SerdeContext
305
+ ) => Promise<ListInvestigationsCommandOutput>;
254
306
  export declare const de_ListInvitationsCommand: (
255
307
  output: __HttpResponse,
256
308
  context: __SerdeContext
@@ -271,6 +323,10 @@ export declare const de_RejectInvitationCommand: (
271
323
  output: __HttpResponse,
272
324
  context: __SerdeContext
273
325
  ) => Promise<RejectInvitationCommandOutput>;
326
+ export declare const de_StartInvestigationCommand: (
327
+ output: __HttpResponse,
328
+ context: __SerdeContext
329
+ ) => Promise<StartInvestigationCommandOutput>;
274
330
  export declare const de_StartMonitoringMemberCommand: (
275
331
  output: __HttpResponse,
276
332
  context: __SerdeContext
@@ -287,6 +343,10 @@ export declare const de_UpdateDatasourcePackagesCommand: (
287
343
  output: __HttpResponse,
288
344
  context: __SerdeContext
289
345
  ) => Promise<UpdateDatasourcePackagesCommandOutput>;
346
+ export declare const de_UpdateInvestigationStateCommand: (
347
+ output: __HttpResponse,
348
+ context: __SerdeContext
349
+ ) => Promise<UpdateInvestigationStateCommandOutput>;
290
350
  export declare const de_UpdateOrganizationConfigurationCommand: (
291
351
  output: __HttpResponse,
292
352
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-detective",
3
3
  "description": "AWS SDK for JavaScript Detective Client for Node.js, Browser and React Native",
4
- "version": "3.451.0",
4
+ "version": "3.458.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,9 +21,9 @@
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.451.0",
24
+ "@aws-sdk/client-sts": "3.458.0",
25
25
  "@aws-sdk/core": "3.451.0",
26
- "@aws-sdk/credential-provider-node": "3.451.0",
26
+ "@aws-sdk/credential-provider-node": "3.458.0",
27
27
  "@aws-sdk/middleware-host-header": "3.451.0",
28
28
  "@aws-sdk/middleware-logger": "3.451.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.451.0",