class KeyEvents
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.KMS.Events.KeyEvents |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awskms/events#KeyEvents |
Java | software.amazon.awscdk.mixins.preview.services.kms.events.KeyEvents |
Python | aws_cdk.mixins_preview.aws_kms.events.KeyEvents |
TypeScript | @aws-cdk/mixins-preview ยป aws_kms ยป events ยป KeyEvents |
EventBridge event patterns for Key.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { events as kms_events } from '@aws-cdk/mixins-preview/aws-kms';
import { aws_kms as interfaces_kms } from 'aws-cdk-lib/interfaces';
declare const keyRef: interfaces_kms.IKeyRef;
const keyEvents = kms_events.KeyEvents.fromKey(keyRef);
Methods
| Name | Description |
|---|---|
| aws | EventBridge event pattern for Key AWS API Call via CloudTrail. |
| k | EventBridge event pattern for Key KMS CMK Deletion. |
| k | EventBridge event pattern for Key KMS CMK Rotation. |
| k | EventBridge event pattern for Key KMS Imported Key Material Expiration. |
| static from | Create KeyEvents from a Key reference. |
awsAPICallViaCloudTrailPattern(options?)
public awsAPICallViaCloudTrailPattern(options?: AWSAPICallViaCloudTrailProps): EventPattern
Parameters
- options
AWSAPICallVia Cloud Trail Props
Returns
EventBridge event pattern for Key AWS API Call via CloudTrail.
kMSCMKDeletionPattern(options?)
public kMSCMKDeletionPattern(options?: KMSCMKDeletionProps): EventPattern
Parameters
- options
KMSCMKDeletionProps
Returns
EventBridge event pattern for Key KMS CMK Deletion.
kMSCMKRotationPattern(options?)
public kMSCMKRotationPattern(options?: KMSCMKRotationProps): EventPattern
Parameters
- options
KMSCMKRotationProps
Returns
EventBridge event pattern for Key KMS CMK Rotation.
kMSImportedKeyMaterialExpirationPattern(options?)
public kMSImportedKeyMaterialExpirationPattern(options?: KMSImportedKeyMaterialExpirationProps): EventPattern
Parameters
Returns
EventBridge event pattern for Key KMS Imported Key Material Expiration.
static fromKey(keyRef)
public static fromKey(keyRef: IKeyRef): KeyEvents
Parameters
- keyRef
IKeyRef
Returns
Create KeyEvents from a Key reference.

.NET
Go
Java
Python
TypeScript