OpsWorksCommandStateChange

class aws_cdk.mixins_preview.aws_opsworks.events.OpsWorksCommandStateChange

Bases: object

(experimental) EventBridge event pattern for aws.opsworks@OpsWorksCommandStateChange.

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.OpsWorksCommandStateChange()
Stability:

experimental

Static Methods

classmethod ops_works_command_state_change_pattern(*, command_id=None, event_metadata=None, instance_id=None, status=None, type=None)

(experimental) EventBridge event pattern for 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

OpsWorksCommandStateChangeProps

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

Bases: object

(experimental) Props type for 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:

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_opsworks import events as opsworks_events

ops_works_command_state_change_props = opsworks_events.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