EC2InstanceTerminateLifecycleAction
- class aws_cdk.mixins_preview.aws_autoscaling.events.EC2InstanceTerminateLifecycleAction
Bases:
object(experimental) EventBridge event pattern for aws.autoscaling@EC2InstanceTerminateLifecycleAction.
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_autoscaling import events as autoscaling_events e_c2_instance_terminate_lifecycle_action = autoscaling_events.EC2InstanceTerminateLifecycleAction()
- Stability:
experimental
Static Methods
- classmethod ec2_instance_terminate_lifecycle_action_pattern(*, auto_scaling_group_name=None, destination=None, ec2_instance_id=None, event_metadata=None, lifecycle_action_token=None, lifecycle_hook_name=None, lifecycle_transition=None, notification_metadata=None, origin=None)
(experimental) EventBridge event pattern for EC2 Instance-terminate Lifecycle Action.
- Parameters:
auto_scaling_group_name (
Optional[Sequence[str]]) – (experimental) 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. Default: - Filter with the AutoScalingGroup referencedestination (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldec2_instance_id (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldevent_metadata (
Union[AWSEventMetadataProps,Dict[str,Any],None]) – (experimental) EventBridge event metadata. Default: - -lifecycle_action_token (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldlifecycle_hook_name (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldlifecycle_transition (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldnotification_metadata (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldorigin (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this field
- Stability:
experimental
- Return type:
EC2InstanceTerminateLifecycleActionProps
- class EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps(*, auto_scaling_group_name=None, destination=None, ec2_instance_id=None, event_metadata=None, lifecycle_action_token=None, lifecycle_hook_name=None, lifecycle_transition=None, notification_metadata=None, origin=None)
Bases:
object(experimental) Props type for aws.autoscaling@EC2InstanceTerminateLifecycleAction event.
- Parameters:
auto_scaling_group_name (
Optional[Sequence[str]]) – (experimental) 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. Default: - Filter with the AutoScalingGroup referencedestination (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldec2_instance_id (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldevent_metadata (
Union[AWSEventMetadataProps,Dict[str,Any],None]) – (experimental) EventBridge event metadata. Default: - -lifecycle_action_token (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldlifecycle_hook_name (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldlifecycle_transition (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldnotification_metadata (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this fieldorigin (
Optional[Sequence[str]]) – (experimental) 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. Default: - Do not filter on this field
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import AWSEventMetadataProps # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_autoscaling import events as autoscaling_events e_c2_instance_terminate_lifecycle_action_props = autoscaling_events.EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps( auto_scaling_group_name=["autoScalingGroupName"], destination=["destination"], ec2_instance_id=["ec2InstanceId"], event_metadata=AWSEventMetadataProps( region=["region"], resources=["resources"], version=["version"] ), lifecycle_action_token=["lifecycleActionToken"], lifecycle_hook_name=["lifecycleHookName"], lifecycle_transition=["lifecycleTransition"], notification_metadata=["notificationMetadata"], origin=["origin"] )
Attributes
- auto_scaling_group_name
(experimental) 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 the
aws_events.Matchfor more advanced matching options.- Default:
Filter with the AutoScalingGroup reference
- Stability:
experimental
- destination
(experimental) 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 the
aws_events.Matchfor more advanced matching options.- Default:
Do not filter on this field
- Stability:
experimental
- ec2_instance_id
(experimental) 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 the
aws_events.Matchfor more advanced matching options.- Default:
Do not filter on this field
- Stability:
experimental
- event_metadata
(experimental) EventBridge event metadata.
- Default:
- Stability:
experimental
- lifecycle_action_token
(experimental) 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 the
aws_events.Matchfor more advanced matching options.- Default:
Do not filter on this field
- Stability:
experimental
- lifecycle_hook_name
(experimental) 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 the
aws_events.Matchfor more advanced matching options.- Default:
Do not filter on this field
- Stability:
experimental
- lifecycle_transition
(experimental) 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 the
aws_events.Matchfor more advanced matching options.- Default:
Do not filter on this field
- Stability:
experimental
- notification_metadata
(experimental) 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 the
aws_events.Matchfor more advanced matching options.- Default:
Do not filter on this field
- Stability:
experimental
- origin
(experimental) 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 the
aws_events.Matchfor more advanced matching options.- Default:
Do not filter on this field
- Stability:
experimental