

# S3BucketDestination

A general purpose bucket that S3 Storage Lens exports daily metrics files to. The bucket policy must allow S3 Storage Lens for Tables to write the export files to the bucket.

## Contents
<a name="API_s3Buckets_S3BucketDestination_Contents"></a>

 ** accountId **   <a name="AmazonS3-Type-s3Buckets_S3BucketDestination-accountId"></a>
The ID of the account that owns the bucket.  
Type: String  
Length Constraints: Fixed length of 12.  
Pattern: `[0-9].*`   
Required: Yes

 ** arn **   <a name="AmazonS3-Type-s3Buckets_S3BucketDestination-arn"></a>
The Amazon Resource Name (ARN) of the bucket, such as `arn:aws:s3:::amzn-s3-demo-bucket`.  
Type: String  
Length Constraints: Minimum length of 12. Maximum length of 1024.  
Pattern: `arn:aws[-a-z0-9]*:s3[a-z]*:[-a-z0-9]*:([0-9]{12})?:.+`   
Required: Yes

 ** format **   <a name="AmazonS3-Type-s3Buckets_S3BucketDestination-format"></a>
The format of the export files.  
Type: String  
Valid Values: `CSV | Parquet`   
Required: Yes

 ** outputSchemaVersion **   <a name="AmazonS3-Type-s3Buckets_S3BucketDestination-outputSchemaVersion"></a>
The schema version of the export files.  
Type: String  
Valid Values: `V_1`   
Required: Yes

 ** encryption **   <a name="AmazonS3-Type-s3Buckets_S3BucketDestination-encryption"></a>
The server-side encryption for the export files. To use SSE-KMS, set `sseAlgorithm` to `aws:kms` and specify `kmsKeyArn`. The KMS key must be in the same Region as the configuration.  
Type: [EncryptionConfiguration](API_s3Buckets_EncryptionConfiguration.md) object  
Required: No

 ** prefix **   <a name="AmazonS3-Type-s3Buckets_S3BucketDestination-prefix"></a>
The prefix in the bucket where S3 Storage Lens delivers the export files.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Required: No

## See Also
<a name="API_s3Buckets_S3BucketDestination_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/s3tables-2018-05-10/S3BucketDestination) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/s3tables-2018-05-10/S3BucketDestination) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/s3tables-2018-05-10/S3BucketDestination) 