class FlowLog (construct)
A VPC flow log.
new FlowLog(scope: Construct, id: string, props: FlowLogProps)
|resource||The type of resource for which to create the flow log.|
|destination?||Specifies the type of destination to which the flow log data is to be published.|
|flow||The name of the FlowLog.|
|traffic||The type of traffic to log.|
The type of resource for which to create the flow log.
(optional, default: FlowLogDestinationType.toCloudWatchLogs())
Specifies the type of destination to which the flow log data is to be published.
Flow log data can be published to CloudWatch Logs or Amazon S3
(optional, default: If you don't specify a flowLogName, AWS CloudFormation generates a
unique physical ID and uses that ID for the group name.)
The name of the FlowLog.
It is not recommended to use an explicit name.
(optional, default: ALL)
The type of traffic to log.
You can log traffic that the resource accepts or rejects, or all traffic.
|flow||The Id of the VPC Flow Log.|
|node||Construct tree node which offers APIs for interacting with the construct tree.|
|stack||The stack in which this resource is defined.|
|bucket?||The S3 bucket to publish flow logs to.|
|iam||The iam role used to publish logs to CloudWatch.|
|log||The CloudWatch Logs LogGroup to publish flow logs to.|
The Id of the VPC Flow Log.
Construct tree node which offers APIs for interacting with the construct tree.
The stack in which this resource is defined.
The S3 bucket to publish flow logs to.
The iam role used to publish logs to CloudWatch.
The CloudWatch Logs LogGroup to publish flow logs to.
|to||Returns a string representation of this construct.|
|static from||Import a Flow Log by it's Id.|
public toString(): string
Returns a string representation of this construct.
Flow Log Id(scope, id, flowLogId)
public static fromFlowLogId(scope: Construct, id: string, flowLogId: string): IFlowLog
Import a Flow Log by it's Id.