Class BucketWebsite


  • public final class BucketWebsite
    extends java.lang.Object
    • Method Detail

      • errorDocument

        public java.util.Optional<java.lang.String> errorDocument()
        Returns:
        An absolute path to the document to return in case of a 4XX error.
      • indexDocument

        public java.util.Optional<java.lang.String> indexDocument()
        Returns:
        Amazon S3 returns this index document when requests are made to the root domain or any of the subfolders.
      • redirectAllRequestsTo

        public java.util.Optional<java.lang.String> redirectAllRequestsTo()
        Returns:
        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.
      • routingRules

        public java.util.Optional<com.pulumi.core.Either<java.lang.String,​java.util.List<java.lang.String>>> routingRules()
        Returns:
        A json array containing [routing rules](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules.html) describing redirect behavior and when redirects are applied. The `CORS` object supports the following: