public static interface CfnRule.RunCommandTargetProperty
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnRule.RunCommandTargetProperty.Builder
A builder for
CfnRule.RunCommandTargetProperty |
static class |
CfnRule.RunCommandTargetProperty.Jsii$Proxy
An implementation for
CfnRule.RunCommandTargetProperty |
Modifier and Type | Method and Description |
---|---|
static CfnRule.RunCommandTargetProperty.Builder |
builder() |
java.lang.String |
getKey()
Can be either `tag:` *tag-key* or `InstanceIds` .
|
java.util.List<java.lang.String> |
getValues()
If `Key` is `tag:` *tag-key* , `Values` is a list of tag values.
|
java.lang.String getKey()
java.util.List<java.lang.String> getValues()
If Key
is InstanceIds
, Values
is a list of Amazon EC2 instance IDs.
static CfnRule.RunCommandTargetProperty.Builder builder()