Class: AWSCDK::Cognito::CfnUserPool::NumberAttributeConstraintsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cognito/cfn_user_pool.rb

Overview

The minimum and maximum values of an attribute that is of the number type, for example custom:age .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_value: nil, min_value: nil) ⇒ NumberAttributeConstraintsProperty

Returns a new instance of NumberAttributeConstraintsProperty.

Parameters:

  • max_value (String, nil) (defaults to: nil)

    The maximum length of a number attribute value.

  • min_value (String, nil) (defaults to: nil)

    The minimum value of an attribute that is of the number data type.



1617
1618
1619
1620
1621
1622
# File 'cognito/cfn_user_pool.rb', line 1617

def initialize(max_value: nil, min_value: nil)
  @max_value = max_value
  Jsii::Type.check_type(@max_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "maxValue") unless @max_value.nil?
  @min_value = min_value
  Jsii::Type.check_type(@min_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "minValue") unless @min_value.nil?
end

Instance Attribute Details

#max_valueString? (readonly)

The maximum length of a number 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.



1630
1631
1632
# File 'cognito/cfn_user_pool.rb', line 1630

def max_value
  @max_value
end

#min_valueString? (readonly)

The minimum value of an attribute that is of the number data type.



1635
1636
1637
# File 'cognito/cfn_user_pool.rb', line 1635

def min_value
  @min_value
end

Class Method Details

.jsii_propertiesObject



1637
1638
1639
1640
1641
1642
# File 'cognito/cfn_user_pool.rb', line 1637

def self.jsii_properties
  {
    :max_value => "maxValue",
    :min_value => "minValue",
  }
end

Instance Method Details

#to_jsiiObject



1644
1645
1646
1647
1648
1649
1650
1651
# File 'cognito/cfn_user_pool.rb', line 1644

def to_jsii
  result = {}
  result.merge!({
    "maxValue" => @max_value,
    "minValue" => @min_value,
  })
  result.compact
end