You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// create a type representing the S3 account with the specified AWS credentialstypeS3= S3Provider.Account<"AWS Key","AWS Secret">// then access meta-data and content of objects in S3 with full intellisense support!// immediately after the type representing the account are all the bucketstypebucket= S3.``my.bucket``// you can then select folders/files from that buckettypefolder= bucket.``2013-12-13/``// on files, you can get meta-data such as ETag, LastModified, or fetch the content as// * Raw - raw binary array// * UTF8 - the content as decoded using UTF8// * ASCII - the content as decoded using ASCIIletetag= folder.``My file.txt``.ETag
letutf8= folder.``My file.txt``.Content.UTF8
letraw= folder.``My image.png``.Content.Raw
letlastModified= folder.``My image.png``.LastModified
// if the bucket/folder is large, you can also use the `Search<...>` generic type to find// files in the bucket by prefixtypesearch= bucket.Search<"2013-12-">// you can then navigate through the search results the same as before!letsearchResultContent= search.``2013-12-13``.``My file.txt``.Content.Raw