public static interface CfnHttpApi.CorsConfigurationObjectProperty
// 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("allowHeaders") .allowMethods("allowMethods") .allowOrigin("allowOrigin") .exposeHeaders(List.of("exposeHeaders")) .maxAge("maxAge") .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 java.lang.Object |
getAllowCredentials()
`CfnHttpApi.CorsConfigurationObjectProperty.AllowCredentials`.
|
default java.lang.String |
getAllowHeaders()
`CfnHttpApi.CorsConfigurationObjectProperty.AllowHeaders`.
|
default java.lang.String |
getAllowMethods()
`CfnHttpApi.CorsConfigurationObjectProperty.AllowMethods`.
|
default java.lang.String |
getAllowOrigin()
`CfnHttpApi.CorsConfigurationObjectProperty.AllowOrigin`.
|
default java.util.List<java.lang.String> |
getExposeHeaders()
`CfnHttpApi.CorsConfigurationObjectProperty.ExposeHeaders`.
|
default java.lang.String |
getMaxAge()
`CfnHttpApi.CorsConfigurationObjectProperty.MaxAge`.
|
default java.lang.Object getAllowCredentials()
default java.lang.String getAllowHeaders()
default java.lang.String getAllowMethods()
default java.lang.String getAllowOrigin()
default java.util.List<java.lang.String> getExposeHeaders()
default java.lang.String getMaxAge()
static CfnHttpApi.CorsConfigurationObjectProperty.Builder builder()