Class CfnMaintenanceWindowTarget.TargetsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTarget.TargetsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMaintenanceWindowTarget.TargetsProperty>
- Enclosing interface:
CfnMaintenanceWindowTarget.TargetsProperty
@Stability(Stable)
public static final class CfnMaintenanceWindowTarget.TargetsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMaintenanceWindowTarget.TargetsProperty>
A builder for
CfnMaintenanceWindowTarget.TargetsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnMaintenanceWindowTarget.TargetsProperty.getKey()
Sets the value ofCfnMaintenanceWindowTarget.TargetsProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnMaintenanceWindowTarget.TargetsProperty.getKey()
- Parameters:
key
- User-defined criteria for sending commands that target managed nodes that meet the criteria. This parameter is required.- Returns:
this
-
values
@Stability(Stable) public CfnMaintenanceWindowTarget.TargetsProperty.Builder values(List<String> values) Sets the value ofCfnMaintenanceWindowTarget.TargetsProperty.getValues()
- Parameters:
values
- User-defined criteria that maps toKey
. This parameter is required. For example, if you specifiedtag:ServerRole
, you could specifyvalue:WebServer
to run a command on instances that include EC2 tags ofServerRole,WebServer
.Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMaintenanceWindowTarget.TargetsProperty>
- Returns:
- a new instance of
CfnMaintenanceWindowTarget.TargetsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-