.NET - Bucket()
Create a new bucket for storing and retrieving files.
using Nitric.Sdk; using Nitric.Sdk.Storage; var assets = Nitric.Bucket("assets").With(BucketPermission.Reading, BucketPermission.Writing, BucketPermission.Deleting); Nitric.Run();
The unique name of this bucket within the app. Subsequent calls to
Bucketwith the same name will return the same object.
All Nitric resources provide access permissions you can use to specify the level of access your code needs to the resource. See here for details Access Control documentation.
This permission allows your function to read files from the bucket
This permission allows your function to write files to the bucket
This permission allows your function to delete files from the bucket
See the following for examples on working with files in a bucket: