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”.



11150
11151
11152
// File 'service/s3/api.go', line 11150

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

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

SetBucket sets the Bucket field's value.



11171
11172
11173
11174
// File 'service/s3/api.go', line 11171

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.



11184
11185
11186
11187
// File 'service/s3/api.go', line 11184

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”.



11141
11142
11143
// File 'service/s3/api.go', line 11141

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.



11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
// File 'service/s3/api.go', line 11155

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 }