EC2FastLaunchStateChangeNotification

class aws_cdk.mixins_preview.aws_ec2.events.EC2FastLaunchStateChangeNotification

Bases: object

(experimental) EventBridge event pattern for aws.ec2@EC2FastLaunchStateChangeNotification.

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_fast_launch_state_change_notification = ec2_events.EC2FastLaunchStateChangeNotification()
Stability:

experimental

Static Methods

classmethod ec2_fast_launch_state_change_notification_pattern(*, event_metadata=None, image_id=None, resource_type=None, state=None, state_transition_reason=None)

(experimental) EventBridge event pattern for EC2 Fast Launch State-change Notification.

Parameters:
  • event_metadata (Union[AWSEventMetadataProps, Dict[str, Any], None]) – (experimental) EventBridge event metadata. Default: - -

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

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

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

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

EC2FastLaunchStateChangeNotificationProps

class EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps(*, event_metadata=None, image_id=None, resource_type=None, state=None, state_transition_reason=None)

Bases: object

(experimental) Props type for aws.ec2@EC2FastLaunchStateChangeNotification event.

Parameters:
  • event_metadata (Union[AWSEventMetadataProps, Dict[str, Any], None]) – (experimental) EventBridge event metadata. Default: - -

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

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

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

  • state_transition_reason (Optional[Sequence[str]]) – (experimental) stateTransitionReason property. Specify an array of string values to match this event if the actual value of stateTransitionReason 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_ec2 import events as ec2_events

e_c2_fast_launch_state_change_notification_props = ec2_events.EC2FastLaunchStateChangeNotification.EC2FastLaunchStateChangeNotificationProps(
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    image_id=["imageId"],
    resource_type=["resourceType"],
    state=["state"],
    state_transition_reason=["stateTransitionReason"]
)

Attributes

event_metadata

(experimental) EventBridge event metadata.

Default:

Stability:

experimental

image_id

(experimental) imageId property.

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

resource_type

(experimental) resourceType property.

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

state

(experimental) state property.

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

state_transition_reason

(experimental) stateTransitionReason property.

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