Skip to content

FlowlogProps

Properties for defining a Flowlog.

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

Initializer

import { FlowlogProps } from '@alicloud/ros-cdk-cen'
const flowlogProps: FlowlogProps = { ... }

Properties

Name Type Description
cenId string | @alicloud/ros-cdk-core.IResolvable Property cenId: The ID of the CEN instance.
description string | @alicloud/ros-cdk-core.IResolvable Property description: The description of the flow log.
flowLogName string | @alicloud/ros-cdk-core.IResolvable Property flowLogName: The flow log name.
interval number | @alicloud/ros-cdk-core.IResolvable Property interval: The time window for collecting log data.
logFormatString string | @alicloud/ros-cdk-core.IResolvable Property logFormatString: The strings that define the fields in the flow log.
logStoreName string | @alicloud/ros-cdk-core.IResolvable Property logStoreName: The Logstore that stores the captured traffic data.
projectName string | @alicloud/ros-cdk-core.IResolvable Property projectName: The project that stores the captured traffic data.
tags TagsProperty[] Property tags: Tags of flow log.
transitRouterAttachmentId string | @alicloud/ros-cdk-core.IResolvable Property transitRouterAttachmentId: The ID of the VPC connection, VPN connection, VBR connection, ECR connection, or inter-region connection.
transitRouterId string | @alicloud/ros-cdk-core.IResolvable Property transitRouterId: The ID of the transit router.

cenIdRequired

public readonly cenId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property cenId: The ID of the CEN instance.


descriptionOptional

public readonly description: string | IResolvable;
  • Type: string | @alicloud/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:\/\/.


flowLogNameOptional

public readonly flowLogName: string | IResolvable;
  • Type: string | @alicloud/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

public readonly interval: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property interval: The time window for collecting log data.

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


logFormatStringOptional

public readonly logFormatString: string | IResolvable;
  • Type: string | @alicloud/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.


logStoreNameOptional

public readonly logStoreName: string | IResolvable;
  • Type: string | @alicloud/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.

projectNameOptional

public readonly projectName: string | IResolvable;
  • Type: string | @alicloud/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

public readonly tags: TagsProperty[];

Property tags: Tags of flow log.


transitRouterAttachmentIdOptional

public readonly transitRouterAttachmentId: string | IResolvable;
  • Type: string | @alicloud/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.


transitRouterIdOptional

public readonly transitRouterId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property transitRouterId: The ID of the transit router.