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”.
21678 21679 21680 |
// File 'service/s3/api.go', line 21678
|
func (s *PutPublicAccessBlockInput) SetBucket(v string) *PutPublicAccessBlockInput
SetBucket sets the Bucket field’s value.
21702 21703 21704 21705 |
// File 'service/s3/api.go', line 21702
|
func (s *PutPublicAccessBlockInput) SetExpectedBucketOwner(v string) *PutPublicAccessBlockInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.
21715 21716 21717 21718 |
// File 'service/s3/api.go', line 21715
|
func (s *PutPublicAccessBlockInput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *PutPublicAccessBlockInput
SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field’s value.
21721 21722 21723 21724 |
// File 'service/s3/api.go', line 21721
|
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”.
21669 21670 21671 |
// File 'service/s3/api.go', line 21669
|
func (s *PutPublicAccessBlockInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 |
// File 'service/s3/api.go', line 21683
|