Class CfnAssociation.TargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.CfnAssociation.TargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssociation.TargetProperty>
- Enclosing interface:
- CfnAssociation.TargetProperty
@Stability(Stable)
public static final class CfnAssociation.TargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssociation.TargetProperty>
A builder for
CfnAssociation.TargetProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAssociation.TargetProperty.getKey()
Sets the value ofCfnAssociation.TargetProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnAssociation.TargetProperty.getKey()
- Parameters:
key
- User-defined criteria for sending commands that target managed nodes that meet the criteria. This parameter is required.- Returns:
this
-
values
Sets the value ofCfnAssociation.TargetProperty.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<CfnAssociation.TargetProperty>
- Returns:
- a new instance of
CfnAssociation.TargetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-