Class CfnApiV2.CorsProperty
Inheritance
Implements
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.AWS.APIGateway.dll
Syntax (csharp)
public class CorsProperty : Object, CfnApiV2.ICorsProperty
Syntax (vb)
Public Class CorsProperty
Inherits Object
Implements CfnApiV2.ICorsProperty
Remarks
Stability: Deprecated
ExampleMetadata: fixture=_generated
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
};
Synopsis
Constructors
CorsProperty() |
Properties
AllowCredentials | (deprecated) |
AllowHeaders | (deprecated) |
AllowMethods | (deprecated) |
AllowOrigins | (deprecated) |
ExposeHeaders | (deprecated) |
MaxAge | (deprecated) |
Constructors
CorsProperty()
public CorsProperty()
Properties
AllowCredentials
(deprecated) CfnApiV2.CorsProperty.AllowCredentials
.
public object AllowCredentials { get; set; }
Property Value
System.Object
Remarks
AllowHeaders
(deprecated) CfnApiV2.CorsProperty.AllowHeaders
.
public string[] AllowHeaders { get; set; }
Property Value
System.String[]
Remarks
AllowMethods
(deprecated) CfnApiV2.CorsProperty.AllowMethods
.
public string[] AllowMethods { get; set; }
Property Value
System.String[]
Remarks
AllowOrigins
(deprecated) CfnApiV2.CorsProperty.AllowOrigins
.
public string[] AllowOrigins { get; set; }
Property Value
System.String[]
Remarks
ExposeHeaders
(deprecated) CfnApiV2.CorsProperty.ExposeHeaders
.
public string[] ExposeHeaders { get; set; }
Property Value
System.String[]
Remarks
MaxAge
(deprecated) CfnApiV2.CorsProperty.MaxAge
.
public Nullable<double> MaxAge { get; set; }
Property Value
System.Nullable<System.Double>