Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon CloudWatch Events Rule RunCommandTarget

The RunCommandTarget property type specifies information about the Amazon EC2 instances that the Run Command is sent to. A RunCommandTarget block can include only one key, but the key can specify multiple values.

The RunCommandTargets property of the CloudWatch Events Rule RunCommandParameters property type contains a list of RunCommandTarget property types.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

Copy
{ "Key" : String, "Values" : [ String, ... ] }

YAML

Copy
Key: String Values: - String

Properties

For more information, including constraints, see RunCommandTarget in the Amazon CloudWatch Events API Reference.

Key

The key, either tag: tag-key or InstanceIds.

Required: Yes

Type: String

Update requires: No interruption

Values

A list of tag values or EC2 instance IDs.

Required: Yes

Type: List of String

Update requires: No interruption

On this page: