Class: AWSCDK::QuickSight::CfnTemplate::GeospatialWindowOptionsProperty

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

Overview

The window options of the geospatial map visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bounds: nil, map_zoom_mode: nil) ⇒ GeospatialWindowOptionsProperty

Returns a new instance of GeospatialWindowOptionsProperty.

Parameters:



12993
12994
12995
12996
12997
12998
# File 'quick_sight/cfn_template.rb', line 12993

def initialize(bounds: nil, map_zoom_mode: nil)
  @bounds = bounds.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::GeospatialCoordinateBoundsProperty.new(**bounds.transform_keys(&:to_sym)) : bounds
  Jsii::Type.check_type(@bounds, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkdlb3NwYXRpYWxDb29yZGluYXRlQm91bmRzUHJvcGVydHkifV19fQ==")), "bounds") unless @bounds.nil?
  @map_zoom_mode = map_zoom_mode
  Jsii::Type.check_type(@map_zoom_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mapZoomMode") unless @map_zoom_mode.nil?
end

Instance Attribute Details

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

The bounds options (north, south, west, east) of the geospatial window options.



13004
13005
13006
# File 'quick_sight/cfn_template.rb', line 13004

def bounds
  @bounds
end

#map_zoom_modeString? (readonly)

The map zoom modes (manual, auto) of the geospatial window options.



13009
13010
13011
# File 'quick_sight/cfn_template.rb', line 13009

def map_zoom_mode
  @map_zoom_mode
end

Class Method Details

.jsii_propertiesObject



13011
13012
13013
13014
13015
13016
# File 'quick_sight/cfn_template.rb', line 13011

def self.jsii_properties
  {
    :bounds => "bounds",
    :map_zoom_mode => "mapZoomMode",
  }
end

Instance Method Details

#to_jsiiObject



13018
13019
13020
13021
13022
13023
13024
13025
# File 'quick_sight/cfn_template.rb', line 13018

def to_jsii
  result = {}
  result.merge!({
    "bounds" => @bounds,
    "mapZoomMode" => @map_zoom_mode,
  })
  result.compact
end