@Stability(value=Stable) public static final class CfnApi.CorsProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnApi.CorsProperty>
CfnApi.CorsProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnApi.CorsProperty.Builder allowCredentials(Boolean allowCredentials)
CfnApi.CorsProperty.getAllowCredentials()allowCredentials - Specifies whether credentials are included in the CORS request.
Supported only for HTTP APIs.this@Stability(value=Stable) public CfnApi.CorsProperty.Builder allowCredentials(IResolvable allowCredentials)
CfnApi.CorsProperty.getAllowCredentials()allowCredentials - Specifies whether credentials are included in the CORS request.
Supported only for HTTP APIs.this@Stability(value=Stable) public CfnApi.CorsProperty.Builder allowHeaders(List<String> allowHeaders)
CfnApi.CorsProperty.getAllowHeaders()allowHeaders - Represents a collection of allowed headers.
Supported only for HTTP APIs.this@Stability(value=Stable) public CfnApi.CorsProperty.Builder allowMethods(List<String> allowMethods)
CfnApi.CorsProperty.getAllowMethods()allowMethods - Represents a collection of allowed HTTP methods.
Supported only for HTTP APIs.this@Stability(value=Stable) public CfnApi.CorsProperty.Builder allowOrigins(List<String> allowOrigins)
CfnApi.CorsProperty.getAllowOrigins()allowOrigins - Represents a collection of allowed origins.
Supported only for HTTP APIs.this@Stability(value=Stable) public CfnApi.CorsProperty.Builder exposeHeaders(List<String> exposeHeaders)
CfnApi.CorsProperty.getExposeHeaders()exposeHeaders - Represents a collection of exposed headers.
Supported only for HTTP APIs.this@Stability(value=Stable) public CfnApi.CorsProperty.Builder maxAge(Number maxAge)
CfnApi.CorsProperty.getMaxAge()maxAge - The number of seconds that the browser should cache preflight request results.
Supported only for HTTP APIs.this@Stability(value=Stable) public CfnApi.CorsProperty build()
build in interface software.amazon.jsii.Builder<CfnApi.CorsProperty>CfnApi.CorsPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.