Show / Hide Table of Contents

Class FlowLog

A VPC flow log.

Inheritance
object
Resource
FlowLog
Implements
IFlowLog
IResource
IConstruct
IDependable
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FlowLog : Resource, IFlowLog, IResource, IConstruct, IDependable
Syntax (vb)
Public Class FlowLog Inherits Resource Implements IFlowLog, IResource, IConstruct, IDependable
Remarks

Resource: AWS::EC2::FlowLog

ExampleMetadata: infused

Examples
CfnTransitGateway tgw;


             new FlowLog(this, "TransitGatewayFlowLog", new FlowLogProps {
                 ResourceType = FlowLogResourceType.FromTransitGatewayId(tgw.Ref)
             });

Synopsis

Constructors

FlowLog(Construct, string, IFlowLogProps)

A VPC flow log.

Properties

Bucket

The S3 bucket to publish flow logs to.

DeliveryStreamArn

The ARN of the Amazon Data Firehose delivery stream to publish flow logs to.

FlowLogId

The Id of the VPC Flow Log.

IamRole

The iam role used to publish logs to CloudWatch.

KeyPrefix

S3 bucket key prefix to publish the flow logs under.

LogGroup

The CloudWatch Logs LogGroup to publish flow logs to.

PROPERTY_INJECTION_ID

Uniquely identifies this class.

Methods

FromFlowLogId(Construct, string, string)

Import a Flow Log by it's Id.

Constructors

FlowLog(Construct, string, IFlowLogProps)

A VPC flow log.

public FlowLog(Construct scope, string id, IFlowLogProps props)
Parameters
scope Construct
id string
props IFlowLogProps
Remarks

Resource: AWS::EC2::FlowLog

ExampleMetadata: infused

Examples
CfnTransitGateway tgw;


             new FlowLog(this, "TransitGatewayFlowLog", new FlowLogProps {
                 ResourceType = FlowLogResourceType.FromTransitGatewayId(tgw.Ref)
             });

Properties

Bucket

The S3 bucket to publish flow logs to.

public virtual IBucket? Bucket { get; }
Property Value

IBucket

Remarks

Resource: AWS::EC2::FlowLog

ExampleMetadata: infused

DeliveryStreamArn

The ARN of the Amazon Data Firehose delivery stream to publish flow logs to.

public virtual string? DeliveryStreamArn { get; }
Property Value

string

Remarks

Resource: AWS::EC2::FlowLog

ExampleMetadata: infused

FlowLogId

The Id of the VPC Flow Log.

public virtual string FlowLogId { get; }
Property Value

string

Remarks

Attribute: true

IamRole

The iam role used to publish logs to CloudWatch.

public virtual IRole? IamRole { get; }
Property Value

IRole

Remarks

Resource: AWS::EC2::FlowLog

ExampleMetadata: infused

KeyPrefix

S3 bucket key prefix to publish the flow logs under.

public virtual string? KeyPrefix { get; }
Property Value

string

Remarks

Resource: AWS::EC2::FlowLog

ExampleMetadata: infused

LogGroup

The CloudWatch Logs LogGroup to publish flow logs to.

public virtual ILogGroup? LogGroup { get; }
Property Value

ILogGroup

Remarks

Resource: AWS::EC2::FlowLog

ExampleMetadata: infused

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

Resource: AWS::EC2::FlowLog

ExampleMetadata: infused

Methods

FromFlowLogId(Construct, string, string)

Import a Flow Log by it's Id.

public static IFlowLog FromFlowLogId(Construct scope, string id, string flowLogId)
Parameters
scope Construct
id string
flowLogId string
Returns

IFlowLog

Remarks

Resource: AWS::EC2::FlowLog

ExampleMetadata: infused

Implements

IFlowLog
IResource
Constructs.IConstruct
Constructs.IDependable
Back to top Generated by DocFX