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.

UserType

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

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

The user type.

Attributes

Specifies whether the attribute is standard or custom.

Enabled

Type: *bool

Specifies whether the user is enabled.

MFAOptions

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

UserCreateDate

Type: *time.Time

The creation date of the user.

UserLastModifiedDate

Type: *time.Time

The last modified date of the user.

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 you wish to describe.

Method

GoString

func (s UserType) GoString() string

GoString returns the string representation

SetAttributes

func (s *UserType) SetAttributes(v []*AttributeType) *UserType

SetAttributes sets the Attributes field's value.

SetEnabled

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

SetEnabled sets the Enabled field's value.

SetMFAOptions

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

SetMFAOptions sets the MFAOptions field's value.

SetUserCreateDate

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

SetUserCreateDate sets the UserCreateDate field's value.

SetUserLastModifiedDate

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

SetUserLastModifiedDate sets the UserLastModifiedDate field's value.

SetUserStatus

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

SetUserStatus sets the UserStatus field's value.

SetUsername

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

SetUsername sets the Username field's value.

String

func (s UserType) String() string

String returns the string representation

On this page: