Create, update, and manage dashboards with the Amazon CLI - Amazon CloudTrail
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Create, update, and manage dashboards with the Amazon CLI

This section describes the Amazon CLI commands you can use to create, update, and manage your CloudTrail Lake dashboards.

When using the Amazon CLI, remember that your commands run in the Amazon Web Services Region configured for your profile. If you want to run the commands in a different Region, either change the default Region for your profile, or use the --region parameter with the command.

Available commands for dashboards

Commands for creating and updating dashboards in CloudTrail Lake include:

  • create-dashboard to create a custom dashboard or enable the Highlights dashboard.

  • update-dashboard to update a custom dashboard or the Highlights dashboard.

  • delete-dashboard to delete a custom dashboard or the Highlights dashboard.

  • get-dashboard returns information about the specified dashboard.

  • list-dashboards lists all dashboards for your Amazon Web Services account, or for the specified filter.

  • start-dashboard-refresh starts a refresh of the dashboard.

  • get-resource-policy gets the resource-based policy attached to the dashboard.

  • put-resource-policy attaches a resource-based policy to a dashboard to allow CloudTrail to refresh the dashboard asynchronously on your behalf. You also attach a resource-based policy to an event data store to allow CloudTrail to run queries on the event data store to populate the data for dashboard widgets.

  • delete-resource-policy removes the resource-based policy attached to a dashboard.

  • add-tags adds tags to identify the dashboard.

  • remove-tags removes tags from a dashboard.

  • list-tags lists tags for a dashboard.

For a list of available commands for CloudTrail Lake event data stores, see Available commands for event data stores.

For a list of available commands for CloudTrail Lake queries, see Available commands for CloudTrail Lake queries.

For a list of available commands for CloudTrail Lake integrations, see Available commands for CloudTrail Lake integrations.

Topics: