Class CfnRule.RunCommandTargetProperty
Information about the EC2 instances that are to be sent the command, specified as key-value pairs.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRule.RunCommandTargetProperty : CfnRule.IRunCommandTargetProperty
Syntax (vb)
Public Class CfnRule.RunCommandTargetProperty Implements CfnRule.IRunCommandTargetProperty
Remarks
Each RunCommandTarget block can include only one key, but this key may specify multiple values.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Events;
var runCommandTargetProperty = new RunCommandTargetProperty {
Key = "key",
Values = new [] { "values" }
};
Synopsis
Constructors
| RunCommandTargetProperty() | Information about the EC2 instances that are to be sent the command, specified as key-value pairs. |
Properties
| Key | Can be either |
| Values | If |
Constructors
RunCommandTargetProperty()
Information about the EC2 instances that are to be sent the command, specified as key-value pairs.
public RunCommandTargetProperty()
Remarks
Each RunCommandTarget block can include only one key, but this key may specify multiple values.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Events;
var runCommandTargetProperty = new RunCommandTargetProperty {
Key = "key",
Values = new [] { "values" }
};
Properties
Key
Can be either tag: tag-key or InstanceIds .
public string Key { get; set; }
Property Value
Remarks
Values
If Key is tag: tag-key , Values is a list of tag values.
public string[] Values { get; set; }
Property Value
string[]
Remarks
If Key is InstanceIds , Values is a list of Amazon EC2 instance IDs.