AutoScalingGroupEvents

class aws_cdk.mixins_preview.aws_autoscaling.events.AutoScalingGroupEvents(*args: Any, **kwargs)

Bases: object

(experimental) EventBridge event patterns for AutoScalingGroup.

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
from aws_cdk.interfaces import aws_autoscaling as interfaces_autoscaling

# auto_scaling_group_ref: interfaces_autoscaling.IAutoScalingGroupRef

auto_scaling_group_events = autoscaling_events.AutoScalingGroupEvents.from_auto_scaling_group(auto_scaling_group_ref)

Methods

ec2_instance_launch_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 AutoScalingGroup EC2 Instance-launch 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 the aws_events.Match for more advanced matching options. Default: - Filter with the AutoScalingGroup reference

  • destination (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • ec2_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • event_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • lifecycle_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • lifecycle_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • notification_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • origin (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

ec2_instance_launch_successful_pattern(*, activity_id=None, auto_scaling_group_name=None, cause=None, description=None, destination=None, details=None, ec2_instance_id=None, end_time=None, event_metadata=None, origin=None, request_id=None, start_time=None, status_code=None, status_message=None)

(experimental) EventBridge event pattern for AutoScalingGroup EC2 Instance Launch Successful.

Parameters:
  • activity_id (Optional[Sequence[str]]) – (experimental) ActivityId property. Specify an array of string values to match this event if the actual value of ActivityId is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • 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 the aws_events.Match for more advanced matching options. Default: - Filter with the AutoScalingGroup reference

  • cause (Optional[Sequence[str]]) – (experimental) Cause property. Specify an array of string values to match this event if the actual value of Cause is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • description (Optional[Sequence[str]]) – (experimental) Description property. Specify an array of string values to match this event if the actual value of Description is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • destination (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • details (Union[Details, Dict[str, Any], None]) – (experimental) Details property. Specify an array of string values to match this event if the actual value of Details is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • ec2_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • end_time (Optional[Sequence[str]]) – (experimental) EndTime property. Specify an array of string values to match this event if the actual value of EndTime is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • event_metadata (Union[AWSEventMetadataProps, Dict[str, Any], None]) – (experimental) EventBridge event metadata. Default: - -

  • origin (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • request_id (Optional[Sequence[str]]) – (experimental) RequestId property. Specify an array of string values to match this event if the actual value of RequestId is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • start_time (Optional[Sequence[str]]) – (experimental) StartTime property. Specify an array of string values to match this event if the actual value of StartTime is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • status_code (Optional[Sequence[str]]) – (experimental) StatusCode property. Specify an array of string values to match this event if the actual value of StatusCode is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • status_message (Optional[Sequence[str]]) – (experimental) StatusMessage property. Specify an array of string values to match this event if the actual value of StatusMessage is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

ec2_instance_launch_unsuccessful_pattern(*, activity_id=None, auto_scaling_group_name=None, cause=None, description=None, destination=None, details=None, ec2_instance_id=None, end_time=None, event_metadata=None, origin=None, request_id=None, start_time=None, status_code=None, status_message=None)

(experimental) EventBridge event pattern for AutoScalingGroup EC2 Instance Launch Unsuccessful.

Parameters:
  • activity_id (Optional[Sequence[str]]) – (experimental) ActivityId property. Specify an array of string values to match this event if the actual value of ActivityId is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • 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 the aws_events.Match for more advanced matching options. Default: - Filter with the AutoScalingGroup reference

  • cause (Optional[Sequence[str]]) – (experimental) Cause property. Specify an array of string values to match this event if the actual value of Cause is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • description (Optional[Sequence[str]]) – (experimental) Description property. Specify an array of string values to match this event if the actual value of Description is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • destination (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • details (Union[Details, Dict[str, Any], None]) – (experimental) Details property. Specify an array of string values to match this event if the actual value of Details is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • ec2_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • end_time (Optional[Sequence[str]]) – (experimental) EndTime property. Specify an array of string values to match this event if the actual value of EndTime is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • event_metadata (Union[AWSEventMetadataProps, Dict[str, Any], None]) – (experimental) EventBridge event metadata. Default: - -

  • origin (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • request_id (Optional[Sequence[str]]) – (experimental) RequestId property. Specify an array of string values to match this event if the actual value of RequestId is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • start_time (Optional[Sequence[str]]) – (experimental) StartTime property. Specify an array of string values to match this event if the actual value of StartTime is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • status_code (Optional[Sequence[str]]) – (experimental) StatusCode property. Specify an array of string values to match this event if the actual value of StatusCode is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • status_message (Optional[Sequence[str]]) – (experimental) StatusMessage property. Specify an array of string values to match this event if the actual value of StatusMessage is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

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 AutoScalingGroup 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 the aws_events.Match for more advanced matching options. Default: - Filter with the AutoScalingGroup reference

  • destination (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • ec2_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • event_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • lifecycle_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • lifecycle_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • notification_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • origin (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

ec2_instance_terminate_successful_pattern(*, activity_id=None, auto_scaling_group_name=None, cause=None, description=None, destination=None, details=None, ec2_instance_id=None, end_time=None, event_metadata=None, origin=None, request_id=None, start_time=None, status_code=None, status_message=None)

(experimental) EventBridge event pattern for AutoScalingGroup EC2 Instance Terminate Successful.

Parameters:
  • activity_id (Optional[Sequence[str]]) – (experimental) ActivityId property. Specify an array of string values to match this event if the actual value of ActivityId is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • 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 the aws_events.Match for more advanced matching options. Default: - Filter with the AutoScalingGroup reference

  • cause (Optional[Sequence[str]]) – (experimental) Cause property. Specify an array of string values to match this event if the actual value of Cause is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • description (Optional[Sequence[str]]) – (experimental) Description property. Specify an array of string values to match this event if the actual value of Description is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • destination (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • details (Union[Details, Dict[str, Any], None]) – (experimental) Details property. Specify an array of string values to match this event if the actual value of Details is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • ec2_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • end_time (Optional[Sequence[str]]) – (experimental) EndTime property. Specify an array of string values to match this event if the actual value of EndTime is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • event_metadata (Union[AWSEventMetadataProps, Dict[str, Any], None]) – (experimental) EventBridge event metadata. Default: - -

  • origin (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • request_id (Optional[Sequence[str]]) – (experimental) RequestId property. Specify an array of string values to match this event if the actual value of RequestId is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • start_time (Optional[Sequence[str]]) – (experimental) StartTime property. Specify an array of string values to match this event if the actual value of StartTime is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • status_code (Optional[Sequence[str]]) – (experimental) StatusCode property. Specify an array of string values to match this event if the actual value of StatusCode is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • status_message (Optional[Sequence[str]]) – (experimental) StatusMessage property. Specify an array of string values to match this event if the actual value of StatusMessage is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

ec2_instance_terminate_unsuccessful_pattern(*, activity_id=None, auto_scaling_group_name=None, cause=None, description=None, destination=None, details=None, ec2_instance_id=None, end_time=None, event_metadata=None, origin=None, request_id=None, start_time=None, status_code=None, status_message=None)

(experimental) EventBridge event pattern for AutoScalingGroup EC2 Instance Terminate Unsuccessful.

Parameters:
  • activity_id (Optional[Sequence[str]]) – (experimental) ActivityId property. Specify an array of string values to match this event if the actual value of ActivityId is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • 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 the aws_events.Match for more advanced matching options. Default: - Filter with the AutoScalingGroup reference

  • cause (Optional[Sequence[str]]) – (experimental) Cause property. Specify an array of string values to match this event if the actual value of Cause is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • description (Optional[Sequence[str]]) – (experimental) Description property. Specify an array of string values to match this event if the actual value of Description is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • destination (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • details (Union[Details, Dict[str, Any], None]) – (experimental) Details property. Specify an array of string values to match this event if the actual value of Details is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • ec2_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • end_time (Optional[Sequence[str]]) – (experimental) EndTime property. Specify an array of string values to match this event if the actual value of EndTime is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • event_metadata (Union[AWSEventMetadataProps, Dict[str, Any], None]) – (experimental) EventBridge event metadata. Default: - -

  • origin (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • request_id (Optional[Sequence[str]]) – (experimental) RequestId property. Specify an array of string values to match this event if the actual value of RequestId is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • start_time (Optional[Sequence[str]]) – (experimental) StartTime property. Specify an array of string values to match this event if the actual value of StartTime is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • status_code (Optional[Sequence[str]]) – (experimental) StatusCode property. Specify an array of string values to match this event if the actual value of StatusCode is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • status_message (Optional[Sequence[str]]) – (experimental) StatusMessage property. Specify an array of string values to match this event if the actual value of StatusMessage is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

Static Methods

classmethod from_auto_scaling_group(auto_scaling_group_ref)

(experimental) Create AutoScalingGroupEvents from a AutoScalingGroup reference.

Parameters:

auto_scaling_group_ref (IAutoScalingGroupRef)

Stability:

experimental

Return type:

AutoScalingGroupEvents