Class: AWSCDK::CleanRooms::CfnAnalysisTemplate::AnalysisSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
clean_rooms/cfn_analysis_template.rb

Overview

The structure that defines the body of the analysis template.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(artifacts: nil, text: nil) ⇒ AnalysisSourceProperty

Returns a new instance of AnalysisSourceProperty.

Parameters:



832
833
834
835
836
837
# File 'clean_rooms/cfn_analysis_template.rb', line 832

def initialize(artifacts: nil, text: nil)
  @artifacts = artifacts.is_a?(Hash) ? ::AWSCDK::CleanRooms::CfnAnalysisTemplate::AnalysisTemplateArtifactsProperty.new(**artifacts.transform_keys(&:to_sym)) : artifacts
  Jsii::Type.check_type(@artifacts, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbGVhbnJvb21zLkNmbkFuYWx5c2lzVGVtcGxhdGUuQW5hbHlzaXNUZW1wbGF0ZUFydGlmYWN0c1Byb3BlcnR5In1dfX0=")), "artifacts") unless @artifacts.nil?
  @text = text
  Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "text") unless @text.nil?
end

Instance Attribute Details

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

The artifacts of the analysis source.



843
844
845
# File 'clean_rooms/cfn_analysis_template.rb', line 843

def artifacts
  @artifacts
end

#textString? (readonly)

The query text.



848
849
850
# File 'clean_rooms/cfn_analysis_template.rb', line 848

def text
  @text
end

Class Method Details

.jsii_propertiesObject



850
851
852
853
854
855
# File 'clean_rooms/cfn_analysis_template.rb', line 850

def self.jsii_properties
  {
    :artifacts => "artifacts",
    :text => "text",
  }
end

Instance Method Details

#to_jsiiObject



857
858
859
860
861
862
863
864
# File 'clean_rooms/cfn_analysis_template.rb', line 857

def to_jsii
  result = {}
  result.merge!({
    "artifacts" => @artifacts,
    "text" => @text,
  })
  result.compact
end