Class: AWSCDK::Interfaces::AWSCognito::UserPoolReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_cognito/user_pool_reference.rb

Overview

A reference to a UserPool resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user_pool_arn:, user_pool_id:) ⇒ UserPoolReference

Returns a new instance of UserPoolReference.

Parameters:

  • user_pool_arn (String)

    The ARN of the UserPool resource.

  • user_pool_id (String)

    The UserPoolId of the UserPool resource.



9
10
11
12
13
14
# File 'interfaces/aws_cognito/user_pool_reference.rb', line 9

def initialize(user_pool_arn:, user_pool_id:)
  @user_pool_arn = user_pool_arn
  Jsii::Type.check_type(@user_pool_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userPoolArn")
  @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_arnString (readonly)

The ARN of the UserPool resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_cognito/user_pool_reference.rb', line 19

def user_pool_arn
  @user_pool_arn
end

#user_pool_idString (readonly)

The UserPoolId of the UserPool resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_cognito/user_pool_reference.rb', line 23

def user_pool_id
  @user_pool_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_cognito/user_pool_reference.rb', line 25

def self.jsii_properties
  {
    :user_pool_arn => "userPoolArn",
    :user_pool_id => "userPoolId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_cognito/user_pool_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "userPoolArn" => @user_pool_arn,
    "userPoolId" => @user_pool_id,
  })
  result.compact
end