Struct: s3.GetBucketAclInput

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"`

Specifies the S3 bucket whose ACL is being requested.

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:"GetBucketAclRequest" type:"structure"`

Method Details

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



11965
11966
11967
// File 'service/s3/api.go', line 11965

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

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

SetBucket sets the Bucket field's value.



11986
11987
11988
11989
// File 'service/s3/api.go', line 11986

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.



11999
12000
12001
12002
// File 'service/s3/api.go', line 11999

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

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



11956
11957
11958
// File 'service/s3/api.go', line 11956

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

func (s *GetBucketAclInput) Validate() error

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



11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
// File 'service/s3/api.go', line 11970

func (s *GetBucketAclInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetBucketAclInput"} 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 }