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/ram"

type Principal struct { CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` External *bool `locationName:"external" type:"boolean"` Id *string `locationName:"id" type:"string"` LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"` ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` }

Describes a principal for use with AWS Resource Access Manager.

CreationTime

Type: *time.Time

The time when the principal was associated with the resource share.

External

Type: *bool

Indicates whether the principal belongs to the same organization as the AWS account that owns the resource share.

Id

Type: *string

The ID of the principal.

LastUpdatedTime

Type: *time.Time

The time when the association was last updated.

ResourceShareArn

Type: *string

The Amazon Resource Name (ARN) of the resource share.

Method

GoString

func (s Principal) GoString() string

GoString returns the string representation

SetCreationTime

func (s *Principal) SetCreationTime(v time.Time) *Principal

SetCreationTime sets the CreationTime field's value.

SetExternal

func (s *Principal) SetExternal(v bool) *Principal

SetExternal sets the External field's value.

SetId

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

SetId sets the Id field's value.

SetLastUpdatedTime

func (s *Principal) SetLastUpdatedTime(v time.Time) *Principal

SetLastUpdatedTime sets the LastUpdatedTime field's value.

SetResourceShareArn

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

SetResourceShareArn sets the ResourceShareArn field's value.

String

func (s Principal) String() string

String returns the string representation

On this page: