FlowlogProps
Properties for defining a Flowlog.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cen-flowlog
Initializer
import com.aliyun.ros.cdk.cen.FlowlogProps;
FlowlogProps.builder()
.cenId(java.lang.String)
.cenId(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .flowLogName(java.lang.String)
// .flowLogName(IResolvable)
// .interval(java.lang.Number)
// .interval(IResolvable)
// .logFormatString(java.lang.String)
// .logFormatString(IResolvable)
// .logStoreName(java.lang.String)
// .logStoreName(IResolvable)
// .projectName(java.lang.String)
// .projectName(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .transitRouterAttachmentId(java.lang.String)
// .transitRouterAttachmentId(IResolvable)
// .transitRouterId(java.lang.String)
// .transitRouterId(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
cenId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property cenId: The ID of the CEN instance. |
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: The description of the flow log. |
flowLogName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property flowLogName: The flow log name. |
interval | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property interval: The time window for collecting log data. |
logFormatString | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property logFormatString: The strings that define the fields in the flow log. |
logStoreName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property logStoreName: The Logstore that stores the captured traffic data. |
projectName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property projectName: The project that stores the captured traffic data. |
tags | java.util.List<TagsProperty> | Property tags: Tags of flow log. |
transitRouterAttachmentId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property transitRouterAttachmentId: The ID of the VPC connection, VPN connection, VBR connection, ECR connection, or inter-region connection. |
transitRouterId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property transitRouterId: The ID of the transit router. |
cenIdRequired
public java.lang.Object getCenId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property cenId: The ID of the CEN instance.
descriptionOptional
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.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 java.lang.Object getFlowLogName();
- Type: java.lang.String OR com.aliyun.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 java.lang.Object getInterval();
- Type: java.lang.Number OR com.aliyun.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 java.lang.Object getLogFormatString();
- Type: java.lang.String OR com.aliyun.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 java.lang.Object getLogStoreName();
- Type: java.lang.String OR com.aliyun.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 java.lang.Object getProjectName();
- Type: java.lang.String OR com.aliyun.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 java.util.List<TagsProperty> getTags();
- Type: java.util.List<TagsProperty>
Property tags: Tags of flow log.
transitRouterAttachmentIdOptional
public java.lang.Object getTransitRouterAttachmentId();
- Type: java.lang.String OR com.aliyun.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 java.lang.Object getTransitRouterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property transitRouterId: The ID of the transit router.