Class: AWSCDK::MemoryDB::CfnUser::AuthenticationModeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
memory_db/cfn_user.rb

Overview

Denotes the user's authentication properties, such as whether it requires a password to authenticate.

Used in output responses.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(passwords: nil, type: nil) ⇒ AuthenticationModeProperty

Returns a new instance of AuthenticationModeProperty.

Parameters:

  • passwords (Array<String>, nil) (defaults to: nil)

    The password(s) used for authentication.

  • type (String, nil) (defaults to: nil)

    Indicates whether the user requires a password to authenticate.



597
598
599
600
601
602
# File 'memory_db/cfn_user.rb', line 597

def initialize(passwords: nil, type: nil)
  @passwords = passwords
  Jsii::Type.check_type(@passwords, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "passwords") unless @passwords.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

#passwordsArray<String>? (readonly)

The password(s) used for authentication.



608
609
610
# File 'memory_db/cfn_user.rb', line 608

def passwords
  @passwords
end

#typeString? (readonly)

Indicates whether the user requires a password to authenticate.

All newly-created users require a password.



615
616
617
# File 'memory_db/cfn_user.rb', line 615

def type
  @type
end

Class Method Details

.jsii_propertiesObject



617
618
619
620
621
622
# File 'memory_db/cfn_user.rb', line 617

def self.jsii_properties
  {
    :passwords => "passwords",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



624
625
626
627
628
629
630
631
# File 'memory_db/cfn_user.rb', line 624

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