Class CfnRule.RunCommandTargetProperty
Information about the EC2 instances that are to be sent the command, specified as key-value pairs.
Inheritance
System.Object
CfnRule.RunCommandTargetProperty
Implements
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RunCommandTargetProperty : Object, CfnRule.IRunCommandTargetProperty
Syntax (vb)
Public Class RunCommandTargetProperty
Inherits Object
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() |
Properties
Key | Can be either |
Values | If |
Constructors
RunCommandTargetProperty()
public RunCommandTargetProperty()
Properties
Key
Can be either tag:
tag-key or InstanceIds
.
public string Key { get; set; }
Property Value
System.String
Remarks
Values
If Key
is tag:
tag-key , Values
is a list of tag values.
public string[] Values { get; set; }
Property Value
System.String[]
Remarks
If Key
is InstanceIds
, Values
is a list of Amazon EC2 instance IDs.