# StorageLensTableDestinationProperty

This resource configures your S3 Storage Lens reports to export to read-only S3 table buckets.

With this resource, you can store your Storage Lens metrics in S3 Tables that are created in a read-only S3 table bucket called aws-s3.

- Source: Generated at build time
- Type last changed: v2.232.0 · 5 Dec 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';

declare const sses3: any;
const storageLensTableDestinationProperty: s3.CfnStorageLens.StorageLensTableDestinationProperty = {
  isEnabled: false,

  // the properties below are optional
  encryption: {
    ssekms: {
      keyId: 'keyId',
    },
    sses3: sses3,
  },
};
```

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

# sses3: Any

storage_lens_table_destination_property = s3.CfnStorageLens.StorageLensTableDestinationProperty(
    is_enabled=False,

    # the properties below are optional
    encryption=s3.CfnStorageLens.EncryptionProperty(
        ssekms=s3.CfnStorageLens.SSEKMSProperty(
            key_id="keyId"
        ),
        sses3=sses3
    )
)
```

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

Object sses3;

StorageLensTableDestinationProperty storageLensTableDestinationProperty = StorageLensTableDestinationProperty.builder()
        .isEnabled(false)

        // the properties below are optional
        .encryption(EncryptionProperty.builder()
                .ssekms(SSEKMSProperty.builder()
                        .keyId("keyId")
                        .build())
                .sses3(sses3)
                .build())
        .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 sses3;

var storageLensTableDestinationProperty = new StorageLensTableDestinationProperty {
    IsEnabled = false,

    // the properties below are optional
    Encryption = new EncryptionProperty {
        Ssekms = new SSEKMSProperty {
            KeyId = "keyId"
        },
        Sses3 = sses3
    }
};
```

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"

var sses3 interface{}

storageLensTableDestinationProperty := &StorageLensTableDestinationProperty{
	IsEnabled: jsii.Boolean(false),

	// the properties below are optional
	Encryption: &EncryptionProperty{
		Ssekms: &SSEKMSProperty{
			KeyId: jsii.String("keyId"),
		},
		Sses3: sses3,
	},
}
```

## Properties

- `encryption`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStorageLens.EncryptionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.CfnStorageLens.EncryptionProperty.html) — This resource configures your data encryption settings for Storage Lens metrics in read-only S3 table buckets.

- `isEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — This property indicates whether the export to read-only S3 table buckets is enabled for your S3 Storage Lens configuration.

  When set to true, Storage Lens reports are automatically exported to tables in addition to other configured destinations.
