Disk
- Implements: com.aliyun.ros.cdk.ecs.datasource.IDisk
This class encapsulates and extends the ROS resource type DATASOURCE::ECS::Disk.
Initializers
import com.aliyun.ros.cdk.ecs.datasource.Disk;
Disk.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.diskId(java.lang.String)
.diskId(IResolvable)
// .refreshOptions(java.lang.String)
// .refreshOptions(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. |
diskId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property diskId: The disk id. |
refreshOptions | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
diskIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property diskId: The disk id.
refreshOptionsOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
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.ecs.datasource.Disk;
Disk.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. |
attrAttachedTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute AttachedTime: The attached time. |
attrAutoSnapshotPolicyId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID. |
attrBurstingEnabled | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst). |
attrCategory | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Category: Disk type. |
attrCreateTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CreateTime: The creation time. |
attrDeleteAutoSnapshot | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time. |
attrDeleteWithInstance | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DeleteWithInstance: Whether to release with the instance. |
attrDescription | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Description: The description. |
attrDetachedTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DetachedTime: Unloading time. |
attrDevice | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Device: Cloud disk or the device name of the mounted instance on the site. |
attrDiskId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DiskId: The disk id. |
attrDiskName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DiskName: The disk name. |
attrEnableAutomatedSnapshotPolicy | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy. |
attrEnableAutoSnapshot | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy. |
attrEncrypted | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Encrypted: Whether the disk is encrypted. |
attrExpiredTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ExpiredTime: The expiration time of a monthly disk. |
attrImageId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ImageId: The image id. |
attrInstanceId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InstanceId: The instance id. |
attrIops | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Iops: Number of read/write (I/O) operations per second. |
attrIopsRead | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute IopsRead: Number of reads per second. |
attrIopsWrite | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute IopsWrite: Number of writes per second. |
attrKmsKeyId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute KmsKeyId: The KMS keyId. |
attrMountInstanceNum | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute MountInstanceNum: Number of instances mounted on shared storage. |
attrMountInstances | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute MountInstances: Disk mount instances. |
attrMultiAttach | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute MultiAttach: Whether to enable the multi-Mount feature. |
attrOperationLocks | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute OperationLocks: Resource locking information. |
attrPaymentType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute PaymentType: Payment method for disk. |
attrPerformanceLevel | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute PerformanceLevel: Performance levels of ESSD cloud disk. |
attrPortable | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Portable: Whether the disk is unmountable. |
attrProductCode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ProductCode: The product logo of the cloud market. |
attrProvisionedIops | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ProvisionedIops: The preconfigured read and write IOPS of the ESSD AutoPL cloud disk. |
attrResourceGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ResourceGroupId: The resource group id. |
attrSize | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Size: Disk size. |
attrSnapshotId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SnapshotId: The source snapshot id. |
attrStorageClusterId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute StorageClusterId: The ID of the dedicated block storage cluster. |
attrStorageSetId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute StorageSetId: The ID of the Save set. |
attrStorageSetPartitionNumber | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute StorageSetPartitionNumber: Number of Save set partitions. |
attrTags | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Tags: The tags. |
attrZoneId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ZoneId: ID of the free zone to which the disk belongs. |
props | DiskProps | 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
attrAttachedTimeRequired
public java.lang.Object getAttrAttachedTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute AttachedTime: The attached time.
attrAutoSnapshotPolicyIdRequired
public java.lang.Object getAttrAutoSnapshotPolicyId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID.
attrBurstingEnabledRequired
public java.lang.Object getAttrBurstingEnabled();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst).
attrCategoryRequired
public java.lang.Object getAttrCategory();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Category: Disk type.
attrCreateTimeRequired
public java.lang.Object getAttrCreateTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CreateTime: The creation time.
attrDeleteAutoSnapshotRequired
public java.lang.Object getAttrDeleteAutoSnapshot();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time.
attrDeleteWithInstanceRequired
public java.lang.Object getAttrDeleteWithInstance();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DeleteWithInstance: Whether to release with the instance.
attrDescriptionRequired
public java.lang.Object getAttrDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Description: The description.
attrDetachedTimeRequired
public java.lang.Object getAttrDetachedTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DetachedTime: Unloading time.
attrDeviceRequired
public java.lang.Object getAttrDevice();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Device: Cloud disk or the device name of the mounted instance on the site.
attrDiskIdRequired
public java.lang.Object getAttrDiskId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DiskId: The disk id.
attrDiskNameRequired
public java.lang.Object getAttrDiskName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DiskName: The disk name.
attrEnableAutomatedSnapshotPolicyRequired
public java.lang.Object getAttrEnableAutomatedSnapshotPolicy();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy.
attrEnableAutoSnapshotRequired
public java.lang.Object getAttrEnableAutoSnapshot();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy.
attrEncryptedRequired
public java.lang.Object getAttrEncrypted();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Encrypted: Whether the disk is encrypted.
attrExpiredTimeRequired
public java.lang.Object getAttrExpiredTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ExpiredTime: The expiration time of a monthly disk.
attrImageIdRequired
public java.lang.Object getAttrImageId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ImageId: The image id.
attrInstanceIdRequired
public java.lang.Object getAttrInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceId: The instance id.
attrIopsRequired
public java.lang.Object getAttrIops();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Iops: Number of read/write (I/O) operations per second.
attrIopsReadRequired
public java.lang.Object getAttrIopsRead();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute IopsRead: Number of reads per second.
attrIopsWriteRequired
public java.lang.Object getAttrIopsWrite();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute IopsWrite: Number of writes per second.
attrKmsKeyIdRequired
public java.lang.Object getAttrKmsKeyId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute KmsKeyId: The KMS keyId.
attrMountInstanceNumRequired
public java.lang.Object getAttrMountInstanceNum();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute MountInstanceNum: Number of instances mounted on shared storage.
attrMountInstancesRequired
public java.lang.Object getAttrMountInstances();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute MountInstances: Disk mount instances.
attrMultiAttachRequired
public java.lang.Object getAttrMultiAttach();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute MultiAttach: Whether to enable the multi-Mount feature.
attrOperationLocksRequired
public java.lang.Object getAttrOperationLocks();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute OperationLocks: Resource locking information.
attrPaymentTypeRequired
public java.lang.Object getAttrPaymentType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute PaymentType: Payment method for disk.
attrPerformanceLevelRequired
public java.lang.Object getAttrPerformanceLevel();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute PerformanceLevel: Performance levels of ESSD cloud disk.
attrPortableRequired
public java.lang.Object getAttrPortable();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Portable: Whether the disk is unmountable.
attrProductCodeRequired
public java.lang.Object getAttrProductCode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ProductCode: The product logo of the cloud market.
attrProvisionedIopsRequired
public java.lang.Object getAttrProvisionedIops();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ProvisionedIops: The preconfigured read and write IOPS of the ESSD AutoPL cloud disk.
Possible values: 0 ~ min{50,000, 1000 * capacity-baseline performance}.
attrResourceGroupIdRequired
public java.lang.Object getAttrResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ResourceGroupId: The resource group id.
attrSizeRequired
public java.lang.Object getAttrSize();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Size: Disk size.
attrSnapshotIdRequired
public java.lang.Object getAttrSnapshotId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SnapshotId: The source snapshot id.
attrStorageClusterIdRequired
public java.lang.Object getAttrStorageClusterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute StorageClusterId: The ID of the dedicated block storage cluster.
If you need to create a cloud disk in the specified dedicated block storage cluster, specify this parameter.
attrStorageSetIdRequired
public java.lang.Object getAttrStorageSetId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute StorageSetId: The ID of the Save set.
attrStorageSetPartitionNumberRequired
public java.lang.Object getAttrStorageSetPartitionNumber();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute StorageSetPartitionNumber: Number of Save set partitions.
Value range: greater than or equal to 2. The maximum value cannot exceed the equity quota limit displayed after calling.
attrTagsRequired
public java.lang.Object getAttrTags();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Tags: The tags.
attrZoneIdRequired
public java.lang.Object getAttrZoneId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ZoneId: ID of the free zone to which the disk belongs.
propsRequired
public DiskProps getProps();
- Type: DiskProps