StackEvents

class aws_cdk.mixins_preview.aws_opsworks.events.StackEvents(*args: Any, **kwargs)

Bases: object

(experimental) EventBridge event patterns for Stack.

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

# stack_ref: interfaces_aws_opsworks.IStackRef

stack_events = opsworks_events.StackEvents.from_stack(stack_ref)

Methods

ops_works_deployment_state_change_pattern(*, command=None, deployment_id=None, duration=None, event_metadata=None, instance_ids=None, stack_id=None, status=None)

(experimental) EventBridge event pattern for Stack OpsWorks Deployment State Change.

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

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

  • duration (Optional[Sequence[str]]) – (experimental) duration property. Specify an array of string values to match this event if the actual value of duration 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_ids (Optional[Sequence[str]]) – (experimental) instance-ids property. Specify an array of string values to match this event if the actual value of instance-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: - Filter with the Stack 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

Stability:

experimental

Return type:

EventPattern

Static Methods

classmethod from_stack(stack_ref)

(experimental) Create StackEvents from a Stack reference.

Parameters:

stack_ref (IStackRef)

Stability:

experimental

Return type:

StackEvents

OpsWorksDeploymentStateChange

class StackEvents.OpsWorksDeploymentStateChange

Bases: object

(experimental) aws.opsworks@OpsWorksDeploymentStateChange event types for Stack.

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_deployment_state_change = opsworks_events.StackEvents.OpsWorksDeploymentStateChange()
Stability:

experimental

OpsWorksDeploymentStateChangeProps

class StackEvents.OpsWorksDeploymentStateChange.OpsWorksDeploymentStateChangeProps(*, command=None, deployment_id=None, duration=None, event_metadata=None, instance_ids=None, stack_id=None, status=None)

Bases: object

(experimental) Props type for Stack aws.opsworks@OpsWorksDeploymentStateChange event.

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

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

  • duration (Optional[Sequence[str]]) – (experimental) duration property. Specify an array of string values to match this event if the actual value of duration 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_ids (Optional[Sequence[str]]) – (experimental) instance-ids property. Specify an array of string values to match this event if the actual value of instance-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: - Filter with the Stack 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

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_deployment_state_change_props = opsworks_events.StackEvents.OpsWorksDeploymentStateChange.OpsWorksDeploymentStateChangeProps(
    command=["command"],
    deployment_id=["deploymentId"],
    duration=["duration"],
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    instance_ids=["instanceIds"],
    stack_id=["stackId"],
    status=["status"]
)

Attributes

command

(experimental) command property.

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

deployment_id

(experimental) deployment-id property.

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

duration

(experimental) duration property.

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

(experimental) instance-ids property.

Specify an array of string values to match this event if the actual value of instance-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:
  • Filter with the Stack 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