Class CfnApi.CorsConfigurationProperty
Inheritance
System.Object
CfnApi.CorsConfigurationProperty
Implements
Namespace: Amazon.CDK.AWS.SAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CorsConfigurationProperty : Object, CfnApi.ICorsConfigurationProperty
Syntax (vb)
Public Class CorsConfigurationProperty
Inherits Object
Implements CfnApi.ICorsConfigurationProperty
Remarks
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.SAM;
var corsConfigurationProperty = new CorsConfigurationProperty {
AllowOrigin = "allowOrigin",
// the properties below are optional
AllowCredentials = false,
AllowHeaders = "allowHeaders",
AllowMethods = "allowMethods",
MaxAge = "maxAge"
};
Synopsis
Constructors
CorsConfigurationProperty() |
Properties
AllowCredentials | |
AllowHeaders | |
AllowMethods | |
AllowOrigin | |
MaxAge |
Constructors
CorsConfigurationProperty()
public CorsConfigurationProperty()
Properties
AllowCredentials
public object AllowCredentials { get; set; }
Property Value
System.Object
Remarks
AllowHeaders
public string AllowHeaders { get; set; }
Property Value
System.String
Remarks
AllowMethods
public string AllowMethods { get; set; }
Property Value
System.String
Remarks
AllowOrigin
public string AllowOrigin { get; set; }
Property Value
System.String
Remarks
MaxAge
public string MaxAge { get; set; }
Property Value
System.String