@Stability(value=Stable)
public static interface CfnApi.CorsConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sam.*;
CorsConfigurationProperty corsConfigurationProperty = CorsConfigurationProperty.builder()
.allowOrigin("allowOrigin")
// the properties below are optional
.allowCredentials(false)
.allowHeaders("allowHeaders")
.allowMethods("allowMethods")
.maxAge("maxAge")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnApi.CorsConfigurationProperty.Builder
A builder for
CfnApi.CorsConfigurationProperty |
static class |
CfnApi.CorsConfigurationProperty.Jsii$Proxy
An implementation for
CfnApi.CorsConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnApi.CorsConfigurationProperty.Builder |
builder() |
default Object |
getAllowCredentials()
`CfnApi.CorsConfigurationProperty.AllowCredentials`.
|
default String |
getAllowHeaders()
`CfnApi.CorsConfigurationProperty.AllowHeaders`.
|
default String |
getAllowMethods()
`CfnApi.CorsConfigurationProperty.AllowMethods`.
|
String |
getAllowOrigin()
`CfnApi.CorsConfigurationProperty.AllowOrigin`.
|
default String |
getMaxAge()
`CfnApi.CorsConfigurationProperty.MaxAge`.
|
@Stability(value=Stable) @NotNull String getAllowOrigin()
@Stability(value=Stable) @Nullable default Object getAllowCredentials()
@Stability(value=Stable) @Nullable default String getAllowHeaders()
@Stability(value=Stable) @Nullable default String getAllowMethods()
@Stability(value=Stable) @Nullable default String getMaxAge()
@Stability(value=Stable) static CfnApi.CorsConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.