Struct: s3.PutBucketCorsInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Bucket *string
Specifies the bucket impacted by the corsconfiguration.
-
CORSConfiguration *CORSConfiguration
Describes the cross-origin access configuration for objects in an Amazon S3 bucket.
-
ExpectedBucketOwner *string
Ignored by COS.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetBucket(string) *PutBucketCorsInput
operation
SetBucket sets the Bucket field's value.
-
SetCORSConfiguration(*CORSConfiguration) *PutBucketCorsInput
operation
SetCORSConfiguration sets the CORSConfiguration field's value.
-
SetExpectedBucketOwner(string) *PutBucketCorsInput
operation
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
-
String() string
operation
String returns the string representation.
-
Validate() error
operation
Validate inspects the fields of the type to determine if they are valid.
Structure Field Details
Bucket *string
`location:"uri" locationName:"Bucket" type:"string" required:"true"`
Specifies the bucket impacted by the corsconfiguration.
Bucket is a required field
CORSConfiguration *CORSConfiguration
`locationName:"CORSConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing (docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the Amazon S3 User Guide.
CORSConfiguration is a required field
ExpectedBucketOwner *string
`location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`
Ignored by COS.
_ struct{}
`locationName:"PutBucketCorsRequest" type:"structure" payload:"CORSConfiguration"`
Method Details
func (s PutBucketCorsInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
19004 19005 19006 |
// File 'service/s3/api.go', line 19004
|
func (s *PutBucketCorsInput) SetBucket(v string) *PutBucketCorsInput
SetBucket sets the Bucket field's value.
19033 19034 19035 19036 |
// File 'service/s3/api.go', line 19033
|
func (s *PutBucketCorsInput) SetCORSConfiguration(v *CORSConfiguration) *PutBucketCorsInput
SetCORSConfiguration sets the CORSConfiguration field's value.
19046 19047 19048 19049 |
// File 'service/s3/api.go', line 19046
|
func (s *PutBucketCorsInput) SetExpectedBucketOwner(v string) *PutBucketCorsInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
19052 19053 19054 19055 |
// File 'service/s3/api.go', line 19052
|
func (s PutBucketCorsInput) String() string
String returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
18995 18996 18997 |
// File 'service/s3/api.go', line 18995
|
func (s *PutBucketCorsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 |
// File 'service/s3/api.go', line 19009
|