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
from ros_cdk_ecs import datasource
datasource.Disk(
scope: Construct,
id: str,
disk_id: typing.Union[str, IResolvable],
refresh_options: typing.Union[str, IResolvable] = None,
enable_resource_property_constraint: bool = None
)
Name | Type | Description |
---|---|---|
scope |
ros_cdk_core.Construct |
No description. |
id |
str |
No description. |
disk_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property diskId: The disk id. |
refresh_options |
typing.Union[str, ros_cdk_core.IResolvable] |
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
enable_resource_property_constraint |
bool |
No description. |
scope
Required
- Type: ros_cdk_core.Construct
id
Required
- Type: str
disk_id
Required
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property diskId: The disk id.
refresh_options
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
enable_resource_property_constraint
Optional
- Type: bool
Methods
Name | Description |
---|---|
to_string |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
add_condition |
No description. |
add_count |
No description. |
add_dependency |
No description. |
add_resource_desc |
No description. |
apply_removal_policy |
No description. |
get_att |
No description. |
set_metadata |
No description. |
to_string
def to_string() -> str
Returns a string representation of this construct.
synthesize
def synthesize(
session: ISynthesisSession
) -> None
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: ros_cdk_core.ISynthesisSession
The synthesis session.
add_condition
def add_condition(
condition: RosCondition
) -> None
- Type: ros_cdk_core.RosCondition
add_count
def add_count(
count: typing.Union[typing.Union[int, float], IResolvable]
) -> None
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
add_dependency
def add_dependency(
resource: Resource
) -> None
- Type: ros_cdk_core.Resource
add_resource_desc
def add_resource_desc(
desc: str
) -> None
- Type: str
apply_removal_policy
def apply_removal_policy(
policy: RemovalPolicy
) -> None
- Type: ros_cdk_core.RemovalPolicy
get_att
def get_att(
name: str
) -> IResolvable
- Type: str
set_metadata
def set_metadata(
key: str,
value: typing.Any
) -> None
- Type: str
- Type: typing.Any
Static Functions
Name | Description |
---|---|
is_construct |
Return whether the given object is a Construct. |
is_construct
from ros_cdk_ecs import datasource
datasource.Disk.is_construct(
x: typing.Any
)
Return whether the given object is a Construct.
- Type: typing.Any
Properties
Name | Type | Description |
---|---|---|
node |
ros_cdk_core.ConstructNode |
The construct tree node associated with this construct. |
ref |
str |
No description. |
stack |
ros_cdk_core.Stack |
The stack in which this resource is defined. |
resource |
ros_cdk_core.RosResource |
No description. |
attr_attached_time |
ros_cdk_core.IResolvable |
Attribute AttachedTime: The attached time. |
attr_auto_snapshot_policy_id |
ros_cdk_core.IResolvable |
Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID. |
attr_bursting_enabled |
ros_cdk_core.IResolvable |
Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst). |
attr_category |
ros_cdk_core.IResolvable |
Attribute Category: Disk type. |
attr_create_time |
ros_cdk_core.IResolvable |
Attribute CreateTime: The creation time. |
attr_delete_auto_snapshot |
ros_cdk_core.IResolvable |
Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time. |
attr_delete_with_instance |
ros_cdk_core.IResolvable |
Attribute DeleteWithInstance: Whether to release with the instance. |
attr_description |
ros_cdk_core.IResolvable |
Attribute Description: The description. |
attr_detached_time |
ros_cdk_core.IResolvable |
Attribute DetachedTime: Unloading time. |
attr_device |
ros_cdk_core.IResolvable |
Attribute Device: Cloud disk or the device name of the mounted instance on the site. |
attr_disk_id |
ros_cdk_core.IResolvable |
Attribute DiskId: The disk id. |
attr_disk_name |
ros_cdk_core.IResolvable |
Attribute DiskName: The disk name. |
attr_enable_automated_snapshot_policy |
ros_cdk_core.IResolvable |
Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy. |
attr_enable_auto_snapshot |
ros_cdk_core.IResolvable |
Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy. |
attr_encrypted |
ros_cdk_core.IResolvable |
Attribute Encrypted: Whether the disk is encrypted. |
attr_expired_time |
ros_cdk_core.IResolvable |
Attribute ExpiredTime: The expiration time of a monthly disk. |
attr_image_id |
ros_cdk_core.IResolvable |
Attribute ImageId: The image id. |
attr_instance_id |
ros_cdk_core.IResolvable |
Attribute InstanceId: The instance id. |
attr_iops |
ros_cdk_core.IResolvable |
Attribute Iops: Number of read/write (I/O) operations per second. |
attr_iops_read |
ros_cdk_core.IResolvable |
Attribute IopsRead: Number of reads per second. |
attr_iops_write |
ros_cdk_core.IResolvable |
Attribute IopsWrite: Number of writes per second. |
attr_kms_key_id |
ros_cdk_core.IResolvable |
Attribute KmsKeyId: The KMS keyId. |
attr_mount_instance_num |
ros_cdk_core.IResolvable |
Attribute MountInstanceNum: Number of instances mounted on shared storage. |
attr_mount_instances |
ros_cdk_core.IResolvable |
Attribute MountInstances: Disk mount instances. |
attr_multi_attach |
ros_cdk_core.IResolvable |
Attribute MultiAttach: Whether to enable the multi-Mount feature. |
attr_operation_locks |
ros_cdk_core.IResolvable |
Attribute OperationLocks: Resource locking information. |
attr_payment_type |
ros_cdk_core.IResolvable |
Attribute PaymentType: Payment method for disk. |
attr_performance_level |
ros_cdk_core.IResolvable |
Attribute PerformanceLevel: Performance levels of ESSD cloud disk. |
attr_portable |
ros_cdk_core.IResolvable |
Attribute Portable: Whether the disk is unmountable. |
attr_product_code |
ros_cdk_core.IResolvable |
Attribute ProductCode: The product logo of the cloud market. |
attr_provisioned_iops |
ros_cdk_core.IResolvable |
Attribute ProvisionedIops: The preconfigured read and write IOPS of the ESSD AutoPL cloud disk. |
attr_resource_group_id |
ros_cdk_core.IResolvable |
Attribute ResourceGroupId: The resource group id. |
attr_size |
ros_cdk_core.IResolvable |
Attribute Size: Disk size. |
attr_snapshot_id |
ros_cdk_core.IResolvable |
Attribute SnapshotId: The source snapshot id. |
attr_storage_cluster_id |
ros_cdk_core.IResolvable |
Attribute StorageClusterId: The ID of the dedicated block storage cluster. |
attr_storage_set_id |
ros_cdk_core.IResolvable |
Attribute StorageSetId: The ID of the Save set. |
attr_storage_set_partition_number |
ros_cdk_core.IResolvable |
Attribute StorageSetPartitionNumber: Number of Save set partitions. |
attr_tags |
ros_cdk_core.IResolvable |
Attribute Tags: The tags. |
attr_zone_id |
ros_cdk_core.IResolvable |
Attribute ZoneId: ID of the free zone to which the disk belongs. |
node
Required
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
The construct tree node associated with this construct.
ref
Required
ref: str
- Type: str
stack
Required
stack: Stack
- Type: ros_cdk_core.Stack
The stack in which this resource is defined.
resource
Optional
resource: RosResource
- Type: ros_cdk_core.RosResource
attr_attached_time
Required
attr_attached_time: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute AttachedTime: The attached time.
attr_auto_snapshot_policy_id
Required
attr_auto_snapshot_policy_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID.
attr_bursting_enabled
Required
attr_bursting_enabled: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst).
attr_category
Required
attr_category: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Category: Disk type.
attr_create_time
Required
attr_create_time: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute CreateTime: The creation time.
attr_delete_auto_snapshot
Required
attr_delete_auto_snapshot: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time.
attr_delete_with_instance
Required
attr_delete_with_instance: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DeleteWithInstance: Whether to release with the instance.
attr_description
Required
attr_description: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Description: The description.
attr_detached_time
Required
attr_detached_time: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DetachedTime: Unloading time.
attr_device
Required
attr_device: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Device: Cloud disk or the device name of the mounted instance on the site.
attr_disk_id
Required
attr_disk_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DiskId: The disk id.
attr_disk_name
Required
attr_disk_name: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DiskName: The disk name.
attr_enable_automated_snapshot_policy
Required
attr_enable_automated_snapshot_policy: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy.
attr_enable_auto_snapshot
Required
attr_enable_auto_snapshot: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy.
attr_encrypted
Required
attr_encrypted: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Encrypted: Whether the disk is encrypted.
attr_expired_time
Required
attr_expired_time: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ExpiredTime: The expiration time of a monthly disk.
attr_image_id
Required
attr_image_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ImageId: The image id.
attr_instance_id
Required
attr_instance_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute InstanceId: The instance id.
attr_iops
Required
attr_iops: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Iops: Number of read/write (I/O) operations per second.
attr_iops_read
Required
attr_iops_read: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute IopsRead: Number of reads per second.
attr_iops_write
Required
attr_iops_write: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute IopsWrite: Number of writes per second.
attr_kms_key_id
Required
attr_kms_key_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute KmsKeyId: The KMS keyId.
attr_mount_instance_num
Required
attr_mount_instance_num: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute MountInstanceNum: Number of instances mounted on shared storage.
attr_mount_instances
Required
attr_mount_instances: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute MountInstances: Disk mount instances.
attr_multi_attach
Required
attr_multi_attach: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute MultiAttach: Whether to enable the multi-Mount feature.
attr_operation_locks
Required
attr_operation_locks: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute OperationLocks: Resource locking information.
attr_payment_type
Required
attr_payment_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute PaymentType: Payment method for disk.
attr_performance_level
Required
attr_performance_level: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute PerformanceLevel: Performance levels of ESSD cloud disk.
attr_portable
Required
attr_portable: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Portable: Whether the disk is unmountable.
attr_product_code
Required
attr_product_code: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ProductCode: The product logo of the cloud market.
attr_provisioned_iops
Required
attr_provisioned_iops: IResolvable
- Type: 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}.
attr_resource_group_id
Required
attr_resource_group_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ResourceGroupId: The resource group id.
attr_size
Required
attr_size: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Size: Disk size.
attr_snapshot_id
Required
attr_snapshot_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute SnapshotId: The source snapshot id.
attr_storage_cluster_id
Required
attr_storage_cluster_id: IResolvable
- Type: 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.
attr_storage_set_id
Required
attr_storage_set_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute StorageSetId: The ID of the Save set.
attr_storage_set_partition_number
Required
attr_storage_set_partition_number: IResolvable
- Type: 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.
attr_tags
Required
attr_tags: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Tags: The tags.
attr_zone_id
Required
attr_zone_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ZoneId: ID of the free zone to which the disk belongs.