enum ReadWriteType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudTrail.ReadWriteType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudtrail#ReadWriteType |
Java | software.amazon.awscdk.services.cloudtrail.ReadWriteType |
Python | aws_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
Name | Description |
---|---|
READ_ONLY | Read-only events include API operations that read your resources, but don't make changes. |
WRITE_ONLY | Write-only events include API operations that modify (or might modify) your resources. |
ALL | All events. |
NONE | No 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.