Class: AWSCDK::Connect::CfnWorkspace::PaletteHeaderProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_workspace.rb

Overview

Contains color configuration for header elements in a workspace theme.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(background: nil, invert_actions_colors: nil, text: nil, text_hover: nil) ⇒ PaletteHeaderProperty

Returns a new instance of PaletteHeaderProperty.

Parameters:

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

    The background color of the header.

  • invert_actions_colors (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Whether to invert the colors of action buttons in the header.

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

    The text color in the header.

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

    The text color when hovering over header elements.



777
778
779
780
781
782
783
784
785
786
# File 'connect/cfn_workspace.rb', line 777

def initialize(background: nil, invert_actions_colors: nil, text: nil, text_hover: nil)
  @background = background
  Jsii::Type.check_type(@background, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "background") unless @background.nil?
  @invert_actions_colors = invert_actions_colors
  Jsii::Type.check_type(@invert_actions_colors, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "invertActionsColors") unless @invert_actions_colors.nil?
  @text = text
  Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "text") unless @text.nil?
  @text_hover = text_hover
  Jsii::Type.check_type(@text_hover, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "textHover") unless @text_hover.nil?
end

Instance Attribute Details

#backgroundString? (readonly)

The background color of the header.



792
793
794
# File 'connect/cfn_workspace.rb', line 792

def background
  @background
end

#invert_actions_colorsBoolean, ... (readonly)

Whether to invert the colors of action buttons in the header.



797
798
799
# File 'connect/cfn_workspace.rb', line 797

def invert_actions_colors
  @invert_actions_colors
end

#textString? (readonly)

The text color in the header.



802
803
804
# File 'connect/cfn_workspace.rb', line 802

def text
  @text
end

#text_hoverString? (readonly)

The text color when hovering over header elements.



807
808
809
# File 'connect/cfn_workspace.rb', line 807

def text_hover
  @text_hover
end

Class Method Details

.jsii_propertiesObject



809
810
811
812
813
814
815
816
# File 'connect/cfn_workspace.rb', line 809

def self.jsii_properties
  {
    :background => "background",
    :invert_actions_colors => "invertActionsColors",
    :text => "text",
    :text_hover => "textHover",
  }
end

Instance Method Details

#to_jsiiObject



818
819
820
821
822
823
824
825
826
827
# File 'connect/cfn_workspace.rb', line 818

def to_jsii
  result = {}
  result.merge!({
    "background" => @background,
    "invertActionsColors" => @invert_actions_colors,
    "text" => @text,
    "textHover" => @text_hover,
  })
  result.compact
end