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