Struct: s3.AccessControlPolicy

import "../ibm-cos-sdk-go/service/s3"

Overview

Contains the elements that set the ACL permissions for an object per grantee.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"`

A list of grants.

Owner *Owner `type:"structure"`

Container for the bucket owner’s display name and ID.

_ struct{} `type:"structure"`

Method Details

func (s AccessControlPolicy) 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”.



7424
7425
7426
// File 'service/s3/api.go', line 7424

func (s AccessControlPolicy) GoString() string { return s.String() }

func (s *AccessControlPolicy) SetGrants(v []*Grant) *AccessControlPolicy

SetGrants sets the Grants field’s value.



7449
7450
7451
7452
// File 'service/s3/api.go', line 7449

func (s *AccessControlPolicy) SetGrants(v []*Grant) *AccessControlPolicy { s.Grants = v return s }

func (s *AccessControlPolicy) SetOwner(v *Owner) *AccessControlPolicy

SetOwner sets the Owner field’s value.



7455
7456
7457
7458
// File 'service/s3/api.go', line 7455

func (s *AccessControlPolicy) SetOwner(v *Owner) *AccessControlPolicy { s.Owner = v return s }

func (s AccessControlPolicy) 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”.



7415
7416
7417
// File 'service/s3/api.go', line 7415

func (s AccessControlPolicy) String() string { return awsutil.Prettify(s) }

func (s *AccessControlPolicy) Validate() error

Validate inspects the fields of the type to determine if they are valid.



7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
// File 'service/s3/api.go', line 7429

func (s *AccessControlPolicy) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AccessControlPolicy"} if s.Grants != nil { for i, v := range s.Grants { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Grants", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil }