-
Notifications
You must be signed in to change notification settings - Fork 17
/
awss3_CfnBucket_CorsConfigurationProperty.go
42 lines (39 loc) · 1.3 KB
/
awss3_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
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),
// },
// },
// }
//
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.
CorsRules interface{} `field:"required" json:"corsRules" yaml:"corsRules"`
}