Show / Hide Table of Contents

Interface IFlowLogProps

Properties of a VPC Flow Log.

Inherited Members
IFlowLogOptions.Destination
IFlowLogOptions.TrafficType
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface IFlowLogProps : IFlowLogOptions
Syntax (vb)
Public Interface IFlowLogProps
    Inherits IFlowLogOptions
Remarks

ExampleMetadata: infused

Examples
Vpc vpc;


LogGroup logGroup = new LogGroup(this, "MyCustomLogGroup");

Role role = new Role(this, "MyCustomRole", new RoleProps {
    AssumedBy = new ServicePrincipal("vpc-flow-logs.amazonaws.com")
});

new FlowLog(this, "FlowLog", new FlowLogProps {
    ResourceType = FlowLogResourceType.FromVpc(vpc),
    Destination = FlowLogDestination.ToCloudWatchLogs(logGroup, role)
});

Synopsis

Properties

FlowLogName

The name of the FlowLog.

ResourceType

The type of resource for which to create the flow log.

Properties

FlowLogName

The name of the FlowLog.

virtual string FlowLogName { get; }
Property Value

System.String

Remarks

It is not recommended to use an explicit name.

Default: If you don't specify a flowLogName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.

ResourceType

The type of resource for which to create the flow log.

FlowLogResourceType ResourceType { get; }
Property Value

FlowLogResourceType

Back to top Generated by DocFX