Class: AWSCDK::QuickSight::CfnDataSource::TrinoParametersProperty

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

Overview

The parameters that are required to connect to a Trino data source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog:, host:, port:) ⇒ TrinoParametersProperty

Returns a new instance of TrinoParametersProperty.

Parameters:

  • catalog (String)

    The catalog name for the Trino data source.

  • host (String)

    The host name of the Trino data source.

  • port (Numeric)

    The port for the Trino data source.



2577
2578
2579
2580
2581
2582
2583
2584
# File 'quick_sight/cfn_data_source.rb', line 2577

def initialize(catalog:, host:, port:)
  @catalog = catalog
  Jsii::Type.check_type(@catalog, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "catalog")
  @host = host
  Jsii::Type.check_type(@host, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "host")
  @port = port
  Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port")
end

Instance Attribute Details

#catalogString (readonly)

The catalog name for the Trino data source.



2590
2591
2592
# File 'quick_sight/cfn_data_source.rb', line 2590

def catalog
  @catalog
end

#hostString (readonly)

The host name of the Trino data source.



2595
2596
2597
# File 'quick_sight/cfn_data_source.rb', line 2595

def host
  @host
end

#portNumeric (readonly)

Note:

Default: - 0

The port for the Trino data source.



2601
2602
2603
# File 'quick_sight/cfn_data_source.rb', line 2601

def port
  @port
end

Class Method Details

.jsii_propertiesObject



2603
2604
2605
2606
2607
2608
2609
# File 'quick_sight/cfn_data_source.rb', line 2603

def self.jsii_properties
  {
    :catalog => "catalog",
    :host => "host",
    :port => "port",
  }
end

Instance Method Details

#to_jsiiObject



2611
2612
2613
2614
2615
2616
2617
2618
2619
# File 'quick_sight/cfn_data_source.rb', line 2611

def to_jsii
  result = {}
  result.merge!({
    "catalog" => @catalog,
    "host" => @host,
    "port" => @port,
  })
  result.compact
end