You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CloudWatchEvents::Types::RunCommandParameters

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb

Overview

Note:

When making an API call, you may pass RunCommandParameters data as a hash:

{
  run_command_targets: [ # required
    {
      key: "RunCommandTargetKey", # required
      values: ["RunCommandTargetValue"], # required
    },
  ],
}

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

Instance Attribute Details

#run_command_targetsArray<Types::RunCommandTarget>

Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.

Returns:



877
878
879
880
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 877

class RunCommandParameters < Struct.new(
  :run_command_targets)
  include Aws::Structure
end