@Stability(value=Stable)
public static interface CfnUserPool.EmailConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;
EmailConfigurationProperty emailConfigurationProperty = EmailConfigurationProperty.builder()
.configurationSet("configurationSet")
.emailSendingAccount("emailSendingAccount")
.from("from")
.replyToEmailAddress("replyToEmailAddress")
.sourceArn("sourceArn")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnUserPool.EmailConfigurationProperty.Builder
A builder for
CfnUserPool.EmailConfigurationProperty |
static class |
CfnUserPool.EmailConfigurationProperty.Jsii$Proxy
An implementation for
CfnUserPool.EmailConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnUserPool.EmailConfigurationProperty.Builder |
builder() |
default String |
getConfigurationSet()
The set of configuration rules that can be applied to emails sent using Amazon SES.
|
default String |
getEmailSendingAccount()
Specifies whether Amazon Cognito emails your users by using its built-in email functionality or your Amazon SES email configuration.
|
default String |
getFrom()
Identifies either the sender's email address or the sender's name with their email address.
|
default String |
getReplyToEmailAddress()
The destination to which the receiver of the email should reply to.
|
default String |
getSourceArn()
The Amazon Resource Name (ARN) of a verified email address in Amazon SES.
|
@Stability(value=Stable) @Nullable default String getConfigurationSet()
A configuration set is applied to an email by including a reference to the configuration set in the headers of the email. Once applied, all of the rules in that configuration set are applied to the email. Configuration sets can be used to apply the following types of rules to emails:
@Stability(value=Stable) @Nullable default String getEmailSendingAccount()
Specify one of the following values:
To look up the email delivery limit for the default option, see Limits in Amazon Cognito in the Amazon Cognito Developer Guide .
The default FROM address is no-reply@verificationemail.com. To customize the FROM address, provide the ARN of an Amazon SES verified email address for the SourceArn parameter.
If EmailSendingAccount is COGNITO_DEFAULT, the following parameters aren't allowed:
DEVELOPER EmailSendingAccount is required.
If you use this option, you must provide the ARN of an Amazon SES verified email address for the SourceArn parameter.
Before Amazon Cognito can email your users, it requires additional permissions to call Amazon SES on your behalf. When you update your user pool with this option, Amazon Cognito creates a service-linked role , which is a type of IAM role, in your AWS account . This role contains the permissions that allow Amazon Cognito to access Amazon SES and send email messages with your address. For more information about the service-linked role that Amazon Cognito creates, see Using Service-Linked Roles for Amazon Cognito in the Amazon Cognito Developer Guide .
@Stability(value=Stable) @Nullable default String getFrom()
For example, testuser@example.com or Test User <testuser@example.com> . This address appears before the body of the email.
@Stability(value=Stable) @Nullable default String getReplyToEmailAddress()
@Stability(value=Stable) @Nullable default String getSourceArn()
This email address is used in one of the following ways, depending on the value that you specify for the EmailSendingAccount parameter:
COGNITO_DEFAULT , Amazon Cognito uses this address as the custom FROM address when it emails your users by using its built-in email account.DEVELOPER , Amazon Cognito emails your users with this address by calling Amazon SES on your behalf.@Stability(value=Stable) static CfnUserPool.EmailConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.