Struct: s3.GetPublicAccessBlockInput

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 name of the Amazon S3 bucket whose PublicAccessBlock configuration you want to retrieve.

Bucket is a required field

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

Ignored by COS.

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

Method Details

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



14436
14437
14438
// File 'service/s3/api.go', line 14436

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

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

SetBucket sets the Bucket field’s value.



14457
14458
14459
14460
// File 'service/s3/api.go', line 14457

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.



14470
14471
14472
14473
// File 'service/s3/api.go', line 14470

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

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



14427
14428
14429
// File 'service/s3/api.go', line 14427

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

func (s *GetPublicAccessBlockInput) Validate() error

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



14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
// File 'service/s3/api.go', line 14441

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