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.

GetUserOutput

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

type GetUserOutput struct { MFAOptions []*MFAOptionType `type:"list"` PreferredMfaSetting *string `type:"string"` UserAttributes []*AttributeType `type:"list" required:"true"` UserMFASettingList []*string `type:"list"` Username *string `min:"1" type:"string" required:"true" sensitive:"true"` }

Represents the response from the server from the request to get information about the user.

MFAOptions

Specifies the different settings for multi-factor authentication (MFA).

PreferredMfaSetting

Type: *string

The user's preferred MFA setting.

UserAttributes

Specifies whether the attribute is standard or custom.

UserMFASettingList

Type: []*string

The list of the user's MFA settings.

Username

Type: *string

The user name of the user you wish to retrieve from the get user request.

Username is a required field

Method

GoString

func (s GetUserOutput) GoString() string

GoString returns the string representation

SetMFAOptions

func (s *GetUserOutput) SetMFAOptions(v []*MFAOptionType) *GetUserOutput

SetMFAOptions sets the MFAOptions field's value.

SetPreferredMfaSetting

func (s *GetUserOutput) SetPreferredMfaSetting(v string) *GetUserOutput

SetPreferredMfaSetting sets the PreferredMfaSetting field's value.

SetUserAttributes

func (s *GetUserOutput) SetUserAttributes(v []*AttributeType) *GetUserOutput

SetUserAttributes sets the UserAttributes field's value.

SetUserMFASettingList

func (s *GetUserOutput) SetUserMFASettingList(v []*string) *GetUserOutput

SetUserMFASettingList sets the UserMFASettingList field's value.

SetUsername

func (s *GetUserOutput) SetUsername(v string) *GetUserOutput

SetUsername sets the Username field's value.

String

func (s GetUserOutput) String() string

String returns the string representation

On this page: