Class: AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateStopConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateStopConditionProperty
- 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
-
#source ⇒ String
readonly
The source for the stop condition.
-
#value ⇒ String?
readonly
The Amazon Resource Name (ARN) of the CloudWatch alarm, if applicable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source:, value: nil) ⇒ ExperimentTemplateStopConditionProperty
constructor
A new instance of ExperimentTemplateStopConditionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(source:, value: nil) ⇒ ExperimentTemplateStopConditionProperty
Returns a new instance of ExperimentTemplateStopConditionProperty.
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
#source ⇒ String (readonly)
The source for the stop condition.
1023 1024 1025 |
# File 'fis/cfn_experiment_template.rb', line 1023 def source @source end |
#value ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |