interface EC2SpotInstanceInterruptionWarningProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Events.InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/events#InstanceEvents_EC2SpotInstanceInterruptionWarning_EC2SpotInstanceInterruptionWarningProps |
Java | software.amazon.awscdk.mixins.preview.services.ec2.events.InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps |
Python | aws_cdk.mixins_preview.aws_ec2.events.InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps |
TypeScript | @aws-cdk/mixins-preview ยป aws_ec2 ยป events ยป InstanceEvents ยป EC2SpotInstanceInterruptionWarning ยป EC2SpotInstanceInterruptionWarningProps |
Props type for Instance aws.ec2@EC2SpotInstanceInterruptionWarning event.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { events as ec2_events } from '@aws-cdk/mixins-preview/aws-ec2';
const eC2SpotInstanceInterruptionWarningProps: ec2_events.InstanceEvents.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps = {
eventMetadata: {
region: ['region'],
resources: ['resources'],
version: ['version'],
},
instanceAction: ['instanceAction'],
instanceId: ['instanceId'],
};
Properties
| Name | Type | Description |
|---|---|---|
| event | AWSEvent | EventBridge event metadata. |
| instance | string[] | instance-action property. |
| instance | string[] | instance-id property. |
eventMetadata?
Type:
AWSEvent
(optional, default: -)
EventBridge event metadata.
instanceAction?
Type:
string[]
(optional, default: Do not filter on this field)
instance-action property.
Specify an array of string values to match this event if the actual value of instance-action is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
instanceId?
Type:
string[]
(optional, default: Filter with the Instance reference)
instance-id property.
Specify an array of string values to match this event if the actual value of instance-id 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