Class: AWSCDK::QuickSight::CfnTemplate::WordCloudOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_template.rb

Overview

The word cloud options for a word cloud visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_layout: nil, maximum_string_length: nil, word_casing: nil, word_orientation: nil, word_padding: nil, word_scaling: nil) ⇒ WordCloudOptionsProperty

Returns a new instance of WordCloudOptionsProperty.

Parameters:

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

    The cloud layout options (fluid, normal) of a word cloud.

  • maximum_string_length (Numeric, nil) (defaults to: nil)

    The length limit of each word from 1-100.

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

    The word casing options (lower_case, existing_case) for the words in a word cloud.

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

    The word orientation options (horizontal, horizontal_and_vertical) for the words in a word cloud.

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

    The word padding options (none, small, medium, large) for the words in a word cloud.

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

    The word scaling options (emphasize, normal) for the words in a word cloud.



30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
# File 'quick_sight/cfn_template.rb', line 30619

def initialize(cloud_layout: nil, maximum_string_length: nil, word_casing: nil, word_orientation: nil, word_padding: nil, word_scaling: nil)
  @cloud_layout = cloud_layout
  Jsii::Type.check_type(@cloud_layout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cloudLayout") unless @cloud_layout.nil?
  @maximum_string_length = maximum_string_length
  Jsii::Type.check_type(@maximum_string_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumStringLength") unless @maximum_string_length.nil?
  @word_casing = word_casing
  Jsii::Type.check_type(@word_casing, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "wordCasing") unless @word_casing.nil?
  @word_orientation = word_orientation
  Jsii::Type.check_type(@word_orientation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "wordOrientation") unless @word_orientation.nil?
  @word_padding = word_padding
  Jsii::Type.check_type(@word_padding, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "wordPadding") unless @word_padding.nil?
  @word_scaling = word_scaling
  Jsii::Type.check_type(@word_scaling, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "wordScaling") unless @word_scaling.nil?
end

Instance Attribute Details

#cloud_layoutString? (readonly)

The cloud layout options (fluid, normal) of a word cloud.



30638
30639
30640
# File 'quick_sight/cfn_template.rb', line 30638

def cloud_layout
  @cloud_layout
end

#maximum_string_lengthNumeric? (readonly)

The length limit of each word from 1-100.



30643
30644
30645
# File 'quick_sight/cfn_template.rb', line 30643

def maximum_string_length
  @maximum_string_length
end

#word_casingString? (readonly)

The word casing options (lower_case, existing_case) for the words in a word cloud.



30648
30649
30650
# File 'quick_sight/cfn_template.rb', line 30648

def word_casing
  @word_casing
end

#word_orientationString? (readonly)

The word orientation options (horizontal, horizontal_and_vertical) for the words in a word cloud.



30653
30654
30655
# File 'quick_sight/cfn_template.rb', line 30653

def word_orientation
  @word_orientation
end

#word_paddingString? (readonly)

The word padding options (none, small, medium, large) for the words in a word cloud.



30658
30659
30660
# File 'quick_sight/cfn_template.rb', line 30658

def word_padding
  @word_padding
end

#word_scalingString? (readonly)

The word scaling options (emphasize, normal) for the words in a word cloud.



30663
30664
30665
# File 'quick_sight/cfn_template.rb', line 30663

def word_scaling
  @word_scaling
end

Class Method Details

.jsii_propertiesObject



30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
# File 'quick_sight/cfn_template.rb', line 30665

def self.jsii_properties
  {
    :cloud_layout => "cloudLayout",
    :maximum_string_length => "maximumStringLength",
    :word_casing => "wordCasing",
    :word_orientation => "wordOrientation",
    :word_padding => "wordPadding",
    :word_scaling => "wordScaling",
  }
end

Instance Method Details

#to_jsiiObject



30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
# File 'quick_sight/cfn_template.rb', line 30676

def to_jsii
  result = {}
  result.merge!({
    "cloudLayout" => @cloud_layout,
    "maximumStringLength" => @maximum_string_length,
    "wordCasing" => @word_casing,
    "wordOrientation" => @word_orientation,
    "wordPadding" => @word_padding,
    "wordScaling" => @word_scaling,
  })
  result.compact
end