Class: AWSCDK::Cognito::CfnUserPoolUser::AttributeTypeProperty

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

Overview

The name and value of a user attribute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, value: nil) ⇒ AttributeTypeProperty

Returns a new instance of AttributeTypeProperty.

Parameters:

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

    The name of the attribute.

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

    The value of the attribute.



584
585
586
587
588
589
# File 'cognito/cfn_user_pool_user.rb', line 584

def initialize(name: nil, value: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

#nameString? (readonly)

The name of the attribute.



595
596
597
# File 'cognito/cfn_user_pool_user.rb', line 595

def name
  @name
end

#valueString? (readonly)

The value of the attribute.



600
601
602
# File 'cognito/cfn_user_pool_user.rb', line 600

def value
  @value
end

Class Method Details

.jsii_propertiesObject



602
603
604
605
606
607
# File 'cognito/cfn_user_pool_user.rb', line 602

def self.jsii_properties
  {
    :name => "name",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



609
610
611
612
613
614
615
616
# File 'cognito/cfn_user_pool_user.rb', line 609

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "value" => @value,
  })
  result.compact
end