Class: AWSCDK::Elasticache::CfnUser::AuthenticationModeProperty

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

Overview

Specifies the authentication mode to use.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AuthenticationModeProperty.

Parameters:

  • type (String)

    Specifies the authentication type.

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

    Specifies the passwords to use for authentication if Type is set to password .



621
622
623
624
625
626
# File 'elasticache/cfn_user.rb', line 621

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

Instance Attribute Details

#passwordsArray<String>? (readonly)

Specifies the passwords to use for authentication if Type is set to password .



639
640
641
# File 'elasticache/cfn_user.rb', line 639

def passwords
  @passwords
end

#typeString (readonly)

Specifies the authentication type.

Possible options are IAM authentication, password and no password.



634
635
636
# File 'elasticache/cfn_user.rb', line 634

def type
  @type
end

Class Method Details

.jsii_propertiesObject



641
642
643
644
645
646
# File 'elasticache/cfn_user.rb', line 641

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

Instance Method Details

#to_jsiiObject



648
649
650
651
652
653
654
655
# File 'elasticache/cfn_user.rb', line 648

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