Interface CfnHttpApi.CorsConfigurationObjectProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnHttpApi.CorsConfigurationObjectProperty.Jsii$Proxy
- Enclosing class:
CfnHttpApi
@Stability(Stable)
public static interface CfnHttpApi.CorsConfigurationObjectProperty
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.*;
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnHttpApi.CorsConfigurationObjectPropertystatic final classAn implementation forCfnHttpApi.CorsConfigurationObjectProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectReturns union: eitherBooleanorIResolvabledefault NumberMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowCredentials
Returns union: eitherBooleanorIResolvable- See Also:
-
getAllowHeaders
- See Also:
-
getAllowMethods
- See Also:
-
getAllowOrigins
- See Also:
-
getExposeHeaders
- See Also:
-
getMaxAge
- See Also:
-
builder
-