Class AmazonStorageProvider
- Namespace
- Kentico.Xperience.AmazonStorage
- Assembly
- Kentico.Xperience.AmazonStorage.dll
Helper class for Amazon storage provider.
public static class AmazonStorageProvider
- Inheritance
-
objectAmazonStorageProvider
Fields
Name
Amazon storage provider name
public static readonly string Name
Field Value
- string
Methods
Create()
Creates new instance of StorageProvider configured for Amazon S3 storage.
public static StorageProvider Create()
Returns
Create(string, bool?)
Creates a new instance of StorageProvider configured for Amazon S3 storage with the specified bucket root path and optional public access setting.
public static StorageProvider Create(string customRootPath, bool? publicExternalFolderObject = null)
Parameters
customRootPathstringThe S3 bucket name to use as the root path.
publicExternalFolderObjectbool?Controls whether objects in this bucket are uploaded with public read access. When
true, objects are uploaded as publicly readable. Whenfalse, objects are uploaded as private. Whennull, falls back to the global PublicAccess configuration value. Note: public access also requires the S3 bucket policy and Block Public Access settings to permit it.