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”.



7273
7274
7275
// File 'service/s3/api.go', line 7273

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

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

SetGrants sets the Grants field's value.



7298
7299
7300
7301
// File 'service/s3/api.go', line 7298

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.



7304
7305
7306
7307
// File 'service/s3/api.go', line 7304

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”.



7264
7265
7266
// File 'service/s3/api.go', line 7264

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.



7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
// File 'service/s3/api.go', line 7278

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 }