package awssam // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import "github.com/aws/aws-cdk-go/awscdk" // // corsConfigurationObjectProperty := &CorsConfigurationObjectProperty{ // AllowCredentials: jsii.Boolean(false), // AllowHeaders: []*string{ // jsii.String("allowHeaders"), // }, // AllowMethods: []*string{ // jsii.String("allowMethods"), // }, // AllowOrigins: []*string{ // jsii.String("allowOrigins"), // }, // ExposeHeaders: []*string{ // jsii.String("exposeHeaders"), // }, // MaxAge: jsii.Number(123), // } // // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html // type CfnHttpApi_CorsConfigurationObjectProperty struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-allowcredentials // AllowCredentials interface{} `field:"optional" json:"allowCredentials" yaml:"allowCredentials"` // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-allowheaders // AllowHeaders *[]*string `field:"optional" json:"allowHeaders" yaml:"allowHeaders"` // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-allowmethods // AllowMethods *[]*string `field:"optional" json:"allowMethods" yaml:"allowMethods"` // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-alloworigins // AllowOrigins *[]*string `field:"optional" json:"allowOrigins" yaml:"allowOrigins"` // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-exposeheaders // ExposeHeaders *[]*string `field:"optional" json:"exposeHeaders" yaml:"exposeHeaders"` // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-httpapi-corsconfigurationobject.html#cfn-serverless-httpapi-corsconfigurationobject-maxage // MaxAge *float64 `field:"optional" json:"maxAge" yaml:"maxAge"` }