Struct: s3.PutPublicAccessBlockInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Bucket *string
The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want to set.
-
ExpectedBucketOwner *string
Ignored by COS.
-
PublicAccessBlockConfiguration *PublicAccessBlockConfiguration
The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetBucket(string) *PutPublicAccessBlockInput
operation
SetBucket sets the Bucket field's value.
-
SetExpectedBucketOwner(string) *PutPublicAccessBlockInput
operation
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
-
SetPublicAccessBlockConfiguration(*PublicAccessBlockConfiguration) *PutPublicAccessBlockInput
operation
SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
-
String() string
operation
String returns the string representation.
-
Validate() error
operation
Validate inspects the fields of the type to determine if they are valid.
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 set.
Bucket is a required field
ExpectedBucketOwner *string
`location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`
Ignored by COS.
PublicAccessBlockConfiguration *PublicAccessBlockConfiguration
`locationName:"PublicAccessBlockConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see The Meaning of “Public” (docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) in the Amazon S3 User Guide.
PublicAccessBlockConfiguration is a required field
_ struct{}
`locationName:"PutPublicAccessBlockRequest" type:"structure" payload:"PublicAccessBlockConfiguration"`
Method Details
func (s PutPublicAccessBlockInput) 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”.
21150 21151 21152 |
// File 'service/s3/api.go', line 21150
|
func (s *PutPublicAccessBlockInput) SetBucket(v string) *PutPublicAccessBlockInput
SetBucket sets the Bucket field's value.
21174 21175 21176 21177 |
// File 'service/s3/api.go', line 21174
|
func (s *PutPublicAccessBlockInput) SetExpectedBucketOwner(v string) *PutPublicAccessBlockInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
21187 21188 21189 21190 |
// File 'service/s3/api.go', line 21187
|
func (s *PutPublicAccessBlockInput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *PutPublicAccessBlockInput
SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
21193 21194 21195 21196 |
// File 'service/s3/api.go', line 21193
|
func (s PutPublicAccessBlockInput) 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”.
21141 21142 21143 |
// File 'service/s3/api.go', line 21141
|
func (s *PutPublicAccessBlockInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
21155 21156 21157 21158 21159 21160 21161 21162 21163 21164 21165 21166 21167 21168 21169 21170 21171 |
// File 'service/s3/api.go', line 21155
|