-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnFunction_CorsConfigurationProperty.go
38 lines (35 loc) · 2.03 KB
/
CfnFunction_CorsConfigurationProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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"
//
// corsConfigurationProperty := &CorsConfigurationProperty{
// AllowOrigin: jsii.String("allowOrigin"),
//
// // the properties below are optional
// AllowCredentials: jsii.Boolean(false),
// AllowHeaders: jsii.String("allowHeaders"),
// AllowMethods: jsii.String("allowMethods"),
// MaxAge: jsii.String("maxAge"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-corsconfiguration.html
//
type CfnFunction_CorsConfigurationProperty struct {
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-corsconfiguration.html#cfn-serverless-function-corsconfiguration-alloworigin
//
AllowOrigin *string `field:"required" json:"allowOrigin" yaml:"allowOrigin"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-corsconfiguration.html#cfn-serverless-function-corsconfiguration-allowcredentials
//
AllowCredentials interface{} `field:"optional" json:"allowCredentials" yaml:"allowCredentials"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-corsconfiguration.html#cfn-serverless-function-corsconfiguration-allowheaders
//
AllowHeaders *string `field:"optional" json:"allowHeaders" yaml:"allowHeaders"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-corsconfiguration.html#cfn-serverless-function-corsconfiguration-allowmethods
//
AllowMethods *string `field:"optional" json:"allowMethods" yaml:"allowMethods"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-corsconfiguration.html#cfn-serverless-function-corsconfiguration-maxage
//
MaxAge *string `field:"optional" json:"maxAge" yaml:"maxAge"`
}