Skip to content

FileSystem

This class encapsulates and extends the ROS resource type ALIYUN::NAS::FileSystem, which is used to create a file system of File Storage NAS (NAS).

Initializers

import com.aliyun.ros.cdk.nas.FileSystem;
FileSystem.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .protocolType(java.lang.String)
    .protocolType(IResolvable)
    .storageType(java.lang.String)
    .storageType(IResolvable)
//  .bandwidth(java.lang.Number)
//  .bandwidth(IResolvable)
//  .capacity(java.lang.Number)
//  .capacity(IResolvable)
//  .chargeType(java.lang.String)
//  .chargeType(IResolvable)
//  .deletionForce(java.lang.Boolean)
//  .deletionForce(IResolvable)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .duration(java.lang.Number)
//  .duration(IResolvable)
//  .encryptType(java.lang.Number)
//  .encryptType(IResolvable)
//  .fileSystemType(java.lang.String)
//  .fileSystemType(IResolvable)
//  .snapshotId(java.lang.String)
//  .snapshotId(IResolvable)
//  .tags(java.util.List<TagsProperty>)
//  .vpcId(java.lang.String)
//  .vpcId(IResolvable)
//  .vSwitchId(java.lang.String)
//  .vSwitchId(IResolvable)
//  .zoneId(java.lang.String)
//  .zoneId(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.
protocolType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property protocolType: Type of protocol used.
storageType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property storageType: The storage type of the file System.
bandwidth java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property bandwidth: Maximum file system throughput, unit is MB\/s.
capacity java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property capacity: File system capacity, the unit is GB.
chargeType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property chargeType: Type of payment: PayAsYouGo (pay as you go) Subscription.
deletionForce java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property deletionForce: Whether delete all mount targets on the file system and then delete file system.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: File system description (space characters are not allowed).
duration java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property duration: The period of subscription in months.
encryptType java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property encryptType: Specifies whether to encrypt data.
fileSystemType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property fileSystemType: File system type.
snapshotId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property snapshotId: Snapshot ID.
tags java.util.List<TagsProperty> Property tags: Tags to attach to filesystem.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: Vpc ID.
vSwitchId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vSwitchId: VSwitch ID.
zoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property zoneId: Zone ID.

scopeRequired

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

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

protocolTypeRequired

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

Property protocolType: Type of protocol used.

Valid values: NFS, SMB, cpfs.


storageTypeRequired

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

Property storageType: The storage type of the file System.

Valid values: Performance、Capacity(Available when the file_system_type is standard) standard、advance(Available when the file_system_type is extreme) advance_100、advance_200(Available when the file_system_type is cpfs)


bandwidthOptional

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

Property bandwidth: Maximum file system throughput, unit is MB\/s.

Required and valid only when FileSystemType=cpfs.


capacityOptional

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

Property capacity: File system capacity, the unit is GB.

Required and valid when FileSystemType=extreme or cpfs.


chargeTypeOptional

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

Property chargeType: Type of payment: PayAsYouGo (pay as you go) Subscription.


deletionForceOptional

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

Property deletionForce: Whether delete all mount targets on the file system and then delete file system.

Default is false


descriptionOptional

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

Property description: File system description (space characters are not allowed).


durationOptional

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

Property duration: The period of subscription in months.

Required and valid when ChargeType is Subscription. When the annual and monthly subscription instance expires without renewal, the instance will automatically expire and be released.


encryptTypeOptional

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

Property encryptType: Specifies whether to encrypt data.

You can use keys that are hosted by Key Management Service (KMS) to encrypt data stored on a file system. Data is automatically decrypted when you access encrypted data. Valid values: 0: specifies that no encryption is applied to data on the file system. 1: specifies that encryption is applied to data on the file system.


fileSystemTypeOptional

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

Property fileSystemType: File system type.

Allowed values: standard(default), extreme, cpfs


snapshotIdOptional

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

Property snapshotId: Snapshot ID.


tagsOptional

Property tags: Tags to attach to filesystem.

Max support 20 tags to add during create filesystem. Each tag with two properties Key and Value, and Key is required.


vpcIdOptional

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

Property vpcId: Vpc ID.


vSwitchIdOptional

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

Property vSwitchId: VSwitch ID.


zoneIdOptional

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

Property zoneId: Zone ID.


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.FileSystem;
FileSystem.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.
attrFileSystemId com.aliyun.ros.cdk.core.IResolvable Attribute FileSystemId: ID of the file system created.

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

attrFileSystemIdRequired

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

Attribute FileSystemId: ID of the file system created.