Struct: s3.GetBucketCorsInput

import "../ibm-cos-sdk-go/service/s3"

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`

The bucket name for which to get the cors configuration.

To use this API operation against an access point, provide the alias of the access point in place of the bucket name.

To use this API operation against an Object Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name. If the Object Lambda access point alias in a request is not valid, the error code InvalidAccessPointAliasError is returned. For more information about InvalidAccessPointAliasError, see List of Error Codes (docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList).

Bucket is a required field

ExpectedBucketOwner *string `location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`

Ignored by COS.

_ struct{} `locationName:"GetBucketCorsRequest" type:"structure"`

Method Details

func (s GetBucketCorsInput) 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”.



12230
12231
12232
// File 'service/s3/api.go', line 12230

func (s GetBucketCorsInput) GoString() string { return s.String() }

func (s *GetBucketCorsInput) SetBucket(v string) *GetBucketCorsInput

SetBucket sets the Bucket field’s value.



12251
12252
12253
12254
// File 'service/s3/api.go', line 12251

func (s *GetBucketCorsInput) SetBucket(v string) *GetBucketCorsInput { s.Bucket = &v return s }

func (s *GetBucketCorsInput) SetExpectedBucketOwner(v string) *GetBucketCorsInput

SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.



12264
12265
12266
12267
// File 'service/s3/api.go', line 12264

func (s *GetBucketCorsInput) SetExpectedBucketOwner(v string) *GetBucketCorsInput { s.ExpectedBucketOwner = &v return s }

func (s GetBucketCorsInput) 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”.



12221
12222
12223
// File 'service/s3/api.go', line 12221

func (s GetBucketCorsInput) String() string { return awsutil.Prettify(s) }

func (s *GetBucketCorsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.



12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
// File 'service/s3/api.go', line 12235

func (s *GetBucketCorsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetBucketCorsInput"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } if s.Bucket != nil && len(*s.Bucket) < 1 { invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil }