Class: AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateExperimentReportConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fis/cfn_experiment_template.rb

Overview

Describes the report configuration for the experiment template.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(outputs:, data_sources: nil, post_experiment_duration: nil, pre_experiment_duration: nil) ⇒ ExperimentTemplateExperimentReportConfigurationProperty

Returns a new instance of ExperimentTemplateExperimentReportConfigurationProperty.

Parameters:



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

#post_experiment_durationString? (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_durationString? (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_propertiesObject



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_jsiiObject



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