Class: AWSCDK::Connect::CfnWorkspace::PaletteCanvasProperty

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

Overview

Contains color configuration for canvas elements in a workspace theme.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(active_background: nil, container_background: nil, page_background: nil) ⇒ PaletteCanvasProperty

Returns a new instance of PaletteCanvasProperty.

Parameters:

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

    The background color for active elements.

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

    The background color for container elements.

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

    The background color for page elements.



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_backgroundString? (readonly)

The background color for active elements.



736
737
738
# File 'connect/cfn_workspace.rb', line 736

def active_background
  @active_background
end

#container_backgroundString? (readonly)

The background color for container elements.



741
742
743
# File 'connect/cfn_workspace.rb', line 741

def container_background
  @container_background
end

#page_backgroundString? (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_propertiesObject



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_jsiiObject



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