@Stability(value=Deprecated) @Deprecated public static interface CfnApiV2.CorsProperty 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.apigateway.*;
CorsProperty corsProperty = CorsProperty.builder()
.allowCredentials(false)
.allowHeaders(List.of("allowHeaders"))
.allowMethods(List.of("allowMethods"))
.allowOrigins(List.of("allowOrigins"))
.exposeHeaders(List.of("exposeHeaders"))
.maxAge(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnApiV2.CorsProperty.Builder
Deprecated.
|
static class |
CfnApiV2.CorsProperty.Jsii$Proxy
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static CfnApiV2.CorsProperty.Builder |
builder()
Deprecated.
|
default Object |
getAllowCredentials()
Deprecated.
|
default List<String> |
getAllowHeaders()
Deprecated.
|
default List<String> |
getAllowMethods()
Deprecated.
|
default List<String> |
getAllowOrigins()
Deprecated.
|
default List<String> |
getExposeHeaders()
Deprecated.
|
default Number |
getMaxAge()
Deprecated.
|
@Stability(value=Deprecated) @Deprecated @Nullable default Object getAllowCredentials()
@Stability(value=Deprecated) @Deprecated @Nullable default List<String> getAllowHeaders()
@Stability(value=Deprecated) @Deprecated @Nullable default List<String> getAllowMethods()
@Stability(value=Deprecated) @Deprecated @Nullable default List<String> getAllowOrigins()
@Stability(value=Deprecated) @Deprecated @Nullable default List<String> getExposeHeaders()
@Stability(value=Deprecated) @Deprecated @Nullable default Number getMaxAge()
@Stability(value=Deprecated) @Deprecated static CfnApiV2.CorsProperty.Builder builder()
CfnApiV2.CorsProperty.Builder of CfnApiV2.CorsPropertyCopyright © 2022. All rights reserved.