From d90ebd12d7c047448048e30949109270cf1fff95 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 17 Jan 2022 18:18:23 -0800 Subject: [PATCH] Fixed example output for list-buckets --details --- README.md | 52 +++++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 1c1fb12..4702fc9 100644 --- a/README.md +++ b/README.md @@ -241,35 +241,37 @@ Add `--details` to include details of the bucket ACL, website configuration and Using `--details` adds three additional API calls for each bucket, so it is advisable to use it with one or more explicit bucket names. ``` % s3-credentials list-buckets simonw-test-public-website-bucket --details -{ - "Name": "simonw-test-public-website-bucket", - "CreationDate": "2021-11-08 22:53:30+00:00", - "bucket_acl": { - "Owner": { - "DisplayName": "simon", - "ID": "abcdeabcdeabcdeabcdeabcdeabcde0001" +[ + { + "Name": "simonw-test-public-website-bucket", + "CreationDate": "2021-11-08 22:53:30+00:00", + "bucket_acl": { + "Owner": { + "DisplayName": "simon", + "ID": "abcdeabcdeabcdeabcdeabcdeabcde0001" + }, + "Grants": [ + { + "Grantee": { + "DisplayName": "simon", + "ID": "abcdeabcdeabcdeabcdeabcdeabcde0001", + "Type": "CanonicalUser" + }, + "Permission": "FULL_CONTROL" + } + ] }, - "Grants": [ - { - "Grantee": { - "DisplayName": "simon", - "ID": "abcdeabcdeabcdeabcdeabcdeabcde0001", - "Type": "CanonicalUser" - }, - "Permission": "FULL_CONTROL" + "public_access_block": null, + "bucket_website": { + "IndexDocument": { + "Suffix": "index.html" + }, + "ErrorDocument": { + "Key": "error.html" } - ] - }, - "public_access_block": null, - "bucket_website": { - "IndexDocument": { - "Suffix": "index.html" - }, - "ErrorDocument": { - "Key": "error.html" } } -} +] ``` A bucket with `public_access_block` might look like this: ```json