Class AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.autoscaling.events.AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps>
- Enclosing interface:
AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps
@Stability(Experimental)
public static final class AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScalingGroupName(List<String> autoScalingGroupName) build()Builds the configured instance.destination(List<String> destination) ec2InstanceId(List<String> ec2InstanceId) eventMetadata(AWSEventMetadataProps eventMetadata) lifecycleActionToken(List<String> lifecycleActionToken) lifecycleHookName(List<String> lifecycleHookName) lifecycleTransition(List<String> lifecycleTransition) notificationMetadata(List<String> notificationMetadata)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingGroupName
@Stability(Experimental) public AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder autoScalingGroupName(List<String> autoScalingGroupName) Sets the value ofAutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.getAutoScalingGroupName()- Parameters:
autoScalingGroupName- AutoScalingGroupName property. Specify an array of string values to match this event if the actual value of AutoScalingGroupName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
destination
@Stability(Experimental) public AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder destination(List<String> destination) Sets the value ofAutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.getDestination()- Parameters:
destination- Destination property. Specify an array of string values to match this event if the actual value of Destination is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
ec2InstanceId
@Stability(Experimental) public AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder ec2InstanceId(List<String> ec2InstanceId) Sets the value ofAutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.getEc2InstanceId()- Parameters:
ec2InstanceId- EC2InstanceId property. Specify an array of string values to match this event if the actual value of EC2InstanceId is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
eventMetadata
@Stability(Experimental) public AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofAutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
lifecycleActionToken
@Stability(Experimental) public AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder lifecycleActionToken(List<String> lifecycleActionToken) Sets the value ofAutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.getLifecycleActionToken()- Parameters:
lifecycleActionToken- LifecycleActionToken property. Specify an array of string values to match this event if the actual value of LifecycleActionToken is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
lifecycleHookName
@Stability(Experimental) public AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder lifecycleHookName(List<String> lifecycleHookName) Sets the value ofAutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.getLifecycleHookName()- Parameters:
lifecycleHookName- LifecycleHookName property. Specify an array of string values to match this event if the actual value of LifecycleHookName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
lifecycleTransition
@Stability(Experimental) public AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder lifecycleTransition(List<String> lifecycleTransition) Sets the value ofAutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.getLifecycleTransition()- Parameters:
lifecycleTransition- LifecycleTransition property. Specify an array of string values to match this event if the actual value of LifecycleTransition is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
notificationMetadata
@Stability(Experimental) public AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder notificationMetadata(List<String> notificationMetadata) Sets the value ofAutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.getNotificationMetadata()- Parameters:
notificationMetadata- NotificationMetadata property. Specify an array of string values to match this event if the actual value of NotificationMetadata is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
origin
@Stability(Experimental) public AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.Builder origin(List<String> origin) Sets the value ofAutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps.getOrigin()- Parameters:
origin- Origin property. Specify an array of string values to match this event if the actual value of Origin is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
@Stability(Experimental) public AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps>- Returns:
- a new instance of
AutoScalingGroupEvents.EC2InstanceLaunchLifecycleAction.EC2InstanceLaunchLifecycleActionProps - Throws:
NullPointerException- if any required attribute was not provided
-