Class: AWSCDK::CleanRooms::CfnAnalysisTemplate::AnalysisSourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CleanRooms::CfnAnalysisTemplate::AnalysisSourceProperty
- Defined in:
- clean_rooms/cfn_analysis_template.rb
Overview
The structure that defines the body of the analysis template.
Instance Attribute Summary collapse
-
#artifacts ⇒ AWSCDK::IResolvable, ...
readonly
The artifacts of the analysis source.
-
#text ⇒ String?
readonly
The query text.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(artifacts: nil, text: nil) ⇒ AnalysisSourceProperty
constructor
A new instance of AnalysisSourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(artifacts: nil, text: nil) ⇒ AnalysisSourceProperty
Returns a new instance of AnalysisSourceProperty.
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
#artifacts ⇒ AWSCDK::IResolvable, ... (readonly)
The artifacts of the analysis source.
843 844 845 |
# File 'clean_rooms/cfn_analysis_template.rb', line 843 def artifacts @artifacts end |
#text ⇒ String? (readonly)
The query text.
848 849 850 |
# File 'clean_rooms/cfn_analysis_template.rb', line 848 def text @text end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |