Class: AWSCDK::Interfaces::AWSAppstream::UserReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_appstream/user_reference.rb

Overview

A reference to a User resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authentication_type:, user_arn:, user_name:) ⇒ UserReference

Returns a new instance of UserReference.

Parameters:

  • authentication_type (String)

    The AuthenticationType of the User resource.

  • user_arn (String)

    The ARN of the User resource.

  • user_name (String)

    The UserName of the User resource.



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

def initialize(authentication_type:, user_arn:, user_name:)
  @authentication_type = authentication_type
  Jsii::Type.check_type(@authentication_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authenticationType")
  @user_arn = user_arn
  Jsii::Type.check_type(@user_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userArn")
  @user_name = user_name
  Jsii::Type.check_type(@user_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userName")
end

Instance Attribute Details

#authentication_typeString (readonly)

The AuthenticationType of the User resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_appstream/user_reference.rb', line 22

def authentication_type
  @authentication_type
end

#user_arnString (readonly)

The ARN of the User resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_appstream/user_reference.rb', line 26

def user_arn
  @user_arn
end

#user_nameString (readonly)

The UserName of the User resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_appstream/user_reference.rb', line 30

def user_name
  @user_name
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :authentication_type => "authenticationType",
    :user_arn => "userArn",
    :user_name => "userName",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "authenticationType" => @authentication_type,
    "userArn" => @user_arn,
    "userName" => @user_name,
  })
  result.compact
end