class InstanceEvents
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.OpsWorks.Events.InstanceEvents |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsopsworks/events#InstanceEvents |
Java | software.amazon.awscdk.mixins.preview.services.opsworks.events.InstanceEvents |
Python | aws_cdk.mixins_preview.aws_opsworks.events.InstanceEvents |
TypeScript | @aws-cdk/mixins-preview ยป aws_opsworks ยป events ยป InstanceEvents |
EventBridge event patterns for Instance.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { events as opsworks_events } from '@aws-cdk/mixins-preview/aws-opsworks';
import { aws_opsworks as interfaces_opsworks } from 'aws-cdk-lib/interfaces';
declare const instanceRef: interfaces_opsworks.IInstanceRef;
const instanceEvents = opsworks_events.InstanceEvents.fromInstance(instanceRef);
Methods
| Name | Description |
|---|---|
| ops | EventBridge event pattern for Instance OpsWorks Alert. |
| ops | EventBridge event pattern for Instance OpsWorks Command State Change. |
| ops | EventBridge event pattern for Instance OpsWorks Instance State Change. |
| static from | Create InstanceEvents from a Instance reference. |
opsWorksAlertPattern(options?)
public opsWorksAlertPattern(options?: OpsWorksAlertProps): EventPattern
Parameters
- options
OpsWorks Alert Props
Returns
EventBridge event pattern for Instance OpsWorks Alert.
opsWorksCommandStateChangePattern(options?)
public opsWorksCommandStateChangePattern(options?: OpsWorksCommandStateChangeProps): EventPattern
Parameters
- options
OpsWorks Command State Change Props
Returns
EventBridge event pattern for Instance OpsWorks Command State Change.
opsWorksInstanceStateChangePattern(options?)
public opsWorksInstanceStateChangePattern(options?: OpsWorksInstanceStateChangeProps): EventPattern
Parameters
- options
OpsWorks Instance State Change Props
Returns
EventBridge event pattern for Instance OpsWorks Instance State Change.
static fromInstance(instanceRef)
public static fromInstance(instanceRef: IInstanceRef): InstanceEvents
Parameters
- instanceRef
IInstanceRef
Returns
Create InstanceEvents from a Instance reference.

.NET
Go
Java
Python
TypeScript