Bucket
When you configure the bucket where records should be written, you can specify an exact bucket name or you can use an expression that evaluates to a bucket name.
Note: The bucket name must be DNS compliant. For more
information about bucket naming conventions, see the Amazon S3 documentation.
For example, to write to buckets based on data in the Type field, you can use the
following expression to define the bucket: ${record:value('/Type)}
.
With this expression, the destination writes records to buckets based on the data in the Type field. If an expression evaluates to a bucket that does not exist, the destination handles the record based on the error handling configured in the stage.
If you use datetime variables in the expression, be sure to configure the time basis for the stage.