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

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

Overview

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

Can be either ‘tag:` tag-key or `InstanceIds`.

Returns:

  • (String)


3655
3656
3657
3658
3659
3660
# File 'lib/aws-sdk-cloudwatchevents/types.rb', line 3655

class RunCommandTarget < Struct.new(
  :key,
  :values)
  SENSITIVE = []
  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>)


3655
3656
3657
3658
3659
3660
# File 'lib/aws-sdk-cloudwatchevents/types.rb', line 3655

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