Class FunctionUrlCorsArgs


  • public final class FunctionUrlCorsArgs
    extends com.pulumi.resources.ResourceArgs
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FunctionUrlCorsArgs.Builder  
      • Nested classes/interfaces inherited from class com.pulumi.resources.InputArgs

        com.pulumi.resources.InputArgs.InputArgsInternal
    • Method Detail

      • allowCredentials

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> allowCredentials()
        Returns:
        Whether to allow cookies or other credentials in requests to the function URL. The default is `false`.
      • allowHeaders

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> allowHeaders()
        Returns:
        The HTTP headers that origins can include in requests to the function URL. For example: `["date", "keep-alive", "x-custom-header"]`.
      • allowMethods

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> allowMethods()
        Returns:
        The HTTP methods that are allowed when calling the function URL. For example: `["GET", "POST", "DELETE"]`, or the wildcard character (`["*"]`).
      • allowOrigins

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> allowOrigins()
        Returns:
        The origins that can access the function URL. You can list any number of specific origins (or the wildcard character (`"*"`)), separated by a comma. For example: `["https://www.example.com", "http://localhost:60905"]`.
      • exposeHeaders

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> exposeHeaders()
        Returns:
        The HTTP headers in your function response that you want to expose to origins that call the function URL.
      • maxAge

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> maxAge()
        Returns:
        The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. By default, this is set to `0`, which means that the browser doesn't cache results. The maximum value is `86400`.