Show / Hide Table of Contents

Class CfnRule.RunCommandTargetProperty

Information about the EC2 instances that are to be sent the command, specified as key-value pairs.

Inheritance
object
CfnRule.RunCommandTargetProperty
Implements
CfnRule.IRunCommandTargetProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandtarget.html

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 tag: tag-key or InstanceIds .

Values

If Key is tag: tag-key , Values is a list of tag values.

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandtarget.html

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

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandtarget.html#cfn-events-rule-runcommandtarget-key

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-runcommandtarget.html#cfn-events-rule-runcommandtarget-values

Implements

CfnRule.IRunCommandTargetProperty
Back to top Generated by DocFX