Disable an Amazon S3 Storage Lens for Tables dashboard
You can stop Amazon S3 Storage Lens for Tables from collecting metrics without deleting the configuration by disabling it. A disabled dashboard stops receiving new daily metrics. You can still view its existing metrics until they age out: 14 days for free tier metrics and 15 months for advanced tier metrics. A disabled configuration is preserved, so you can turn it back on later. To stop collecting metrics permanently and remove the configuration, see Delete an Amazon S3 Storage Lens for Tables dashboard instead.
The default dashboard (default-account-dashboard-table) can be disabled but
not deleted.
Use the following steps to disable an Amazon S3 Storage Lens for Tables dashboard on the Amazon S3 console. A disabled configuration is preserved and stops being updated. You can still view its existing metrics until they age out: 14 days for free tier metrics and 15 months for advanced tier metrics.
To disable an Amazon S3 Storage Lens for Tables dashboard
Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/
. -
In the left navigation pane, choose Storage Lens, and then choose the Table buckets tab.
-
In the list of dashboards, choose the dashboard that you want to disable.
-
On the dashboard, choose Disable.
-
In the Disable dialog box, to confirm, type the name of the S3 Tables dashboard, and then choose Disable.
You disable a configuration by calling put-storage-lens-configuration with
isEnabled set to false.
The put-storage-lens-configuration operation replaces the entire
configuration. Include the dashboard's existing settings, such as its scope, advanced tier
categories, CloudWatch publishing, and export destination, so that disabling the dashboard
doesn't also remove them. To get the current configuration, use
get-storage-lens-configuration.
Example
The following example command disables an Amazon S3 Storage Lens for Tables configuration.
To use this example, replace the with your own information.user input
placeholders
aws s3tables put-storage-lens-configuration --storage-lens-id=your-configuration-id--storage-lens-configuration=file://./config.json
In config.json, set isEnabled to false,
keeping the rest of your existing configuration.
The putStorageLensConfiguration operation replaces the entire
configuration. Build the complete StorageLensConfiguration with your existing
settings and isEnabled(false), so that disabling the dashboard doesn't also
remove your scope, advanced tier categories, CloudWatch publishing, and export destination. To
get the current configuration, use getStorageLensConfiguration.
The following example disables an Amazon S3 Storage Lens for Tables configuration in SDK for Java.
To use this example, replace the with your own information.user input
placeholders
Example– Disable an Amazon S3 Storage Lens for Tables configuration
import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.s3tables.S3TablesClient; import software.amazon.awssdk.services.s3tables.model.GetStorageLensConfigurationRequest; import software.amazon.awssdk.services.s3tables.model.PutStorageLensConfigurationRequest; import software.amazon.awssdk.services.s3tables.model.StorageLensConfiguration; public class DisableStorageLensConfiguration { public static void main(String[] args) { String storageLensId = "your-configuration-id"; try (S3TablesClient s3TablesClient = S3TablesClient.builder() .region(Region.US_EAST_1) .build()) { // Get the existing configuration so that its other settings are preserved. StorageLensConfiguration existing = s3TablesClient.getStorageLensConfiguration( GetStorageLensConfigurationRequest.builder() .storageLensId(storageLensId) .build()) .storageLensConfiguration(); // Disable the configuration while keeping all other settings. StorageLensConfiguration configuration = existing.toBuilder() .isEnabled(false) .build(); s3TablesClient.putStorageLensConfiguration(PutStorageLensConfigurationRequest.builder() .storageLensId(storageLensId) .storageLensConfiguration(configuration) .build()); } } }