Class: AWSCDK::Connect::CfnWorkspace::PaletteCanvasProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnWorkspace::PaletteCanvasProperty
- Defined in:
- connect/cfn_workspace.rb
Overview
Contains color configuration for canvas elements in a workspace theme.
Instance Attribute Summary collapse
-
#active_background ⇒ String?
readonly
The background color for active elements.
-
#container_background ⇒ String?
readonly
The background color for container elements.
-
#page_background ⇒ String?
readonly
The background color for page elements.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(active_background: nil, container_background: nil, page_background: nil) ⇒ PaletteCanvasProperty
constructor
A new instance of PaletteCanvasProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(active_background: nil, container_background: nil, page_background: nil) ⇒ PaletteCanvasProperty
Returns a new instance of PaletteCanvasProperty.
723 724 725 726 727 728 729 730 |
# File 'connect/cfn_workspace.rb', line 723 def initialize(active_background: nil, container_background: nil, page_background: nil) @active_background = active_background Jsii::Type.check_type(@active_background, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "activeBackground") unless @active_background.nil? @container_background = container_background Jsii::Type.check_type(@container_background, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerBackground") unless @container_background.nil? @page_background = page_background Jsii::Type.check_type(@page_background, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "pageBackground") unless @page_background.nil? end |
Instance Attribute Details
#active_background ⇒ String? (readonly)
The background color for active elements.
736 737 738 |
# File 'connect/cfn_workspace.rb', line 736 def active_background @active_background end |
#container_background ⇒ String? (readonly)
The background color for container elements.
741 742 743 |
# File 'connect/cfn_workspace.rb', line 741 def container_background @container_background end |
#page_background ⇒ String? (readonly)
The background color for page elements.
746 747 748 |
# File 'connect/cfn_workspace.rb', line 746 def page_background @page_background end |
Class Method Details
.jsii_properties ⇒ Object
748 749 750 751 752 753 754 |
# File 'connect/cfn_workspace.rb', line 748 def self.jsii_properties { :active_background => "activeBackground", :container_background => "containerBackground", :page_background => "pageBackground", } end |
Instance Method Details
#to_jsii ⇒ Object
756 757 758 759 760 761 762 763 764 |
# File 'connect/cfn_workspace.rb', line 756 def to_jsii result = {} result.merge!({ "activeBackground" => @active_background, "containerBackground" => @container_background, "pageBackground" => @page_background, }) result.compact end |