Interface CfnApi.CorsConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApi.CorsConfigurationProperty.Jsii$Proxy
- Enclosing class:
- CfnApi
@Stability(Stable)
public static interface CfnApi.CorsConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// 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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnApi.CorsConfigurationProperty
static final class
An implementation forCfnApi.CorsConfigurationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
CfnApi.CorsConfigurationProperty.AllowCredentials
.default String
CfnApi.CorsConfigurationProperty.AllowHeaders
.default String
CfnApi.CorsConfigurationProperty.AllowMethods
.CfnApi.CorsConfigurationProperty.AllowOrigin
.default String
CfnApi.CorsConfigurationProperty.MaxAge
.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowOrigin
CfnApi.CorsConfigurationProperty.AllowOrigin
. -
getAllowCredentials
CfnApi.CorsConfigurationProperty.AllowCredentials
. -
getAllowHeaders
CfnApi.CorsConfigurationProperty.AllowHeaders
. -
getAllowMethods
CfnApi.CorsConfigurationProperty.AllowMethods
. -
getMaxAge
CfnApi.CorsConfigurationProperty.MaxAge
. -
builder
-