class RepositoryEvents
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ECR.Events.RepositoryEvents |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsecr/events#RepositoryEvents |
Java | software.amazon.awscdk.mixins.preview.services.ecr.events.RepositoryEvents |
Python | aws_cdk.mixins_preview.aws_ecr.events.RepositoryEvents |
TypeScript | @aws-cdk/mixins-preview ยป aws_ecr ยป events ยป RepositoryEvents |
EventBridge event patterns for Repository.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { events as ecr_events } from '@aws-cdk/mixins-preview/aws-ecr';
import { aws_ecr as interfaces_ecr } from 'aws-cdk-lib/interfaces';
declare const repositoryRef: interfaces_ecr.IRepositoryRef;
const repositoryEvents = ecr_events.RepositoryEvents.fromRepository(repositoryRef);
Methods
| Name | Description |
|---|---|
| aws | EventBridge event pattern for Repository AWS API Call via CloudTrail. |
| e | EventBridge event pattern for Repository ECR Image Action. |
| e | EventBridge event pattern for Repository ECR Image Scan. |
| e | EventBridge event pattern for Repository ECR Pull Through Cache Action. |
| e | EventBridge event pattern for Repository ECR Referrer Action. |
| e | EventBridge event pattern for Repository ECR Replication Action. |
| static from | Create RepositoryEvents from a Repository reference. |
awsAPICallViaCloudTrailPattern(options?)
public awsAPICallViaCloudTrailPattern(options?: AWSAPICallViaCloudTrailProps): EventPattern
Parameters
- options
AWSAPICallVia Cloud Trail Props
Returns
EventBridge event pattern for Repository AWS API Call via CloudTrail.
eCRImageActionPattern(options?)
public eCRImageActionPattern(options?: ECRImageActionProps): EventPattern
Parameters
- options
ECRImageAction Props
Returns
EventBridge event pattern for Repository ECR Image Action.
eCRImageScanPattern(options?)
public eCRImageScanPattern(options?: ECRImageScanProps): EventPattern
Parameters
- options
ECRImageScan Props
Returns
EventBridge event pattern for Repository ECR Image Scan.
eCRPullThroughCacheActionPattern(options?)
public eCRPullThroughCacheActionPattern(options?: ECRPullThroughCacheActionProps): EventPattern
Parameters
- options
ECRPullThrough Cache Action Props
Returns
EventBridge event pattern for Repository ECR Pull Through Cache Action.
eCRReferrerActionPattern(options?)
public eCRReferrerActionPattern(options?: ECRReferrerActionProps): EventPattern
Parameters
- options
ECRReferrerAction Props
Returns
EventBridge event pattern for Repository ECR Referrer Action.
eCRReplicationActionPattern(options?)
public eCRReplicationActionPattern(options?: ECRReplicationActionProps): EventPattern
Parameters
- options
ECRReplicationAction Props
Returns
EventBridge event pattern for Repository ECR Replication Action.
static fromRepository(repositoryRef)
public static fromRepository(repositoryRef: IRepositoryRef): RepositoryEvents
Parameters
- repositoryRef
IRepositoryRef
Returns
Create RepositoryEvents from a Repository reference.

.NET
Go
Java
Python
TypeScript