EC2SpotInstanceInterruptionWarning
- class aws_cdk.mixins_preview.aws_ec2.events.EC2SpotInstanceInterruptionWarning
Bases:
object(experimental) EventBridge event pattern for aws.ec2@EC2SpotInstanceInterruptionWarning.
- 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_ec2 import events as ec2_events e_c2_spot_instance_interruption_warning = ec2_events.EC2SpotInstanceInterruptionWarning()
- Stability:
experimental
Static Methods
- classmethod ec2_spot_instance_interruption_warning_pattern(*, event_metadata=None, instance_action=None, instance_id=None)
(experimental) EventBridge event pattern for EC2 Spot Instance Interruption Warning.
- Parameters:
event_metadata (
Union[AWSEventMetadataProps,Dict[str,Any],None]) – (experimental) EventBridge event metadata. Default: - -instance_action (
Optional[Sequence[str]]) – (experimental) 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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldinstance_id (
Optional[Sequence[str]]) – (experimental) 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 theaws_events.Matchfor more advanced matching options. Default: - Filter with the Instance reference
- Stability:
experimental
- Return type:
EC2SpotInstanceInterruptionWarningProps
- class EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps(*, event_metadata=None, instance_action=None, instance_id=None)
Bases:
object(experimental) Props type for aws.ec2@EC2SpotInstanceInterruptionWarning event.
- Parameters:
event_metadata (
Union[AWSEventMetadataProps,Dict[str,Any],None]) – (experimental) EventBridge event metadata. Default: - -instance_action (
Optional[Sequence[str]]) – (experimental) 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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldinstance_id (
Optional[Sequence[str]]) – (experimental) 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 theaws_events.Matchfor more advanced matching options. Default: - Filter with the Instance reference
- 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_ec2 import events as ec2_events e_c2_spot_instance_interruption_warning_props = ec2_events.EC2SpotInstanceInterruptionWarning.EC2SpotInstanceInterruptionWarningProps( event_metadata=AWSEventMetadataProps( region=["region"], resources=["resources"], version=["version"] ), instance_action=["instanceAction"], instance_id=["instanceId"] )
Attributes
- event_metadata
(experimental) EventBridge event metadata.
- Default:
- Stability:
experimental
- instance_action
(experimental) 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.Matchfor more advanced matching options.- Default:
Do not filter on this field
- Stability:
experimental
- instance_id
(experimental) 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.Matchfor more advanced matching options.- Default:
Filter with the Instance reference
- Stability:
experimental