Interface CfnRule.RunCommandTargetProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRule.RunCommandTargetProperty.Jsii$Proxy
- Enclosing class:
CfnRule
@Stability(Stable)
public static interface CfnRule.RunCommandTargetProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.*;
RunCommandTargetProperty runCommandTargetProperty = RunCommandTargetProperty.builder()
.key("key")
.values(List.of("values"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRule.RunCommandTargetPropertystatic final classAn implementation forCfnRule.RunCommandTargetProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKey
Can be eithertag:tag-key orInstanceIds.- See Also:
-
getValues
IfKeyistag:tag-key ,Valuesis a list of tag values.If
KeyisInstanceIds,Valuesis a list of Amazon EC2 instance IDs.- See Also:
-
builder
-