Class: AWSCDK::Interfaces::AWSCognito::UserPoolUserToGroupAttachmentReference

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

Overview

A reference to a UserPoolUserToGroupAttachment resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(group_name:, username:, user_pool_id:) ⇒ UserPoolUserToGroupAttachmentReference

Returns a new instance of UserPoolUserToGroupAttachmentReference.

Parameters:

  • group_name (String)

    The GroupName of the UserPoolUserToGroupAttachment resource.

  • username (String)

    The Username of the UserPoolUserToGroupAttachment resource.

  • user_pool_id (String)

    The UserPoolId of the UserPoolUserToGroupAttachment resource.



10
11
12
13
14
15
16
17
# File 'interfaces/aws_cognito/user_pool_user_to_group_attachment_reference.rb', line 10

def initialize(group_name:, username:, user_pool_id:)
  @group_name = group_name
  Jsii::Type.check_type(@group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupName")
  @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

#group_nameString (readonly)

The GroupName of the UserPoolUserToGroupAttachment resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_cognito/user_pool_user_to_group_attachment_reference.rb', line 22

def group_name
  @group_name
end

#user_pool_idString (readonly)

The UserPoolId of the UserPoolUserToGroupAttachment resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_cognito/user_pool_user_to_group_attachment_reference.rb', line 30

def user_pool_id
  @user_pool_id
end

#usernameString (readonly)

The Username of the UserPoolUserToGroupAttachment resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_cognito/user_pool_user_to_group_attachment_reference.rb', line 26

def username
  @username
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :group_name => "groupName",
    :username => "username",
    :user_pool_id => "userPoolId",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/aws_cognito/user_pool_user_to_group_attachment_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "groupName" => @group_name,
    "username" => @username,
    "userPoolId" => @user_pool_id,
  })
  result.compact
end