Show / Hide Table of Contents

Enum FlowLogTrafficType

The type of VPC traffic to log.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum FlowLogTrafficType
Syntax (vb)
Public Enum FlowLogTrafficType
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.

Fields

Name Description
ACCEPT

Only log accepts.

ALL

Log all requests.

REJECT

Only log rejects.

Back to top Generated by DocFX