Class: AWSCDK::Elasticache::CfnUser::AuthenticationModeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticache::CfnUser::AuthenticationModeProperty
- Defined in:
- elasticache/cfn_user.rb
Overview
Specifies the authentication mode to use.
Instance Attribute Summary collapse
-
#passwords ⇒ Array<String>?
readonly
Specifies the passwords to use for authentication if
Typeis set topassword. -
#type ⇒ String
readonly
Specifies the authentication type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, passwords: nil) ⇒ AuthenticationModeProperty
constructor
A new instance of AuthenticationModeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, passwords: nil) ⇒ AuthenticationModeProperty
Returns a new instance of AuthenticationModeProperty.
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
#passwords ⇒ Array<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 |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |