Class: AWSCDK::DataZone::CfnConnection::BasicAuthenticationCredentialsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataZone::CfnConnection::BasicAuthenticationCredentialsProperty
- Defined in:
- data_zone/cfn_connection.rb
Overview
The basic authentication credentials of a connection.
Instance Attribute Summary collapse
-
#password ⇒ String?
readonly
The password for a connection.
-
#user_name ⇒ String?
readonly
The user name for the connecion.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(password: nil, user_name: nil) ⇒ BasicAuthenticationCredentialsProperty
constructor
A new instance of BasicAuthenticationCredentialsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(password: nil, user_name: nil) ⇒ BasicAuthenticationCredentialsProperty
Returns a new instance of BasicAuthenticationCredentialsProperty.
941 942 943 944 945 946 |
# File 'data_zone/cfn_connection.rb', line 941 def initialize(password: nil, user_name: nil) @password = password Jsii::Type.check_type(@password, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "password") unless @password.nil? @user_name = user_name Jsii::Type.check_type(@user_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userName") unless @user_name.nil? end |
Instance Attribute Details
#password ⇒ String? (readonly)
The password for a connection.
952 953 954 |
# File 'data_zone/cfn_connection.rb', line 952 def password @password end |
#user_name ⇒ String? (readonly)
The user name for the connecion.
957 958 959 |
# File 'data_zone/cfn_connection.rb', line 957 def user_name @user_name end |
Class Method Details
.jsii_properties ⇒ Object
959 960 961 962 963 964 |
# File 'data_zone/cfn_connection.rb', line 959 def self.jsii_properties { :password => "password", :user_name => "userName", } end |
Instance Method Details
#to_jsii ⇒ Object
966 967 968 969 970 971 972 973 |
# File 'data_zone/cfn_connection.rb', line 966 def to_jsii result = {} result.merge!({ "password" => @password, "userName" => @user_name, }) result.compact end |