Disk
- Implements: AlibabaCloud.SDK.ROS.CDK.Ecs.datasource.IDisk
This class encapsulates and extends the ROS resource type DATASOURCE::ECS::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
- Type: DiskProps
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. |
FetchCondition | No description. |
FetchDependency | No description. |
FetchResourceDesc | 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
FetchCondition
private RosCondition FetchCondition()
FetchDependency
private string[] FetchDependency()
FetchResourceDesc
private string FetchResourceDesc()
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. |
Env | AlibabaCloud.SDK.ROS.CDK.Core.IResourceEnvironment | The environment this resource belongs to. |
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 | object | Attribute AttachedTime: The attached time. |
AttrAutoSnapshotPolicyId | object | Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID. |
AttrBurstingEnabled | object | Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst). |
AttrCategory | object | Attribute Category: Disk type. |
AttrCreateTime | object | Attribute CreateTime: The creation time. |
AttrDeleteAutoSnapshot | object | Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time. |
AttrDeleteWithInstance | object | Attribute DeleteWithInstance: Whether to release with the instance. |
AttrDescription | object | Attribute Description: The description. |
AttrDetachedTime | object | Attribute DetachedTime: Unloading time. |
AttrDevice | object | Attribute Device: Cloud disk or the device name of the mounted instance on the site. |
AttrDiskId | object | Attribute DiskId: The disk id. |
AttrDiskName | object | Attribute DiskName: The disk name. |
AttrEnableAutomatedSnapshotPolicy | object | Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy. |
AttrEnableAutoSnapshot | object | Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy. |
AttrEncrypted | object | Attribute Encrypted: Whether the disk is encrypted. |
AttrExpiredTime | object | Attribute ExpiredTime: The expiration time of a monthly disk. |
AttrImageId | object | Attribute ImageId: The image id. |
AttrInstanceId | object | Attribute InstanceId: The instance id. |
AttrIops | object | Attribute Iops: Number of read/write (I/O) operations per second. |
AttrIopsRead | object | Attribute IopsRead: Number of reads per second. |
AttrIopsWrite | object | Attribute IopsWrite: Number of writes per second. |
AttrKmsKeyId | object | Attribute KmsKeyId: The KMS keyId. |
AttrMountInstanceNum | object | Attribute MountInstanceNum: Number of instances mounted on shared storage. |
AttrMountInstances | object | Attribute MountInstances: Disk mount instances. |
AttrMultiAttach | object | Attribute MultiAttach: Whether to enable the multi-Mount feature. |
AttrOperationLocks | object | Attribute OperationLocks: Resource locking information. |
AttrPaymentType | object | Attribute PaymentType: Payment method for disk. |
AttrPerformanceLevel | object | Attribute PerformanceLevel: Performance levels of ESSD cloud disk. |
AttrPortable | object | Attribute Portable: Whether the disk is unmountable. |
AttrProductCode | object | Attribute ProductCode: The product logo of the cloud market. |
AttrProvisionedIops | object | Attribute ProvisionedIops: The preconfigured read and write IOPS of the ESSD AutoPL cloud disk. |
AttrResourceGroupId | object | Attribute ResourceGroupId: The resource group id. |
AttrSize | object | Attribute Size: Disk size. |
AttrSnapshotId | object | Attribute SnapshotId: The source snapshot id. |
AttrStorageClusterId | object | Attribute StorageClusterId: The ID of the dedicated block storage cluster. |
AttrStorageSetId | object | Attribute StorageSetId: The ID of the Save set. |
AttrStorageSetPartitionNumber | object | Attribute StorageSetPartitionNumber: Number of Save set partitions. |
AttrTags | object | Attribute Tags: The tags. |
AttrZoneId | object | Attribute ZoneId: ID of the free zone to which the disk belongs. |
Props | DiskProps | No description. |
NodeRequired
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
EnvRequired
public IResourceEnvironment Env { get; }
- Type: AlibabaCloud.SDK.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 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 object AttrAttachedTime { get; }
- Type: object
Attribute AttachedTime: The attached time.
AttrAutoSnapshotPolicyIdRequired
public object AttrAutoSnapshotPolicyId { get; }
- Type: object
Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID.
AttrBurstingEnabledRequired
public object AttrBurstingEnabled { get; }
- Type: object
Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst).
AttrCategoryRequired
public object AttrCategory { get; }
- Type: object
Attribute Category: Disk type.
AttrCreateTimeRequired
public object AttrCreateTime { get; }
- Type: object
Attribute CreateTime: The creation time.
AttrDeleteAutoSnapshotRequired
public object AttrDeleteAutoSnapshot { get; }
- Type: object
Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time.
AttrDeleteWithInstanceRequired
public object AttrDeleteWithInstance { get; }
- Type: object
Attribute DeleteWithInstance: Whether to release with the instance.
AttrDescriptionRequired
public object AttrDescription { get; }
- Type: object
Attribute Description: The description.
AttrDetachedTimeRequired
public object AttrDetachedTime { get; }
- Type: object
Attribute DetachedTime: Unloading time.
AttrDeviceRequired
public object AttrDevice { get; }
- Type: object
Attribute Device: Cloud disk or the device name of the mounted instance on the site.
AttrDiskIdRequired
public object AttrDiskId { get; }
- Type: object
Attribute DiskId: The disk id.
AttrDiskNameRequired
public object AttrDiskName { get; }
- Type: object
Attribute DiskName: The disk name.
AttrEnableAutomatedSnapshotPolicyRequired
public object AttrEnableAutomatedSnapshotPolicy { get; }
- Type: object
Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy.
AttrEnableAutoSnapshotRequired
public object AttrEnableAutoSnapshot { get; }
- Type: object
Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy.
AttrEncryptedRequired
public object AttrEncrypted { get; }
- Type: object
Attribute Encrypted: Whether the disk is encrypted.
AttrExpiredTimeRequired
public object AttrExpiredTime { get; }
- Type: object
Attribute ExpiredTime: The expiration time of a monthly disk.
AttrImageIdRequired
public object AttrImageId { get; }
- Type: object
Attribute ImageId: The image id.
AttrInstanceIdRequired
public object AttrInstanceId { get; }
- Type: object
Attribute InstanceId: The instance id.
AttrIopsRequired
public object AttrIops { get; }
- Type: object
Attribute Iops: Number of read/write (I/O) operations per second.
AttrIopsReadRequired
public object AttrIopsRead { get; }
- Type: object
Attribute IopsRead: Number of reads per second.
AttrIopsWriteRequired
public object AttrIopsWrite { get; }
- Type: object
Attribute IopsWrite: Number of writes per second.
AttrKmsKeyIdRequired
public object AttrKmsKeyId { get; }
- Type: object
Attribute KmsKeyId: The KMS keyId.
AttrMountInstanceNumRequired
public object AttrMountInstanceNum { get; }
- Type: object
Attribute MountInstanceNum: Number of instances mounted on shared storage.
AttrMountInstancesRequired
public object AttrMountInstances { get; }
- Type: object
Attribute MountInstances: Disk mount instances.
AttrMultiAttachRequired
public object AttrMultiAttach { get; }
- Type: object
Attribute MultiAttach: Whether to enable the multi-Mount feature.
AttrOperationLocksRequired
public object AttrOperationLocks { get; }
- Type: object
Attribute OperationLocks: Resource locking information.
AttrPaymentTypeRequired
public object AttrPaymentType { get; }
- Type: object
Attribute PaymentType: Payment method for disk.
AttrPerformanceLevelRequired
public object AttrPerformanceLevel { get; }
- Type: object
Attribute PerformanceLevel: Performance levels of ESSD cloud disk.
AttrPortableRequired
public object AttrPortable { get; }
- Type: object
Attribute Portable: Whether the disk is unmountable.
AttrProductCodeRequired
public object AttrProductCode { get; }
- Type: object
Attribute ProductCode: The product logo of the cloud market.
AttrProvisionedIopsRequired
public object AttrProvisionedIops { get; }
- Type: object
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 object AttrResourceGroupId { get; }
- Type: object
Attribute ResourceGroupId: The resource group id.
AttrSizeRequired
public object AttrSize { get; }
- Type: object
Attribute Size: Disk size.
AttrSnapshotIdRequired
public object AttrSnapshotId { get; }
- Type: object
Attribute SnapshotId: The source snapshot id.
AttrStorageClusterIdRequired
public object AttrStorageClusterId { get; }
- Type: object
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 object AttrStorageSetId { get; }
- Type: object
Attribute StorageSetId: The ID of the Save set.
AttrStorageSetPartitionNumberRequired
public object AttrStorageSetPartitionNumber { get; }
- Type: object
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 object AttrTags { get; }
- Type: object
Attribute Tags: The tags.
AttrZoneIdRequired
public object AttrZoneId { get; }
- Type: object
Attribute ZoneId: ID of the free zone to which the disk belongs.
PropsRequired
public DiskProps Props { get; }
- Type: DiskProps