# MetadataDestinationProperty

The destination information for the S3 Metadata configuration.

- Source: Generated at build time
- Type last changed: v2.208.0 · 29 Jul 2025

## 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 metadataDestinationProperty: s3.CfnBucket.MetadataDestinationProperty = {
  tableBucketType: 'tableBucketType',

  // the properties below are optional
  tableBucketArn: 'tableBucketArn',
  tableNamespace: 'tableNamespace',
};
```

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

metadata_destination_property = s3.CfnBucket.MetadataDestinationProperty(
    table_bucket_type="tableBucketType",

    # the properties below are optional
    table_bucket_arn="tableBucketArn",
    table_namespace="tableNamespace"
)
```

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

MetadataDestinationProperty metadataDestinationProperty = MetadataDestinationProperty.builder()
        .tableBucketType("tableBucketType")

        // the properties below are optional
        .tableBucketArn("tableBucketArn")
        .tableNamespace("tableNamespace")
        .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 metadataDestinationProperty = new MetadataDestinationProperty {
    TableBucketType = "tableBucketType",

    // the properties below are optional
    TableBucketArn = "tableBucketArn",
    TableNamespace = "tableNamespace"
};
```

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"

metadataDestinationProperty := &MetadataDestinationProperty{
	TableBucketType: jsii.String("tableBucketType"),

	// the properties below are optional
	TableBucketArn: jsii.String("tableBucketArn"),
	TableNamespace: jsii.String("tableNamespace"),
}
```

## Properties

- `tableBucketArn`: string — The Amazon Resource Name (ARN) of the table bucket where the metadata configuration is stored.

- `tableBucketType`: string (required) — The type of the table bucket where the metadata configuration is stored.

  The `aws` value indicates an AWS managed table bucket, and the `customer` value indicates a customer-managed table bucket. V2 metadata configurations are stored in AWS managed table buckets, and V1 metadata configurations are stored in customer-managed table buckets.

- `tableNamespace`: string — The namespace in the table bucket where the metadata tables for a metadata configuration are stored.
