Class: AWSCDK::Interfaces::AWSCognito::UserPoolUserReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSCognito::UserPoolUserReference
- Defined in:
- interfaces/aws_cognito/user_pool_user_reference.rb
Overview
A reference to a UserPoolUser resource.
Instance Attribute Summary collapse
-
#user_pool_id ⇒ String
readonly
The UserPoolId of the UserPoolUser resource.
-
#username ⇒ String
readonly
The Username of the UserPoolUser resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(username:, user_pool_id:) ⇒ UserPoolUserReference
constructor
A new instance of UserPoolUserReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(username:, user_pool_id:) ⇒ UserPoolUserReference
Returns a new instance of UserPoolUserReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_cognito/user_pool_user_reference.rb', line 9 def initialize(username:, user_pool_id:) @username = username Jsii::Type.check_type(@username, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "username") @user_pool_id = user_pool_id Jsii::Type.check_type(@user_pool_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userPoolId") end |
Instance Attribute Details
#user_pool_id ⇒ String (readonly)
The UserPoolId of the UserPoolUser resource.
23 24 25 |
# File 'interfaces/aws_cognito/user_pool_user_reference.rb', line 23 def user_pool_id @user_pool_id end |
#username ⇒ String (readonly)
The Username of the UserPoolUser resource.
19 20 21 |
# File 'interfaces/aws_cognito/user_pool_user_reference.rb', line 19 def username @username end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_cognito/user_pool_user_reference.rb', line 25 def self.jsii_properties { :username => "username", :user_pool_id => "userPoolId", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_cognito/user_pool_user_reference.rb', line 32 def to_jsii result = {} result.merge!({ "username" => @username, "userPoolId" => @user_pool_id, }) result.compact end |