Class ReadWriteType
Types of events that CloudTrail can log.
Inheritance
System.Object
ReadWriteType
Namespace: Amazon.CDK.AWS.CloudTrail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class ReadWriteType : Enum
Syntax (vb)
Public NotInheritable Class ReadWriteType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var trail = new Trail(this, "CloudTrail", new TrailProps {
// ...
ManagementEvents = ReadWriteType.READ_ONLY
});
Synopsis
Fields
ALL | All events. |
NONE | No events. |
READ_ONLY | Read-only events include API operations that read your resources, but don't make changes. |
value__ | |
WRITE_ONLY | Write-only events include API operations that modify (or might modify) your resources. |
Fields
ALL
NONE
READ_ONLY
Read-only events include API operations that read your resources, but don't make changes.
public const ReadWriteType READ_ONLY
Field Value
Type | Description |
---|---|
ReadWriteType |
Remarks
For example, read-only events include the Amazon EC2 DescribeSecurityGroups and DescribeSubnets API operations.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |
WRITE_ONLY
Write-only events include API operations that modify (or might modify) your resources.
public const ReadWriteType WRITE_ONLY
Field Value
Type | Description |
---|---|
ReadWriteType |
Remarks
For example, the Amazon EC2 RunInstances and TerminateInstances API operations modify your instances.