@Stability(value=Stable)
public static interface CfnAssociation.TargetProperty
extends software.amazon.jsii.JsiiSerializable
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.ssm.*;
TargetProperty targetProperty = TargetProperty.builder()
.key("key")
.values(List.of("values"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAssociation.TargetProperty.Builder
A builder for
CfnAssociation.TargetProperty |
static class |
CfnAssociation.TargetProperty.Jsii$Proxy
An implementation for
CfnAssociation.TargetProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAssociation.TargetProperty.Builder |
builder() |
String |
getKey()
User-defined criteria for sending commands that target managed nodes that meet the criteria.
|
List<String> |
getValues()
User-defined criteria that maps to `Key` .
|
@Stability(value=Stable) @NotNull String getKey()
@Stability(value=Stable) @NotNull List<String> getValues()
For example, if you specified tag:ServerRole , you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer .
Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.
@Stability(value=Stable) static CfnAssociation.TargetProperty.Builder builder()
Copyright © 2022. All rights reserved.