CfnFlowLogProps

class aws_cdk.aws_ec2.CfnFlowLogProps(*, resource_id, resource_type, traffic_type, deliver_logs_permission_arn=None, log_destination=None, log_destination_type=None, log_format=None, log_group_name=None, max_aggregation_interval=None, tags=None)

Bases: object

Properties for defining a AWS::EC2::FlowLog.

Parameters
  • resource_id (str) – AWS::EC2::FlowLog.ResourceId.

  • resource_type (str) – AWS::EC2::FlowLog.ResourceType.

  • traffic_type (str) – AWS::EC2::FlowLog.TrafficType.

  • deliver_logs_permission_arn (Optional[str]) – AWS::EC2::FlowLog.DeliverLogsPermissionArn.

  • log_destination (Optional[str]) – AWS::EC2::FlowLog.LogDestination.

  • log_destination_type (Optional[str]) – AWS::EC2::FlowLog.LogDestinationType.

  • log_format (Optional[str]) – AWS::EC2::FlowLog.LogFormat.

  • log_group_name (Optional[str]) – AWS::EC2::FlowLog.LogGroupName.

  • max_aggregation_interval (Union[int, float, None]) – AWS::EC2::FlowLog.MaxAggregationInterval.

  • tags (Optional[List[CfnTag]]) – AWS::EC2::FlowLog.Tags.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html

Attributes

deliver_logs_permission_arn

AWS::EC2::FlowLog.DeliverLogsPermissionArn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-deliverlogspermissionarn

Return type

Optional[str]

log_destination

AWS::EC2::FlowLog.LogDestination.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-logdestination

Return type

Optional[str]

log_destination_type

AWS::EC2::FlowLog.LogDestinationType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-logdestinationtype

Return type

Optional[str]

log_format

AWS::EC2::FlowLog.LogFormat.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-logformat

Return type

Optional[str]

log_group_name

AWS::EC2::FlowLog.LogGroupName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-loggroupname

Return type

Optional[str]

max_aggregation_interval

AWS::EC2::FlowLog.MaxAggregationInterval.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-maxaggregationinterval

Return type

Union[int, float, None]

resource_id

AWS::EC2::FlowLog.ResourceId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-resourceid

Return type

str

resource_type

AWS::EC2::FlowLog.ResourceType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-resourcetype

Return type

str

tags

AWS::EC2::FlowLog.Tags.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-tags

Return type

Optional[List[CfnTag]]

traffic_type

AWS::EC2::FlowLog.TrafficType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-traffictype

Return type

str