Class: AWSCDK::Events::CfnRule::RunCommandParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Events::CfnRule::RunCommandParametersProperty
- Defined in:
- events/cfn_rule.rb
Overview
This parameter contains the criteria (either InstanceIds or a tag) used to specify which EC2 instances are to be sent the command.
Instance Attribute Summary collapse
-
#run_command_targets ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Events::CfnRule::RunCommandTargetProperty>
readonly
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(run_command_targets:) ⇒ RunCommandParametersProperty
constructor
A new instance of RunCommandParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(run_command_targets:) ⇒ RunCommandParametersProperty
Returns a new instance of RunCommandParametersProperty.
1642 1643 1644 1645 |
# File 'events/cfn_rule.rb', line 1642 def initialize(run_command_targets:) @run_command_targets = run_command_targets Jsii::Type.check_type(@run_command_targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZXZlbnRzLkNmblJ1bGUuUnVuQ29tbWFuZFRhcmdldFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "runCommandTargets") end |
Instance Attribute Details
#run_command_targets ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Events::CfnRule::RunCommandTargetProperty> (readonly)
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
1651 1652 1653 |
# File 'events/cfn_rule.rb', line 1651 def run_command_targets @run_command_targets end |
Class Method Details
.jsii_properties ⇒ Object
1653 1654 1655 1656 1657 |
# File 'events/cfn_rule.rb', line 1653 def self.jsii_properties { :run_command_targets => "runCommandTargets", } end |
Instance Method Details
#to_jsii ⇒ Object
1659 1660 1661 1662 1663 1664 1665 |
# File 'events/cfn_rule.rb', line 1659 def to_jsii result = {} result.merge!({ "runCommandTargets" => @run_command_targets, }) result.compact end |