Class: AWSCDK::MemoryDB::CfnUser::AuthenticationModeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MemoryDB::CfnUser::AuthenticationModeProperty
- 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
-
#passwords ⇒ Array<String>?
readonly
The password(s) used for authentication.
-
#type ⇒ String?
readonly
Indicates whether the user requires a password to authenticate.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(passwords: nil, type: nil) ⇒ AuthenticationModeProperty
constructor
A new instance of AuthenticationModeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(passwords: nil, type: nil) ⇒ AuthenticationModeProperty
Returns a new instance of AuthenticationModeProperty.
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
#passwords ⇒ Array<String>? (readonly)
The password(s) used for authentication.
608 609 610 |
# File 'memory_db/cfn_user.rb', line 608 def passwords @passwords end |
#type ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |