In the following directory structure, how to get a list of directories directly under a bucket or "dir_A1/dir_B1" in JSON. s3://bucket_1/ dir_A1/ dir_B1/ dir_C1/ dir_C2/ dir_C3/ dir_A2/ dir_A3/ When directly under the bucket $ aws s3api list-object-v2 --bucket 'bucket_1' --prefix '' --delimiter '/'…