Skip to content

DataFlow

This class encapsulates and extends the ROS resource type ALIYUN::NAS::DataFlow, which is used to create a data flow between a Cloud Parallel File Storage (CPFS) file system and an Object Storage Service (OSS) bucket.

Initializers

import com.aliyun.ros.cdk.nas.DataFlow;
DataFlow.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .fileSystemId(java.lang.String)
    .fileSystemId(IResolvable)
    .fsetId(java.lang.String)
    .fsetId(IResolvable)
    .sourceStorage(java.lang.String)
    .sourceStorage(IResolvable)
    .throughput(java.lang.Number)
    .throughput(IResolvable)
//  .autoRefreshInterval(java.lang.Number)
//  .autoRefreshInterval(IResolvable)
//  .autoRefreshPolicy(java.lang.String)
//  .autoRefreshPolicy(IResolvable)
//  .autoRefreshs(IResolvable)
//  .autoRefreshs(java.util.List<IResolvable)
//  .autoRefreshs(AutoRefreshsProperty>)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .sourceSecurityType(java.lang.String)
//  .sourceSecurityType(IResolvable)
    .build();
Name Type Description
scope com.aliyun.ros.cdk.core.Construct No description.
id java.lang.String No description.
enableResourcePropertyConstraint java.lang.Boolean No description.
fileSystemId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property fileSystemId: File system ID.
fsetId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property fsetId: Fileset ID.
sourceStorage java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property sourceStorage: Access path stored at the source.Format: : \/\/ . in: Storage Type: Currently only supports OSS. PATH: OSS's bucket name.Limit the following. Only support the lowercase letters, numbers and short strokes (-) and must start with a lowercase letter or number. The length is 8 ~ 128 English characters. Use UTF-8 encoding. Can't start with http: \/\/ and https: \/\/. Explain that the OSS BUCKET must be the bucket that exists in the region.
throughput java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property throughput: The upper limit of transmission bandwidth for data flow, unit: MB\/s. Value: 600 1200 1500.
autoRefreshInterval java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property autoRefreshInterval: The automatic update interval time, every time the interval, the CPFS checks whether there is a data update in the directory.
autoRefreshPolicy java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property autoRefreshPolicy: Automatic update strategy, after the source data is updated, the data update is introduced to the CPFS strategy.
autoRefreshs com.aliyun.ros.cdk.core.IResolvable OR java.util.ListAutoRefreshsProperty> Property autoRefreshs:.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: Description of data flow.
sourceSecurityType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property sourceSecurityType: The type of safety protection types of the source storage.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

fileSystemIdRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property fileSystemId: File system ID.


fsetIdRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property fsetId: Fileset ID.


sourceStorageRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property sourceStorage: Access path stored at the source.Format: : \/\/ . in: Storage Type: Currently only supports OSS. PATH: OSS's bucket name.Limit the following. Only support the lowercase letters, numbers and short strokes (-) and must start with a lowercase letter or number. The length is 8 ~ 128 English characters. Use UTF-8 encoding. Can't start with http: \/\/ and https: \/\/. Explain that the OSS BUCKET must be the bucket that exists in the region.


throughputRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property throughput: The upper limit of transmission bandwidth for data flow, unit: MB\/s. Value: 600 1200 1500.

Explanation The transmission bandwidth of the data flow must be smaller than the IO bandwidth of the file system.


autoRefreshIntervalOptional

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property autoRefreshInterval: The automatic update interval time, every time the interval, the CPFS checks whether there is a data update in the directory.

If there is data update, start the automatic update task, unit: minute. Scope of value: 5 ~ 525600, default value: 10.


autoRefreshPolicyOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property autoRefreshPolicy: Automatic update strategy, after the source data is updated, the data update is introduced to the CPFS strategy.

None (default): The data update of the source is not automatically imported into CPFS. Users can import data update at the source end of the source through data flow tasks. Importchanged: The data update at the source automatically imports CPFS.


autoRefreshsOptional

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListAutoRefreshsProperty>

Property autoRefreshs:.


descriptionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property description: Description of data flow.

limit: The length is 2 to 128 English or Chinese characters. Start with a lowercase letter or Chinese, and you cannot start with http:// and https: //. It can contain numbers, half-horn colon (:), down line (_) or short lines (-).


sourceSecurityTypeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property sourceSecurityType: The type of safety protection types of the source storage.

If the source storage must be protected through safety protection, please specify the type of safety protection type storage.Value: No (default value): It means that the source storage does not need to be accessed by safe protection. SSL: Protective access through SSL certificates.


Methods

Name Description
toString Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
addCondition No description.
addCount No description.
addDependency No description.
addResourceDesc No description.
applyRemovalPolicy No description.
getAtt No description.
setMetadata No description.

toString

public java.lang.String toString()

Returns a string representation of this construct.

synthesize

public void synthesize(ISynthesisSession session)

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import com.aliyun.ros.cdk.nas.DataFlow;
DataFlow.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • Type: java.lang.Object

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct.
ref java.lang.String No description.
stack com.aliyun.ros.cdk.core.Stack The stack in which this resource is defined.
resource com.aliyun.ros.cdk.core.RosResource No description.
attrDataFlowId com.aliyun.ros.cdk.core.IResolvable Attribute DataFlowId: Data flow ID.
attrFileSystemId com.aliyun.ros.cdk.core.IResolvable Attribute FileSystemId: File system ID.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


refRequired

public java.lang.String getRef();
  • Type: java.lang.String

stackRequired

public Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


resourceOptional

public RosResource getResource();
  • Type: com.aliyun.ros.cdk.core.RosResource

attrDataFlowIdRequired

public IResolvable getAttrDataFlowId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute DataFlowId: Data flow ID.


attrFileSystemIdRequired

public IResolvable getAttrFileSystemId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute FileSystemId: File system ID.