Class: AWSCDK::Events::CfnConnection::BasicAuthParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Events::CfnConnection::BasicAuthParametersProperty
- Defined in:
- events/cfn_connection.rb
Overview
The Basic authorization parameters for the connection.
Instance Attribute Summary collapse
-
#password ⇒ String
readonly
The password associated with the user name to use for Basic authorization.
-
#username ⇒ String
readonly
The user name to use for Basic authorization.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(password:, username:) ⇒ BasicAuthParametersProperty
constructor
A new instance of BasicAuthParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(password:, username:) ⇒ BasicAuthParametersProperty
Returns a new instance of BasicAuthParametersProperty.
765 766 767 768 769 770 |
# File 'events/cfn_connection.rb', line 765 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 associated with the user name to use for Basic authorization.
776 777 778 |
# File 'events/cfn_connection.rb', line 776 def password @password end |
#username ⇒ String (readonly)
The user name to use for Basic authorization.
781 782 783 |
# File 'events/cfn_connection.rb', line 781 def username @username end |
Class Method Details
.jsii_properties ⇒ Object
783 784 785 786 787 788 |
# File 'events/cfn_connection.rb', line 783 def self.jsii_properties { :password => "password", :username => "username", } end |
Instance Method Details
#to_jsii ⇒ Object
790 791 792 793 794 795 796 797 |
# File 'events/cfn_connection.rb', line 790 def to_jsii result = {} result.merge!({ "password" => @password, "username" => @username, }) result.compact end |