Struct: s3.PutBucketAclInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
ACL *string
The canned ACL to apply to the bucket.
-
AccessControlPolicy *AccessControlPolicy
Contains the elements that set the ACL permissions for an object per grantee.
-
Bucket *string
The bucket to which to apply the ACL.
-
ExpectedBucketOwner *string
Ignored by COS.
-
GrantFullControl *string
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
-
GrantRead *string
Allows grantee to list the objects in the bucket.
-
GrantReadACP *string
Allows grantee to read the bucket ACL.
-
GrantWrite *string
Allows grantee to create, overwrite, and delete any object in the bucket.
-
GrantWriteACP *string
Allows grantee to write the ACL for the applicable bucket.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetAccessControlPolicy(*AccessControlPolicy) *PutBucketAclInput
operation
SetAccessControlPolicy sets the AccessControlPolicy field's value.
-
SetACL(string) *PutBucketAclInput
operation
SetACL sets the ACL field's value.
-
SetBucket(string) *PutBucketAclInput
operation
SetBucket sets the Bucket field's value.
-
SetExpectedBucketOwner(string) *PutBucketAclInput
operation
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
-
SetGrantFullControl(string) *PutBucketAclInput
operation
SetGrantFullControl sets the GrantFullControl field's value.
-
SetGrantRead(string) *PutBucketAclInput
operation
SetGrantRead sets the GrantRead field's value.
-
SetGrantReadACP(string) *PutBucketAclInput
operation
SetGrantReadACP sets the GrantReadACP field's value.
-
SetGrantWrite(string) *PutBucketAclInput
operation
SetGrantWrite sets the GrantWrite field's value.
-
SetGrantWriteACP(string) *PutBucketAclInput
operation
SetGrantWriteACP sets the GrantWriteACP 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
ACL *string
`location:"header" locationName:"x-amz-acl" type:"string" enum:"BucketCannedACL"`
The canned ACL to apply to the bucket.
AccessControlPolicy *AccessControlPolicy
`locationName:"AccessControlPolicy" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
Contains the elements that set the ACL permissions for an object per grantee.
Bucket *string
`location:"uri" locationName:"Bucket" type:"string" required:"true"`
The bucket to which to apply the ACL.
Bucket is a required field
ExpectedBucketOwner *string
`location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`
Ignored by COS.
GrantFullControl *string
`location:"header" locationName:"x-amz-grant-full-control" type:"string"`
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
GrantRead *string
`location:"header" locationName:"x-amz-grant-read" type:"string"`
Allows grantee to list the objects in the bucket.
GrantReadACP *string
`location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
Allows grantee to read the bucket ACL.
GrantWrite *string
`location:"header" locationName:"x-amz-grant-write" type:"string"`
Allows grantee to create, overwrite, and delete any object in the bucket.
GrantWriteACP *string
`location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
Allows grantee to write the ACL for the applicable bucket.
_ struct{}
`locationName:"PutBucketAclRequest" type:"structure" payload:"AccessControlPolicy"`
Method Details
func (s PutBucketAclInput) 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”.
18625 18626 18627 |
// File 'service/s3/api.go', line 18625
|
func (s *PutBucketAclInput) SetAccessControlPolicy(v *AccessControlPolicy) *PutBucketAclInput
SetAccessControlPolicy sets the AccessControlPolicy field's value.
18657 18658 18659 18660 |
// File 'service/s3/api.go', line 18657
|
func (s *PutBucketAclInput) SetACL(v string) *PutBucketAclInput
SetACL sets the ACL field's value.
18651 18652 18653 18654 |
// File 'service/s3/api.go', line 18651
|
func (s *PutBucketAclInput) SetBucket(v string) *PutBucketAclInput
SetBucket sets the Bucket field's value.
18663 18664 18665 18666 |
// File 'service/s3/api.go', line 18663
|
func (s *PutBucketAclInput) SetExpectedBucketOwner(v string) *PutBucketAclInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
18676 18677 18678 18679 |
// File 'service/s3/api.go', line 18676
|
func (s *PutBucketAclInput) SetGrantFullControl(v string) *PutBucketAclInput
SetGrantFullControl sets the GrantFullControl field's value.
18682 18683 18684 18685 |
// File 'service/s3/api.go', line 18682
|
func (s *PutBucketAclInput) SetGrantRead(v string) *PutBucketAclInput
SetGrantRead sets the GrantRead field's value.
18688 18689 18690 18691 |
// File 'service/s3/api.go', line 18688
|
func (s *PutBucketAclInput) SetGrantReadACP(v string) *PutBucketAclInput
SetGrantReadACP sets the GrantReadACP field's value.
18694 18695 18696 18697 |
// File 'service/s3/api.go', line 18694
|
func (s *PutBucketAclInput) SetGrantWrite(v string) *PutBucketAclInput
SetGrantWrite sets the GrantWrite field's value.
18700 18701 18702 18703 |
// File 'service/s3/api.go', line 18700
|
func (s *PutBucketAclInput) SetGrantWriteACP(v string) *PutBucketAclInput
SetGrantWriteACP sets the GrantWriteACP field's value.
18706 18707 18708 18709 |
// File 'service/s3/api.go', line 18706
|
func (s PutBucketAclInput) 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”.
18616 18617 18618 |
// File 'service/s3/api.go', line 18616
|
func (s *PutBucketAclInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 |
// File 'service/s3/api.go', line 18630
|