aws-cdk-lib.aws_sam.CfnHttpApi.CorsConfigurationObjectProperty

interface CorsConfigurationObjectProperty

LanguageType name
.NETAmazon.CDK.AWS.SAM.CfnHttpApi.CorsConfigurationObjectProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssam#CfnHttpApi_CorsConfigurationObjectProperty
Javasoftware.amazon.awscdk.services.sam.CfnHttpApi.CorsConfigurationObjectProperty
Pythonaws_cdk.aws_sam.CfnHttpApi.CorsConfigurationObjectProperty
TypeScript aws-cdk-lib » aws_sam » CfnHttpApi » CorsConfigurationObjectProperty

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sam as sam } from 'aws-cdk-lib';
const corsConfigurationObjectProperty: sam.CfnHttpApi.CorsConfigurationObjectProperty = {
  allowCredentials: false,
  allowHeaders: ['allowHeaders'],
  allowMethods: ['allowMethods'],
  allowOrigins: ['allowOrigins'],
  exposeHeaders: ['exposeHeaders'],
  maxAge: 123,
};

Properties

NameTypeDescription
allowCredentials?boolean | IResolvableCfnHttpApi.CorsConfigurationObjectProperty.AllowCredentials.
allowHeaders?string[]CfnHttpApi.CorsConfigurationObjectProperty.AllowHeaders.
allowMethods?string[]CfnHttpApi.CorsConfigurationObjectProperty.AllowMethods.
allowOrigins?string[]CfnHttpApi.CorsConfigurationObjectProperty.AllowOrigins.
exposeHeaders?string[]CfnHttpApi.CorsConfigurationObjectProperty.ExposeHeaders.
maxAge?numberCfnHttpApi.CorsConfigurationObjectProperty.MaxAge.

allowCredentials?

Type: boolean | IResolvable (optional)

CfnHttpApi.CorsConfigurationObjectProperty.AllowCredentials.


allowHeaders?

Type: string[] (optional)

CfnHttpApi.CorsConfigurationObjectProperty.AllowHeaders.


allowMethods?

Type: string[] (optional)

CfnHttpApi.CorsConfigurationObjectProperty.AllowMethods.


allowOrigins?

Type: string[] (optional)

CfnHttpApi.CorsConfigurationObjectProperty.AllowOrigins.


exposeHeaders?

Type: string[] (optional)

CfnHttpApi.CorsConfigurationObjectProperty.ExposeHeaders.


maxAge?

Type: number (optional)

CfnHttpApi.CorsConfigurationObjectProperty.MaxAge.