Class: AWSCDK::Cognito::CfnUserPool::StringAttributeConstraintsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::CfnUserPool::StringAttributeConstraintsProperty
- Defined in:
- cognito/cfn_user_pool.rb
Overview
The minimum and maximum length values of an attribute that is of the string type, for example custom:department .
Instance Attribute Summary collapse
-
#max_length ⇒ String?
readonly
The maximum length of a string attribute value.
-
#min_length ⇒ String?
readonly
The minimum length of a string attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max_length: nil, min_length: nil) ⇒ StringAttributeConstraintsProperty
constructor
A new instance of StringAttributeConstraintsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max_length: nil, min_length: nil) ⇒ StringAttributeConstraintsProperty
Returns a new instance of StringAttributeConstraintsProperty.
2117 2118 2119 2120 2121 2122 |
# File 'cognito/cfn_user_pool.rb', line 2117 def initialize(max_length: nil, min_length: nil) @max_length = max_length Jsii::Type.check_type(@max_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "maxLength") unless @max_length.nil? @min_length = min_length Jsii::Type.check_type(@min_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "minLength") unless @min_length.nil? end |
Instance Attribute Details
#max_length ⇒ String? (readonly)
The maximum length of a string attribute value.
Must be a number less than or equal to 2^1023 , represented as a string with a length of 131072 characters or fewer.
2130 2131 2132 |
# File 'cognito/cfn_user_pool.rb', line 2130 def max_length @max_length end |
#min_length ⇒ String? (readonly)
The minimum length of a string attribute value.
2135 2136 2137 |
# File 'cognito/cfn_user_pool.rb', line 2135 def min_length @min_length end |
Class Method Details
.jsii_properties ⇒ Object
2137 2138 2139 2140 2141 2142 |
# File 'cognito/cfn_user_pool.rb', line 2137 def self.jsii_properties { :max_length => "maxLength", :min_length => "minLength", } end |
Instance Method Details
#to_jsii ⇒ Object
2144 2145 2146 2147 2148 2149 2150 2151 |
# File 'cognito/cfn_user_pool.rb', line 2144 def to_jsii result = {} result.merge!({ "maxLength" => @max_length, "minLength" => @min_length, }) result.compact end |