Class BucketV2WebsiteArgs.Builder

  • Enclosing class:
    BucketV2WebsiteArgs

    public static final class BucketV2WebsiteArgs.Builder
    extends java.lang.Object
    • Method Detail

      • errorDocument

        public BucketV2WebsiteArgs.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 BucketV2WebsiteArgs.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 BucketV2WebsiteArgs.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 BucketV2WebsiteArgs.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 BucketV2WebsiteArgs.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 BucketV2WebsiteArgs.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 BucketV2WebsiteArgs.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 BucketV2WebsiteArgs.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