AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Grant

import "github.com/aws/aws-sdk-go/service/glacier"

type Grant struct { Grantee *Grantee `type:"structure"` Permission *string `type:"string" enum:"Permission"` }

Contains information about a grant.

Grantee

Contains information about the grantee.

Permission

Type: *string

Specifies the permission given to the grantee.

Method

GoString

func (s Grant) GoString() string

GoString returns the string representation

SetGrantee

func (s *Grant) SetGrantee(v *Grantee) *Grant

SetGrantee sets the Grantee field's value.

SetPermission

func (s *Grant) SetPermission(v string) *Grant

SetPermission sets the Permission field's value.

String

func (s Grant) String() string

String returns the string representation

Validate

func (s *Grant) Validate() error

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

On this page: