Class: AWSCDK::QuickSight::CfnDashboard::GeospatialMapStateProperty

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

Overview

The map state properties for a map.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bounds: nil, map_navigation: nil) ⇒ GeospatialMapStateProperty

Returns a new instance of GeospatialMapStateProperty.

Parameters:



14659
14660
14661
14662
14663
14664
# File 'quick_sight/cfn_dashboard.rb', line 14659

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

Instance Attribute Details

#map_navigationString? (readonly)

Enables or disables map navigation for a map.



14673
14674
14675
# File 'quick_sight/cfn_dashboard.rb', line 14673

def map_navigation
  @map_navigation
end

Class Method Details

.jsii_propertiesObject



14675
14676
14677
14678
14679
14680
# File 'quick_sight/cfn_dashboard.rb', line 14675

def self.jsii_properties
  {
    :bounds => "bounds",
    :map_navigation => "mapNavigation",
  }
end

Instance Method Details

#to_jsiiObject



14682
14683
14684
14685
14686
14687
14688
14689
# File 'quick_sight/cfn_dashboard.rb', line 14682

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