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”.
21682 21683 21684 |
// File 'service/s3/api.go', line 21682
|
func (s *PutPublicAccessBlockInput) SetBucket(v string) *PutPublicAccessBlockInput
SetBucket sets the Bucket field’s value.
21706 21707 21708 21709 |
// File 'service/s3/api.go', line 21706
|
func (s *PutPublicAccessBlockInput) SetExpectedBucketOwner(v string) *PutPublicAccessBlockInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.
21719 21720 21721 21722 |
// File 'service/s3/api.go', line 21719
|
func (s *PutPublicAccessBlockInput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *PutPublicAccessBlockInput
SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field’s value.
21725 21726 21727 21728 |
// File 'service/s3/api.go', line 21725
|
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”.
21673 21674 21675 |
// File 'service/s3/api.go', line 21673
|
func (s *PutPublicAccessBlockInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 |
// File 'service/s3/api.go', line 21687
|