AWS::Events::Rule RunCommandTarget - AWS CloudFormation

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::Events::Rule RunCommandTarget

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.

Syntax

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

JSON

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

YAML

Key: String Values: - String

Properties

Key

Can be either tag:tag-key or InstanceIds.

Required: Yes

Type: String

Pattern: ^[\p{L}\p{Z}\p{N}_.:/=+\-@]*$

Minimum: 1

Maximum: 128

Update requires: No interruption

Values

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.

Required: Yes

Type: Array of String

Minimum: 1

Maximum: 50

Update requires: No interruption