Skip to content
v2.278.0

AnalyticsConfigurationProperty Struct ​

Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const analyticsConfigurationProperty: s3.CfnBucket.AnalyticsConfigurationProperty = {
  id: 'id',
  storageClassAnalysis: {
    dataExport: {
      destination: {
        bucketArn: 'bucketArn',
        format: 'format',

        // the properties below are optional
        bucketAccountId: 'bucketAccountId',
        prefix: 'prefix',
      },
      outputSchemaVersion: 'outputSchemaVersion',
    },
  },

  // the properties below are optional
  prefix: 'prefix',
  tagFilters: [{
    key: 'key',
    value: 'value',
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3

analytics_configuration_property = s3.CfnBucket.AnalyticsConfigurationProperty(
    id="id",
    storage_class_analysis=s3.CfnBucket.StorageClassAnalysisProperty(
        data_export=s3.CfnBucket.DataExportProperty(
            destination=s3.CfnBucket.DestinationProperty(
                bucket_arn="bucketArn",
                format="format",

                # the properties below are optional
                bucket_account_id="bucketAccountId",
                prefix="prefix"
            ),
            output_schema_version="outputSchemaVersion"
        )
    ),

    # the properties below are optional
    prefix="prefix",
    tag_filters=[s3.CfnBucket.TagFilterProperty(
        key="key",
        value="value"
    )]
)
java
// 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;

var analyticsConfigurationProperty = new AnalyticsConfigurationProperty {
    Id = "id",
    StorageClassAnalysis = new StorageClassAnalysisProperty {
        DataExport = new DataExportProperty {
            Destination = new DestinationProperty {
                BucketArn = "bucketArn",
                Format = "format",

                // the properties below are optional
                BucketAccountId = "bucketAccountId",
                Prefix = "prefix"
            },
            OutputSchemaVersion = "outputSchemaVersion"
        }
    },

    // the properties below are optional
    Prefix = "prefix",
    TagFilters = new [] { new TagFilterProperty {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

analyticsConfigurationProperty := &AnalyticsConfigurationProperty{
	Id: jsii.String("id"),
	StorageClassAnalysis: &StorageClassAnalysisProperty{
		DataExport: &DataExportProperty{
			Destination: &DestinationProperty{
				BucketArn: jsii.String("bucketArn"),
				Format: jsii.String("format"),

				// the properties below are optional
				BucketAccountId: jsii.String("bucketAccountId"),
				Prefix: jsii.String("prefix"),
			},
			OutputSchemaVersion: jsii.String("outputSchemaVersion"),
		},
	},

	// the properties below are optional
	Prefix: jsii.String("prefix"),
	TagFilters: []interface{}{
		&TagFilterProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

idstringidstridStringIdstringId*string required #
The ID that identifies the analytics configuration.
prefixoptionalstringprefixoptionalstrprefixoptionalStringPrefixoptionalstringPrefixoptional*string #
The prefix that an object must have to be included in the analytics results.
storageClassAnalysisIResolvable | CfnBucket.StorageClassAnalysisPropertystorage_class_analysistyping.Union[IResolvable, StorageClassAnalysisProperty]storageClassAnalysisIResolvableStorageClassAnalysisIResolvableStorageClassAnalysisinterface{} required #
Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes.
tagFiltersoptionalIResolvable | IResolvable | CfnBucket.TagFilterProperty[]tag_filtersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TagFilterProperty]]]tagFiltersoptionalIResolvableTagFiltersoptionalIResolvableTagFiltersoptionalinterface{} #
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.