MGNSourceServerLifecycleStateChange

class aws_cdk.mixins_preview.aws_mgn.events.MGNSourceServerLifecycleStateChange

Bases: object

(experimental) EventBridge event pattern for aws.mgn@MGNSourceServerLifecycleStateChange.

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_mgn import events as mgn_events

m_gn_source_server_lifecycle_state_change = mgn_events.MGNSourceServerLifecycleStateChange()
Stability:

experimental

Static Methods

classmethod event_pattern(*, event_metadata=None, state=None)

(experimental) EventBridge event pattern for MGN Source Server Lifecycle State Change.

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

  • 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

Stability:

experimental

Return type:

EventPattern

MGNSourceServerLifecycleStateChangeProps

class MGNSourceServerLifecycleStateChange.MGNSourceServerLifecycleStateChangeProps(*, event_metadata=None, state=None)

Bases: object

(experimental) Props type for aws.mgn@MGNSourceServerLifecycleStateChange event.

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

  • 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

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_mgn import events as mgn_events

m_gn_source_server_lifecycle_state_change_props = mgn_events.MGNSourceServerLifecycleStateChange.MGNSourceServerLifecycleStateChangeProps(
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    state=["state"]
)

Attributes

event_metadata

(experimental) EventBridge event metadata.

Default:

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