Interface StorageLensTableDestination.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<StorageLensTableDestination.Builder,,StorageLensTableDestination> SdkBuilder<StorageLensTableDestination.Builder,,StorageLensTableDestination> SdkPojo
- Enclosing class:
StorageLensTableDestination
-
Method Summary
Modifier and TypeMethodDescriptionencryption(Consumer<EncryptionConfiguration.Builder> encryption) The server-side encryption for the tables that S3 Storage Lens exports metrics to.encryption(EncryptionConfiguration encryption) The server-side encryption for the tables that S3 Storage Lens exports metrics to.Specifies whether the export to tables is enabled.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
isEnabled
Specifies whether the export to tables is enabled. When set to
true, S3 Storage Lens exports metrics to tables in addition to any other destinations that you configure.- Parameters:
isEnabled- Specifies whether the export to tables is enabled. When set totrue, S3 Storage Lens exports metrics to tables in addition to any other destinations that you configure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryption
The server-side encryption for the tables that S3 Storage Lens exports metrics to. To use SSE-KMS, set
sseAlgorithmtoaws:kmsand specifykmsKeyArn. The KMS key must be in the same Region as the configuration. After S3 Storage Lens creates the tables, you can't change their encryption.- Parameters:
encryption- The server-side encryption for the tables that S3 Storage Lens exports metrics to. To use SSE-KMS, setsseAlgorithmtoaws:kmsand specifykmsKeyArn. The KMS key must be in the same Region as the configuration. After S3 Storage Lens creates the tables, you can't change their encryption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryption
default StorageLensTableDestination.Builder encryption(Consumer<EncryptionConfiguration.Builder> encryption) The server-side encryption for the tables that S3 Storage Lens exports metrics to. To use SSE-KMS, set
This is a convenience method that creates an instance of thesseAlgorithmtoaws:kmsand specifykmsKeyArn. The KMS key must be in the same Region as the configuration. After S3 Storage Lens creates the tables, you can't change their encryption.EncryptionConfiguration.Builderavoiding the need to create one manually viaEncryptionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toencryption(EncryptionConfiguration).- Parameters:
encryption- a consumer that will call methods onEncryptionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-