Skip to content

FlowlogProps

Properties for defining a Flowlog.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cen-flowlog

Initializer

import ros_cdk_cen
ros_cdk_cen.FlowlogProps(
  cen_id: typing.Union[str, IResolvable],
  description: typing.Union[str, IResolvable] = None,
  flow_log_name: typing.Union[str, IResolvable] = None,
  interval: typing.Union[typing.Union[int, float], IResolvable] = None,
  log_format_string: typing.Union[str, IResolvable] = None,
  log_store_name: typing.Union[str, IResolvable] = None,
  project_name: typing.Union[str, IResolvable] = None,
  tags: typing.List[TagsProperty] = None,
  transit_router_attachment_id: typing.Union[str, IResolvable] = None,
  transit_router_id: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
cen_id typing.Union[str, ros_cdk_core.IResolvable] Property cenId: The ID of the CEN instance.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: The description of the flow log.
flow_log_name typing.Union[str, ros_cdk_core.IResolvable] Property flowLogName: The flow log name.
interval typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property interval: The time window for collecting log data.
log_format_string typing.Union[str, ros_cdk_core.IResolvable] Property logFormatString: The strings that define the fields in the flow log.
log_store_name typing.Union[str, ros_cdk_core.IResolvable] Property logStoreName: The Logstore that stores the captured traffic data.
project_name typing.Union[str, ros_cdk_core.IResolvable] Property projectName: The project that stores the captured traffic data.
tags typing.List[TagsProperty] Property tags: Tags of flow log.
transit_router_attachment_id typing.Union[str, ros_cdk_core.IResolvable] Property transitRouterAttachmentId: The ID of the VPC connection, VPN connection, VBR connection, ECR connection, or inter-region connection.
transit_router_id typing.Union[str, ros_cdk_core.IResolvable] Property transitRouterId: The ID of the transit router.

cen_idRequired

cen_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property cenId: The ID of the CEN instance.


descriptionOptional

description: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property description: The description of the flow log.

The description is optional. If you enter a description, it must be 1 to 256 characters in length, and cannot start with http:// or https://.


flow_log_nameOptional

flow_log_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property flowLogName: The flow log name.

The name can be empty or 1 to 128 characters in length, and cannot start with http:// or https://.


intervalOptional

interval: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property interval: The time window for collecting log data.

Unit: seconds. Valid values: 60 and 600. Default value: 600.


log_format_stringOptional

log_format_string: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property logFormatString: The strings that define the fields in the flow log.

Format: ${Field 1}${Field 2}${Field 3}...{Field n} * If you do not configure this parameter, all fields are included in the flow log. * If you configure this parameter, start the string with ${srcaddr}${dstaddr}${bytes} because ${srcaddr}${dstaddr}${bytes} are required variables.


log_store_nameOptional

log_store_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property logStoreName: The Logstore that stores the captured traffic data.

  • If a Logstore is already created in the selected region, enter the name of the Logstore.
  • If no Logstores are created in the selected region, enter a name and the system automatically creates a Logstore. The name of the Logstore. The name must meet the following requirements: ** The name must be unique in a project. ** The name can contain only lowercase letters, digits, hyphens (-), and underscores (_). ** The name must start and end with a lowercase letter or a digit. ** The name must be 3 to 63 characters in length.

project_nameOptional

project_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property projectName: The project that stores the captured traffic data.

  • If a project is already created in the selected region, enter the name of the project.
  • If no projects are created in the selected region, enter a name and the system automatically creates a project. The project name must be unique in a region. You cannot change the name after the project is created. The name must meet the following requirements: ** The name must be globally unique. ** The name can contain only lowercase letters, digits, and hyphens (-). ** The name must start and end with a lowercase letter or a digit. ** The name must be 3 to 63 characters in length.

tagsOptional

tags: typing.List[TagsProperty]

Property tags: Tags of flow log.


transit_router_attachment_idOptional

transit_router_attachment_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property transitRouterAttachmentId: The ID of the VPC connection, VPN connection, VBR connection, ECR connection, or inter-region connection.

If you create the flow log for a transfer router, skip this parameter.


transit_router_idOptional

transit_router_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property transitRouterId: The ID of the transit router.