BucketWebsite

data class BucketWebsite(val errorDocument: String? = null, val indexDocument: String? = null, val redirectAllRequestsTo: String? = null, val routingRules: Either<String, List<String>>? = null)

Constructors

Link copied to clipboard
constructor(errorDocument: String? = null, indexDocument: String? = null, redirectAllRequestsTo: String? = null, routingRules: Either<String, List<String>>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val errorDocument: String? = null

An absolute path to the document to return in case of a 4XX error.

Link copied to clipboard
val indexDocument: String? = null

Amazon S3 returns this index document when requests are made to the root domain or any of the subfolders.

Link copied to clipboard

A hostname to redirect all website requests for this bucket to. Hostname can optionally be prefixed with a protocol (http:// or https://) to use when redirecting requests. The default is the protocol that is used in the original request.

Link copied to clipboard
val routingRules: Either<String, List<String>>? = null

A json array containing routing rules describing redirect behavior and when redirects are applied. The CORS object supports the following: