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- IfKeyistag:tag-key ,Valuesis a list of tag values. This parameter is required. IfKeyisInstanceIds,Valuesis a list of Amazon EC2 instance IDs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRule.RunCommandTargetProperty>- Returns:
- a new instance of
CfnRule.RunCommandTargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-