EC2InstanceTerminateSuccessful

class aws_cdk.mixins_preview.aws_autoscaling.events.EC2InstanceTerminateSuccessful

Bases: object

(experimental) EventBridge event pattern for aws.autoscaling@EC2InstanceTerminateSuccessful.

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_successful = autoscaling_events.EC2InstanceTerminateSuccessful()
Stability:

experimental

Static Methods

classmethod 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 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

Details

class EC2InstanceTerminateSuccessful.Details(*, availability_zone=None, subnet_id=None)

Bases: object

(experimental) Type definition for Details.

Parameters:
  • availability_zone (Optional[Sequence[str]]) – (experimental) Availability Zone property. Specify an array of string values to match this event if the actual value of Availability Zone 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

  • subnet_id (Optional[Sequence[str]]) – (experimental) Subnet ID property. Specify an array of string values to match this event if the actual value of Subnet ID 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

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

details = autoscaling_events.EC2InstanceTerminateSuccessful.Details(
    availability_zone=["availabilityZone"],
    subnet_id=["subnetId"]
)

Attributes

availability_zone

(experimental) Availability Zone property.

Specify an array of string values to match this event if the actual value of Availability Zone 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

subnet_id

(experimental) Subnet ID property.

Specify an array of string values to match this event if the actual value of Subnet ID 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

EC2InstanceTerminateSuccessfulProps

class EC2InstanceTerminateSuccessful.EC2InstanceTerminateSuccessfulProps(*, 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)

Bases: object

(experimental) Props type for aws.autoscaling@EC2InstanceTerminateSuccessful event.

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

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_successful_props = autoscaling_events.EC2InstanceTerminateSuccessful.EC2InstanceTerminateSuccessfulProps(
    activity_id=["activityId"],
    auto_scaling_group_name=["autoScalingGroupName"],
    cause=["cause"],
    description=["description"],
    destination=["destination"],
    details=autoscaling_events.EC2InstanceTerminateSuccessful.Details(
        availability_zone=["availabilityZone"],
        subnet_id=["subnetId"]
    ),
    ec2_instance_id=["ec2InstanceId"],
    end_time=["endTime"],
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    origin=["origin"],
    request_id=["requestId"],
    start_time=["startTime"],
    status_code=["statusCode"],
    status_message=["statusMessage"]
)

Attributes

activity_id

(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

Stability:

experimental

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.Match for more advanced matching options.

Default:
  • Filter with the AutoScalingGroup reference

Stability:

experimental

cause

(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

Stability:

experimental

description

(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

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.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

details

(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

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.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

end_time

(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

Stability:

experimental

event_metadata

(experimental) EventBridge event metadata.

Default:

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.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

request_id

(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

Stability:

experimental

start_time

(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

Stability:

experimental

status_code

(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

Stability:

experimental

status_message

(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