Class: AWSCDK::QuickSight::CfnDataSource::SnowflakeParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_data_source.rb

Overview

The parameters for Snowflake.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(database:, host:, warehouse:, authentication_type: nil, database_access_control_role: nil, o_auth_parameters: nil) ⇒ SnowflakeParametersProperty

Returns a new instance of SnowflakeParametersProperty.

Parameters:

  • database (String)

    Database.

  • host (String)

    Host.

  • warehouse (String)

    Warehouse.

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

    The authentication type that you want to use for your connection.

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

    The database access control role.

  • o_auth_parameters (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDataSource::OAuthParametersProperty, nil) (defaults to: nil)

    An object that contains information needed to create a data source connection between an Quick Sight account and Snowflake.



2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
# File 'quick_sight/cfn_data_source.rb', line 2213

def initialize(database:, host:, warehouse:, authentication_type: nil, database_access_control_role: nil, o_auth_parameters: nil)
  @database = database
  Jsii::Type.check_type(@database, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "database")
  @host = host
  Jsii::Type.check_type(@host, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "host")
  @warehouse = warehouse
  Jsii::Type.check_type(@warehouse, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "warehouse")
  @authentication_type = authentication_type
  Jsii::Type.check_type(@authentication_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authenticationType") unless @authentication_type.nil?
  @database_access_control_role = database_access_control_role
  Jsii::Type.check_type(@database_access_control_role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseAccessControlRole") unless @database_access_control_role.nil?
  @o_auth_parameters = o_auth_parameters.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDataSource::OAuthParametersProperty.new(**o_auth_parameters.transform_keys(&:to_sym)) : o_auth_parameters
  Jsii::Type.check_type(@o_auth_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhdGFTb3VyY2UuT0F1dGhQYXJhbWV0ZXJzUHJvcGVydHkifV19fQ==")), "oAuthParameters") unless @o_auth_parameters.nil?
end

Instance Attribute Details

#authentication_typeString? (readonly)

The authentication type that you want to use for your connection.

This parameter accepts OAuth and non-OAuth authentication types.



2249
2250
2251
# File 'quick_sight/cfn_data_source.rb', line 2249

def authentication_type
  @authentication_type
end

#databaseString (readonly)

Database.



2232
2233
2234
# File 'quick_sight/cfn_data_source.rb', line 2232

def database
  @database
end

#database_access_control_roleString? (readonly)

The database access control role.



2254
2255
2256
# File 'quick_sight/cfn_data_source.rb', line 2254

def database_access_control_role
  @database_access_control_role
end

#hostString (readonly)

Host.



2237
2238
2239
# File 'quick_sight/cfn_data_source.rb', line 2237

def host
  @host
end

#o_auth_parametersAWSCDK::IResolvable, ... (readonly)

An object that contains information needed to create a data source connection between an Quick Sight account and Snowflake.



2259
2260
2261
# File 'quick_sight/cfn_data_source.rb', line 2259

def o_auth_parameters
  @o_auth_parameters
end

#warehouseString (readonly)

Warehouse.



2242
2243
2244
# File 'quick_sight/cfn_data_source.rb', line 2242

def warehouse
  @warehouse
end

Class Method Details

.jsii_propertiesObject



2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
# File 'quick_sight/cfn_data_source.rb', line 2261

def self.jsii_properties
  {
    :database => "database",
    :host => "host",
    :warehouse => "warehouse",
    :authentication_type => "authenticationType",
    :database_access_control_role => "databaseAccessControlRole",
    :o_auth_parameters => "oAuthParameters",
  }
end

Instance Method Details

#to_jsiiObject



2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
# File 'quick_sight/cfn_data_source.rb', line 2272

def to_jsii
  result = {}
  result.merge!({
    "database" => @database,
    "host" => @host,
    "warehouse" => @warehouse,
    "authenticationType" => @authentication_type,
    "databaseAccessControlRole" => @database_access_control_role,
    "oAuthParameters" => @o_auth_parameters,
  })
  result.compact
end