Skip to content

Commit 72fc499

Browse files
author
awstools
committed
feat(client-cloudtrail): This release introduces new APIs for creating and managing CloudTrail Lake dashboards. It also adds support for resource-based policies on CloudTrail EventDataStore and Dashboard resource.
1 parent 6eede48 commit 72fc499

40 files changed

+3449
-220
lines changed

clients/client-cloudtrail/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@ CreateChannel
242242

243243
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/CreateChannelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/CreateChannelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/CreateChannelCommandOutput/)
244244

245+
</details>
246+
<details>
247+
<summary>
248+
CreateDashboard
249+
</summary>
250+
251+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/CreateDashboardCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/CreateDashboardCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/CreateDashboardCommandOutput/)
252+
245253
</details>
246254
<details>
247255
<summary>
@@ -266,6 +274,14 @@ DeleteChannel
266274

267275
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/DeleteChannelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/DeleteChannelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/DeleteChannelCommandOutput/)
268276

277+
</details>
278+
<details>
279+
<summary>
280+
DeleteDashboard
281+
</summary>
282+
283+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/DeleteDashboardCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/DeleteDashboardCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/DeleteDashboardCommandOutput/)
284+
269285
</details>
270286
<details>
271287
<summary>
@@ -346,6 +362,14 @@ GetChannel
346362

347363
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/GetChannelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/GetChannelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/GetChannelCommandOutput/)
348364

365+
</details>
366+
<details>
367+
<summary>
368+
GetDashboard
369+
</summary>
370+
371+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/GetDashboardCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/GetDashboardCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/GetDashboardCommandOutput/)
372+
349373
</details>
350374
<details>
351375
<summary>
@@ -418,6 +442,14 @@ ListChannels
418442

419443
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/ListChannelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/ListChannelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/ListChannelsCommandOutput/)
420444

445+
</details>
446+
<details>
447+
<summary>
448+
ListDashboards
449+
</summary>
450+
451+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/ListDashboardsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/ListDashboardsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/ListDashboardsCommandOutput/)
452+
421453
</details>
422454
<details>
423455
<summary>
@@ -538,6 +570,14 @@ RestoreEventDataStore
538570

539571
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/RestoreEventDataStoreCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/RestoreEventDataStoreCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/RestoreEventDataStoreCommandOutput/)
540572

573+
</details>
574+
<details>
575+
<summary>
576+
StartDashboardRefresh
577+
</summary>
578+
579+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/StartDashboardRefreshCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/StartDashboardRefreshCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/StartDashboardRefreshCommandOutput/)
580+
541581
</details>
542582
<details>
543583
<summary>
@@ -602,6 +642,14 @@ UpdateChannel
602642

603643
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/UpdateChannelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/UpdateChannelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/UpdateChannelCommandOutput/)
604644

645+
</details>
646+
<details>
647+
<summary>
648+
UpdateDashboard
649+
</summary>
650+
651+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/UpdateDashboardCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/UpdateDashboardCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/UpdateDashboardCommandOutput/)
652+
605653
</details>
606654
<details>
607655
<summary>

clients/client-cloudtrail/src/CloudTrail.ts

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import {
1010
CreateChannelCommandInput,
1111
CreateChannelCommandOutput,
1212
} from "./commands/CreateChannelCommand";
13+
import {
14+
CreateDashboardCommand,
15+
CreateDashboardCommandInput,
16+
CreateDashboardCommandOutput,
17+
} from "./commands/CreateDashboardCommand";
1318
import {
1419
CreateEventDataStoreCommand,
1520
CreateEventDataStoreCommandInput,
@@ -21,6 +26,11 @@ import {
2126
DeleteChannelCommandInput,
2227
DeleteChannelCommandOutput,
2328
} from "./commands/DeleteChannelCommand";
29+
import {
30+
DeleteDashboardCommand,
31+
DeleteDashboardCommandInput,
32+
DeleteDashboardCommandOutput,
33+
} from "./commands/DeleteDashboardCommand";
2434
import {
2535
DeleteEventDataStoreCommand,
2636
DeleteEventDataStoreCommandInput,
@@ -63,6 +73,11 @@ import {
6373
GenerateQueryCommandOutput,
6474
} from "./commands/GenerateQueryCommand";
6575
import { GetChannelCommand, GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
76+
import {
77+
GetDashboardCommand,
78+
GetDashboardCommandInput,
79+
GetDashboardCommandOutput,
80+
} from "./commands/GetDashboardCommand";
6681
import {
6782
GetEventDataStoreCommand,
6883
GetEventDataStoreCommandInput,
@@ -100,6 +115,11 @@ import {
100115
ListChannelsCommandInput,
101116
ListChannelsCommandOutput,
102117
} from "./commands/ListChannelsCommand";
118+
import {
119+
ListDashboardsCommand,
120+
ListDashboardsCommandInput,
121+
ListDashboardsCommandOutput,
122+
} from "./commands/ListDashboardsCommand";
103123
import {
104124
ListEventDataStoresCommand,
105125
ListEventDataStoresCommandInput,
@@ -155,6 +175,11 @@ import {
155175
RestoreEventDataStoreCommandInput,
156176
RestoreEventDataStoreCommandOutput,
157177
} from "./commands/RestoreEventDataStoreCommand";
178+
import {
179+
StartDashboardRefreshCommand,
180+
StartDashboardRefreshCommandInput,
181+
StartDashboardRefreshCommandOutput,
182+
} from "./commands/StartDashboardRefreshCommand";
158183
import {
159184
StartEventDataStoreIngestionCommand,
160185
StartEventDataStoreIngestionCommandInput,
@@ -179,6 +204,11 @@ import {
179204
UpdateChannelCommandInput,
180205
UpdateChannelCommandOutput,
181206
} from "./commands/UpdateChannelCommand";
207+
import {
208+
UpdateDashboardCommand,
209+
UpdateDashboardCommandInput,
210+
UpdateDashboardCommandOutput,
211+
} from "./commands/UpdateDashboardCommand";
182212
import {
183213
UpdateEventDataStoreCommand,
184214
UpdateEventDataStoreCommandInput,
@@ -190,9 +220,11 @@ const commands = {
190220
AddTagsCommand,
191221
CancelQueryCommand,
192222
CreateChannelCommand,
223+
CreateDashboardCommand,
193224
CreateEventDataStoreCommand,
194225
CreateTrailCommand,
195226
DeleteChannelCommand,
227+
DeleteDashboardCommand,
196228
DeleteEventDataStoreCommand,
197229
DeleteResourcePolicyCommand,
198230
DeleteTrailCommand,
@@ -203,6 +235,7 @@ const commands = {
203235
EnableFederationCommand,
204236
GenerateQueryCommand,
205237
GetChannelCommand,
238+
GetDashboardCommand,
206239
GetEventDataStoreCommand,
207240
GetEventSelectorsCommand,
208241
GetImportCommand,
@@ -212,6 +245,7 @@ const commands = {
212245
GetTrailCommand,
213246
GetTrailStatusCommand,
214247
ListChannelsCommand,
248+
ListDashboardsCommand,
215249
ListEventDataStoresCommand,
216250
ListImportFailuresCommand,
217251
ListImportsCommand,
@@ -227,6 +261,7 @@ const commands = {
227261
RegisterOrganizationDelegatedAdminCommand,
228262
RemoveTagsCommand,
229263
RestoreEventDataStoreCommand,
264+
StartDashboardRefreshCommand,
230265
StartEventDataStoreIngestionCommand,
231266
StartImportCommand,
232267
StartLoggingCommand,
@@ -235,6 +270,7 @@ const commands = {
235270
StopImportCommand,
236271
StopLoggingCommand,
237272
UpdateChannelCommand,
273+
UpdateDashboardCommand,
238274
UpdateEventDataStoreCommand,
239275
UpdateTrailCommand,
240276
};
@@ -273,6 +309,20 @@ export interface CloudTrail {
273309
cb: (err: any, data?: CreateChannelCommandOutput) => void
274310
): void;
275311

312+
/**
313+
* @see {@link CreateDashboardCommand}
314+
*/
315+
createDashboard(
316+
args: CreateDashboardCommandInput,
317+
options?: __HttpHandlerOptions
318+
): Promise<CreateDashboardCommandOutput>;
319+
createDashboard(args: CreateDashboardCommandInput, cb: (err: any, data?: CreateDashboardCommandOutput) => void): void;
320+
createDashboard(
321+
args: CreateDashboardCommandInput,
322+
options: __HttpHandlerOptions,
323+
cb: (err: any, data?: CreateDashboardCommandOutput) => void
324+
): void;
325+
276326
/**
277327
* @see {@link CreateEventDataStoreCommand}
278328
*/
@@ -312,6 +362,20 @@ export interface CloudTrail {
312362
cb: (err: any, data?: DeleteChannelCommandOutput) => void
313363
): void;
314364

365+
/**
366+
* @see {@link DeleteDashboardCommand}
367+
*/
368+
deleteDashboard(
369+
args: DeleteDashboardCommandInput,
370+
options?: __HttpHandlerOptions
371+
): Promise<DeleteDashboardCommandOutput>;
372+
deleteDashboard(args: DeleteDashboardCommandInput, cb: (err: any, data?: DeleteDashboardCommandOutput) => void): void;
373+
deleteDashboard(
374+
args: DeleteDashboardCommandInput,
375+
options: __HttpHandlerOptions,
376+
cb: (err: any, data?: DeleteDashboardCommandOutput) => void
377+
): void;
378+
315379
/**
316380
* @see {@link DeleteEventDataStoreCommand}
317381
*/
@@ -457,6 +521,17 @@ export interface CloudTrail {
457521
cb: (err: any, data?: GetChannelCommandOutput) => void
458522
): void;
459523

524+
/**
525+
* @see {@link GetDashboardCommand}
526+
*/
527+
getDashboard(args: GetDashboardCommandInput, options?: __HttpHandlerOptions): Promise<GetDashboardCommandOutput>;
528+
getDashboard(args: GetDashboardCommandInput, cb: (err: any, data?: GetDashboardCommandOutput) => void): void;
529+
getDashboard(
530+
args: GetDashboardCommandInput,
531+
options: __HttpHandlerOptions,
532+
cb: (err: any, data?: GetDashboardCommandOutput) => void
533+
): void;
534+
460535
/**
461536
* @see {@link GetEventDataStoreCommand}
462537
*/
@@ -588,6 +663,21 @@ export interface CloudTrail {
588663
cb: (err: any, data?: ListChannelsCommandOutput) => void
589664
): void;
590665

666+
/**
667+
* @see {@link ListDashboardsCommand}
668+
*/
669+
listDashboards(): Promise<ListDashboardsCommandOutput>;
670+
listDashboards(
671+
args: ListDashboardsCommandInput,
672+
options?: __HttpHandlerOptions
673+
): Promise<ListDashboardsCommandOutput>;
674+
listDashboards(args: ListDashboardsCommandInput, cb: (err: any, data?: ListDashboardsCommandOutput) => void): void;
675+
listDashboards(
676+
args: ListDashboardsCommandInput,
677+
options: __HttpHandlerOptions,
678+
cb: (err: any, data?: ListDashboardsCommandOutput) => void
679+
): void;
680+
591681
/**
592682
* @see {@link ListEventDataStoresCommand}
593683
*/
@@ -809,6 +899,23 @@ export interface CloudTrail {
809899
cb: (err: any, data?: RestoreEventDataStoreCommandOutput) => void
810900
): void;
811901

902+
/**
903+
* @see {@link StartDashboardRefreshCommand}
904+
*/
905+
startDashboardRefresh(
906+
args: StartDashboardRefreshCommandInput,
907+
options?: __HttpHandlerOptions
908+
): Promise<StartDashboardRefreshCommandOutput>;
909+
startDashboardRefresh(
910+
args: StartDashboardRefreshCommandInput,
911+
cb: (err: any, data?: StartDashboardRefreshCommandOutput) => void
912+
): void;
913+
startDashboardRefresh(
914+
args: StartDashboardRefreshCommandInput,
915+
options: __HttpHandlerOptions,
916+
cb: (err: any, data?: StartDashboardRefreshCommandOutput) => void
917+
): void;
918+
812919
/**
813920
* @see {@link StartEventDataStoreIngestionCommand}
814921
*/
@@ -911,6 +1018,20 @@ export interface CloudTrail {
9111018
cb: (err: any, data?: UpdateChannelCommandOutput) => void
9121019
): void;
9131020

1021+
/**
1022+
* @see {@link UpdateDashboardCommand}
1023+
*/
1024+
updateDashboard(
1025+
args: UpdateDashboardCommandInput,
1026+
options?: __HttpHandlerOptions
1027+
): Promise<UpdateDashboardCommandOutput>;
1028+
updateDashboard(args: UpdateDashboardCommandInput, cb: (err: any, data?: UpdateDashboardCommandOutput) => void): void;
1029+
updateDashboard(
1030+
args: UpdateDashboardCommandInput,
1031+
options: __HttpHandlerOptions,
1032+
cb: (err: any, data?: UpdateDashboardCommandOutput) => void
1033+
): void;
1034+
9141035
/**
9151036
* @see {@link UpdateEventDataStoreCommand}
9161037
*/

0 commit comments

Comments
 (0)