StorageClassAnalysisProperty Struct
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 | |
|---|---|
| Type last changed |
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 storageClassAnalysisProperty: s3.CfnBucket.StorageClassAnalysisProperty = {
dataExport: {
destination: {
bucketArn: 'bucketArn',
format: 'format',
// the properties below are optional
bucketAccountId: 'bucketAccountId',
prefix: 'prefix',
},
outputSchemaVersion: 'outputSchemaVersion',
},
};
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
// 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();
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"
}
};
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
dataExportoptionalIResolvable | CfnBucket.DataExportPropertydata_exportoptionaltyping.Union[IResolvable, DataExportProperty]dataExportoptionalIResolvableDataExportoptionalIResolvableDataExportoptionalinterface{} #Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.