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.

Principal

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

type Principal struct { Id *string `min:"1" type:"string"` Roles []*PermissionInfo `type:"list"` Type *string `type:"string" enum:"PrincipalType"` }

Describes a resource.

Id

Type: *string

The ID of the resource.

Roles

Describes the permissions.

Type

Type: *string

The type of resource.

Method

GoString

func (s Principal) GoString() string

GoString returns the string representation

SetId

func (s *Principal) SetId(v string) *Principal

SetId sets the Id field's value.

SetRoles

func (s *Principal) SetRoles(v []*PermissionInfo) *Principal

SetRoles sets the Roles field's value.

SetType

func (s *Principal) SetType(v string) *Principal

SetType sets the Type field's value.

String

func (s Principal) String() string

String returns the string representation

On this page: