InstanceEvents
- class aws_cdk.mixins_preview.aws_opsworks.events.InstanceEvents(*args: Any, **kwargs)
Bases:
object(experimental) EventBridge event patterns for Instance.
- 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_opsworks import events as opsworks_events from aws_cdk.interfaces import aws_opsworks as interfaces_opsworks # instance_ref: interfaces_opsworks.IInstanceRef instance_events = opsworks_events.InstanceEvents.from_instance(instance_ref)
Methods
- ops_works_alert_pattern(*, event_metadata=None, instance_id=None, message=None, stack_id=None, type=None)
(experimental) EventBridge event pattern for Instance OpsWorks Alert.
- Parameters:
event_metadata (
Union[AWSEventMetadataProps,Dict[str,Any],None]) – (experimental) EventBridge event metadata. Default: - -instance_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 referencemessage (
Optional[Sequence[str]]) – (experimental) message property. Specify an array of string values to match this event if the actual value of message 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 fieldstack_id (
Optional[Sequence[str]]) – (experimental) stack-id property. Specify an array of string values to match this event if the actual value of stack-id 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 fieldtype (
Optional[Sequence[str]]) – (experimental) type property. Specify an array of string values to match this event if the actual value of type 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 field
- Stability:
experimental
- Return type:
- ops_works_command_state_change_pattern(*, command_id=None, event_metadata=None, instance_id=None, status=None, type=None)
(experimental) EventBridge event pattern for Instance OpsWorks Command State Change.
- Parameters:
command_id (
Optional[Sequence[str]]) – (experimental) command-id property. Specify an array of string values to match this event if the actual value of command-id 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 fieldevent_metadata (
Union[AWSEventMetadataProps,Dict[str,Any],None]) – (experimental) EventBridge event metadata. Default: - -instance_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 referencestatus (
Optional[Sequence[str]]) – (experimental) status property. Specify an array of string values to match this event if the actual value of status 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 fieldtype (
Optional[Sequence[str]]) – (experimental) type property. Specify an array of string values to match this event if the actual value of type 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 field
- Stability:
experimental
- Return type:
- ops_works_instance_state_change_pattern(*, ec2_instance_id=None, event_metadata=None, hostname=None, initiated_by=None, instance_id=None, layer_ids=None, stack_id=None, status=None)
(experimental) EventBridge event pattern for Instance OpsWorks Instance State Change.
- Parameters:
ec2_instance_id (
Optional[Sequence[str]]) – (experimental) ec2-instance-id property. Specify an array of string values to match this event if the actual value of ec2-instance-id 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 fieldevent_metadata (
Union[AWSEventMetadataProps,Dict[str,Any],None]) – (experimental) EventBridge event metadata. Default: - -hostname (
Optional[Sequence[str]]) – (experimental) hostname property. Specify an array of string values to match this event if the actual value of hostname 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 fieldinitiated_by (
Optional[Sequence[str]]) – (experimental) initiated_by property. Specify an array of string values to match this event if the actual value of initiated_by 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 referencelayer_ids (
Optional[Sequence[str]]) – (experimental) layer-ids property. Specify an array of string values to match this event if the actual value of layer-ids 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 fieldstack_id (
Optional[Sequence[str]]) – (experimental) stack-id property. Specify an array of string values to match this event if the actual value of stack-id 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 fieldstatus (
Optional[Sequence[str]]) – (experimental) status property. Specify an array of string values to match this event if the actual value of status 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 field
- Stability:
experimental
- Return type:
Static Methods
- classmethod from_instance(instance_ref)
(experimental) Create InstanceEvents from a Instance reference.
- Parameters:
instance_ref (
IInstanceRef)- Stability:
experimental
- Return type: