FlowLogDestinationConfig

class aws_cdk.aws_ec2.FlowLogDestinationConfig(*, log_destination_type, iam_role=None, log_group=None, s3_bucket=None)

Bases: object

__init__(*, log_destination_type, iam_role=None, log_group=None, s3_bucket=None)

Flow Log Destination configuration.

Parameters
  • log_destination_type (FlowLogDestinationType) – The type of destination to publish the flow logs to. Default: - CLOUD_WATCH_LOGS

  • iam_role (Optional[IRole]) – The IAM Role that has access to publish to CloudWatch logs. Default: - default IAM role is created for you

  • log_group (Optional[ILogGroup]) – The CloudWatch Logs Log Group to publish the flow logs to. Default: - default log group is created for you

  • s3_bucket (Optional[IBucket]) – S3 bucket to publish the flow logs to. Default: - undefined

stability :stability: experimental

Attributes

iam_role

The IAM Role that has access to publish to CloudWatch logs.

default :default: - default IAM role is created for you

stability :stability: experimental

Return type

Optional[IRole]

log_destination_type

The type of destination to publish the flow logs to.

default :default: - CLOUD_WATCH_LOGS

stability :stability: experimental

Return type

FlowLogDestinationType

log_group

The CloudWatch Logs Log Group to publish the flow logs to.

default :default: - default log group is created for you

stability :stability: experimental

Return type

Optional[ILogGroup]

s3_bucket

S3 bucket to publish the flow logs to.

default :default: - undefined

stability :stability: experimental

Return type

Optional[IBucket]