Struct: s3.DeletePublicAccessBlockInput

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 Amazon S3 bucket whose PublicAccessBlock configuration you want to delete.

Bucket is a required field

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

Ignored by COS.

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

Method Details

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



11301
11302
11303
// File 'service/s3/api.go', line 11301

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

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

SetBucket sets the Bucket field’s value.



11322
11323
11324
11325
// File 'service/s3/api.go', line 11322

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.



11335
11336
11337
11338
// File 'service/s3/api.go', line 11335

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

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



11292
11293
11294
// File 'service/s3/api.go', line 11292

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

func (s *DeletePublicAccessBlockInput) Validate() error

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



11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
// File 'service/s3/api.go', line 11306

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