Table of Contents

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

Constructors

CorsProperty()

public CorsProperty()

Properties

AllowCredentials

(deprecated) CfnApiV2.CorsProperty.AllowCredentials.

[Obsolete]
public object? AllowCredentials { get; set; }

Property Value

object

Remarks

AllowHeaders

(deprecated) CfnApiV2.CorsProperty.AllowHeaders.

[Obsolete]
public string[]? AllowHeaders { get; set; }

Property Value

string[]

Remarks

AllowMethods

(deprecated) CfnApiV2.CorsProperty.AllowMethods.

[Obsolete]
public string[]? AllowMethods { get; set; }

Property Value

string[]

Remarks

AllowOrigins

(deprecated) CfnApiV2.CorsProperty.AllowOrigins.

[Obsolete]
public string[]? AllowOrigins { get; set; }

Property Value

string[]

Remarks

ExposeHeaders

(deprecated) CfnApiV2.CorsProperty.ExposeHeaders.

[Obsolete]
public string[]? ExposeHeaders { get; set; }

Property Value

string[]

Remarks

MaxAge

(deprecated) CfnApiV2.CorsProperty.MaxAge.

[Obsolete]
public double? MaxAge { get; set; }

Property Value

double?

Remarks