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_aws_opsworks

# instance_ref: interfaces_aws_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 the aws_events.Match for more advanced matching options. Default: - Filter with the Instance reference

  • message (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • stack_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • type (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • 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 the aws_events.Match for more advanced matching options. Default: - Filter with the Instance reference

  • status (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • type (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • event_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • initiated_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • 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 the aws_events.Match for more advanced matching options. Default: - Filter with the Instance reference

  • layer_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • stack_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • status (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

Static Methods

classmethod from_instance(instance_ref)

(experimental) Create InstanceEvents from a Instance reference.

Parameters:

instance_ref (IInstanceRef)

Stability:

experimental

Return type:

InstanceEvents

OpsWorksAlert

class InstanceEvents.OpsWorksAlert

Bases: object

(experimental) aws.opsworks@OpsWorksAlert event types 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

ops_works_alert = opsworks_events.InstanceEvents.OpsWorksAlert()
Stability:

experimental

OpsWorksAlertProps

class InstanceEvents.OpsWorksAlert.OpsWorksAlertProps(*, event_metadata=None, instance_id=None, message=None, stack_id=None, type=None)

Bases: object

(experimental) Props type for Instance aws.opsworks@OpsWorksAlert event.

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 the aws_events.Match for more advanced matching options. Default: - Filter with the Instance reference

  • message (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • stack_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • type (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

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

ops_works_alert_props = opsworks_events.InstanceEvents.OpsWorksAlert.OpsWorksAlertProps(
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    instance_id=["instanceId"],
    message=["message"],
    stack_id=["stackId"],
    type=["type"]
)

Attributes

event_metadata

(experimental) EventBridge event metadata.

Default:

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.Match for more advanced matching options.

Default:
  • Filter with the Instance reference

Stability:

experimental

message

(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 the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

stack_id

(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 the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

type

(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 the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

OpsWorksCommandStateChange

class InstanceEvents.OpsWorksCommandStateChange

Bases: object

(experimental) aws.opsworks@OpsWorksCommandStateChange event types 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

ops_works_command_state_change = opsworks_events.InstanceEvents.OpsWorksCommandStateChange()
Stability:

experimental

OpsWorksCommandStateChangeProps

class InstanceEvents.OpsWorksCommandStateChange.OpsWorksCommandStateChangeProps(*, command_id=None, event_metadata=None, instance_id=None, status=None, type=None)

Bases: object

(experimental) Props type for Instance aws.opsworks@OpsWorksCommandStateChange event.

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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • 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 the aws_events.Match for more advanced matching options. Default: - Filter with the Instance reference

  • status (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • type (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

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

ops_works_command_state_change_props = opsworks_events.InstanceEvents.OpsWorksCommandStateChange.OpsWorksCommandStateChangeProps(
    command_id=["commandId"],
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    instance_id=["instanceId"],
    status=["status"],
    type=["type"]
)

Attributes

command_id

(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 the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

event_metadata

(experimental) EventBridge event metadata.

Default:

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.Match for more advanced matching options.

Default:
  • Filter with the Instance reference

Stability:

experimental

status

(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 the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

type

(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 the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

OpsWorksInstanceStateChange

class InstanceEvents.OpsWorksInstanceStateChange

Bases: object

(experimental) aws.opsworks@OpsWorksInstanceStateChange event types 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

ops_works_instance_state_change = opsworks_events.InstanceEvents.OpsWorksInstanceStateChange()
Stability:

experimental

OpsWorksInstanceStateChangeProps

class InstanceEvents.OpsWorksInstanceStateChange.OpsWorksInstanceStateChangeProps(*, ec2_instance_id=None, event_metadata=None, hostname=None, initiated_by=None, instance_id=None, layer_ids=None, stack_id=None, status=None)

Bases: object

(experimental) Props type for Instance aws.opsworks@OpsWorksInstanceStateChange event.

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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • event_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • initiated_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • 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 the aws_events.Match for more advanced matching options. Default: - Filter with the Instance reference

  • layer_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • stack_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • status (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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

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

ops_works_instance_state_change_props = opsworks_events.InstanceEvents.OpsWorksInstanceStateChange.OpsWorksInstanceStateChangeProps(
    ec2_instance_id=["ec2InstanceId"],
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    hostname=["hostname"],
    initiated_by=["initiatedBy"],
    instance_id=["instanceId"],
    layer_ids=["layerIds"],
    stack_id=["stackId"],
    status=["status"]
)

Attributes

ec2_instance_id

(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 the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

event_metadata

(experimental) EventBridge event metadata.

Default:

Stability:

experimental

hostname

(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 the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

initiated_by

(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 the aws_events.Match for 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.Match for more advanced matching options.

Default:
  • Filter with the Instance reference

Stability:

experimental

layer_ids

(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 the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

stack_id

(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 the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

status

(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 the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental