@Stability(value=Stable) public static final class FunctionUrlCorsOptions.Builder extends Object implements software.amazon.jsii.Builder<FunctionUrlCorsOptions>
FunctionUrlCorsOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FunctionUrlCorsOptions.Builder |
allowCredentials(Boolean allowCredentials)
Sets the value of
FunctionUrlCorsOptions.getAllowCredentials() |
FunctionUrlCorsOptions.Builder |
allowedHeaders(List<String> allowedHeaders)
Sets the value of
FunctionUrlCorsOptions.getAllowedHeaders() |
FunctionUrlCorsOptions.Builder |
allowedMethods(List<? extends HttpMethod> allowedMethods)
Sets the value of
FunctionUrlCorsOptions.getAllowedMethods() |
FunctionUrlCorsOptions.Builder |
allowedOrigins(List<String> allowedOrigins)
Sets the value of
FunctionUrlCorsOptions.getAllowedOrigins() |
FunctionUrlCorsOptions |
build()
Builds the configured instance.
|
FunctionUrlCorsOptions.Builder |
exposedHeaders(List<String> exposedHeaders)
Sets the value of
FunctionUrlCorsOptions.getExposedHeaders() |
FunctionUrlCorsOptions.Builder |
maxAge(Duration maxAge)
Sets the value of
FunctionUrlCorsOptions.getMaxAge() |
@Stability(value=Stable) public FunctionUrlCorsOptions.Builder allowCredentials(Boolean allowCredentials)
FunctionUrlCorsOptions.getAllowCredentials()allowCredentials - Whether to allow cookies or other credentials in requests to your function URL.this@Stability(value=Stable) public FunctionUrlCorsOptions.Builder allowedHeaders(List<String> allowedHeaders)
FunctionUrlCorsOptions.getAllowedHeaders()allowedHeaders - Headers that are specified in the Access-Control-Request-Headers header.this@Stability(value=Stable) public FunctionUrlCorsOptions.Builder allowedMethods(List<? extends HttpMethod> allowedMethods)
FunctionUrlCorsOptions.getAllowedMethods()allowedMethods - An HTTP method that you allow the origin to execute.this@Stability(value=Stable) public FunctionUrlCorsOptions.Builder allowedOrigins(List<String> allowedOrigins)
FunctionUrlCorsOptions.getAllowedOrigins()allowedOrigins - One or more origins you want customers to be able to access the bucket from.this@Stability(value=Stable) public FunctionUrlCorsOptions.Builder exposedHeaders(List<String> exposedHeaders)
FunctionUrlCorsOptions.getExposedHeaders()exposedHeaders - One or more headers in the response that you want customers to be able to access from their applications.this@Stability(value=Stable) public FunctionUrlCorsOptions.Builder maxAge(Duration maxAge)
FunctionUrlCorsOptions.getMaxAge()maxAge - The time in seconds that your browser is to cache the preflight response for the specified resource.this@Stability(value=Stable) public FunctionUrlCorsOptions build()
build in interface software.amazon.jsii.Builder<FunctionUrlCorsOptions>FunctionUrlCorsOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.