Class: AWSCDK::AppFlow::CfnConnectorProfile::BasicAuthCredentialsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppFlow::CfnConnectorProfile::BasicAuthCredentialsProperty
- Defined in:
- app_flow/cfn_connector_profile.rb
Overview
The basic auth credentials required for basic authentication.
Instance Attribute Summary collapse
-
#password ⇒ String
readonly
The password to use to connect to a resource.
-
#username ⇒ String
readonly
The username to use to connect to a resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(password:, username:) ⇒ BasicAuthCredentialsProperty
constructor
A new instance of BasicAuthCredentialsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(password:, username:) ⇒ BasicAuthCredentialsProperty
Returns a new instance of BasicAuthCredentialsProperty.
672 673 674 675 676 677 |
# File 'app_flow/cfn_connector_profile.rb', line 672 def initialize(password:, username:) @password = password Jsii::Type.check_type(@password, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "password") @username = username Jsii::Type.check_type(@username, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "username") end |
Instance Attribute Details
#password ⇒ String (readonly)
The password to use to connect to a resource.
683 684 685 |
# File 'app_flow/cfn_connector_profile.rb', line 683 def password @password end |
#username ⇒ String (readonly)
The username to use to connect to a resource.
688 689 690 |
# File 'app_flow/cfn_connector_profile.rb', line 688 def username @username end |
Class Method Details
.jsii_properties ⇒ Object
690 691 692 693 694 695 |
# File 'app_flow/cfn_connector_profile.rb', line 690 def self.jsii_properties { :password => "password", :username => "username", } end |
Instance Method Details
#to_jsii ⇒ Object
697 698 699 700 701 702 703 704 |
# File 'app_flow/cfn_connector_profile.rb', line 697 def to_jsii result = {} result.merge!({ "password" => @password, "username" => @username, }) result.compact end |