Class CfnMaintenanceWindowTaskPropsMixin.TargetProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ssm.CfnMaintenanceWindowTaskPropsMixin.TargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMaintenanceWindowTaskPropsMixin.TargetProperty>
- Enclosing interface:
CfnMaintenanceWindowTaskPropsMixin.TargetProperty
@Stability(Stable)
public static final class CfnMaintenanceWindowTaskPropsMixin.TargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMaintenanceWindowTaskPropsMixin.TargetProperty>
A builder for
CfnMaintenanceWindowTaskPropsMixin.TargetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnMaintenanceWindowTaskPropsMixin.TargetProperty.getKey()Sets the value ofCfnMaintenanceWindowTaskPropsMixin.TargetProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnMaintenanceWindowTaskPropsMixin.TargetProperty.getKey()- Parameters:
key- User-defined criteria for sending commands that target instances that meet the criteria.Keycan beInstanceIdsorWindowTargetIds. 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 CfnMaintenanceWindowTaskPropsMixin.TargetProperty.Builder values(List<String> values) Sets the value ofCfnMaintenanceWindowTaskPropsMixin.TargetProperty.getValues()- Parameters:
values- User-defined criteria that maps toKey. For example, if you specifyInstanceIds, you can specifyi-1234567890abcdef0,i-9876543210abcdef0to 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnMaintenanceWindowTaskPropsMixin.TargetProperty>- Returns:
- a new instance of
CfnMaintenanceWindowTaskPropsMixin.TargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-