public static interface CfnMaintenanceWindowTarget.TargetsProperty
Targets
is a property of the AWS::SSM::MaintenanceWindowTarget resource.
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.*; TargetsProperty targetsProperty = TargetsProperty.builder() .key("key") .values(List.of("values")) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnMaintenanceWindowTarget.TargetsProperty.Builder
A builder for
CfnMaintenanceWindowTarget.TargetsProperty |
static class |
CfnMaintenanceWindowTarget.TargetsProperty.Jsii$Proxy
An implementation for
CfnMaintenanceWindowTarget.TargetsProperty |
Modifier and Type | Method and Description |
---|---|
static CfnMaintenanceWindowTarget.TargetsProperty.Builder |
builder() |
java.lang.String |
getKey()
User-defined criteria for sending commands that target managed nodes that meet the criteria.
|
java.util.List<java.lang.String> |
getValues()
User-defined criteria that maps to `Key` .
|
java.lang.String getKey()
java.util.List<java.lang.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.
static CfnMaintenanceWindowTarget.TargetsProperty.Builder builder()