Skip to content
v2.274.0

UserInvitationConfig Struct ​

User pool configuration when administrators sign users up.

Example ​

ts
new cognito.UserPool(this, 'myuserpool', {
  // ...
  userInvitation: {
    emailSubject: 'Invite to join our awesome app!',
    emailBody: 'Hello {username}, you have been invited to join our awesome app! Your temporary password is {####}',
    smsMessage: 'Hello {username}, your temporary password for our awesome app is {####}',
  },
});

Properties ​

emailBodyoptionalstringemail_bodyoptionalstremailBodyoptionalStringEmailBodyoptionalstringEmailBodyoptional*string#
The template to the email body that is sent to the user when an administrator signs them up to the user pool.

Default: 'Your username is {username} and temporary password is {####}.'

emailSubjectoptionalstringemail_subjectoptionalstremailSubjectoptionalStringEmailSubjectoptionalstringEmailSubjectoptional*string#
The template to the email subject that is sent to the user when an administrator signs them up to the user pool.

Default: 'Your temporary password'

smsMessageoptionalstringsms_messageoptionalstrsmsMessageoptionalStringSmsMessageoptionalstringSmsMessageoptional*string#
The template to the SMS message that is sent to the user when an administrator signs them up to the user pool.

Default: 'Your username is {username} and temporary password is {####}'