Class: AWSCDK::AppFlow::CfnConnectorProfile::RedshiftConnectorProfileCredentialsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_flow/cfn_connector_profile.rb

Overview

The connector-specific profile credentials required when using Amazon Redshift.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(password: nil, username: nil) ⇒ RedshiftConnectorProfileCredentialsProperty

Returns a new instance of RedshiftConnectorProfileCredentialsProperty.

Parameters:

  • password (String, nil) (defaults to: nil)

    The password that corresponds to the user name.

  • username (String, nil) (defaults to: nil)

    The name of the user.



2101
2102
2103
2104
2105
2106
# File 'app_flow/cfn_connector_profile.rb', line 2101

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

#passwordString? (readonly)

The password that corresponds to the user name.



2112
2113
2114
# File 'app_flow/cfn_connector_profile.rb', line 2112

def password
  @password
end

#usernameString? (readonly)

The name of the user.



2117
2118
2119
# File 'app_flow/cfn_connector_profile.rb', line 2117

def username
  @username
end

Class Method Details

.jsii_propertiesObject



2119
2120
2121
2122
2123
2124
# File 'app_flow/cfn_connector_profile.rb', line 2119

def self.jsii_properties
  {
    :password => "password",
    :username => "username",
  }
end

Instance Method Details

#to_jsiiObject



2126
2127
2128
2129
2130
2131
2132
2133
# File 'app_flow/cfn_connector_profile.rb', line 2126

def to_jsii
  result = {}
  result.merge!({
    "password" => @password,
    "username" => @username,
  })
  result.compact
end