Class: AWSCDK::QuickSight::CfnDashboard::PanelConfigurationProperty

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

Overview

A collection of options that configure how each panel displays in a small multiples chart.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(background_color: nil, background_visibility: nil, border_color: nil, border_style: nil, border_thickness: nil, border_visibility: nil, gutter_spacing: nil, gutter_visibility: nil, title: nil) ⇒ PanelConfigurationProperty

Returns a new instance of PanelConfigurationProperty.

Parameters:

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

    Sets the background color for each panel.

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

    Determines whether or not a background for each small multiples panel is rendered.

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

    Sets the line color of panel borders.

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

    Sets the line style of panel borders.

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

    Sets the line thickness of panel borders.

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

    Determines whether or not each panel displays a border.

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

    Sets the total amount of negative space to display between sibling panels.

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

    Determines whether or not negative space between sibling panels is rendered.

  • title (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::PanelTitleOptionsProperty, nil) (defaults to: nil)

    Configures the title display within each small multiples panel.



20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
# File 'quick_sight/cfn_dashboard.rb', line 20909

def initialize(background_color: nil, background_visibility: nil, border_color: nil, border_style: nil, border_thickness: nil, border_visibility: nil, gutter_spacing: nil, gutter_visibility: nil, title: nil)
  @background_color = background_color
  Jsii::Type.check_type(@background_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "backgroundColor") unless @background_color.nil?
  @background_visibility = background_visibility
  Jsii::Type.check_type(@background_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "backgroundVisibility") unless @background_visibility.nil?
  @border_color = border_color
  Jsii::Type.check_type(@border_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "borderColor") unless @border_color.nil?
  @border_style = border_style
  Jsii::Type.check_type(@border_style, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "borderStyle") unless @border_style.nil?
  @border_thickness = border_thickness
  Jsii::Type.check_type(@border_thickness, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "borderThickness") unless @border_thickness.nil?
  @border_visibility = border_visibility
  Jsii::Type.check_type(@border_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "borderVisibility") unless @border_visibility.nil?
  @gutter_spacing = gutter_spacing
  Jsii::Type.check_type(@gutter_spacing, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gutterSpacing") unless @gutter_spacing.nil?
  @gutter_visibility = gutter_visibility
  Jsii::Type.check_type(@gutter_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gutterVisibility") unless @gutter_visibility.nil?
  @title = title.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::PanelTitleOptionsProperty.new(**title.transform_keys(&:to_sym)) : title
  Jsii::Type.check_type(@title, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5QYW5lbFRpdGxlT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "title") unless @title.nil?
end

Instance Attribute Details

#background_colorString? (readonly)

Sets the background color for each panel.



20934
20935
20936
# File 'quick_sight/cfn_dashboard.rb', line 20934

def background_color
  @background_color
end

#background_visibilityString? (readonly)

Determines whether or not a background for each small multiples panel is rendered.



20939
20940
20941
# File 'quick_sight/cfn_dashboard.rb', line 20939

def background_visibility
  @background_visibility
end

#border_colorString? (readonly)

Sets the line color of panel borders.



20944
20945
20946
# File 'quick_sight/cfn_dashboard.rb', line 20944

def border_color
  @border_color
end

#border_styleString? (readonly)

Sets the line style of panel borders.



20949
20950
20951
# File 'quick_sight/cfn_dashboard.rb', line 20949

def border_style
  @border_style
end

#border_thicknessString? (readonly)

Sets the line thickness of panel borders.



20954
20955
20956
# File 'quick_sight/cfn_dashboard.rb', line 20954

def border_thickness
  @border_thickness
end

#border_visibilityString? (readonly)

Determines whether or not each panel displays a border.



20959
20960
20961
# File 'quick_sight/cfn_dashboard.rb', line 20959

def border_visibility
  @border_visibility
end

#gutter_spacingString? (readonly)

Sets the total amount of negative space to display between sibling panels.



20964
20965
20966
# File 'quick_sight/cfn_dashboard.rb', line 20964

def gutter_spacing
  @gutter_spacing
end

#gutter_visibilityString? (readonly)

Determines whether or not negative space between sibling panels is rendered.



20969
20970
20971
# File 'quick_sight/cfn_dashboard.rb', line 20969

def gutter_visibility
  @gutter_visibility
end

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

Configures the title display within each small multiples panel.



20974
20975
20976
# File 'quick_sight/cfn_dashboard.rb', line 20974

def title
  @title
end

Class Method Details

.jsii_propertiesObject



20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
# File 'quick_sight/cfn_dashboard.rb', line 20976

def self.jsii_properties
  {
    :background_color => "backgroundColor",
    :background_visibility => "backgroundVisibility",
    :border_color => "borderColor",
    :border_style => "borderStyle",
    :border_thickness => "borderThickness",
    :border_visibility => "borderVisibility",
    :gutter_spacing => "gutterSpacing",
    :gutter_visibility => "gutterVisibility",
    :title => "title",
  }
end

Instance Method Details

#to_jsiiObject



20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
# File 'quick_sight/cfn_dashboard.rb', line 20990

def to_jsii
  result = {}
  result.merge!({
    "backgroundColor" => @background_color,
    "backgroundVisibility" => @background_visibility,
    "borderColor" => @border_color,
    "borderStyle" => @border_style,
    "borderThickness" => @border_thickness,
    "borderVisibility" => @border_visibility,
    "gutterSpacing" => @gutter_spacing,
    "gutterVisibility" => @gutter_visibility,
    "title" => @title,
  })
  result.compact
end