Class: AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateExperimentReportConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateExperimentReportConfigurationProperty
- Defined in:
- fis/cfn_experiment_template.rb
Overview
Describes the report configuration for the experiment template.
Instance Attribute Summary collapse
-
#data_sources ⇒ AWSCDK::IResolvable, ...
readonly
The data sources for the experiment report.
-
#outputs ⇒ AWSCDK::IResolvable, AWSCDK::FIS::CfnExperimentTemplate::OutputsProperty
readonly
The output destinations of the experiment report.
-
#post_experiment_duration ⇒ String?
readonly
The duration after the experiment end time for the data sources to include in the report.
-
#pre_experiment_duration ⇒ String?
readonly
The duration before the experiment start time for the data sources to include in the report.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(outputs:, data_sources: nil, post_experiment_duration: nil, pre_experiment_duration: nil) ⇒ ExperimentTemplateExperimentReportConfigurationProperty
constructor
A new instance of ExperimentTemplateExperimentReportConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(outputs:, data_sources: nil, post_experiment_duration: nil, pre_experiment_duration: nil) ⇒ ExperimentTemplateExperimentReportConfigurationProperty
Returns a new instance of ExperimentTemplateExperimentReportConfigurationProperty.
894 895 896 897 898 899 900 901 902 903 |
# File 'fis/cfn_experiment_template.rb', line 894 def initialize(outputs:, data_sources: nil, post_experiment_duration: nil, pre_experiment_duration: nil) @outputs = outputs.is_a?(Hash) ? ::AWSCDK::FIS::CfnExperimentTemplate::OutputsProperty.new(**outputs.transform_keys(&:to_sym)) : outputs Jsii::Type.check_type(@outputs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19maXMuQ2ZuRXhwZXJpbWVudFRlbXBsYXRlLk91dHB1dHNQcm9wZXJ0eSJ9XX19")), "outputs") @data_sources = data_sources.is_a?(Hash) ? ::AWSCDK::FIS::CfnExperimentTemplate::DataSourcesProperty.new(**data_sources.transform_keys(&:to_sym)) : data_sources Jsii::Type.check_type(@data_sources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19maXMuQ2ZuRXhwZXJpbWVudFRlbXBsYXRlLkRhdGFTb3VyY2VzUHJvcGVydHkifV19fQ==")), "dataSources") unless @data_sources.nil? @post_experiment_duration = post_experiment_duration Jsii::Type.check_type(@post_experiment_duration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "postExperimentDuration") unless @post_experiment_duration.nil? @pre_experiment_duration = pre_experiment_duration Jsii::Type.check_type(@pre_experiment_duration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "preExperimentDuration") unless @pre_experiment_duration.nil? end |
Instance Attribute Details
#data_sources ⇒ AWSCDK::IResolvable, ... (readonly)
The data sources for the experiment report.
914 915 916 |
# File 'fis/cfn_experiment_template.rb', line 914 def data_sources @data_sources end |
#outputs ⇒ AWSCDK::IResolvable, AWSCDK::FIS::CfnExperimentTemplate::OutputsProperty (readonly)
The output destinations of the experiment report.
909 910 911 |
# File 'fis/cfn_experiment_template.rb', line 909 def outputs @outputs end |
#post_experiment_duration ⇒ String? (readonly)
The duration after the experiment end time for the data sources to include in the report.
919 920 921 |
# File 'fis/cfn_experiment_template.rb', line 919 def post_experiment_duration @post_experiment_duration end |
#pre_experiment_duration ⇒ String? (readonly)
The duration before the experiment start time for the data sources to include in the report.
924 925 926 |
# File 'fis/cfn_experiment_template.rb', line 924 def pre_experiment_duration @pre_experiment_duration end |
Class Method Details
.jsii_properties ⇒ Object
926 927 928 929 930 931 932 933 |
# File 'fis/cfn_experiment_template.rb', line 926 def self.jsii_properties { :outputs => "outputs", :data_sources => "dataSources", :post_experiment_duration => "postExperimentDuration", :pre_experiment_duration => "preExperimentDuration", } end |
Instance Method Details
#to_jsii ⇒ Object
935 936 937 938 939 940 941 942 943 944 |
# File 'fis/cfn_experiment_template.rb', line 935 def to_jsii result = {} result.merge!({ "outputs" => @outputs, "dataSources" => @data_sources, "postExperimentDuration" => @post_experiment_duration, "preExperimentDuration" => @pre_experiment_duration, }) result.compact end |