Class: AWSCDK::Cognito::KeepOriginalAttrs
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::KeepOriginalAttrs
- Defined in:
- cognito/keep_original_attrs.rb
Overview
Attributes that will be kept until the user verifies the changed attribute.
Instance Attribute Summary collapse
-
#email ⇒ Boolean?
readonly
Whether the email address of the user should remain the original value until the new email address is verified.
-
#phone ⇒ Boolean?
readonly
Whether the phone number of the user should remain the original value until the new phone number is verified.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(email: nil, phone: nil) ⇒ KeepOriginalAttrs
constructor
A new instance of KeepOriginalAttrs.
- #to_jsii ⇒ Object
Constructor Details
#initialize(email: nil, phone: nil) ⇒ KeepOriginalAttrs
Returns a new instance of KeepOriginalAttrs.
9 10 11 12 13 14 |
# File 'cognito/keep_original_attrs.rb', line 9 def initialize(email: nil, phone: nil) @email = email Jsii::Type.check_type(@email, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "email") unless @email.nil? @phone = phone Jsii::Type.check_type(@phone, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "phone") unless @phone.nil? end |
Instance Attribute Details
#email ⇒ Boolean? (readonly)
Note:
Default: - false
Whether the email address of the user should remain the original value until the new email address is verified.
20 21 22 |
# File 'cognito/keep_original_attrs.rb', line 20 def email @email end |
#phone ⇒ Boolean? (readonly)
Note:
Default: - false
Whether the phone number of the user should remain the original value until the new phone number is verified.
25 26 27 |
# File 'cognito/keep_original_attrs.rb', line 25 def phone @phone end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'cognito/keep_original_attrs.rb', line 27 def self.jsii_properties { :email => "email", :phone => "phone", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'cognito/keep_original_attrs.rb', line 34 def to_jsii result = {} result.merge!({ "email" => @email, "phone" => @phone, }) result.compact end |