DataFlow
- Implements: IDataFlow
This class encapsulates and extends the ROS resource type ALIYUN::NAS::DataFlowCreates 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: The ID of the file system. |
fsetId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property fsetId: The fileset ID. |
sourceStorage | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property sourceStorage: The access path of the source storage. |
throughput | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property throughput: The maximum data flow throughput. |
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: The automatic update policy. |
autoRefreshs | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property autoRefreshs:. |
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: The description of the dataflow. |
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: The ID of the file system.
- The IDs of CPFS file systems must start with
cpfs-. Example: cpfs-125487****. - The IDs of CPFS for Lingjun file systems must start with
bmcpfs-. Example: bmcpfs-0015****.
fsetIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property fsetId: The fileset ID.
This parameter is required for CPFS file systems.
sourceStorageRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourceStorage: The access path of the source storage.
Format: <storage type>:\/\/[<account id>:]<path>. Parameters:
- storage type: Only OSS is supported.
- account id (optional): the UID of the account of the source storage. This parameter is required when you use OSS buckets across accounts.
- path: the name of the OSS bucket. Limits:
- The name can contain only lowercase letters, digits, and hyphens (-). The name must start and end with a lowercase letter or digit.
- The name can be up to 128 characters in length.
- The name must be encoded in UTF-8.
- The OSS bucket must be an existing bucket in the region.
- Only CPFS for LINGJUN V2.6.0 and later support the account id parameter.
throughputRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property throughput: The maximum data flow throughput.
Unit: MB/s. Valid values:
- 600
- 1200
- 1500
The data flow throughput must be less than the I/O throughput of the file system. This parameter is required for CPFS file systems.
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: The automatic update policy.
The updated data in the source storage is imported into the CPFS file system based on the policy.
- None (default): Updated data in the source storage is not automatically imported into the CPFS file system. You can run a data flow task to import the updated data from the source storage.
- ImportChanged: Updated data in the source storage is automatically imported into the CPFS file system.
This parameter takes effect only for CPFS file systems.
autoRefreshsOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
AutoRefreshsProperty>
Property autoRefreshs:.
descriptionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of the dataflow.
Limits:
- The description must be 2 to 128 characters in length.
- The description must start with a letter but cannot start with
http:\/\/orhttps:\/\/. - The description can contain letters, digits, colons (:), underscores (_), and hyphens (-).
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. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | 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.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- 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.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
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 | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DataFlowId: Data flow ID. |
attrFileSystemId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute FileSystemId: File system ID. |
props | DataFlowProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.ros.cdk.core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
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 java.lang.Object getAttrDataFlowId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DataFlowId: Data flow ID.
attrFileSystemIdRequired
public java.lang.Object getAttrFileSystemId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute FileSystemId: File system ID.
propsRequired
public DataFlowProps getProps();
- Type: DataFlowProps