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.

SetUserMFAPreferenceInput

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

type SetUserMFAPreferenceInput struct { AccessToken *string `type:"string" required:"true" sensitive:"true"` SMSMfaSettings *SMSMfaSettingsType `type:"structure"` SoftwareTokenMfaSettings *SoftwareTokenMfaSettingsType `type:"structure"` }

AccessToken

Type: *string

The access token.

AccessToken is a required field

SMSMfaSettings

The SMS multi-factor authentication (MFA) settings type.

SoftwareTokenMfaSettings

The type used for enabling software token MFA at the user level.

Method

GoString

func (s SetUserMFAPreferenceInput) GoString() string

GoString returns the string representation

SetAccessToken

func (s *SetUserMFAPreferenceInput) SetAccessToken(v string) *SetUserMFAPreferenceInput

SetAccessToken sets the AccessToken field's value.

SetSMSMfaSettings

func (s *SetUserMFAPreferenceInput) SetSMSMfaSettings(v *SMSMfaSettingsType) *SetUserMFAPreferenceInput

SetSMSMfaSettings sets the SMSMfaSettings field's value.

SetSoftwareTokenMfaSettings

func (s *SetUserMFAPreferenceInput) SetSoftwareTokenMfaSettings(v *SoftwareTokenMfaSettingsType) *SetUserMFAPreferenceInput

SetSoftwareTokenMfaSettings sets the SoftwareTokenMfaSettings field's value.

String

func (s SetUserMFAPreferenceInput) String() string

String returns the string representation

Validate

func (s *SetUserMFAPreferenceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: