Class StorageLensConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StorageLensConfiguration.Builder,StorageLensConfiguration>
An Amazon S3 Storage Lens for Tables configuration.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe metrics categories that S3 Storage Lens collects advanced metrics for.The metrics categories that S3 Storage Lens collects advanced metrics for.final StorageLensAwsOrgawsOrg()The Amazon Web Services organization for an organization-level configuration.builder()final StorageLensDataExportThe properties of your S3 Storage Lens metrics export, including the destinations, schema, and format.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StorageLensScopeexclude()The table buckets and Regions to exclude from the configuration.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the AdvancedMetricsCategories property.final inthashCode()final Stringid()The ID of the S3 Storage Lens configuration.final StorageLensScopeinclude()The table buckets and Regions to include in the configuration.final BooleanSpecifies whether the S3 Storage Lens configuration is enabled.static Class<? extends StorageLensConfiguration.Builder> final StringThe Amazon Resource Name (ARN) of the S3 Storage Lens configuration, such asarn:aws:s3tables:us-east-1:111122223333:storage-lens/example-configuration.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The ID of the S3 Storage Lens configuration. In a
PutStorageLensConfigurationrequest, it must matchstorageLensId.- Returns:
- The ID of the S3 Storage Lens configuration. In a
PutStorageLensConfigurationrequest, it must matchstorageLensId.
-
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 theisEmpty()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
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
The table buckets and Regions to include in the configuration. You can specify
includeorexclude, but not both. If you specifyinclude, it must contain at least one table bucket or Region.- Returns:
- The table buckets and Regions to include in the configuration. You can specify
includeorexclude, but not both. If you specifyinclude, it must contain at least one table bucket or Region.
-
exclude
The table buckets and Regions to exclude from the configuration. You can specify
includeorexclude, but not both. If you specifyexclude, it must contain at least one table bucket or Region.- Returns:
- The table buckets and Regions to exclude from the configuration. You can specify
includeorexclude, but not both. If you specifyexclude, it must contain at least one table bucket or Region.
-
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
Specifies whether the S3 Storage Lens configuration is enabled.
- Returns:
- Specifies whether the S3 Storage Lens configuration is enabled.
-
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
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 aPutStorageLensConfigurationrequest.- 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 aPutStorageLensConfigurationrequest.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<StorageLensConfiguration.Builder,StorageLensConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-