Class StorageLensConfiguration

java.lang.Object
software.amazon.awssdk.services.s3tables.model.StorageLensConfiguration
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<StorageLensConfiguration.Builder,StorageLensConfiguration>

@Generated("software.amazon.awssdk:codegen") public final class StorageLensConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StorageLensConfiguration.Builder,StorageLensConfiguration>

An Amazon S3 Storage Lens for Tables configuration.

See Also:
  • Method Details

    • id

      public final String id()

      The ID of the S3 Storage Lens configuration. In a PutStorageLensConfiguration request, it must match storageLensId.

      Returns:
      The ID of the S3 Storage Lens configuration. In a PutStorageLensConfiguration request, it must match storageLensId.
    • advancedMetricsCategories

      public final List<StorageLensMetricsCategoryType> advancedMetricsCategories()

      The metrics categories that S3 Storage Lens collects advanced metrics for. Every configuration includes the basic storage metrics. Advanced metrics are optional and incur charges. To collect only the basic storage metrics, specify an empty list. Each category can appear in the list only once. Valid values:

      • StorageMetrics - How much data your tables store, such as meterable bytes and file counts by Apache Iceberg file type (data files, delete files, metadata files, and manifest files), and each table's maintenance settings. Specify this category to collect the advanced storage metrics in addition to the basic storage metrics.

      • ActivityMetrics - How your tables are accessed, such as request counts by request type, bytes uploaded and downloaded, error counts by status code, and request latency.

      • MaintenanceMetrics - What managed table maintenance did, such as the outcomes of compaction, unreferenced file removal, and snapshot expiration, including the files that each operation removed and any errors that occurred.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasAdvancedMetricsCategories() method.

      Returns:
      The metrics categories that S3 Storage Lens collects advanced metrics for. Every configuration includes the basic storage metrics. Advanced metrics are optional and incur charges. To collect only the basic storage metrics, specify an empty list. Each category can appear in the list only once. Valid values:

      • StorageMetrics - How much data your tables store, such as meterable bytes and file counts by Apache Iceberg file type (data files, delete files, metadata files, and manifest files), and each table's maintenance settings. Specify this category to collect the advanced storage metrics in addition to the basic storage metrics.

      • ActivityMetrics - How your tables are accessed, such as request counts by request type, bytes uploaded and downloaded, error counts by status code, and request latency.

      • MaintenanceMetrics - What managed table maintenance did, such as the outcomes of compaction, unreferenced file removal, and snapshot expiration, including the files that each operation removed and any errors that occurred.

    • hasAdvancedMetricsCategories

      public final boolean hasAdvancedMetricsCategories()
      For responses, this returns true if the service returned a value for the AdvancedMetricsCategories property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • advancedMetricsCategoriesAsStrings

      public final List<String> advancedMetricsCategoriesAsStrings()

      The metrics categories that S3 Storage Lens collects advanced metrics for. Every configuration includes the basic storage metrics. Advanced metrics are optional and incur charges. To collect only the basic storage metrics, specify an empty list. Each category can appear in the list only once. Valid values:

      • StorageMetrics - How much data your tables store, such as meterable bytes and file counts by Apache Iceberg file type (data files, delete files, metadata files, and manifest files), and each table's maintenance settings. Specify this category to collect the advanced storage metrics in addition to the basic storage metrics.

      • ActivityMetrics - How your tables are accessed, such as request counts by request type, bytes uploaded and downloaded, error counts by status code, and request latency.

      • MaintenanceMetrics - What managed table maintenance did, such as the outcomes of compaction, unreferenced file removal, and snapshot expiration, including the files that each operation removed and any errors that occurred.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasAdvancedMetricsCategories() method.

      Returns:
      The metrics categories that S3 Storage Lens collects advanced metrics for. Every configuration includes the basic storage metrics. Advanced metrics are optional and incur charges. To collect only the basic storage metrics, specify an empty list. Each category can appear in the list only once. Valid values:

      • StorageMetrics - How much data your tables store, such as meterable bytes and file counts by Apache Iceberg file type (data files, delete files, metadata files, and manifest files), and each table's maintenance settings. Specify this category to collect the advanced storage metrics in addition to the basic storage metrics.

      • ActivityMetrics - How your tables are accessed, such as request counts by request type, bytes uploaded and downloaded, error counts by status code, and request latency.

      • MaintenanceMetrics - What managed table maintenance did, such as the outcomes of compaction, unreferenced file removal, and snapshot expiration, including the files that each operation removed and any errors that occurred.

    • include

      public final StorageLensScope include()

      The table buckets and Regions to include in the configuration. You can specify include or exclude, but not both. If you specify include, it must contain at least one table bucket or Region.

      Returns:
      The table buckets and Regions to include in the configuration. You can specify include or exclude, but not both. If you specify include, it must contain at least one table bucket or Region.
    • exclude

      public final StorageLensScope exclude()

      The table buckets and Regions to exclude from the configuration. You can specify include or exclude, but not both. If you specify exclude, it must contain at least one table bucket or Region.

      Returns:
      The table buckets and Regions to exclude from the configuration. You can specify include or exclude, but not both. If you specify exclude, it must contain at least one table bucket or Region.
    • dataExport

      public final StorageLensDataExport dataExport()

      The properties of your S3 Storage Lens metrics export, including the destinations, schema, and format. If you specify dataExport, you must specify at least one destination.

      Returns:
      The properties of your S3 Storage Lens metrics export, including the destinations, schema, and format. If you specify dataExport, you must specify at least one destination.
    • isEnabled

      public final Boolean isEnabled()

      Specifies whether the S3 Storage Lens configuration is enabled.

      Returns:
      Specifies whether the S3 Storage Lens configuration is enabled.
    • awsOrg

      public final StorageLensAwsOrg awsOrg()

      The Amazon Web Services organization for an organization-level configuration. To create an organization-level configuration, you must send the request from the organization's management account or from a delegated administrator account for S3 Storage Lens, and trusted access for S3 Storage Lens must be enabled in Amazon Web Services Organizations. An organization-level configuration can't include or exclude specific table buckets.

      Returns:
      The Amazon Web Services organization for an organization-level configuration. To create an organization-level configuration, you must send the request from the organization's management account or from a delegated administrator account for S3 Storage Lens, and trusted access for S3 Storage Lens must be enabled in Amazon Web Services Organizations. An organization-level configuration can't include or exclude specific table buckets.
    • storageLensArn

      public final String storageLensArn()

      The Amazon Resource Name (ARN) of the S3 Storage Lens configuration, such as arn:aws:s3tables:us-east-1:111122223333:storage-lens/example-configuration. This property is read-only. S3 Storage Lens ignores it in a PutStorageLensConfiguration request.

      Returns:
      The Amazon Resource Name (ARN) of the S3 Storage Lens configuration, such as arn:aws:s3tables:us-east-1:111122223333:storage-lens/example-configuration. This property is read-only. S3 Storage Lens ignores it in a PutStorageLensConfiguration request.
    • toBuilder

      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<StorageLensConfiguration.Builder,StorageLensConfiguration>
      Returns:
      a builder for type T
    • builder

      public static StorageLensConfiguration.Builder builder()
    • serializableBuilderClass

      public static Class<? extends StorageLensConfiguration.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.