Disk
- Implements: ros_cdk_ecs.datasource.IDisk
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. |
scopeRequired
- Type: ros_cdk_core.Construct
idRequired
- Type: str
disk_idRequired
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property diskId: The disk id.
refresh_optionsOptional
- 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_constraintOptional
- 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. |
fetch_condition | No description. |
fetch_dependency | No description. |
fetch_resource_desc | 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
fetch_condition
def fetch_condition() -> RosCondition
fetch_dependency
def fetch_dependency() -> typing.List[str]
fetch_resource_desc
def fetch_resource_desc() -> str
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. |
env | ros_cdk_core.IResourceEnvironment | The environment this resource belongs to. |
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 | typing.Union[str, ros_cdk_core.IResolvable] | Attribute AttachedTime: The attached time. |
attr_auto_snapshot_policy_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID. |
attr_bursting_enabled | typing.Union[str, ros_cdk_core.IResolvable] | Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst). |
attr_category | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Category: Disk type. |
attr_create_time | typing.Union[str, ros_cdk_core.IResolvable] | Attribute CreateTime: The creation time. |
attr_delete_auto_snapshot | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time. |
attr_delete_with_instance | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DeleteWithInstance: Whether to release with the instance. |
attr_description | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Description: The description. |
attr_detached_time | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DetachedTime: Unloading time. |
attr_device | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Device: Cloud disk or the device name of the mounted instance on the site. |
attr_disk_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DiskId: The disk id. |
attr_disk_name | typing.Union[str, ros_cdk_core.IResolvable] | Attribute DiskName: The disk name. |
attr_enable_automated_snapshot_policy | typing.Union[str, ros_cdk_core.IResolvable] | Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy. |
attr_enable_auto_snapshot | typing.Union[str, ros_cdk_core.IResolvable] | Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy. |
attr_encrypted | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Encrypted: Whether the disk is encrypted. |
attr_expired_time | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ExpiredTime: The expiration time of a monthly disk. |
attr_image_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ImageId: The image id. |
attr_instance_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute InstanceId: The instance id. |
attr_iops | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Iops: Number of read/write (I/O) operations per second. |
attr_iops_read | typing.Union[str, ros_cdk_core.IResolvable] | Attribute IopsRead: Number of reads per second. |
attr_iops_write | typing.Union[str, ros_cdk_core.IResolvable] | Attribute IopsWrite: Number of writes per second. |
attr_kms_key_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute KmsKeyId: The KMS keyId. |
attr_mount_instance_num | typing.Union[str, ros_cdk_core.IResolvable] | Attribute MountInstanceNum: Number of instances mounted on shared storage. |
attr_mount_instances | typing.Union[str, ros_cdk_core.IResolvable] | Attribute MountInstances: Disk mount instances. |
attr_multi_attach | typing.Union[str, ros_cdk_core.IResolvable] | Attribute MultiAttach: Whether to enable the multi-Mount feature. |
attr_operation_locks | typing.Union[str, ros_cdk_core.IResolvable] | Attribute OperationLocks: Resource locking information. |
attr_payment_type | typing.Union[str, ros_cdk_core.IResolvable] | Attribute PaymentType: Payment method for disk. |
attr_performance_level | typing.Union[str, ros_cdk_core.IResolvable] | Attribute PerformanceLevel: Performance levels of ESSD cloud disk. |
attr_portable | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Portable: Whether the disk is unmountable. |
attr_product_code | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ProductCode: The product logo of the cloud market. |
attr_provisioned_iops | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ProvisionedIops: The preconfigured read and write IOPS of the ESSD AutoPL cloud disk. |
attr_resource_group_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ResourceGroupId: The resource group id. |
attr_size | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Size: Disk size. |
attr_snapshot_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute SnapshotId: The source snapshot id. |
attr_storage_cluster_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute StorageClusterId: The ID of the dedicated block storage cluster. |
attr_storage_set_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute StorageSetId: The ID of the Save set. |
attr_storage_set_partition_number | typing.Union[str, ros_cdk_core.IResolvable] | Attribute StorageSetPartitionNumber: Number of Save set partitions. |
attr_tags | typing.Union[str, ros_cdk_core.IResolvable] | Attribute Tags: The tags. |
attr_zone_id | typing.Union[str, ros_cdk_core.IResolvable] | Attribute ZoneId: ID of the free zone to which the disk belongs. |
props | DiskProps | No description. |
nodeRequired
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
The construct tree node associated with this construct.
envRequired
env: IResourceEnvironment
- Type: 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
ref: str
- Type: str
stackRequired
stack: Stack
- Type: ros_cdk_core.Stack
The stack in which this resource is defined.
resourceOptional
resource: RosResource
- Type: ros_cdk_core.RosResource
attr_attached_timeRequired
attr_attached_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute AttachedTime: The attached time.
attr_auto_snapshot_policy_idRequired
attr_auto_snapshot_policy_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute AutoSnapshotPolicyId: Automatic snapshot policy ID.
attr_bursting_enabledRequired
attr_bursting_enabled: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute BurstingEnabled: Does the data disk turn on Burst (performance Burst).
attr_categoryRequired
attr_category: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Category: Disk type.
attr_create_timeRequired
attr_create_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute CreateTime: The creation time.
attr_delete_auto_snapshotRequired
attr_delete_auto_snapshot: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DeleteAutoSnapshot: Whether to delete automatic snapshots at the same time.
attr_delete_with_instanceRequired
attr_delete_with_instance: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DeleteWithInstance: Whether to release with the instance.
attr_descriptionRequired
attr_description: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Description: The description.
attr_detached_timeRequired
attr_detached_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DetachedTime: Unloading time.
attr_deviceRequired
attr_device: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Device: Cloud disk or the device name of the mounted instance on the site.
attr_disk_idRequired
attr_disk_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DiskId: The disk id.
attr_disk_nameRequired
attr_disk_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute DiskName: The disk name.
attr_enable_automated_snapshot_policyRequired
attr_enable_automated_snapshot_policy: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute EnableAutomatedSnapshotPolicy: Whether the disk implements an automatic snapshot policy.
attr_enable_auto_snapshotRequired
attr_enable_auto_snapshot: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute EnableAutoSnapshot: Whether the disk implements an automatic snapshot policy.
attr_encryptedRequired
attr_encrypted: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Encrypted: Whether the disk is encrypted.
attr_expired_timeRequired
attr_expired_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ExpiredTime: The expiration time of a monthly disk.
attr_image_idRequired
attr_image_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ImageId: The image id.
attr_instance_idRequired
attr_instance_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute InstanceId: The instance id.
attr_iopsRequired
attr_iops: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Iops: Number of read/write (I/O) operations per second.
attr_iops_readRequired
attr_iops_read: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute IopsRead: Number of reads per second.
attr_iops_writeRequired
attr_iops_write: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute IopsWrite: Number of writes per second.
attr_kms_key_idRequired
attr_kms_key_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute KmsKeyId: The KMS keyId.
attr_mount_instance_numRequired
attr_mount_instance_num: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute MountInstanceNum: Number of instances mounted on shared storage.
attr_mount_instancesRequired
attr_mount_instances: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute MountInstances: Disk mount instances.
attr_multi_attachRequired
attr_multi_attach: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute MultiAttach: Whether to enable the multi-Mount feature.
attr_operation_locksRequired
attr_operation_locks: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute OperationLocks: Resource locking information.
attr_payment_typeRequired
attr_payment_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute PaymentType: Payment method for disk.
attr_performance_levelRequired
attr_performance_level: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute PerformanceLevel: Performance levels of ESSD cloud disk.
attr_portableRequired
attr_portable: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Portable: Whether the disk is unmountable.
attr_product_codeRequired
attr_product_code: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ProductCode: The product logo of the cloud market.
attr_provisioned_iopsRequired
attr_provisioned_iops: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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_idRequired
attr_resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ResourceGroupId: The resource group id.
attr_sizeRequired
attr_size: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Size: Disk size.
attr_snapshot_idRequired
attr_snapshot_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute SnapshotId: The source snapshot id.
attr_storage_cluster_idRequired
attr_storage_cluster_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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_idRequired
attr_storage_set_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute StorageSetId: The ID of the Save set.
attr_storage_set_partition_numberRequired
attr_storage_set_partition_number: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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_tagsRequired
attr_tags: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute Tags: The tags.
attr_zone_idRequired
attr_zone_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Attribute ZoneId: ID of the free zone to which the disk belongs.
propsRequired
props: DiskProps
- Type: DiskProps