Class: AWSCDK::Glue::CfnConnection::BasicAuthenticationCredentialsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnConnection::BasicAuthenticationCredentialsProperty
- Defined in:
- glue/cfn_connection.rb
Overview
For supplying basic auth credentials when not providing a SecretArn value.
Instance Attribute Summary collapse
-
#password ⇒ String?
readonly
The password to connect to the data source.
-
#username ⇒ String?
readonly
The username to connect to the data source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(password: nil, username: nil) ⇒ BasicAuthenticationCredentialsProperty
constructor
A new instance of BasicAuthenticationCredentialsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(password: nil, username: nil) ⇒ BasicAuthenticationCredentialsProperty
Returns a new instance of BasicAuthenticationCredentialsProperty.
647 648 649 650 651 652 |
# File 'glue/cfn_connection.rb', line 647 def initialize(password: nil, username: nil) @password = password Jsii::Type.check_type(@password, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "password") unless @password.nil? @username = username Jsii::Type.check_type(@username, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "username") unless @username.nil? end |
Instance Attribute Details
#password ⇒ String? (readonly)
The password to connect to the data source.
658 659 660 |
# File 'glue/cfn_connection.rb', line 658 def password @password end |
#username ⇒ String? (readonly)
The username to connect to the data source.
663 664 665 |
# File 'glue/cfn_connection.rb', line 663 def username @username end |
Class Method Details
.jsii_properties ⇒ Object
665 666 667 668 669 670 |
# File 'glue/cfn_connection.rb', line 665 def self.jsii_properties { :password => "password", :username => "username", } end |
Instance Method Details
#to_jsii ⇒ Object
672 673 674 675 676 677 678 679 |
# File 'glue/cfn_connection.rb', line 672 def to_jsii result = {} result.merge!({ "password" => @password, "username" => @username, }) result.compact end |