Class: AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FIS::CfnExperimentTemplate::ExperimentTemplateActionProperty
- Defined in:
- fis/cfn_experiment_template.rb
Overview
Specifies an action for an experiment template.
For more information, see Actions in the AWS Fault Injection Service User Guide .
Instance Attribute Summary collapse
-
#action_id ⇒ String
readonly
The ID of the action.
-
#description ⇒ String?
readonly
A description for the action.
-
#parameters ⇒ AWSCDK::IResolvable, ...
readonly
The parameters for the action.
-
#start_after ⇒ Array<String>?
readonly
The name of the action that must be completed before the current action starts.
-
#targets ⇒ AWSCDK::IResolvable, ...
readonly
The targets for the action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action_id:, description: nil, parameters: nil, start_after: nil, targets: nil) ⇒ ExperimentTemplateActionProperty
constructor
A new instance of ExperimentTemplateActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action_id:, description: nil, parameters: nil, start_after: nil, targets: nil) ⇒ ExperimentTemplateActionProperty
Returns a new instance of ExperimentTemplateActionProperty.
779 780 781 782 783 784 785 786 787 788 789 790 |
# File 'fis/cfn_experiment_template.rb', line 779 def initialize(action_id:, description: nil, parameters: nil, start_after: nil, targets: nil) @action_id = action_id Jsii::Type.check_type(@action_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actionId") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @parameters = parameters Jsii::Type.check_type(@parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "parameters") unless @parameters.nil? @start_after = start_after Jsii::Type.check_type(@start_after, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "startAfter") unless @start_after.nil? @targets = targets Jsii::Type.check_type(@targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "targets") unless @targets.nil? end |
Instance Attribute Details
#action_id ⇒ String (readonly)
The ID of the action.
796 797 798 |
# File 'fis/cfn_experiment_template.rb', line 796 def action_id @action_id end |
#description ⇒ String? (readonly)
A description for the action.
801 802 803 |
# File 'fis/cfn_experiment_template.rb', line 801 def description @description end |
#parameters ⇒ AWSCDK::IResolvable, ... (readonly)
The parameters for the action.
806 807 808 |
# File 'fis/cfn_experiment_template.rb', line 806 def parameters @parameters end |
#start_after ⇒ Array<String>? (readonly)
The name of the action that must be completed before the current action starts.
811 812 813 |
# File 'fis/cfn_experiment_template.rb', line 811 def start_after @start_after end |
#targets ⇒ AWSCDK::IResolvable, ... (readonly)
The targets for the action.
816 817 818 |
# File 'fis/cfn_experiment_template.rb', line 816 def targets @targets end |
Class Method Details
.jsii_properties ⇒ Object
818 819 820 821 822 823 824 825 826 |
# File 'fis/cfn_experiment_template.rb', line 818 def self.jsii_properties { :action_id => "actionId", :description => "description", :parameters => "parameters", :start_after => "startAfter", :targets => "targets", } end |
Instance Method Details
#to_jsii ⇒ Object
828 829 830 831 832 833 834 835 836 837 838 |
# File 'fis/cfn_experiment_template.rb', line 828 def to_jsii result = {} result.merge!({ "actionId" => @action_id, "description" => @description, "parameters" => @parameters, "startAfter" => @start_after, "targets" => @targets, }) result.compact end |