-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnBucket_CorsConfigurationProperty.go
46 lines (43 loc) · 1.58 KB
/
CfnBucket_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
38
39
40
41
42
43
44
45
package awss3
// Describes the cross-origin access configuration for objects in an Amazon S3 bucket.
//
// For more information, see [Enabling Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the *Amazon S3 User Guide* .
//
// 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{
// CorsRules: []interface{}{
// &CorsRuleProperty{
// AllowedMethods: []*string{
// jsii.String("allowedMethods"),
// },
// AllowedOrigins: []*string{
// jsii.String("allowedOrigins"),
// },
//
// // the properties below are optional
// AllowedHeaders: []*string{
// jsii.String("allowedHeaders"),
// },
// ExposedHeaders: []*string{
// jsii.String("exposedHeaders"),
// },
// Id: jsii.String("id"),
// MaxAge: jsii.Number(123),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-corsconfiguration.html
//
type CfnBucket_CorsConfigurationProperty struct {
// A set of origins and methods (cross-origin access that you want to allow).
//
// You can add up to 100 rules to the configuration.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-corsconfiguration.html#cfn-s3-bucket-corsconfiguration-corsrules
//
CorsRules interface{} `field:"required" json:"corsRules" yaml:"corsRules"`
}