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. |
Scope
Required
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct
Id
Required
- Type: string
Props
Required
- Type: DiskProps
EnableResourcePropertyConstraint
Optional
- 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.
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession
The synthesis session.
AddCondition
private void AddCondition(RosCondition Condition)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition
AddCount
private void AddCount(object Count)
- Type: object
AddDependency
private void AddDependency(Resource Resource)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource
AddResourceDesc
private void AddResourceDesc(string Desc)
- Type: string
ApplyRemovalPolicy
private void ApplyRemovalPolicy(RemovalPolicy Policy)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy
GetAtt
private IResolvable GetAtt(string Name)
- Type: string
SetMetadata
private void SetMetadata(string Key, object Value)
- Type: string
- 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.
- 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. |
Node
Required
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
Ref
Required
public string Ref { get; }
- Type: string
Stack
Required
public Stack Stack { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack
The stack in which this resource is defined.
Resource
Optional
public RosResource Resource { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource
AttrAttachedTime
Required
public IResolvable AttrAttachedTime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute AttachedTime: The attached time.
AttrAutoSnapshotPolicyId
Required
public IResolvable AttrAutoSnapshotPolicyId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID.
AttrBurstingEnabled
Required
public IResolvable AttrBurstingEnabled { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst).
AttrCategory
Required
public IResolvable AttrCategory { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Category: Disk type.
AttrCreateTime
Required
public IResolvable AttrCreateTime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute CreateTime: The creation time.
AttrDeleteAutoSnapshot
Required
public IResolvable AttrDeleteAutoSnapshot { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time.
AttrDeleteWithInstance
Required
public IResolvable AttrDeleteWithInstance { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DeleteWithInstance: Whether to release with the instance.
AttrDescription
Required
public IResolvable AttrDescription { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Description: The description.
AttrDetachedTime
Required
public IResolvable AttrDetachedTime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DetachedTime: Unloading time.
AttrDevice
Required
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.
AttrDiskId
Required
public IResolvable AttrDiskId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DiskId: The disk id.
AttrDiskName
Required
public IResolvable AttrDiskName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DiskName: The disk name.
AttrEnableAutomatedSnapshotPolicy
Required
public IResolvable AttrEnableAutomatedSnapshotPolicy { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy.
AttrEnableAutoSnapshot
Required
public IResolvable AttrEnableAutoSnapshot { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy.
AttrEncrypted
Required
public IResolvable AttrEncrypted { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Encrypted: Whether the disk is encrypted.
AttrExpiredTime
Required
public IResolvable AttrExpiredTime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ExpiredTime: The expiration time of a monthly disk.
AttrImageId
Required
public IResolvable AttrImageId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ImageId: The image id.
AttrInstanceId
Required
public IResolvable AttrInstanceId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InstanceId: The instance id.
AttrIops
Required
public IResolvable AttrIops { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Iops: Number of read/write (I/O) operations per second.
AttrIopsRead
Required
public IResolvable AttrIopsRead { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute IopsRead: Number of reads per second.
AttrIopsWrite
Required
public IResolvable AttrIopsWrite { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute IopsWrite: Number of writes per second.
AttrKmsKeyId
Required
public IResolvable AttrKmsKeyId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute KmsKeyId: The KMS keyId.
AttrMountInstanceNum
Required
public IResolvable AttrMountInstanceNum { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute MountInstanceNum: Number of instances mounted on shared storage.
AttrMountInstances
Required
public IResolvable AttrMountInstances { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute MountInstances: Disk mount instances.
AttrMultiAttach
Required
public IResolvable AttrMultiAttach { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute MultiAttach: Whether to enable the multi-Mount feature.
AttrOperationLocks
Required
public IResolvable AttrOperationLocks { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute OperationLocks: Resource locking information.
AttrPaymentType
Required
public IResolvable AttrPaymentType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PaymentType: Payment method for disk.
AttrPerformanceLevel
Required
public IResolvable AttrPerformanceLevel { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PerformanceLevel: Performance levels of ESSD cloud disk.
AttrPortable
Required
public IResolvable AttrPortable { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Portable: Whether the disk is unmountable.
AttrProductCode
Required
public IResolvable AttrProductCode { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ProductCode: The product logo of the cloud market.
AttrProvisionedIops
Required
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}.
AttrResourceGroupId
Required
public IResolvable AttrResourceGroupId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ResourceGroupId: The resource group id.
AttrSize
Required
public IResolvable AttrSize { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Size: Disk size.
AttrSnapshotId
Required
public IResolvable AttrSnapshotId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute SnapshotId: The source snapshot id.
AttrStorageClusterId
Required
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.
AttrStorageSetId
Required
public IResolvable AttrStorageSetId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute StorageSetId: The ID of the Save set.
AttrStorageSetPartitionNumber
Required
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.
AttrTags
Required
public IResolvable AttrTags { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Tags: The tags.
AttrZoneId
Required
public IResolvable AttrZoneId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ZoneId: ID of the free zone to which the disk belongs.