Skip to content
v2.278.0

DataExportProperty Struct ​

Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.

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 dataExportProperty: s3.CfnBucket.DataExportProperty = {
  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

data_export_property = 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.*;

DataExportProperty dataExportProperty = DataExportProperty.builder()
        .destination(DestinationProperty.builder()
                .bucketArn("bucketArn")
                .format("format")

                // the properties below are optional
                .bucketAccountId("bucketAccountId")
                .prefix("prefix")
                .build())
        .outputSchemaVersion("outputSchemaVersion")
        .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 dataExportProperty = 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"

dataExportProperty := &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 ​

destinationIResolvable | CfnBucket.DestinationPropertydestinationtyping.Union[IResolvable, DestinationProperty]destinationIResolvableDestinationIResolvableDestinationinterface{} required #
The place to store the data for an analysis.
outputSchemaVersionstringoutput_schema_versionstroutputSchemaVersionStringOutputSchemaVersionstringOutputSchemaVersion*string required #
The version of the output schema to use when exporting data.

Must be V_1 .