@Stability(value=Stable) public static final class CfnUserPool.SmsConfigurationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnUserPool.SmsConfigurationProperty>
CfnUserPool.SmsConfigurationProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnUserPool.SmsConfigurationProperty |
build()
Builds the configured instance.
|
CfnUserPool.SmsConfigurationProperty.Builder |
externalId(String externalId)
Sets the value of
CfnUserPool.SmsConfigurationProperty.getExternalId() |
CfnUserPool.SmsConfigurationProperty.Builder |
snsCallerArn(String snsCallerArn)
Sets the value of
CfnUserPool.SmsConfigurationProperty.getSnsCallerArn() |
@Stability(value=Stable) public CfnUserPool.SmsConfigurationProperty.Builder externalId(String externalId)
CfnUserPool.SmsConfigurationProperty.getExternalId()externalId - The external ID is a value.
We recommend you use ExternalId to add security to your IAM role, which is used to call Amazon SNS to send SMS messages for your user pool. If you provide an ExternalId , the Cognito User Pool uses it when attempting to assume your IAM role. You can also set your roles trust policy to require the ExternalID . If you use the Cognito Management Console to create a role for SMS MFA, Cognito creates a role with the required permissions and a trust policy that uses ExternalId .this@Stability(value=Stable) public CfnUserPool.SmsConfigurationProperty.Builder snsCallerArn(String snsCallerArn)
CfnUserPool.SmsConfigurationProperty.getSnsCallerArn()snsCallerArn - The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) caller.
This is the ARN of the IAM role in your AWS account which Cognito will use to send SMS messages. SMS messages are subject to a spending limit .this@Stability(value=Stable) public CfnUserPool.SmsConfigurationProperty build()
build in interface software.amazon.jsii.Builder<CfnUserPool.SmsConfigurationProperty>CfnUserPool.SmsConfigurationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.