Show / Hide Table of Contents

Interface CfnHttpApiPropsMixin.ICorsConfigurationObjectProperty

Namespace: Amazon.CDK.Mixins.Preview.AWS.SAM.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public interface CfnHttpApiPropsMixin.ICorsConfigurationObjectProperty
Syntax (vb)
Public Interface CfnHttpApiPropsMixin.ICorsConfigurationObjectProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html

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.Mixins.Preview.AWS.SAM.Mixins;

             var corsConfigurationObjectProperty = new CorsConfigurationObjectProperty {
                 AllowCredentials = false,
                 AllowHeaders = new [] { "allowHeaders" },
                 AllowMethods = new [] { "allowMethods" },
                 AllowOrigins = new [] { "allowOrigins" },
                 ExposeHeaders = new [] { "exposeHeaders" },
                 MaxAge = 123
             };

Synopsis

Properties

AllowCredentials
AllowHeaders
AllowMethods
AllowOrigins
ExposeHeaders
MaxAge

Properties

AllowCredentials

object? AllowCredentials { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-allowcredentials

Type union: either bool or IResolvable

AllowHeaders

string[]? AllowHeaders { get; }
Property Value

string[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-allowheaders

AllowMethods

string[]? AllowMethods { get; }
Property Value

string[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-allowmethods

AllowOrigins

string[]? AllowOrigins { get; }
Property Value

string[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-alloworigins

ExposeHeaders

string[]? ExposeHeaders { get; }
Property Value

string[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-exposeheaders

MaxAge

double? MaxAge { get; }
Property Value

double?

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-maxage

Back to top Generated by DocFX