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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnApi.CorsConfigurationPropertystatic final classAn implementation forCfnApi.CorsConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowOrigin
- See Also:
-
getAllowCredentials
Returns union: eitherBooleanorIResolvable- See Also:
-
getAllowHeaders
- See Also:
-
getAllowMethods
- See Also:
-
getMaxAge
- See Also:
-
builder
-