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.

AdminGetUserOutput

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

type AdminGetUserOutput struct { Enabled *bool `type:"boolean"` MFAOptions []*MFAOptionType `type:"list"` PreferredMfaSetting *string `type:"string"` UserAttributes []*AttributeType `type:"list"` UserCreateDate *time.Time `type:"timestamp"` UserLastModifiedDate *time.Time `type:"timestamp"` UserMFASettingList []*string `type:"list"` UserStatus *string `type:"string" enum:"UserStatusType"` Username *string `min:"1" type:"string" required:"true" sensitive:"true"` }

Represents the response from the server from the request to get the specified user as an administrator.

Enabled

Type: *bool

Indicates that the status is enabled.

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.

UserCreateDate

Type: *time.Time

The date the user was created.

UserLastModifiedDate

Type: *time.Time

The date the user was last modified.

UserMFASettingList

Type: []*string

The list of the user's MFA settings.

UserStatus

Type: *string

The user status. Can be one of the following:

  • UNCONFIRMED - User has been created but not confirmed.

  • CONFIRMED - User has been confirmed.

  • ARCHIVED - User is no longer active.

  • COMPROMISED - User is disabled due to a potential security threat.

  • UNKNOWN - User status is not known.

Username

Type: *string

The user name of the user about whom you are receiving information.

Username is a required field

Method

GoString

func (s AdminGetUserOutput) GoString() string

GoString returns the string representation

SetEnabled

func (s *AdminGetUserOutput) SetEnabled(v bool) *AdminGetUserOutput

SetEnabled sets the Enabled field's value.

SetMFAOptions

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

SetMFAOptions sets the MFAOptions field's value.

SetPreferredMfaSetting

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

SetPreferredMfaSetting sets the PreferredMfaSetting field's value.

SetUserAttributes

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

SetUserAttributes sets the UserAttributes field's value.

SetUserCreateDate

func (s *AdminGetUserOutput) SetUserCreateDate(v time.Time) *AdminGetUserOutput

SetUserCreateDate sets the UserCreateDate field's value.

SetUserLastModifiedDate

func (s *AdminGetUserOutput) SetUserLastModifiedDate(v time.Time) *AdminGetUserOutput

SetUserLastModifiedDate sets the UserLastModifiedDate field's value.

SetUserMFASettingList

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

SetUserMFASettingList sets the UserMFASettingList field's value.

SetUserStatus

func (s *AdminGetUserOutput) SetUserStatus(v string) *AdminGetUserOutput

SetUserStatus sets the UserStatus field's value.

SetUsername

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

SetUsername sets the Username field's value.

String

func (s AdminGetUserOutput) String() string

String returns the string representation

On this page: