public static final class CfnMaintenanceWindowTarget.TargetsProperty.Builder
extends java.lang.Object
CfnMaintenanceWindowTarget.TargetsProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnMaintenanceWindowTarget.TargetsProperty |
build()
Builds the configured instance.
|
CfnMaintenanceWindowTarget.TargetsProperty.Builder |
key(java.lang.String key)
Sets the value of
CfnMaintenanceWindowTarget.TargetsProperty.getKey() |
CfnMaintenanceWindowTarget.TargetsProperty.Builder |
values(java.util.List<java.lang.String> values)
Sets the value of
CfnMaintenanceWindowTarget.TargetsProperty.getValues() |
public CfnMaintenanceWindowTarget.TargetsProperty.Builder key(java.lang.String key)
CfnMaintenanceWindowTarget.TargetsProperty.getKey()
key
- User-defined criteria for sending commands that target managed nodes that meet the criteria. This parameter is required.this
public CfnMaintenanceWindowTarget.TargetsProperty.Builder values(java.util.List<java.lang.String> values)
CfnMaintenanceWindowTarget.TargetsProperty.getValues()
values
- User-defined criteria that maps to `Key` . This parameter is required.
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.
this
public CfnMaintenanceWindowTarget.TargetsProperty build()
CfnMaintenanceWindowTarget.TargetsProperty
java.lang.NullPointerException
- if any required attribute was not provided