@Stability(value=Stable) public static final class CfnMaintenanceWindowTask.TargetProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnMaintenanceWindowTask.TargetProperty>
CfnMaintenanceWindowTask.TargetProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnMaintenanceWindowTask.TargetProperty |
build()
Builds the configured instance.
|
CfnMaintenanceWindowTask.TargetProperty.Builder |
key(String key)
Sets the value of
CfnMaintenanceWindowTask.TargetProperty.getKey() |
CfnMaintenanceWindowTask.TargetProperty.Builder |
values(List<String> values)
Sets the value of
CfnMaintenanceWindowTask.TargetProperty.getValues() |
@Stability(value=Stable) public CfnMaintenanceWindowTask.TargetProperty.Builder key(String key)
CfnMaintenanceWindowTask.TargetProperty.getKey()key - User-defined criteria for sending commands that target instances that meet the criteria. This parameter is required.
Key can be InstanceIds or WindowTargetIds . For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide .this@Stability(value=Stable) public CfnMaintenanceWindowTask.TargetProperty.Builder values(List<String> values)
CfnMaintenanceWindowTask.TargetProperty.getValues()values - User-defined criteria that maps to `Key` . This parameter is required.
For example, if you specify InstanceIds , you can specify i-1234567890abcdef0,i-9876543210abcdef0 to run a command on two EC2 instances. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide .this@Stability(value=Stable) public CfnMaintenanceWindowTask.TargetProperty build()
build in interface software.amazon.jsii.Builder<CfnMaintenanceWindowTask.TargetProperty>CfnMaintenanceWindowTask.TargetPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.