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.

AccountTakeoverActionType

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

type AccountTakeoverActionType struct { EventAction *string `type:"string" required:"true" enum:"AccountTakeoverEventActionType"` Notify *bool `type:"boolean" required:"true"` }

Account takeover action type.

EventAction

Type: *string

The event action.

  • BLOCK Choosing this action will block the request.

  • MFA_IF_CONFIGURED Throw MFA challenge if user has configured it, else allow the request.

  • MFA_REQUIRED Throw MFA challenge if user has configured it, else block the request.

  • NO_ACTION Allow the user sign-in.

EventAction is a required field

Notify

Type: *bool

Flag specifying whether to send a notification.

Notify is a required field

Method

GoString

func (s AccountTakeoverActionType) GoString() string

GoString returns the string representation

SetEventAction

func (s *AccountTakeoverActionType) SetEventAction(v string) *AccountTakeoverActionType

SetEventAction sets the EventAction field's value.

SetNotify

func (s *AccountTakeoverActionType) SetNotify(v bool) *AccountTakeoverActionType

SetNotify sets the Notify field's value.

String

func (s AccountTakeoverActionType) String() string

String returns the string representation

Validate

func (s *AccountTakeoverActionType) Validate() error

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

On this page: