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

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
datasource.NewDisk(scope Construct, id *string, props DiskProps, enableResourcePropertyConstraint *bool) Disk
Name Type Description
scope github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct No description.
id *string No description.
props DiskProps No description.
enableResourcePropertyConstraint *bool No description.

scopeRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func ToString() *string

Returns a string representation of this construct.

Synthesize

func Synthesize(session ISynthesisSession)

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: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession

The synthesis session.


AddCondition

func AddCondition(condition RosCondition)

conditionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition

AddCount

func AddCount(count interface{})

countRequired

  • Type: interface{}

AddDependency

func AddDependency(resource Resource)

resourceRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource

AddResourceDesc

func AddResourceDesc(desc *string)

descRequired

  • Type: *string

ApplyRemovalPolicy

func ApplyRemovalPolicy(policy RemovalPolicy)

policyRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy

GetAtt

func GetAtt(name *string) IResolvable

nameRequired

  • Type: *string

SetMetadata

func SetMetadata(key *string, value interface{})

keyRequired

  • Type: *string

valueRequired

  • Type: interface{}

Static Functions

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

IsConstruct

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
datasource.Disk_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

xRequired

  • Type: interface{}

Properties

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

NodeRequired

func Node() ConstructNode
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode

The construct tree node associated with this construct.


RefRequired

func Ref() *string
  • Type: *string

StackRequired

func Stack() Stack
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack

The stack in which this resource is defined.


ResourceOptional

func Resource() RosResource
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource

AttrAttachedTimeRequired

func AttrAttachedTime() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute AttachedTime: The attached time.


AttrAutoSnapshotPolicyIdRequired

func AttrAutoSnapshotPolicyId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID.


AttrBurstingEnabledRequired

func AttrBurstingEnabled() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrCategoryRequired

func AttrCategory() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Category: Disk type.


AttrCreateTimeRequired

func AttrCreateTime() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute CreateTime: The creation time.


AttrDeleteAutoSnapshotRequired

func AttrDeleteAutoSnapshot() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrDeleteWithInstanceRequired

func AttrDeleteWithInstance() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute DeleteWithInstance: Whether to release with the instance.


AttrDescriptionRequired

func AttrDescription() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Description: The description.


AttrDetachedTimeRequired

func AttrDetachedTime() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute DetachedTime: Unloading time.


AttrDeviceRequired

func AttrDevice() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrDiskIdRequired

func AttrDiskId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute DiskId: The disk id.


AttrDiskNameRequired

func AttrDiskName() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute DiskName: The disk name.


AttrEnableAutomatedSnapshotPolicyRequired

func AttrEnableAutomatedSnapshotPolicy() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrEnableAutoSnapshotRequired

func AttrEnableAutoSnapshot() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrEncryptedRequired

func AttrEncrypted() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Encrypted: Whether the disk is encrypted.


AttrExpiredTimeRequired

func AttrExpiredTime() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ExpiredTime: The expiration time of a monthly disk.


AttrImageIdRequired

func AttrImageId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ImageId: The image id.


AttrInstanceIdRequired

func AttrInstanceId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute InstanceId: The instance id.


AttrIopsRequired

func AttrIops() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrIopsReadRequired

func AttrIopsRead() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute IopsRead: Number of reads per second.


AttrIopsWriteRequired

func AttrIopsWrite() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute IopsWrite: Number of writes per second.


AttrKmsKeyIdRequired

func AttrKmsKeyId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute KmsKeyId: The KMS keyId.


AttrMountInstanceNumRequired

func AttrMountInstanceNum() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute MountInstanceNum: Number of instances mounted on shared storage.


AttrMountInstancesRequired

func AttrMountInstances() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute MountInstances: Disk mount instances.


AttrMultiAttachRequired

func AttrMultiAttach() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrOperationLocksRequired

func AttrOperationLocks() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute OperationLocks: Resource locking information.


AttrPaymentTypeRequired

func AttrPaymentType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute PaymentType: Payment method for disk.


AttrPerformanceLevelRequired

func AttrPerformanceLevel() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute PerformanceLevel: Performance levels of ESSD cloud disk.


AttrPortableRequired

func AttrPortable() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Portable: Whether the disk is unmountable.


AttrProductCodeRequired

func AttrProductCode() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ProductCode: The product logo of the cloud market.


AttrProvisionedIopsRequired

func AttrProvisionedIops() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func AttrResourceGroupId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ResourceGroupId: The resource group id.


AttrSizeRequired

func AttrSize() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Size: Disk size.


AttrSnapshotIdRequired

func AttrSnapshotId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute SnapshotId: The source snapshot id.


AttrStorageClusterIdRequired

func AttrStorageClusterId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func AttrStorageSetId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute StorageSetId: The ID of the Save set.


AttrStorageSetPartitionNumberRequired

func AttrStorageSetPartitionNumber() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func AttrTags() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Tags: The tags.


AttrZoneIdRequired

func AttrZoneId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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