Class: AWSCDK::Connect::CfnWorkspace::PaletteHeaderProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnWorkspace::PaletteHeaderProperty
- Defined in:
- connect/cfn_workspace.rb
Overview
Contains color configuration for header elements in a workspace theme.
Instance Attribute Summary collapse
-
#background ⇒ String?
readonly
The background color of the header.
-
#invert_actions_colors ⇒ Boolean, ...
readonly
Whether to invert the colors of action buttons in the header.
-
#text ⇒ String?
readonly
The text color in the header.
-
#text_hover ⇒ String?
readonly
The text color when hovering over header elements.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(background: nil, invert_actions_colors: nil, text: nil, text_hover: nil) ⇒ PaletteHeaderProperty
constructor
A new instance of PaletteHeaderProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(background: nil, invert_actions_colors: nil, text: nil, text_hover: nil) ⇒ PaletteHeaderProperty
Returns a new instance of PaletteHeaderProperty.
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
#background ⇒ String? (readonly)
The background color of the header.
792 793 794 |
# File 'connect/cfn_workspace.rb', line 792 def background @background end |
#invert_actions_colors ⇒ Boolean, ... (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 |
#text ⇒ String? (readonly)
The text color in the header.
802 803 804 |
# File 'connect/cfn_workspace.rb', line 802 def text @text end |
#text_hover ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |