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
import { datasource } from '@alicloud/ros-cdk-ecs'
new datasource.Disk(scope: Construct, id: string, props: DiskProps, enableResourcePropertyConstraint?: boolean)
Name | Type | Description |
---|---|---|
scope |
@alicloud/ros-cdk-core.Construct |
No description. |
id |
string |
No description. |
props |
DiskProps |
No description. |
enableResourcePropertyConstraint |
boolean |
No description. |
scope
Required
- Type: @alicloud/ros-cdk-core.Construct
id
Required
- Type: string
props
Required
- Type: DiskProps
enableResourcePropertyConstraint
Optional
- Type: boolean
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 toString(): string
Returns a string representation of this construct.
synthesize
public synthesize(session: ISynthesisSession): void
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: @alicloud/ros-cdk-core.ISynthesisSession
The synthesis session.
addCondition
public addCondition(condition: RosCondition): void
- Type: @alicloud/ros-cdk-core.RosCondition
addCount
public addCount(count: number | IResolvable): void
- Type: number | @alicloud/ros-cdk-core.IResolvable
addDependency
public addDependency(resource: Resource): void
- Type: @alicloud/ros-cdk-core.Resource
addResourceDesc
public addResourceDesc(desc: string): void
- Type: string
applyRemovalPolicy
public applyRemovalPolicy(policy: RemovalPolicy): void
- Type: @alicloud/ros-cdk-core.RemovalPolicy
getAtt
public getAtt(name: string): IResolvable
- Type: string
setMetadata
public setMetadata(key: string, value: any): void
- Type: string
- Type: any
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import { datasource } from '@alicloud/ros-cdk-ecs'
datasource.Disk.isConstruct(x: any)
Return whether the given object is a Construct.
- Type: any
Properties
Name | Type | Description |
---|---|---|
node |
@alicloud/ros-cdk-core.ConstructNode |
The construct tree node associated with this construct. |
ref |
string |
No description. |
stack |
@alicloud/ros-cdk-core.Stack |
The stack in which this resource is defined. |
resource |
@alicloud/ros-cdk-core.RosResource |
No description. |
attrAttachedTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute AttachedTime: The attached time. |
attrAutoSnapshotPolicyId |
@alicloud/ros-cdk-core.IResolvable |
Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID. |
attrBurstingEnabled |
@alicloud/ros-cdk-core.IResolvable |
Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst). |
attrCategory |
@alicloud/ros-cdk-core.IResolvable |
Attribute Category: Disk type. |
attrCreateTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute CreateTime: The creation time. |
attrDeleteAutoSnapshot |
@alicloud/ros-cdk-core.IResolvable |
Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time. |
attrDeleteWithInstance |
@alicloud/ros-cdk-core.IResolvable |
Attribute DeleteWithInstance: Whether to release with the instance. |
attrDescription |
@alicloud/ros-cdk-core.IResolvable |
Attribute Description: The description. |
attrDetachedTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute DetachedTime: Unloading time. |
attrDevice |
@alicloud/ros-cdk-core.IResolvable |
Attribute Device: Cloud disk or the device name of the mounted instance on the site. |
attrDiskId |
@alicloud/ros-cdk-core.IResolvable |
Attribute DiskId: The disk id. |
attrDiskName |
@alicloud/ros-cdk-core.IResolvable |
Attribute DiskName: The disk name. |
attrEnableAutomatedSnapshotPolicy |
@alicloud/ros-cdk-core.IResolvable |
Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy. |
attrEnableAutoSnapshot |
@alicloud/ros-cdk-core.IResolvable |
Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy. |
attrEncrypted |
@alicloud/ros-cdk-core.IResolvable |
Attribute Encrypted: Whether the disk is encrypted. |
attrExpiredTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute ExpiredTime: The expiration time of a monthly disk. |
attrImageId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ImageId: The image id. |
attrInstanceId |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceId: The instance id. |
attrIops |
@alicloud/ros-cdk-core.IResolvable |
Attribute Iops: Number of read/write (I/O) operations per second. |
attrIopsRead |
@alicloud/ros-cdk-core.IResolvable |
Attribute IopsRead: Number of reads per second. |
attrIopsWrite |
@alicloud/ros-cdk-core.IResolvable |
Attribute IopsWrite: Number of writes per second. |
attrKmsKeyId |
@alicloud/ros-cdk-core.IResolvable |
Attribute KmsKeyId: The KMS keyId. |
attrMountInstanceNum |
@alicloud/ros-cdk-core.IResolvable |
Attribute MountInstanceNum: Number of instances mounted on shared storage. |
attrMountInstances |
@alicloud/ros-cdk-core.IResolvable |
Attribute MountInstances: Disk mount instances. |
attrMultiAttach |
@alicloud/ros-cdk-core.IResolvable |
Attribute MultiAttach: Whether to enable the multi-Mount feature. |
attrOperationLocks |
@alicloud/ros-cdk-core.IResolvable |
Attribute OperationLocks: Resource locking information. |
attrPaymentType |
@alicloud/ros-cdk-core.IResolvable |
Attribute PaymentType: Payment method for disk. |
attrPerformanceLevel |
@alicloud/ros-cdk-core.IResolvable |
Attribute PerformanceLevel: Performance levels of ESSD cloud disk. |
attrPortable |
@alicloud/ros-cdk-core.IResolvable |
Attribute Portable: Whether the disk is unmountable. |
attrProductCode |
@alicloud/ros-cdk-core.IResolvable |
Attribute ProductCode: The product logo of the cloud market. |
attrProvisionedIops |
@alicloud/ros-cdk-core.IResolvable |
Attribute ProvisionedIops: The preconfigured read and write IOPS of the ESSD AutoPL cloud disk. |
attrResourceGroupId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ResourceGroupId: The resource group id. |
attrSize |
@alicloud/ros-cdk-core.IResolvable |
Attribute Size: Disk size. |
attrSnapshotId |
@alicloud/ros-cdk-core.IResolvable |
Attribute SnapshotId: The source snapshot id. |
attrStorageClusterId |
@alicloud/ros-cdk-core.IResolvable |
Attribute StorageClusterId: The ID of the dedicated block storage cluster. |
attrStorageSetId |
@alicloud/ros-cdk-core.IResolvable |
Attribute StorageSetId: The ID of the Save set. |
attrStorageSetPartitionNumber |
@alicloud/ros-cdk-core.IResolvable |
Attribute StorageSetPartitionNumber: Number of Save set partitions. |
attrTags |
@alicloud/ros-cdk-core.IResolvable |
Attribute Tags: The tags. |
attrZoneId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ZoneId: ID of the free zone to which the disk belongs. |
node
Required
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public readonly ref: string;
- Type: string
stack
Required
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resource
Optional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrAttachedTime
Required
public readonly attrAttachedTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute AttachedTime: The attached time.
attrAutoSnapshotPolicyId
Required
public readonly attrAutoSnapshotPolicyId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID.
attrBurstingEnabled
Required
public readonly attrBurstingEnabled: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst).
attrCategory
Required
public readonly attrCategory: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Category: Disk type.
attrCreateTime
Required
public readonly attrCreateTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute CreateTime: The creation time.
attrDeleteAutoSnapshot
Required
public readonly attrDeleteAutoSnapshot: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time.
attrDeleteWithInstance
Required
public readonly attrDeleteWithInstance: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DeleteWithInstance: Whether to release with the instance.
attrDescription
Required
public readonly attrDescription: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Description: The description.
attrDetachedTime
Required
public readonly attrDetachedTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DetachedTime: Unloading time.
attrDevice
Required
public readonly attrDevice: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Device: Cloud disk or the device name of the mounted instance on the site.
attrDiskId
Required
public readonly attrDiskId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DiskId: The disk id.
attrDiskName
Required
public readonly attrDiskName: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DiskName: The disk name.
attrEnableAutomatedSnapshotPolicy
Required
public readonly attrEnableAutomatedSnapshotPolicy: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy.
attrEnableAutoSnapshot
Required
public readonly attrEnableAutoSnapshot: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy.
attrEncrypted
Required
public readonly attrEncrypted: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Encrypted: Whether the disk is encrypted.
attrExpiredTime
Required
public readonly attrExpiredTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ExpiredTime: The expiration time of a monthly disk.
attrImageId
Required
public readonly attrImageId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ImageId: The image id.
attrInstanceId
Required
public readonly attrInstanceId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InstanceId: The instance id.
attrIops
Required
public readonly attrIops: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Iops: Number of read/write (I/O) operations per second.
attrIopsRead
Required
public readonly attrIopsRead: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute IopsRead: Number of reads per second.
attrIopsWrite
Required
public readonly attrIopsWrite: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute IopsWrite: Number of writes per second.
attrKmsKeyId
Required
public readonly attrKmsKeyId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute KmsKeyId: The KMS keyId.
attrMountInstanceNum
Required
public readonly attrMountInstanceNum: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute MountInstanceNum: Number of instances mounted on shared storage.
attrMountInstances
Required
public readonly attrMountInstances: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute MountInstances: Disk mount instances.
attrMultiAttach
Required
public readonly attrMultiAttach: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute MultiAttach: Whether to enable the multi-Mount feature.
attrOperationLocks
Required
public readonly attrOperationLocks: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute OperationLocks: Resource locking information.
attrPaymentType
Required
public readonly attrPaymentType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PaymentType: Payment method for disk.
attrPerformanceLevel
Required
public readonly attrPerformanceLevel: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PerformanceLevel: Performance levels of ESSD cloud disk.
attrPortable
Required
public readonly attrPortable: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Portable: Whether the disk is unmountable.
attrProductCode
Required
public readonly attrProductCode: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ProductCode: The product logo of the cloud market.
attrProvisionedIops
Required
public readonly attrProvisionedIops: IResolvable;
- Type: @alicloud/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 readonly attrResourceGroupId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ResourceGroupId: The resource group id.
attrSize
Required
public readonly attrSize: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Size: Disk size.
attrSnapshotId
Required
public readonly attrSnapshotId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute SnapshotId: The source snapshot id.
attrStorageClusterId
Required
public readonly attrStorageClusterId: IResolvable;
- Type: @alicloud/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 readonly attrStorageSetId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute StorageSetId: The ID of the Save set.
attrStorageSetPartitionNumber
Required
public readonly attrStorageSetPartitionNumber: IResolvable;
- Type: @alicloud/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 readonly attrTags: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Tags: The tags.
attrZoneId
Required
public readonly attrZoneId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ZoneId: ID of the free zone to which the disk belongs.