Class: AWSCDK::Cognito::CustomAttributeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::CustomAttributeProps
- Defined in:
- cognito/custom_attribute_props.rb
Overview
Constraints that can be applied to a custom attribute of any type.
Instance Attribute Summary collapse
-
#mutable ⇒ Boolean?
readonly
Specifies whether the value of the attribute can be changed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mutable: nil) ⇒ CustomAttributeProps
constructor
A new instance of CustomAttributeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(mutable: nil) ⇒ CustomAttributeProps
Returns a new instance of CustomAttributeProps.
8 9 10 11 |
# File 'cognito/custom_attribute_props.rb', line 8 def initialize(mutable: nil) @mutable = mutable Jsii::Type.check_type(@mutable, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "mutable") unless @mutable.nil? end |
Instance Attribute Details
#mutable ⇒ Boolean? (readonly)
Note:
Default: false
Specifies whether the value of the attribute can be changed.
For any user pool attribute that's mapped to an identity provider attribute, you must set this parameter to true. Amazon Cognito updates mapped attributes when users sign in to your application through an identity provider. If an attribute is immutable, Amazon Cognito throws an error when it attempts to update the attribute.
21 22 23 |
# File 'cognito/custom_attribute_props.rb', line 21 def mutable @mutable end |
Class Method Details
.jsii_properties ⇒ Object
23 24 25 26 27 |
# File 'cognito/custom_attribute_props.rb', line 23 def self.jsii_properties { :mutable => "mutable", } end |
Instance Method Details
#to_jsii ⇒ Object
29 30 31 32 33 34 35 |
# File 'cognito/custom_attribute_props.rb', line 29 def to_jsii result = {} result.merge!({ "mutable" => @mutable, }) result.compact end |