# DestinationProperty

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

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

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

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

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

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

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

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

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

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"

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

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

## Properties

- `bucketAccountId`: 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.

- `bucketArn`: string (required) — The Amazon Resource Name (ARN) of the bucket to which data is exported.

- `format`: string (required) — Specifies the file format used when exporting data to Amazon S3.

  *Allowed values* : `CSV` | `ORC` | `Parquet`

- `prefix`: string — The prefix to use when exporting data.

  The prefix is prepended to all results.
