# StorageLensExpandedPrefixesDataExportProperty

This resource specifies the properties of your S3 Storage Lens Expanded Prefixes metrics export.

- 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 storageLensExpandedPrefixesDataExportProperty: s3.CfnStorageLens.StorageLensExpandedPrefixesDataExportProperty = {
  s3BucketDestination: {
    accountId: 'accountId',
    arn: 'arn',
    format: 'format',
    outputSchemaVersion: 'outputSchemaVersion',

    // the properties below are optional
    encryption: {
      ssekms: {
        keyId: 'keyId',
      },
      sses3: sses3,
    },
    prefix: 'prefix',
  },
  storageLensTableDestination: {
    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_expanded_prefixes_data_export_property = s3.CfnStorageLens.StorageLensExpandedPrefixesDataExportProperty(
    s3_bucket_destination=s3.CfnStorageLens.S3BucketDestinationProperty(
        account_id="accountId",
        arn="arn",
        format="format",
        output_schema_version="outputSchemaVersion",

        # the properties below are optional
        encryption=s3.CfnStorageLens.EncryptionProperty(
            ssekms=s3.CfnStorageLens.SSEKMSProperty(
                key_id="keyId"
            ),
            sses3=sses3
        ),
        prefix="prefix"
    ),
    storage_lens_table_destination=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;

StorageLensExpandedPrefixesDataExportProperty storageLensExpandedPrefixesDataExportProperty = StorageLensExpandedPrefixesDataExportProperty.builder()
        .s3BucketDestination(S3BucketDestinationProperty.builder()
                .accountId("accountId")
                .arn("arn")
                .format("format")
                .outputSchemaVersion("outputSchemaVersion")

                // the properties below are optional
                .encryption(EncryptionProperty.builder()
                        .ssekms(SSEKMSProperty.builder()
                                .keyId("keyId")
                                .build())
                        .sses3(sses3)
                        .build())
                .prefix("prefix")
                .build())
        .storageLensTableDestination(StorageLensTableDestinationProperty.builder()
                .isEnabled(false)

                // the properties below are optional
                .encryption(EncryptionProperty.builder()
                        .ssekms(SSEKMSProperty.builder()
                                .keyId("keyId")
                                .build())
                        .sses3(sses3)
                        .build())
                .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 storageLensExpandedPrefixesDataExportProperty = new StorageLensExpandedPrefixesDataExportProperty {
    S3BucketDestination = new S3BucketDestinationProperty {
        AccountId = "accountId",
        Arn = "arn",
        Format = "format",
        OutputSchemaVersion = "outputSchemaVersion",

        // the properties below are optional
        Encryption = new EncryptionProperty {
            Ssekms = new SSEKMSProperty {
                KeyId = "keyId"
            },
            Sses3 = sses3
        },
        Prefix = "prefix"
    },
    StorageLensTableDestination = 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{}

storageLensExpandedPrefixesDataExportProperty := &StorageLensExpandedPrefixesDataExportProperty{
	S3BucketDestination: &S3BucketDestinationProperty{
		AccountId: jsii.String("accountId"),
		Arn: jsii.String("arn"),
		Format: jsii.String("format"),
		OutputSchemaVersion: jsii.String("outputSchemaVersion"),

		// the properties below are optional
		Encryption: &EncryptionProperty{
			Ssekms: &SSEKMSProperty{
				KeyId: jsii.String("keyId"),
			},
			Sses3: sses3,
		},
		Prefix: jsii.String("prefix"),
	},
	StorageLensTableDestination: &StorageLensTableDestinationProperty{
		IsEnabled: jsii.Boolean(false),

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

## Properties

- `s3BucketDestination`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStorageLens.S3BucketDestinationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.CfnStorageLens.S3BucketDestinationProperty.html) — This property specifies the general purpose bucket where the S3 Storage Lens Expanded Prefixes metrics export files are located.

  At least one export destination must be specified.

- `storageLensTableDestination`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStorageLens.StorageLensTableDestinationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.CfnStorageLens.StorageLensTableDestinationProperty.html) — This property configures S3 Storage Lens Expanded Prefixes metrics report to read-only S3 table buckets.
