Package com.pulumi.aws.lambda.inputs
Class FunctionUrlCorsArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.lambda.inputs.FunctionUrlCorsArgs.Builder
-
- Enclosing class:
- FunctionUrlCorsArgs
public static final class FunctionUrlCorsArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(FunctionUrlCorsArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionUrlCorsArgs.Builder
allowCredentials(com.pulumi.core.Output<java.lang.Boolean> allowCredentials)
FunctionUrlCorsArgs.Builder
allowCredentials(java.lang.Boolean allowCredentials)
FunctionUrlCorsArgs.Builder
allowHeaders(com.pulumi.core.Output<java.util.List<java.lang.String>> allowHeaders)
FunctionUrlCorsArgs.Builder
allowHeaders(java.lang.String... allowHeaders)
FunctionUrlCorsArgs.Builder
allowHeaders(java.util.List<java.lang.String> allowHeaders)
FunctionUrlCorsArgs.Builder
allowMethods(com.pulumi.core.Output<java.util.List<java.lang.String>> allowMethods)
FunctionUrlCorsArgs.Builder
allowMethods(java.lang.String... allowMethods)
FunctionUrlCorsArgs.Builder
allowMethods(java.util.List<java.lang.String> allowMethods)
FunctionUrlCorsArgs.Builder
allowOrigins(com.pulumi.core.Output<java.util.List<java.lang.String>> allowOrigins)
FunctionUrlCorsArgs.Builder
allowOrigins(java.lang.String... allowOrigins)
FunctionUrlCorsArgs.Builder
allowOrigins(java.util.List<java.lang.String> allowOrigins)
FunctionUrlCorsArgs
build()
FunctionUrlCorsArgs.Builder
exposeHeaders(com.pulumi.core.Output<java.util.List<java.lang.String>> exposeHeaders)
FunctionUrlCorsArgs.Builder
exposeHeaders(java.lang.String... exposeHeaders)
FunctionUrlCorsArgs.Builder
exposeHeaders(java.util.List<java.lang.String> exposeHeaders)
FunctionUrlCorsArgs.Builder
maxAge(com.pulumi.core.Output<java.lang.Integer> maxAge)
FunctionUrlCorsArgs.Builder
maxAge(java.lang.Integer maxAge)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(FunctionUrlCorsArgs defaults)
-
-
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. The default is `false`.- 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. The default is `false`.- Returns:
- builder
-
allowHeaders
public FunctionUrlCorsArgs.Builder allowHeaders(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> allowHeaders)
- Parameters:
allowHeaders
- The HTTP headers that origins can include in requests to the function URL. For example: `["date", "keep-alive", "x-custom-header"]`.- Returns:
- builder
-
allowHeaders
public FunctionUrlCorsArgs.Builder allowHeaders(java.util.List<java.lang.String> allowHeaders)
- Parameters:
allowHeaders
- The HTTP headers that origins can include in requests to the function URL. For example: `["date", "keep-alive", "x-custom-header"]`.- Returns:
- builder
-
allowHeaders
public FunctionUrlCorsArgs.Builder allowHeaders(java.lang.String... allowHeaders)
- Parameters:
allowHeaders
- The HTTP headers that origins can include in requests to the function URL. For example: `["date", "keep-alive", "x-custom-header"]`.- Returns:
- builder
-
allowMethods
public FunctionUrlCorsArgs.Builder allowMethods(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> allowMethods)
- Parameters:
allowMethods
- The HTTP methods that are allowed when calling the function URL. For example: `["GET", "POST", "DELETE"]`, or the wildcard character (`["*"]`).- Returns:
- builder
-
allowMethods
public FunctionUrlCorsArgs.Builder allowMethods(java.util.List<java.lang.String> allowMethods)
- Parameters:
allowMethods
- The HTTP methods that are allowed when calling the function URL. For example: `["GET", "POST", "DELETE"]`, or the wildcard character (`["*"]`).- Returns:
- builder
-
allowMethods
public FunctionUrlCorsArgs.Builder allowMethods(java.lang.String... allowMethods)
- Parameters:
allowMethods
- The HTTP methods that are allowed when calling the function URL. For example: `["GET", "POST", "DELETE"]`, or the wildcard character (`["*"]`).- Returns:
- builder
-
allowOrigins
public FunctionUrlCorsArgs.Builder allowOrigins(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> allowOrigins)
- Parameters:
allowOrigins
- 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"]`.- Returns:
- builder
-
allowOrigins
public FunctionUrlCorsArgs.Builder allowOrigins(java.util.List<java.lang.String> allowOrigins)
- Parameters:
allowOrigins
- 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"]`.- Returns:
- builder
-
allowOrigins
public FunctionUrlCorsArgs.Builder allowOrigins(java.lang.String... allowOrigins)
- Parameters:
allowOrigins
- 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"]`.- Returns:
- builder
-
exposeHeaders
public FunctionUrlCorsArgs.Builder exposeHeaders(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> exposeHeaders)
- Parameters:
exposeHeaders
- The 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
- The 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
- The 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
- 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`.- Returns:
- builder
-
maxAge
public FunctionUrlCorsArgs.Builder maxAge(java.lang.Integer maxAge)
- Parameters:
maxAge
- 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`.- Returns:
- builder
-
build
public FunctionUrlCorsArgs build()
-
-