Class: AWSCDK::Interfaces::AWSCognito::UserPoolUserToGroupAttachmentReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSCognito::UserPoolUserToGroupAttachmentReference
- Defined in:
- interfaces/aws_cognito/user_pool_user_to_group_attachment_reference.rb
Overview
A reference to a UserPoolUserToGroupAttachment resource.
Instance Attribute Summary collapse
-
#group_name ⇒ String
readonly
The GroupName of the UserPoolUserToGroupAttachment resource.
-
#user_pool_id ⇒ String
readonly
The UserPoolId of the UserPoolUserToGroupAttachment resource.
-
#username ⇒ String
readonly
The Username of the UserPoolUserToGroupAttachment resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(group_name:, username:, user_pool_id:) ⇒ UserPoolUserToGroupAttachmentReference
constructor
A new instance of UserPoolUserToGroupAttachmentReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(group_name:, username:, user_pool_id:) ⇒ UserPoolUserToGroupAttachmentReference
Returns a new instance of UserPoolUserToGroupAttachmentReference.
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_name ⇒ String (readonly)
The GroupName of the UserPoolUserToGroupAttachment resource.
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_id ⇒ String (readonly)
The UserPoolId of the UserPoolUserToGroupAttachment resource.
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 |
#username ⇒ String (readonly)
The Username of the UserPoolUserToGroupAttachment resource.
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_properties ⇒ Object
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_jsii ⇒ Object
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 |