Class: AWSCDK::Cognito::NumberAttribute
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Cognito::NumberAttribute
- Includes:
- ICustomAttribute
- Defined in:
- cognito/number_attribute.rb
Overview
The Number custom attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind ⇒ AWSCDK::Cognito::CustomAttributeConfig
Bind this custom attribute type to the values as expected by CloudFormation.
-
#initialize(props = nil) ⇒ NumberAttribute
constructor
A new instance of NumberAttribute.
Constructor Details
#initialize(props = nil) ⇒ NumberAttribute
Returns a new instance of NumberAttribute.
10 11 12 13 14 |
# File 'cognito/number_attribute.rb', line 10 def initialize(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::Cognito::NumberAttributeProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0by5OdW1iZXJBdHRyaWJ1dGVQcm9wcyJ9")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
16 17 18 19 20 |
# File 'cognito/number_attribute.rb', line 16 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind ⇒ AWSCDK::Cognito::CustomAttributeConfig
Bind this custom attribute type to the values as expected by CloudFormation.
25 26 27 |
# File 'cognito/number_attribute.rb', line 25 def bind() jsii_call_method("bind", []) end |