@Deprecated
public static interface CfnApiV2.CorsProperty
// 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();
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-api-cors.html
Modifier and Type | Interface and Description |
---|---|
static class |
CfnApiV2.CorsProperty.Builder
Deprecated.
|
static class |
CfnApiV2.CorsProperty.Jsii$Proxy
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CfnApiV2.CorsProperty.Builder |
builder()
Deprecated.
|
default java.lang.Object |
getAllowCredentials()
Deprecated.
|
default java.util.List<java.lang.String> |
getAllowHeaders()
Deprecated.
|
default java.util.List<java.lang.String> |
getAllowMethods()
Deprecated.
|
default java.util.List<java.lang.String> |
getAllowOrigins()
Deprecated.
|
default java.util.List<java.lang.String> |
getExposeHeaders()
Deprecated.
|
default java.lang.Number |
getMaxAge()
Deprecated.
|
@Deprecated default java.lang.Object getAllowCredentials()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-api-cors.html#cfn-apigatewayv2-api-cors-allowcredentials
@Deprecated default java.util.List<java.lang.String> getAllowHeaders()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-api-cors.html#cfn-apigatewayv2-api-cors-allowheaders
@Deprecated default java.util.List<java.lang.String> getAllowMethods()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-api-cors.html#cfn-apigatewayv2-api-cors-allowmethods
@Deprecated default java.util.List<java.lang.String> getAllowOrigins()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-api-cors.html#cfn-apigatewayv2-api-cors-alloworigins
@Deprecated default java.util.List<java.lang.String> getExposeHeaders()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-api-cors.html#cfn-apigatewayv2-api-cors-exposeheaders
@Deprecated default java.lang.Number getMaxAge()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-api-cors.html#cfn-apigatewayv2-api-cors-maxage
@Deprecated static CfnApiV2.CorsProperty.Builder builder()
CfnApiV2.CorsProperty.Builder
of CfnApiV2.CorsProperty