# StorageClassAnalysisProperty

Specifies data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes for an Amazon S3 bucket.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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 storageClassAnalysisProperty: s3.CfnBucket.StorageClassAnalysisProperty = {
  dataExport: {
    destination: {
      bucketArn: 'bucketArn',
      format: 'format',

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

Python:

```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

storage_class_analysis_property = 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"
    )
)
```

Java:

```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.*;

StorageClassAnalysisProperty storageClassAnalysisProperty = 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();
```

C# / .NET:

```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 storageClassAnalysisProperty = new StorageClassAnalysisProperty {
    DataExport = new DataExportProperty {
        Destination = new DestinationProperty {
            BucketArn = "bucketArn",
            Format = "format",

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

Golang:

```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"

storageClassAnalysisProperty := &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"),
	},
}
```

## Properties

- `dataExport`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBucket.DataExportProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.CfnBucket.DataExportProperty.html) — Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.
