Skip to content
v2.278.0

DestinationProperty Struct ​

Specifies information about where to publish analysis or configuration results for 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 destinationProperty: s3.CfnBucket.DestinationProperty = {
  bucketArn: 'bucketArn',
  format: 'format',

  // the properties below are optional
  bucketAccountId: 'bucketAccountId',
  prefix: 'prefix',
};
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

destination_property = s3.CfnBucket.DestinationProperty(
    bucket_arn="bucketArn",
    format="format",

    # the properties below are optional
    bucket_account_id="bucketAccountId",
    prefix="prefix"
)
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.*;

DestinationProperty destinationProperty = DestinationProperty.builder()
        .bucketArn("bucketArn")
        .format("format")

        // the properties below are optional
        .bucketAccountId("bucketAccountId")
        .prefix("prefix")
        .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 destinationProperty = new DestinationProperty {
    BucketArn = "bucketArn",
    Format = "format",

    // the properties below are optional
    BucketAccountId = "bucketAccountId",
    Prefix = "prefix"
};
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"

destinationProperty := &DestinationProperty{
	BucketArn: jsii.String("bucketArn"),
	Format: jsii.String("format"),

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

Properties ​

bucketAccountIdoptionalstringbucket_account_idoptionalstrbucketAccountIdoptionalStringBucketAccountIdoptionalstringBucketAccountIdoptional*string #
The account ID that owns the destination S3 bucket.

If no account ID is provided, the owner is not validated before exporting data.

Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.

bucketArnstringbucket_arnstrbucketArnStringBucketArnstringBucketArn*string required #
The Amazon Resource Name (ARN) of the bucket to which data is exported.
formatstringformatstrformatStringFormatstringFormat*string required #
Specifies the file format used when exporting data to Amazon S3.

Allowed values : CSV | ORC | Parquet

prefixoptionalstringprefixoptionalstrprefixoptionalStringPrefixoptionalstringPrefixoptional*string #
The prefix to use when exporting data.

The prefix is prepended to all results.