@Stability(value=Stable)
public static interface CfnHttpApi.CorsConfigurationObjectProperty
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.*;
CorsConfigurationObjectProperty corsConfigurationObjectProperty = CorsConfigurationObjectProperty.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 |
CfnHttpApi.CorsConfigurationObjectProperty.Builder
A builder for
CfnHttpApi.CorsConfigurationObjectProperty |
static class |
CfnHttpApi.CorsConfigurationObjectProperty.Jsii$Proxy
An implementation for
CfnHttpApi.CorsConfigurationObjectProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnHttpApi.CorsConfigurationObjectProperty.Builder |
builder() |
default Object |
getAllowCredentials()
`CfnHttpApi.CorsConfigurationObjectProperty.AllowCredentials`.
|
default List<String> |
getAllowHeaders()
`CfnHttpApi.CorsConfigurationObjectProperty.AllowHeaders`.
|
default List<String> |
getAllowMethods()
`CfnHttpApi.CorsConfigurationObjectProperty.AllowMethods`.
|
default List<String> |
getAllowOrigins()
`CfnHttpApi.CorsConfigurationObjectProperty.AllowOrigins`.
|
default List<String> |
getExposeHeaders()
`CfnHttpApi.CorsConfigurationObjectProperty.ExposeHeaders`.
|
default Number |
getMaxAge()
`CfnHttpApi.CorsConfigurationObjectProperty.MaxAge`.
|
@Stability(value=Stable) @Nullable default Object getAllowCredentials()
@Stability(value=Stable) @Nullable default List<String> getAllowHeaders()
@Stability(value=Stable) @Nullable default List<String> getAllowMethods()
@Stability(value=Stable) @Nullable default List<String> getAllowOrigins()
@Stability(value=Stable) @Nullable default List<String> getExposeHeaders()
@Stability(value=Stable) @Nullable default Number getMaxAge()
@Stability(value=Stable) static CfnHttpApi.CorsConfigurationObjectProperty.Builder builder()
Copyright © 2023. All rights reserved.