Skip to content

Disk

This class encapsulates and extends the ROS resource type DATASOURCE::ECS::Disk, which is used to query the information about a cloud disk.

Initializers

using AlibabaCloud.SDK.ROS.CDK.Ecs;
new Disk(Construct Scope, string Id, DiskProps Props, bool EnableResourcePropertyConstraint = null);
Name Type Description
Scope AlibabaCloud.SDK.ROS.CDK.Core.Construct No description.
Id string No description.
Props DiskProps No description.
EnableResourcePropertyConstraint bool No description.

ScopeRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct

IdRequired

  • Type: string

PropsRequired


EnableResourcePropertyConstraintOptional

  • Type: bool

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

private string ToString()

Returns a string representation of this construct.

Synthesize

private 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: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession

The synthesis session.


AddCondition

private void AddCondition(RosCondition Condition)

ConditionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition

AddCount

private void AddCount(object Count)

CountRequired

  • Type: object

AddDependency

private void AddDependency(Resource Resource)

ResourceRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource

AddResourceDesc

private void AddResourceDesc(string Desc)

DescRequired

  • Type: string

ApplyRemovalPolicy

private void ApplyRemovalPolicy(RemovalPolicy Policy)

PolicyRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy

GetAtt

private IResolvable GetAtt(string Name)

NameRequired

  • Type: string

SetMetadata

private void SetMetadata(string Key, object Value)

KeyRequired

  • Type: string

ValueRequired

  • Type: object

Static Functions

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

IsConstruct

using AlibabaCloud.SDK.ROS.CDK.Ecs;
Disk.IsConstruct(object X);

Return whether the given object is a Construct.

XRequired

  • Type: object

Properties

Name Type Description
Node AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode The construct tree node associated with this construct.
Ref string No description.
Stack AlibabaCloud.SDK.ROS.CDK.Core.Stack The stack in which this resource is defined.
Resource AlibabaCloud.SDK.ROS.CDK.Core.RosResource No description.
AttrAttachedTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute AttachedTime: The attached time.
AttrAutoSnapshotPolicyId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID.
AttrBurstingEnabled AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst).
AttrCategory AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Category: Disk type.
AttrCreateTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute CreateTime: The creation time.
AttrDeleteAutoSnapshot AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time.
AttrDeleteWithInstance AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute DeleteWithInstance: Whether to release with the instance.
AttrDescription AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Description: The description.
AttrDetachedTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute DetachedTime: Unloading time.
AttrDevice AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Device: Cloud disk or the device name of the mounted instance on the site.
AttrDiskId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute DiskId: The disk id.
AttrDiskName AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute DiskName: The disk name.
AttrEnableAutomatedSnapshotPolicy AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy.
AttrEnableAutoSnapshot AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy.
AttrEncrypted AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Encrypted: Whether the disk is encrypted.
AttrExpiredTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ExpiredTime: The expiration time of a monthly disk.
AttrImageId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ImageId: The image id.
AttrInstanceId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute InstanceId: The instance id.
AttrIops AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Iops: Number of read/write (I/O) operations per second.
AttrIopsRead AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute IopsRead: Number of reads per second.
AttrIopsWrite AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute IopsWrite: Number of writes per second.
AttrKmsKeyId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute KmsKeyId: The KMS keyId.
AttrMountInstanceNum AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute MountInstanceNum: Number of instances mounted on shared storage.
AttrMountInstances AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute MountInstances: Disk mount instances.
AttrMultiAttach AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute MultiAttach: Whether to enable the multi-Mount feature.
AttrOperationLocks AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute OperationLocks: Resource locking information.
AttrPaymentType AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute PaymentType: Payment method for disk.
AttrPerformanceLevel AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute PerformanceLevel: Performance levels of ESSD cloud disk.
AttrPortable AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Portable: Whether the disk is unmountable.
AttrProductCode AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ProductCode: The product logo of the cloud market.
AttrProvisionedIops AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ProvisionedIops: The preconfigured read and write IOPS of the ESSD AutoPL cloud disk.
AttrResourceGroupId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ResourceGroupId: The resource group id.
AttrSize AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Size: Disk size.
AttrSnapshotId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute SnapshotId: The source snapshot id.
AttrStorageClusterId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute StorageClusterId: The ID of the dedicated block storage cluster.
AttrStorageSetId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute StorageSetId: The ID of the Save set.
AttrStorageSetPartitionNumber AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute StorageSetPartitionNumber: Number of Save set partitions.
AttrTags AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Tags: The tags.
AttrZoneId AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ZoneId: ID of the free zone to which the disk belongs.

NodeRequired

public ConstructNode Node { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode

The construct tree node associated with this construct.


RefRequired

public string Ref { get; }
  • Type: string

StackRequired

public Stack Stack { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack

The stack in which this resource is defined.


ResourceOptional

public RosResource Resource { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource

AttrAttachedTimeRequired

public IResolvable AttrAttachedTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute AttachedTime: The attached time.


AttrAutoSnapshotPolicyIdRequired

public IResolvable AttrAutoSnapshotPolicyId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID.


AttrBurstingEnabledRequired

public IResolvable AttrBurstingEnabled { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst).


AttrCategoryRequired

public IResolvable AttrCategory { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Category: Disk type.


AttrCreateTimeRequired

public IResolvable AttrCreateTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute CreateTime: The creation time.


AttrDeleteAutoSnapshotRequired

public IResolvable AttrDeleteAutoSnapshot { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time.


AttrDeleteWithInstanceRequired

public IResolvable AttrDeleteWithInstance { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute DeleteWithInstance: Whether to release with the instance.


AttrDescriptionRequired

public IResolvable AttrDescription { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Description: The description.


AttrDetachedTimeRequired

public IResolvable AttrDetachedTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute DetachedTime: Unloading time.


AttrDeviceRequired

public IResolvable AttrDevice { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Device: Cloud disk or the device name of the mounted instance on the site.


AttrDiskIdRequired

public IResolvable AttrDiskId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute DiskId: The disk id.


AttrDiskNameRequired

public IResolvable AttrDiskName { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute DiskName: The disk name.


AttrEnableAutomatedSnapshotPolicyRequired

public IResolvable AttrEnableAutomatedSnapshotPolicy { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy.


AttrEnableAutoSnapshotRequired

public IResolvable AttrEnableAutoSnapshot { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy.


AttrEncryptedRequired

public IResolvable AttrEncrypted { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Encrypted: Whether the disk is encrypted.


AttrExpiredTimeRequired

public IResolvable AttrExpiredTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ExpiredTime: The expiration time of a monthly disk.


AttrImageIdRequired

public IResolvable AttrImageId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ImageId: The image id.


AttrInstanceIdRequired

public IResolvable AttrInstanceId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute InstanceId: The instance id.


AttrIopsRequired

public IResolvable AttrIops { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Iops: Number of read/write (I/O) operations per second.


AttrIopsReadRequired

public IResolvable AttrIopsRead { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute IopsRead: Number of reads per second.


AttrIopsWriteRequired

public IResolvable AttrIopsWrite { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute IopsWrite: Number of writes per second.


AttrKmsKeyIdRequired

public IResolvable AttrKmsKeyId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute KmsKeyId: The KMS keyId.


AttrMountInstanceNumRequired

public IResolvable AttrMountInstanceNum { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute MountInstanceNum: Number of instances mounted on shared storage.


AttrMountInstancesRequired

public IResolvable AttrMountInstances { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute MountInstances: Disk mount instances.


AttrMultiAttachRequired

public IResolvable AttrMultiAttach { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute MultiAttach: Whether to enable the multi-Mount feature.


AttrOperationLocksRequired

public IResolvable AttrOperationLocks { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute OperationLocks: Resource locking information.


AttrPaymentTypeRequired

public IResolvable AttrPaymentType { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute PaymentType: Payment method for disk.


AttrPerformanceLevelRequired

public IResolvable AttrPerformanceLevel { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute PerformanceLevel: Performance levels of ESSD cloud disk.


AttrPortableRequired

public IResolvable AttrPortable { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Portable: Whether the disk is unmountable.


AttrProductCodeRequired

public IResolvable AttrProductCode { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ProductCode: The product logo of the cloud market.


AttrProvisionedIopsRequired

public IResolvable AttrProvisionedIops { get; }
  • Type: AlibabaCloud.SDK.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 IResolvable AttrResourceGroupId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ResourceGroupId: The resource group id.


AttrSizeRequired

public IResolvable AttrSize { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Size: Disk size.


AttrSnapshotIdRequired

public IResolvable AttrSnapshotId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute SnapshotId: The source snapshot id.


AttrStorageClusterIdRequired

public IResolvable AttrStorageClusterId { get; }
  • Type: AlibabaCloud.SDK.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 IResolvable AttrStorageSetId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute StorageSetId: The ID of the Save set.


AttrStorageSetPartitionNumberRequired

public IResolvable AttrStorageSetPartitionNumber { get; }
  • Type: AlibabaCloud.SDK.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 IResolvable AttrTags { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Tags: The tags.


AttrZoneIdRequired

public IResolvable AttrZoneId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ZoneId: ID of the free zone to which the disk belongs.