Class FlowLog
A VPC flow log.
Inherited Members
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
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
Remarks
Resource: AWS::EC2::FlowLog
ExampleMetadata: infused
FlowLogId
The Id of the VPC Flow Log.
public virtual string FlowLogId { get; }
Property Value
Remarks
Attribute: true
IamRole
The iam role used to publish logs to CloudWatch.
public virtual IRole? IamRole { get; }
Property Value
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
Remarks
Resource: AWS::EC2::FlowLog
ExampleMetadata: infused
LogGroup
The CloudWatch Logs LogGroup to publish flow logs to.
public virtual ILogGroup? LogGroup { get; }
Property Value
Remarks
Resource: AWS::EC2::FlowLog
ExampleMetadata: infused
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
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
Returns
Remarks
Resource: AWS::EC2::FlowLog
ExampleMetadata: infused