Class: AWSCDK::QuickSight::CfnTemplate::CustomContentConfigurationProperty

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

Overview

The configuration of a CustomContentVisual .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content_type: nil, content_url: nil, image_scaling: nil, interactions: nil) ⇒ CustomContentConfigurationProperty

Returns a new instance of CustomContentConfigurationProperty.

Parameters:

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

    The content type of the custom content visual.

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

    The input URL that links to the custom content that you want in the custom visual.

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

    The sizing options for the size of the custom content visual.

  • interactions (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnTemplate::VisualInteractionOptionsProperty, nil) (defaults to: nil)

    The general visual interactions setup for a visual.



5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
# File 'quick_sight/cfn_template.rb', line 5574

def initialize(content_type: nil, content_url: nil, image_scaling: nil, interactions: nil)
  @content_type = content_type
  Jsii::Type.check_type(@content_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentType") unless @content_type.nil?
  @content_url = content_url
  Jsii::Type.check_type(@content_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentUrl") unless @content_url.nil?
  @image_scaling = image_scaling
  Jsii::Type.check_type(@image_scaling, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "imageScaling") unless @image_scaling.nil?
  @interactions = interactions.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::VisualInteractionOptionsProperty.new(**interactions.transform_keys(&:to_sym)) : interactions
  Jsii::Type.check_type(@interactions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlZpc3VhbEludGVyYWN0aW9uT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "interactions") unless @interactions.nil?
end

Instance Attribute Details

#content_typeString? (readonly)

The content type of the custom content visual.

You can use this to have the visual render as an image.



5591
5592
5593
# File 'quick_sight/cfn_template.rb', line 5591

def content_type
  @content_type
end

#content_urlString? (readonly)

The input URL that links to the custom content that you want in the custom visual.



5596
5597
5598
# File 'quick_sight/cfn_template.rb', line 5596

def content_url
  @content_url
end

#image_scalingString? (readonly)

The sizing options for the size of the custom content visual.

This structure is required when the ContentType of the visual is 'IMAGE' .



5603
5604
5605
# File 'quick_sight/cfn_template.rb', line 5603

def image_scaling
  @image_scaling
end

#interactionsAWSCDK::IResolvable, ... (readonly)

The general visual interactions setup for a visual.



5608
5609
5610
# File 'quick_sight/cfn_template.rb', line 5608

def interactions
  @interactions
end

Class Method Details

.jsii_propertiesObject



5610
5611
5612
5613
5614
5615
5616
5617
# File 'quick_sight/cfn_template.rb', line 5610

def self.jsii_properties
  {
    :content_type => "contentType",
    :content_url => "contentUrl",
    :image_scaling => "imageScaling",
    :interactions => "interactions",
  }
end

Instance Method Details

#to_jsiiObject



5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
# File 'quick_sight/cfn_template.rb', line 5619

def to_jsii
  result = {}
  result.merge!({
    "contentType" => @content_type,
    "contentUrl" => @content_url,
    "imageScaling" => @image_scaling,
    "interactions" => @interactions,
  })
  result.compact
end