Class: AWSCDK::Cognito::BooleanAttribute
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Cognito::BooleanAttribute
- Includes:
- ICustomAttribute
- Defined in:
- cognito/boolean_attribute.rb
Overview
The Boolean 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) ⇒ BooleanAttribute
constructor
A new instance of BooleanAttribute.
Constructor Details
#initialize(props = nil) ⇒ BooleanAttribute
Returns a new instance of BooleanAttribute.
10 11 12 13 14 |
# File 'cognito/boolean_attribute.rb', line 10 def initialize(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::Cognito::CustomAttributeProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0by5DdXN0b21BdHRyaWJ1dGVQcm9wcyJ9")), "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/boolean_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/boolean_attribute.rb', line 25 def bind() jsii_call_method("bind", []) end |