Class URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder

    • Method Detail

      • allowCredentials

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder allowCredentials​(@Nullable
                                                                                          com.pulumi.core.Output<java.lang.Boolean> allowCredentials)
        Parameters:
        allowCredentials - In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
        Returns:
        builder
      • allowCredentials

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder allowCredentials​(java.lang.Boolean allowCredentials)
        Parameters:
        allowCredentials - In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
        Returns:
        builder
      • allowHeaders

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder allowHeaders​(@Nullable
                                                                                      com.pulumi.core.Output<java.util.List<java.lang.String>> allowHeaders)
        Parameters:
        allowHeaders - Specifies the content for the Access-Control-Allow-Headers header.
        Returns:
        builder
      • allowMethods

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder allowMethods​(@Nullable
                                                                                      com.pulumi.core.Output<java.util.List<java.lang.String>> allowMethods)
        Parameters:
        allowMethods - Specifies the content for the Access-Control-Allow-Methods header.
        Returns:
        builder
      • allowOriginRegexes

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder allowOriginRegexes​(@Nullable
                                                                                            com.pulumi.core.Output<java.util.List<java.lang.String>> allowOriginRegexes)
        Parameters:
        allowOriginRegexes - Specifies the regular expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
        Returns:
        builder
      • allowOriginRegexes

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder allowOriginRegexes​(java.util.List<java.lang.String> allowOriginRegexes)
        Parameters:
        allowOriginRegexes - Specifies the regular expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
        Returns:
        builder
      • allowOriginRegexes

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder allowOriginRegexes​(java.lang.String... allowOriginRegexes)
        Parameters:
        allowOriginRegexes - Specifies the regular expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
        Returns:
        builder
      • allowOrigins

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder allowOrigins​(@Nullable
                                                                                      com.pulumi.core.Output<java.util.List<java.lang.String>> allowOrigins)
        Parameters:
        allowOrigins - Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
        Returns:
        builder
      • allowOrigins

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder allowOrigins​(java.util.List<java.lang.String> allowOrigins)
        Parameters:
        allowOrigins - Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
        Returns:
        builder
      • allowOrigins

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder allowOrigins​(java.lang.String... allowOrigins)
        Parameters:
        allowOrigins - Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
        Returns:
        builder
      • disabled

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder disabled​(@Nullable
                                                                                  com.pulumi.core.Output<java.lang.Boolean> disabled)
        Parameters:
        disabled - If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
        Returns:
        builder
      • disabled

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder disabled​(java.lang.Boolean disabled)
        Parameters:
        disabled - If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
        Returns:
        builder
      • exposeHeaders

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder exposeHeaders​(@Nullable
                                                                                       com.pulumi.core.Output<java.util.List<java.lang.String>> exposeHeaders)
        Parameters:
        exposeHeaders - Specifies the content for the Access-Control-Expose-Headers header.
        Returns:
        builder
      • maxAge

        public URLMapPathMatcherDefaultRouteActionCorsPolicyArgs.Builder maxAge​(@Nullable
                                                                                com.pulumi.core.Output<java.lang.Integer> maxAge)
        Parameters:
        maxAge - Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
        Returns:
        builder