Class FunctionUrlCorsArgs.Builder

  • Enclosing class:
    FunctionUrlCorsArgs

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

      • allowCredentials

        public FunctionUrlCorsArgs.Builder allowCredentials​(@Nullable
                                                            com.pulumi.core.Output<java.lang.Boolean> allowCredentials)
        Parameters:
        allowCredentials - Whether to allow cookies or other credentials in requests to the function URL.
        Returns:
        builder
      • allowCredentials

        public FunctionUrlCorsArgs.Builder allowCredentials​(java.lang.Boolean allowCredentials)
        Parameters:
        allowCredentials - Whether to allow cookies or other credentials in requests to the function URL.
        Returns:
        builder
      • allowHeaders

        public FunctionUrlCorsArgs.Builder allowHeaders​(@Nullable
                                                        com.pulumi.core.Output<java.util.List<java.lang.String>> allowHeaders)
        Parameters:
        allowHeaders - HTTP headers that origins can include in requests to the function URL.
        Returns:
        builder
      • allowHeaders

        public FunctionUrlCorsArgs.Builder allowHeaders​(java.util.List<java.lang.String> allowHeaders)
        Parameters:
        allowHeaders - HTTP headers that origins can include in requests to the function URL.
        Returns:
        builder
      • allowHeaders

        public FunctionUrlCorsArgs.Builder allowHeaders​(java.lang.String... allowHeaders)
        Parameters:
        allowHeaders - HTTP headers that origins can include in requests to the function URL.
        Returns:
        builder
      • allowMethods

        public FunctionUrlCorsArgs.Builder allowMethods​(@Nullable
                                                        com.pulumi.core.Output<java.util.List<java.lang.String>> allowMethods)
        Parameters:
        allowMethods - HTTP methods that are allowed when calling the function URL.
        Returns:
        builder
      • allowMethods

        public FunctionUrlCorsArgs.Builder allowMethods​(java.util.List<java.lang.String> allowMethods)
        Parameters:
        allowMethods - HTTP methods that are allowed when calling the function URL.
        Returns:
        builder
      • allowMethods

        public FunctionUrlCorsArgs.Builder allowMethods​(java.lang.String... allowMethods)
        Parameters:
        allowMethods - HTTP methods that are allowed when calling the function URL.
        Returns:
        builder
      • allowOrigins

        public FunctionUrlCorsArgs.Builder allowOrigins​(@Nullable
                                                        com.pulumi.core.Output<java.util.List<java.lang.String>> allowOrigins)
        Parameters:
        allowOrigins - Origins that can access the function URL.
        Returns:
        builder
      • allowOrigins

        public FunctionUrlCorsArgs.Builder allowOrigins​(java.util.List<java.lang.String> allowOrigins)
        Parameters:
        allowOrigins - Origins that can access the function URL.
        Returns:
        builder
      • allowOrigins

        public FunctionUrlCorsArgs.Builder allowOrigins​(java.lang.String... allowOrigins)
        Parameters:
        allowOrigins - Origins that can access the function URL.
        Returns:
        builder
      • exposeHeaders

        public FunctionUrlCorsArgs.Builder exposeHeaders​(@Nullable
                                                         com.pulumi.core.Output<java.util.List<java.lang.String>> exposeHeaders)
        Parameters:
        exposeHeaders - HTTP headers in your function response that you want to expose to origins that call the function URL.
        Returns:
        builder
      • exposeHeaders

        public FunctionUrlCorsArgs.Builder exposeHeaders​(java.util.List<java.lang.String> exposeHeaders)
        Parameters:
        exposeHeaders - HTTP headers in your function response that you want to expose to origins that call the function URL.
        Returns:
        builder
      • exposeHeaders

        public FunctionUrlCorsArgs.Builder exposeHeaders​(java.lang.String... exposeHeaders)
        Parameters:
        exposeHeaders - HTTP headers in your function response that you want to expose to origins that call the function URL.
        Returns:
        builder
      • maxAge

        public FunctionUrlCorsArgs.Builder maxAge​(@Nullable
                                                  com.pulumi.core.Output<java.lang.Integer> maxAge)
        Parameters:
        maxAge - Maximum amount of time, in seconds, that web browsers can cache results of a preflight request. Maximum value is `86400`.
        Returns:
        builder
      • maxAge

        public FunctionUrlCorsArgs.Builder maxAge​(java.lang.Integer maxAge)
        Parameters:
        maxAge - Maximum amount of time, in seconds, that web browsers can cache results of a preflight request. Maximum value is `86400`.
        Returns:
        builder