Class: AWSCDK::IdentityStore::CfnGroupMembership::MemberIdProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
identity_store/cfn_group_membership.rb

Overview

An object that contains the identifier of a group member.

Setting the UserID field to the specific identifier for a user indicates that the user is a member of the group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user_id:) ⇒ MemberIdProperty

Returns a new instance of MemberIdProperty.

Parameters:

  • user_id (String)

    An object containing the identifiers of resources that can be members.



538
539
540
541
# File 'identity_store/cfn_group_membership.rb', line 538

def initialize(user_id:)
  @user_id = user_id
  Jsii::Type.check_type(@user_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userId")
end

Instance Attribute Details

#user_idString (readonly)

An object containing the identifiers of resources that can be members.



547
548
549
# File 'identity_store/cfn_group_membership.rb', line 547

def user_id
  @user_id
end

Class Method Details

.jsii_propertiesObject



549
550
551
552
553
# File 'identity_store/cfn_group_membership.rb', line 549

def self.jsii_properties
  {
    :user_id => "userId",
  }
end

Instance Method Details

#to_jsiiObject



555
556
557
558
559
560
561
# File 'identity_store/cfn_group_membership.rb', line 555

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