class ClusterEvents
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ECS.Events.ClusterEvents |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsecs/events#ClusterEvents |
Java | software.amazon.awscdk.mixins.preview.services.ecs.events.ClusterEvents |
Python | aws_cdk.mixins_preview.aws_ecs.events.ClusterEvents |
TypeScript | @aws-cdk/mixins-preview ยป aws_ecs ยป events ยป ClusterEvents |
EventBridge event patterns for Cluster.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { events as ecs_events } from '@aws-cdk/mixins-preview/aws-ecs';
import { aws_ecs as interfaces_ecs } from 'aws-cdk-lib/interfaces';
declare const clusterRef: interfaces_ecs.IClusterRef;
const clusterEvents = ecs_events.ClusterEvents.fromCluster(clusterRef);
Methods
| Name | Description |
|---|---|
| aws | EventBridge event pattern for Cluster AWS API Call via CloudTrail. |
| e | EventBridge event pattern for Cluster ECS Container Instance State Change. |
| e | EventBridge event pattern for Cluster ECS Service Action. |
| e | EventBridge event pattern for Cluster ECS Task State Change. |
| static from | Create ClusterEvents from a Cluster reference. |
awsAPICallViaCloudTrailPattern(options?)
public awsAPICallViaCloudTrailPattern(options?: AWSAPICallViaCloudTrailProps): EventPattern
Parameters
- options
AWSAPICallVia Cloud Trail Props
Returns
EventBridge event pattern for Cluster AWS API Call via CloudTrail.
eCSContainerInstanceStateChangePattern(options?)
public eCSContainerInstanceStateChangePattern(options?: ECSContainerInstanceStateChangeProps): EventPattern
Parameters
Returns
EventBridge event pattern for Cluster ECS Container Instance State Change.
eCSServiceActionPattern(options?)
public eCSServiceActionPattern(options?: ECSServiceActionProps): EventPattern
Parameters
- options
ECSServiceAction Props
Returns
EventBridge event pattern for Cluster ECS Service Action.
eCSTaskStateChangePattern(options?)
public eCSTaskStateChangePattern(options?: ECSTaskStateChangeProps): EventPattern
Parameters
- options
ECSTaskState Change Props
Returns
EventBridge event pattern for Cluster ECS Task State Change.
static fromCluster(clusterRef)
public static fromCluster(clusterRef: IClusterRef): ClusterEvents
Parameters
- clusterRef
IClusterRef
Returns
Create ClusterEvents from a Cluster reference.

.NET
Go
Java
Python
TypeScript