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.

Permission

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

type Permission struct { GranteeId *string `min:"12" type:"string" required:"true"` GranteeType *string `type:"string" required:"true" enum:"MemberType"` PermissionValues []*string `type:"list" required:"true"` }

Permission granted to an entity (user, group) to access a certain aspect of another entity's mailbox.

GranteeId

Type: *string

The identifier of the entity (user or group) to which the permissions are granted.

GranteeId is a required field

GranteeType

Type: *string

The type of entity (user, group) of the entity referred to in GranteeId.

GranteeType is a required field

PermissionValues

Type: []*string

The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.

PermissionValues is a required field

Method

GoString

func (s Permission) GoString() string

GoString returns the string representation

SetGranteeId

func (s *Permission) SetGranteeId(v string) *Permission

SetGranteeId sets the GranteeId field's value.

SetGranteeType

func (s *Permission) SetGranteeType(v string) *Permission

SetGranteeType sets the GranteeType field's value.

SetPermissionValues

func (s *Permission) SetPermissionValues(v []*string) *Permission

SetPermissionValues sets the PermissionValues field's value.

String

func (s Permission) String() string

String returns the string representation

On this page: