Dynamic Bucket Names or Directories in AWS S3 Output

You can use exactly the same method for that output.