Class CfnRule.RunCommandTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnRule.RunCommandTargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.RunCommandTargetProperty>
- Enclosing interface:
CfnRule.RunCommandTargetProperty
@Stability(Stable)
public static final class CfnRule.RunCommandTargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.RunCommandTargetProperty>
A builder for
CfnRule.RunCommandTargetProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRule.RunCommandTargetProperty.getKey()
Sets the value ofCfnRule.RunCommandTargetProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnRule.RunCommandTargetProperty.getKey()
- Parameters:
key
- Can be eithertag:
tag-key orInstanceIds
. This parameter is required.- Returns:
this
-
values
Sets the value ofCfnRule.RunCommandTargetProperty.getValues()
- Parameters:
values
- IfKey
istag:
tag-key ,Values
is a list of tag values. This parameter is required. IfKey
isInstanceIds
,Values
is a list of Amazon EC2 instance IDs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRule.RunCommandTargetProperty>
- Returns:
- a new instance of
CfnRule.RunCommandTargetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-