Class BucketWebsiteArgs.Builder

  • Enclosing class:
    BucketWebsiteArgs

    public static final class BucketWebsiteArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • errorDocument

        public BucketWebsiteArgs.Builder errorDocument​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> errorDocument)
        Parameters:
        errorDocument - Absolute path to the document to return in case of a 4XX error.
        Returns:
        builder
      • errorDocument

        public BucketWebsiteArgs.Builder errorDocument​(java.lang.String errorDocument)
        Parameters:
        errorDocument - Absolute path to the document to return in case of a 4XX error.
        Returns:
        builder
      • indexDocument

        public BucketWebsiteArgs.Builder indexDocument​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> indexDocument)
        Parameters:
        indexDocument - Amazon S3 returns this index document when requests are made to the root domain or any of the subfolders. Required unless using `redirectAllRequestsTo`.
        Returns:
        builder
      • indexDocument

        public BucketWebsiteArgs.Builder indexDocument​(java.lang.String indexDocument)
        Parameters:
        indexDocument - Amazon S3 returns this index document when requests are made to the root domain or any of the subfolders. Required unless using `redirectAllRequestsTo`.
        Returns:
        builder
      • redirectAllRequestsTo

        public BucketWebsiteArgs.Builder redirectAllRequestsTo​(@Nullable
                                                               com.pulumi.core.Output<java.lang.String> redirectAllRequestsTo)
        Parameters:
        redirectAllRequestsTo - 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.
        Returns:
        builder
      • redirectAllRequestsTo

        public BucketWebsiteArgs.Builder redirectAllRequestsTo​(java.lang.String redirectAllRequestsTo)
        Parameters:
        redirectAllRequestsTo - 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.
        Returns:
        builder
      • routingRules

        public BucketWebsiteArgs.Builder routingRules​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> routingRules)
        Parameters:
        routingRules - 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.
        Returns:
        builder
      • routingRules

        public BucketWebsiteArgs.Builder routingRules​(java.lang.String routingRules)
        Parameters:
        routingRules - 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.
        Returns:
        builder