@Stability(value=Stable) public static final class CfnUrl.CorsProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnUrl.CorsProperty>
CfnUrl.CorsProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnUrl.CorsProperty.Builder allowCredentials(Boolean allowCredentials)
CfnUrl.CorsProperty.getAllowCredentials()allowCredentials - Whether you want to allow cookies or other credentials in requests to your function URL.
The default is false .this@Stability(value=Stable) public CfnUrl.CorsProperty.Builder allowCredentials(IResolvable allowCredentials)
CfnUrl.CorsProperty.getAllowCredentials()allowCredentials - Whether you want to allow cookies or other credentials in requests to your function URL.
The default is false .this@Stability(value=Stable) public CfnUrl.CorsProperty.Builder allowHeaders(List<String> allowHeaders)
CfnUrl.CorsProperty.getAllowHeaders()allowHeaders - The HTTP headers that origins can include in requests to your function URL.
For example: Date , Keep-Alive , X-Custom-Header .this@Stability(value=Stable) public CfnUrl.CorsProperty.Builder allowMethods(List<String> allowMethods)
CfnUrl.CorsProperty.getAllowMethods()allowMethods - The HTTP methods that are allowed when calling your function URL.
For example: GET , POST , DELETE , or the wildcard character ( * ).this@Stability(value=Stable) public CfnUrl.CorsProperty.Builder allowOrigins(List<String> allowOrigins)
CfnUrl.CorsProperty.getAllowOrigins()allowOrigins - The origins that can access your function URL.
You can list any number of specific origins, separated by a comma. For example: https://www.example.com , http://localhost:60905 .
Alternatively, you can grant access to all origins with the wildcard character ( * ).
this@Stability(value=Stable) public CfnUrl.CorsProperty.Builder exposeHeaders(List<String> exposeHeaders)
CfnUrl.CorsProperty.getExposeHeaders()exposeHeaders - The HTTP headers in your function response that you want to expose to origins that call your function URL.
For example: Date , Keep-Alive , X-Custom-Header .this@Stability(value=Stable) public CfnUrl.CorsProperty.Builder maxAge(Number maxAge)
CfnUrl.CorsProperty.getMaxAge()maxAge - The maximum amount of time, in seconds, that browsers can cache results of a preflight request.
By default, this is set to 0 , which means the browser will not cache results.this@Stability(value=Stable) public CfnUrl.CorsProperty build()
build in interface software.amazon.jsii.Builder<CfnUrl.CorsProperty>CfnUrl.CorsPropertyNullPointerException - if any required attribute was not providedCopyright © 2023. All rights reserved.