Class: AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateStopConditionProperty

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

Overview

Specifies a stop condition for an experiment template.

For more information, see Stop conditions in the AWS Fault Injection Service User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source:, value: nil) ⇒ ExperimentTemplateStopConditionProperty

Returns a new instance of ExperimentTemplateStopConditionProperty.

Parameters:

  • source (String)

    The source for the stop condition.

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

    The Amazon Resource Name (ARN) of the CloudWatch alarm, if applicable.



1012
1013
1014
1015
1016
1017
# File 'fis/cfn_experiment_template.rb', line 1012

def initialize(source:, value: nil)
  @source = source
  Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

#sourceString (readonly)

The source for the stop condition.



1023
1024
1025
# File 'fis/cfn_experiment_template.rb', line 1023

def source
  @source
end

#valueString? (readonly)

The Amazon Resource Name (ARN) of the CloudWatch alarm, if applicable.



1028
1029
1030
# File 'fis/cfn_experiment_template.rb', line 1028

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1030
1031
1032
1033
1034
1035
# File 'fis/cfn_experiment_template.rb', line 1030

def self.jsii_properties
  {
    :source => "source",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1037
1038
1039
1040
1041
1042
1043
1044
# File 'fis/cfn_experiment_template.rb', line 1037

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