Interface CfnApiV2.CorsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApiV2.CorsProperty.Jsii$Proxy
- Enclosing class:
CfnApiV2
@Stability(Deprecated)
@Deprecated
public static interface CfnApiV2.CorsProperty
extends software.amazon.jsii.JsiiSerializable
Deprecated.
moved to package aws-apigatewayv2
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.apigateway.*; CorsProperty corsProperty = CorsProperty.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
Modifier and TypeInterfaceDescriptionstatic final class
Deprecated.static final class
Deprecated. -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowCredentials
Deprecated.(deprecated)CfnApiV2.CorsProperty.AllowCredentials
.- See Also:
-
getAllowHeaders
Deprecated.(deprecated)CfnApiV2.CorsProperty.AllowHeaders
.- See Also:
-
getAllowMethods
Deprecated.(deprecated)CfnApiV2.CorsProperty.AllowMethods
.- See Also:
-
getAllowOrigins
Deprecated.(deprecated)CfnApiV2.CorsProperty.AllowOrigins
.- See Also:
-
getExposeHeaders
Deprecated.(deprecated)CfnApiV2.CorsProperty.ExposeHeaders
.- See Also:
-
getMaxAge
Deprecated.(deprecated)CfnApiV2.CorsProperty.MaxAge
.- See Also:
-
builder
Deprecated.- Returns:
- a
CfnApiV2.CorsProperty.Builder
ofCfnApiV2.CorsProperty
-