Class: AWSCDK::Events::CfnConnection::BasicAuthParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
events/cfn_connection.rb

Overview

The Basic authorization parameters for the connection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(password:, username:) ⇒ BasicAuthParametersProperty

Returns a new instance of BasicAuthParametersProperty.

Parameters:

  • password (String)

    The password associated with the user name to use for Basic authorization.

  • username (String)

    The user name to use for Basic authorization.



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

#passwordString (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

#usernameString (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_propertiesObject



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_jsiiObject



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