interface EC2InstanceTerminateLifecycleActionProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AutoScaling.Events.AutoScalingGroupEvents.EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsautoscaling/events#AutoScalingGroupEvents_EC2InstanceTerminateLifecycleAction_EC2InstanceTerminateLifecycleActionProps |
Java | software.amazon.awscdk.mixins.preview.services.autoscaling.events.AutoScalingGroupEvents.EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps |
Python | aws_cdk.mixins_preview.aws_autoscaling.events.AutoScalingGroupEvents.EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps |
TypeScript | @aws-cdk/mixins-preview ยป aws_autoscaling ยป events ยป AutoScalingGroupEvents ยป EC2InstanceTerminateLifecycleAction ยป EC2InstanceTerminateLifecycleActionProps |
Props type for AutoScalingGroup aws.autoscaling@EC2InstanceTerminateLifecycleAction event.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { events as autoscaling_events } from '@aws-cdk/mixins-preview/aws-autoscaling';
const eC2InstanceTerminateLifecycleActionProps: autoscaling_events.AutoScalingGroupEvents.EC2InstanceTerminateLifecycleAction.EC2InstanceTerminateLifecycleActionProps = {
autoScalingGroupName: ['autoScalingGroupName'],
destination: ['destination'],
ec2InstanceId: ['ec2InstanceId'],
eventMetadata: {
region: ['region'],
resources: ['resources'],
version: ['version'],
},
lifecycleActionToken: ['lifecycleActionToken'],
lifecycleHookName: ['lifecycleHookName'],
lifecycleTransition: ['lifecycleTransition'],
notificationMetadata: ['notificationMetadata'],
origin: ['origin'],
};
Properties
| Name | Type | Description |
|---|---|---|
| auto | string[] | AutoScalingGroupName property. |
| destination? | string[] | Destination property. |
| ec2 | string[] | EC2InstanceId property. |
| event | AWSEvent | EventBridge event metadata. |
| lifecycle | string[] | LifecycleActionToken property. |
| lifecycle | string[] | LifecycleHookName property. |
| lifecycle | string[] | LifecycleTransition property. |
| notification | string[] | NotificationMetadata property. |
| origin? | string[] | Origin property. |
autoScalingGroupName?
Type:
string[]
(optional, default: Filter with the AutoScalingGroup reference)
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.
destination?
Type:
string[]
(optional, default: Do not filter on this field)
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.
ec2InstanceId?
Type:
string[]
(optional, default: Do not filter on this field)
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.
eventMetadata?
Type:
AWSEvent
(optional, default: -)
EventBridge event metadata.
lifecycleActionToken?
Type:
string[]
(optional, default: Do not filter on this field)
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.
lifecycleHookName?
Type:
string[]
(optional, default: Do not filter on this field)
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.
lifecycleTransition?
Type:
string[]
(optional, default: Do not filter on this field)
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.
notificationMetadata?
Type:
string[]
(optional, default: Do not filter on this field)
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.
origin?
Type:
string[]
(optional, default: Do not filter on this field)
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.

.NET
Go
Java
Python
TypeScript