Class: AWSCDK::QuickSight::CfnAnalysis::PanelConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.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::CfnAnalysis::PanelTitleOptionsProperty, nil) (defaults to: nil)

    Configures the title display within each small multiples panel.



19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
# File 'quick_sight/cfn_analysis.rb', line 19937

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::CfnAnalysis::PanelTitleOptionsProperty.new(**title.transform_keys(&:to_sym)) : title
  Jsii::Type.check_type(@title, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlBhbmVsVGl0bGVPcHRpb25zUHJvcGVydHkifV19fQ==")), "title") unless @title.nil?
end

Instance Attribute Details

#background_colorString? (readonly)

Sets the background color for each panel.



19962
19963
19964
# File 'quick_sight/cfn_analysis.rb', line 19962

def background_color
  @background_color
end

#background_visibilityString? (readonly)

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



19967
19968
19969
# File 'quick_sight/cfn_analysis.rb', line 19967

def background_visibility
  @background_visibility
end

#border_colorString? (readonly)

Sets the line color of panel borders.



19972
19973
19974
# File 'quick_sight/cfn_analysis.rb', line 19972

def border_color
  @border_color
end

#border_styleString? (readonly)

Sets the line style of panel borders.



19977
19978
19979
# File 'quick_sight/cfn_analysis.rb', line 19977

def border_style
  @border_style
end

#border_thicknessString? (readonly)

Sets the line thickness of panel borders.



19982
19983
19984
# File 'quick_sight/cfn_analysis.rb', line 19982

def border_thickness
  @border_thickness
end

#border_visibilityString? (readonly)

Determines whether or not each panel displays a border.



19987
19988
19989
# File 'quick_sight/cfn_analysis.rb', line 19987

def border_visibility
  @border_visibility
end

#gutter_spacingString? (readonly)

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



19992
19993
19994
# File 'quick_sight/cfn_analysis.rb', line 19992

def gutter_spacing
  @gutter_spacing
end

#gutter_visibilityString? (readonly)

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



19997
19998
19999
# File 'quick_sight/cfn_analysis.rb', line 19997

def gutter_visibility
  @gutter_visibility
end

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

Configures the title display within each small multiples panel.



20002
20003
20004
# File 'quick_sight/cfn_analysis.rb', line 20002

def title
  @title
end

Class Method Details

.jsii_propertiesObject



20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
# File 'quick_sight/cfn_analysis.rb', line 20004

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



20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
# File 'quick_sight/cfn_analysis.rb', line 20018

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