Class: AWSCDK::Cognito::CfnUserPool::RecoveryOptionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::CfnUserPool::RecoveryOptionProperty
- Defined in:
- cognito/cfn_user_pool.rb
Overview
A recovery option for a user.
The AccountRecoverySettingType data type is an array of this object. Each RecoveryOptionType has a priority property that determines whether it is a primary or secondary option.
For example, if verified_email has a priority of 1 and verified_phone_number has a priority of 2 , your user pool sends account-recovery messages to a verified email address but falls back to an SMS message if the user has a verified phone number. The admin_only option prevents self-service account recovery.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The recovery method that this object sets a recovery option for.
-
#priority ⇒ Numeric?
readonly
Your priority preference for using the specified attribute in account recovery.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, priority: nil) ⇒ RecoveryOptionProperty
constructor
A new instance of RecoveryOptionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, priority: nil) ⇒ RecoveryOptionProperty
Returns a new instance of RecoveryOptionProperty.
1861 1862 1863 1864 1865 1866 |
# File 'cognito/cfn_user_pool.rb', line 1861 def initialize(name: nil, priority: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @priority = priority Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority") unless @priority.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
The recovery method that this object sets a recovery option for.
1872 1873 1874 |
# File 'cognito/cfn_user_pool.rb', line 1872 def name @name end |
#priority ⇒ Numeric? (readonly)
Your priority preference for using the specified attribute in account recovery.
The highest priority is 1 .
1879 1880 1881 |
# File 'cognito/cfn_user_pool.rb', line 1879 def priority @priority end |
Class Method Details
.jsii_properties ⇒ Object
1881 1882 1883 1884 1885 1886 |
# File 'cognito/cfn_user_pool.rb', line 1881 def self.jsii_properties { :name => "name", :priority => "priority", } end |
Instance Method Details
#to_jsii ⇒ Object
1888 1889 1890 1891 1892 1893 1894 1895 |
# File 'cognito/cfn_user_pool.rb', line 1888 def to_jsii result = {} result.merge!({ "name" => @name, "priority" => @priority, }) result.compact end |