Interface CfnBucket.AnalyticsConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnBucket.AnalyticsConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnBucket

@Stability(Stable) public static interface CfnBucket.AnalyticsConfigurationProperty extends software.amazon.jsii.JsiiSerializable
Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.s3.*;
 AnalyticsConfigurationProperty analyticsConfigurationProperty = AnalyticsConfigurationProperty.builder()
         .id("id")
         .storageClassAnalysis(StorageClassAnalysisProperty.builder()
                 .dataExport(DataExportProperty.builder()
                         .destination(DestinationProperty.builder()
                                 .bucketArn("bucketArn")
                                 .format("format")
                                 // the properties below are optional
                                 .bucketAccountId("bucketAccountId")
                                 .prefix("prefix")
                                 .build())
                         .outputSchemaVersion("outputSchemaVersion")
                         .build())
                 .build())
         // the properties below are optional
         .prefix("prefix")
         .tagFilters(List.of(TagFilterProperty.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Method Details

    • getId

      @Stability(Stable) @NotNull String getId()
      The ID that identifies the analytics configuration.
    • getStorageClassAnalysis

      @Stability(Stable) @NotNull Object getStorageClassAnalysis()
      Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes.
    • getPrefix

      @Stability(Stable) @Nullable default String getPrefix()
      The prefix that an object must have to be included in the analytics results.
    • getTagFilters

      @Stability(Stable) @Nullable default Object getTagFilters()
      The tags to use when evaluating an analytics filter.

      The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.

    • builder

      @Stability(Stable) static CfnBucket.AnalyticsConfigurationProperty.Builder builder()
      Returns:
      a CfnBucket.AnalyticsConfigurationProperty.Builder of CfnBucket.AnalyticsConfigurationProperty