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 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:
- 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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldauto_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 referencecause (
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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fielddescription (
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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fielddestination (
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 fielddetails (
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 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 fieldend_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 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: - -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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldrequest_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstart_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstatus_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstatus_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this field
- Stability:
experimental
- Return type:
- 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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldauto_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 referencecause (
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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fielddescription (
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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fielddestination (
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 fielddetails (
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 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 fieldend_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 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: - -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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldrequest_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstart_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstatus_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstatus_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this field
- Stability:
experimental
- Return type:
- 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 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:
- 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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldauto_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 referencecause (
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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fielddescription (
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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fielddestination (
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 fielddetails (
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 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 fieldend_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 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: - -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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldrequest_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstart_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstatus_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstatus_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this field
- Stability:
experimental
- Return type:
- 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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldauto_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 referencecause (
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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fielddescription (
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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fielddestination (
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 fielddetails (
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 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 fieldend_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 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: - -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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldrequest_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstart_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstatus_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldstatus_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this field
- Stability:
experimental
- Return type:
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: