BucketWebsiteArgs

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

Constructors

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

Properties

Link copied to clipboard
val errorDocument: Output<String>? = null

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

Link copied to clipboard
val indexDocument: Output<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
val redirectAllRequestsTo: Output<String>? = null

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: Output<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:

Functions

Link copied to clipboard
open override fun toJava(): BucketWebsiteArgs