aws-cdk-lib.aws_cloudtrail.ReadWriteType

enum ReadWriteType

LanguageType name
.NETAmazon.CDK.AWS.CloudTrail.ReadWriteType
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudtrail#ReadWriteType
Javasoftware.amazon.awscdk.services.cloudtrail.ReadWriteType
Pythonaws_cdk.aws_cloudtrail.ReadWriteType
TypeScript (source)aws-cdk-lib » aws_cloudtrail » ReadWriteType

Types of events that CloudTrail can log.

Example

const trail = new cloudtrail.Trail(this, 'CloudTrail', {
  // ...
  managementEvents: cloudtrail.ReadWriteType.READ_ONLY,
});

Members

NameDescription
READ_ONLYRead-only events include API operations that read your resources, but don't make changes.
WRITE_ONLYWrite-only events include API operations that modify (or might modify) your resources.
ALLAll events.
NONENo events.

READ_ONLY

Read-only events include API operations that read your resources, but don't make changes.

For example, read-only events include the Amazon EC2 DescribeSecurityGroups and DescribeSubnets API operations.


WRITE_ONLY

Write-only events include API operations that modify (or might modify) your resources.

For example, the Amazon EC2 RunInstances and TerminateInstances API operations modify your instances.


ALL

All events.


NONE

No events.