Class CfnApiV2.CorsProperty
- Namespace
- Amazon.CDK.AWS.APIGateway
- Assembly
- Amazon.CDK.AWS.APIGateway.dll
public class CfnApiV2.CorsProperty : CfnApiV2.ICorsProperty
- Inheritance
-
CfnApiV2.CorsProperty
- Implements
- Inherited Members
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;
var corsProperty = new CorsProperty {
AllowCredentials = false,
AllowHeaders = new [] { "allowHeaders" },
AllowMethods = new [] { "allowMethods" },
AllowOrigins = new [] { "allowOrigins" },
ExposeHeaders = new [] { "exposeHeaders" },
MaxAge = 123
};
Remarks
Stability: Deprecated
ExampleMetadata: fixture=_generated
Constructors
CorsProperty()
public CorsProperty()
Properties
AllowCredentials
(deprecated) CfnApiV2.CorsProperty.AllowCredentials
.
[Obsolete]
public object? AllowCredentials { get; set; }
Property Value
Remarks
Stability: Deprecated
AllowHeaders
(deprecated) CfnApiV2.CorsProperty.AllowHeaders
.
[Obsolete]
public string[]? AllowHeaders { get; set; }
Property Value
- string[]
Remarks
Stability: Deprecated
AllowMethods
(deprecated) CfnApiV2.CorsProperty.AllowMethods
.
[Obsolete]
public string[]? AllowMethods { get; set; }
Property Value
- string[]
Remarks
Stability: Deprecated
AllowOrigins
(deprecated) CfnApiV2.CorsProperty.AllowOrigins
.
[Obsolete]
public string[]? AllowOrigins { get; set; }
Property Value
- string[]
Remarks
Stability: Deprecated
ExposeHeaders
(deprecated) CfnApiV2.CorsProperty.ExposeHeaders
.
[Obsolete]
public string[]? ExposeHeaders { get; set; }
Property Value
- string[]
Remarks
Stability: Deprecated
MaxAge
(deprecated) CfnApiV2.CorsProperty.MaxAge
.
[Obsolete]
public double? MaxAge { get; set; }