Skip to content

Commit

Permalink
fix(docs): use correct listLocation attr names in storage browser aut…
Browse files Browse the repository at this point in the history
…h example
  • Loading branch information
tiffanynwyeung committed Dec 19, 2024
1 parent 8ff81b1 commit 8279d9d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,20 +195,20 @@ export const { StorageBrowser } = createStorageBrowser({
listLocations: async (input = {}) => {
const { nextToken, pageSize } = input;
return {
locations: [
items: [
{
bucketName: '[bucket name]',
bucket: '[bucket name]',
prefix: '', // empty path means bucket root
id: 'XXXXXXX', // unique identifier
type: 'BUCKET',
permission: ['delete', 'get', 'list', 'write'],
permissions: ['delete', 'get', 'list', 'write'],
},
{
bucketName: '[bucket name]',
bucket: '[bucket name]',
prefix: 'some/path',
id: 'XXXXXXX', // unique identifier
type: 'PREFIX',
permission: ['delete', 'get', 'list', 'write'],
permissions: ['delete', 'get', 'list', 'write'],
}
]
}
Expand Down

0 comments on commit 8279d9d

Please sign in to comment.