Class FlowLogTrafficType
The type of VPC traffic to log.
Inheritance
System.Object
FlowLogTrafficType
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class FlowLogTrafficType : Enum
Syntax (vb)
Public NotInheritable Class FlowLogTrafficType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var vpc = new Vpc(this, "Vpc");
vpc.AddFlowLog("FlowLogS3", new FlowLogOptions {
Destination = FlowLogDestination.ToS3()
});
// Only reject traffic and interval every minute.
vpc.AddFlowLog("FlowLogCloudWatch", new FlowLogOptions {
TrafficType = FlowLogTrafficType.REJECT,
MaxAggregationInterval = FlowLogMaxAggregationInterval.ONE_MINUTE
});
Synopsis
Fields
ACCEPT | Only log accepts. |
ALL | Log all requests. |
REJECT | Only log rejects. |
value__ |
Fields
ACCEPT
Only log accepts.
public const FlowLogTrafficType ACCEPT
Field Value
Type | Description |
---|---|
FlowLogTrafficType |
ALL
Log all requests.
public const FlowLogTrafficType ALL
Field Value
Type | Description |
---|---|
FlowLogTrafficType |
REJECT
Only log rejects.
public const FlowLogTrafficType REJECT
Field Value
Type | Description |
---|---|
FlowLogTrafficType |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |