BucketWebsiteArgs

data class BucketWebsiteArgs(val mainPageSuffix: Output<String>? = null, val notFoundPage: Output<String>? = null) : ConvertibleToJava<BucketWebsiteArgs>

The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.

Constructors

Link copied to clipboard
fun BucketWebsiteArgs(mainPageSuffix: Output<String>? = null, notFoundPage: Output<String>? = null)

Functions

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

Properties

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

If the requested object path is missing, the service will ensure the path has a trailing '/', append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.

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

If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.