Class CfnMaintenanceWindowTask.TargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.TargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMaintenanceWindowTask.TargetProperty>
- Enclosing interface:
CfnMaintenanceWindowTask.TargetProperty
@Stability(Stable)
public static final class CfnMaintenanceWindowTask.TargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMaintenanceWindowTask.TargetProperty>
A builder for
CfnMaintenanceWindowTask.TargetProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnMaintenanceWindowTask.TargetProperty.getKey()
Sets the value ofCfnMaintenanceWindowTask.TargetProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnMaintenanceWindowTask.TargetProperty.getKey()
- Parameters:
key
- User-defined criteria for sending commands that target instances that meet the criteria. This parameter is required.Key
can beInstanceIds
orWindowTargetIds
. 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 .- Returns:
this
-
values
@Stability(Stable) public CfnMaintenanceWindowTask.TargetProperty.Builder values(List<String> values) Sets the value ofCfnMaintenanceWindowTask.TargetProperty.getValues()
- Parameters:
values
- User-defined criteria that maps toKey
. This parameter is required. For example, if you specifyInstanceIds
, you can specifyi-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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMaintenanceWindowTask.TargetProperty>
- Returns:
- a new instance of
CfnMaintenanceWindowTask.TargetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-