FlowLogOptions

class aws_cdk.aws_ec2.FlowLogOptions(*, destination=None, traffic_type=None)

Bases: object

__init__(*, destination=None, traffic_type=None)

Options to add a flow log to a VPC.

Parameters
  • destination (Optional[FlowLogDestination]) – 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 Default: FlowLogDestinationType.toCloudWatchLogs()

  • traffic_type (Optional[FlowLogTrafficType]) – The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic. Default: ALL

stability :stability: experimental

Return type

None

Attributes

destination

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

default :default: FlowLogDestinationType.toCloudWatchLogs()

stability :stability: experimental

Return type

Optional[FlowLogDestination]

traffic_type

The type of traffic to log.

You can log traffic that the resource accepts or rejects, or all traffic.

default :default: ALL

stability :stability: experimental

Return type

Optional[FlowLogTrafficType]