Struct: s3.PublicAccessBlockConfiguration
Overview
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.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
-
BlockPublicAcls *bool
Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket.
-
IgnorePublicAcls *bool
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetBlockPublicAcls(bool) *PublicAccessBlockConfiguration
operation
SetBlockPublicAcls sets the BlockPublicAcls field's value.
-
SetIgnorePublicAcls(bool) *PublicAccessBlockConfiguration
operation
SetIgnorePublicAcls sets the IgnorePublicAcls field's value.
-
String() string
operation
String returns the string representation.
Structure Field Details
BlockPublicAcls *bool
`locationName:"BlockPublicAcls" type:"boolean"`
Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket. Setting this element to TRUE causes the following behavior:
-
PUT Bucket acl and PUT Object acl calls fail if the specified ACL is public.
-
PUT Object calls fail if the request includes a public ACL.
-
PUT Bucket calls fail if the request includes a public ACL.
Enabling this setting doesn't affect existing policies or ACLs.
IgnorePublicAcls *bool
`locationName:"IgnorePublicAcls" type:"boolean"`
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs on this bucket and objects in this bucket.
Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.
_ struct{}
`type:"structure"`
Method Details
func (s PublicAccessBlockConfiguration) 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”.
18798 18799 18800 |
// File 'service/s3/api.go', line 18798
|
func (s *PublicAccessBlockConfiguration) SetBlockPublicAcls(v bool) *PublicAccessBlockConfiguration
SetBlockPublicAcls sets the BlockPublicAcls field's value.
18803 18804 18805 18806 |
// File 'service/s3/api.go', line 18803
|
func (s *PublicAccessBlockConfiguration) SetIgnorePublicAcls(v bool) *PublicAccessBlockConfiguration
SetIgnorePublicAcls sets the IgnorePublicAcls field's value.
18809 18810 18811 18812 |
// File 'service/s3/api.go', line 18809
|
func (s PublicAccessBlockConfiguration) 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”.
18789 18790 18791 |
// File 'service/s3/api.go', line 18789
|