@Stability(value=Stable)
public static interface CfnRule.RunCommandTargetProperty
extends software.amazon.jsii.JsiiSerializable
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() |
String |
getKey()
Can be either `tag:` *tag-key* or `InstanceIds` .
|
List<String> |
getValues()
If `Key` is `tag:` *tag-key* , `Values` is a list of tag values.
|
@Stability(value=Stable) @NotNull String getKey()
@Stability(value=Stable) @NotNull List<String> getValues()
If Key is InstanceIds , Values is a list of Amazon EC2 instance IDs.
@Stability(value=Stable) static CfnRule.RunCommandTargetProperty.Builder builder()
Copyright © 2022. All rights reserved.