Class: AWSCDK::QuickSight::CfnTemplate::GeospatialMapConfigurationProperty

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

Overview

The configuration of a GeospatialMapVisual .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field_wells: nil, legend: nil, map_style_options: nil, point_style_options: nil, tooltip: nil, visual_palette: nil, window_options: nil) ⇒ GeospatialMapConfigurationProperty

Returns a new instance of GeospatialMapConfigurationProperty.

Parameters:



12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
# File 'quick_sight/cfn_template.rb', line 12689

def initialize(field_wells: nil, legend: nil, map_style_options: nil, point_style_options: nil, tooltip: nil, visual_palette: nil, window_options: nil)
  @field_wells = field_wells.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::GeospatialMapFieldWellsProperty.new(**field_wells.transform_keys(&:to_sym)) : field_wells
  Jsii::Type.check_type(@field_wells, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkdlb3NwYXRpYWxNYXBGaWVsZFdlbGxzUHJvcGVydHkifV19fQ==")), "fieldWells") unless @field_wells.nil?
  @legend = legend.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::LegendOptionsProperty.new(**legend.transform_keys(&:to_sym)) : legend
  Jsii::Type.check_type(@legend, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkxlZ2VuZE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "legend") unless @legend.nil?
  @map_style_options = map_style_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::GeospatialMapStyleOptionsProperty.new(**map_style_options.transform_keys(&:to_sym)) : map_style_options
  Jsii::Type.check_type(@map_style_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkdlb3NwYXRpYWxNYXBTdHlsZU9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "mapStyleOptions") unless @map_style_options.nil?
  @point_style_options = point_style_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::GeospatialPointStyleOptionsProperty.new(**point_style_options.transform_keys(&:to_sym)) : point_style_options
  Jsii::Type.check_type(@point_style_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkdlb3NwYXRpYWxQb2ludFN0eWxlT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "pointStyleOptions") unless @point_style_options.nil?
  @tooltip = tooltip.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::TooltipOptionsProperty.new(**tooltip.transform_keys(&:to_sym)) : tooltip
  Jsii::Type.check_type(@tooltip, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlRvb2x0aXBPcHRpb25zUHJvcGVydHkifV19fQ==")), "tooltip") unless @tooltip.nil?
  @visual_palette = visual_palette.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::VisualPaletteProperty.new(**visual_palette.transform_keys(&:to_sym)) : visual_palette
  Jsii::Type.check_type(@visual_palette, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlZpc3VhbFBhbGV0dGVQcm9wZXJ0eSJ9XX19")), "visualPalette") unless @visual_palette.nil?
  @window_options = window_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::GeospatialWindowOptionsProperty.new(**window_options.transform_keys(&:to_sym)) : window_options
  Jsii::Type.check_type(@window_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkdlb3NwYXRpYWxXaW5kb3dPcHRpb25zUHJvcGVydHkifV19fQ==")), "windowOptions") unless @window_options.nil?
end

Instance Attribute Details

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

The field wells of the visual.



12710
12711
12712
# File 'quick_sight/cfn_template.rb', line 12710

def field_wells
  @field_wells
end

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

The legend display setup of the visual.



12715
12716
12717
# File 'quick_sight/cfn_template.rb', line 12715

def legend
  @legend
end

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

The map style options of the geospatial map.



12720
12721
12722
# File 'quick_sight/cfn_template.rb', line 12720

def map_style_options
  @map_style_options
end

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

The point style options of the geospatial map.



12725
12726
12727
# File 'quick_sight/cfn_template.rb', line 12725

def point_style_options
  @point_style_options
end

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

The tooltip display setup of the visual.



12730
12731
12732
# File 'quick_sight/cfn_template.rb', line 12730

def tooltip
  @tooltip
end

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

The window options of the geospatial map.



12738
12739
12740
# File 'quick_sight/cfn_template.rb', line 12738

def window_options
  @window_options
end

Class Method Details

.jsii_propertiesObject



12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
# File 'quick_sight/cfn_template.rb', line 12740

def self.jsii_properties
  {
    :field_wells => "fieldWells",
    :legend => "legend",
    :map_style_options => "mapStyleOptions",
    :point_style_options => "pointStyleOptions",
    :tooltip => "tooltip",
    :visual_palette => "visualPalette",
    :window_options => "windowOptions",
  }
end

Instance Method Details

#to_jsiiObject



12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
# File 'quick_sight/cfn_template.rb', line 12752

def to_jsii
  result = {}
  result.merge!({
    "fieldWells" => @field_wells,
    "legend" => @legend,
    "mapStyleOptions" => @map_style_options,
    "pointStyleOptions" => @point_style_options,
    "tooltip" => @tooltip,
    "visualPalette" => @visual_palette,
    "windowOptions" => @window_options,
  })
  result.compact
end