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

Class: Aws::CloudWatchEvents::Types::RunCommandTarget

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 RunCommandTarget data as a hash:

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

Information about the EC2 instances that are to be sent the command, specified as key-value pairs. Each RunCommandTarget block can include only one key, but this key may specify multiple values.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

Can be either tag: tag-key or InstanceIds.

Returns:

  • (String)


906
907
908
909
910
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 906

class RunCommandTarget < Struct.new(
  :key,
  :values)
  include Aws::Structure
end

#valuesArray<String>

If Key is tag: tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs.

Returns:

  • (Array<String>)


906
907
908
909
910
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 906

class RunCommandTarget < Struct.new(
  :key,
  :values)
  include Aws::Structure
end