DiskReplicaPair
This class encapsulates and extends the ROS resource type ALIYUN::EBS::DiskReplicaPair, which is used to create a replication pair.
Initializers
import ros_cdk_ebs
ros_cdk_ebs.DiskReplicaPair(
scope: Construct,
id: str,
destination_disk_id: typing.Union[str, IResolvable],
destination_region_id: typing.Union[str, IResolvable],
destination_zone_id: typing.Union[str, IResolvable],
disk_id: typing.Union[str, IResolvable],
source_zone_id: typing.Union[str, IResolvable],
bandwidth: typing.Union[typing.Union[int, float], IResolvable] = None,
description: typing.Union[str, IResolvable] = None,
disk_replica_pair_name: typing.Union[str, IResolvable] = None,
payment_type: typing.Union[str, IResolvable] = None,
period: typing.Union[typing.Union[int, float], IResolvable] = None,
period_unit: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
rpo: typing.Union[typing.Union[int, float], IResolvable] = None,
tags: typing.List[TagsProperty] = None,
enable_resource_property_constraint: bool = None
)
| Name | Type | Description |
|---|---|---|
scope |
ros_cdk_core.Construct |
No description. |
id |
str |
No description. |
destination_disk_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property destinationDiskId: The ID of the standby disk. |
destination_region_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property destinationRegionId: The ID of the region to which the disaster recovery site belongs. |
destination_zone_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property destinationZoneId: The ID of the zone to which the disaster recovery site belongs. |
disk_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property diskId: The ID of the primary disk. |
source_zone_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property sourceZoneId: The ID of the zone to which the production site belongs. |
bandwidth |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property bandwidth: The bandwidth for asynchronous data replication between cloud disks. |
description |
typing.Union[str, ros_cdk_core.IResolvable] |
Property description: The description of the asynchronous replication relationship. |
disk_replica_pair_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property diskReplicaPairName: The name of the asynchronous replication relationship. |
payment_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property paymentType: The payment type of the resource. |
period |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property period: The purchase duration of the asynchronous replication relationship. |
period_unit |
typing.Union[str, ros_cdk_core.IResolvable] |
Property periodUnit: The unit of the purchase time of the asynchronous replication relationship. |
resource_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property resourceGroupId: The ID of the resource group. |
rpo |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property rpo: The RPO value set by the consistency group in seconds. |
tags |
typing.List[TagsProperty] |
Property tags: Tags of disk replica pair. |
enable_resource_property_constraint |
bool |
No description. |
scopeRequired
- Type: ros_cdk_core.Construct
idRequired
- Type: str
destination_disk_idRequired
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property destinationDiskId: The ID of the standby disk.
destination_region_idRequired
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property destinationRegionId: The ID of the region to which the disaster recovery site belongs.
destination_zone_idRequired
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property destinationZoneId: The ID of the zone to which the disaster recovery site belongs.
disk_idRequired
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property diskId: The ID of the primary disk.
source_zone_idRequired
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property sourceZoneId: The ID of the zone to which the production site belongs.
bandwidthOptional
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property bandwidth: The bandwidth for asynchronous data replication between cloud disks.
The unit is Kbps. Value range:
- 10240 Kbps: equal to 10 Mbps.
- 20480 Kbps: equal to 20 Mbps.
- 51200 Kbps: equal to 50 Mbps.
- 102400 Kbps: equal to 100 Mbps. Default value: 10240. This parameter cannot be specified when the ChargeType value is PayAsYouGo The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
descriptionOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property description: The description of the asynchronous replication relationship.
2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
disk_replica_pair_nameOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property diskReplicaPairName: The name of the asynchronous replication relationship.
The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
payment_typeOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property paymentType: The payment type of the resource.
periodOptional
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property period: The purchase duration of the asynchronous replication relationship.
This parameter is required when 'ChargeType = PrePay. The duration unit is specified by'periodunit', and the value range is:
- When 'PeriodUnit = Month', the value range of this parameter is 1, 2, 3, 6, 12, 24, 36, 60.
period_unitOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property periodUnit: The unit of the purchase time of the asynchronous replication relationship.
Value range:
- Month.Default value: Month.
resource_group_idOptional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: The ID of the resource group.
rpoOptional
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property rpo: The RPO value set by the consistency group in seconds.
Currently only 900 seconds are supported.
tagsOptional
- Type: typing.List[TagsProperty]
Property tags: Tags of disk replica pair.
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. |
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
import ros_cdk_ebs
ros_cdk_ebs.DiskReplicaPair.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_bandwidth |
ros_cdk_core.IResolvable |
Attribute Bandwidth: The bandwidth for asynchronous data replication between cloud disks. |
attr_create_time |
ros_cdk_core.IResolvable |
Attribute CreateTime: The creation time of the resource. |
attr_description |
ros_cdk_core.IResolvable |
Attribute Description: The description of the asynchronous replication relationship. |
attr_destination_disk_id |
ros_cdk_core.IResolvable |
Attribute DestinationDiskId: The ID of the standby disk. |
attr_destination_region_id |
ros_cdk_core.IResolvable |
Attribute DestinationRegionId: The ID of the region to which the disaster recovery site belongs. |
attr_destination_zone_id |
ros_cdk_core.IResolvable |
Attribute DestinationZoneId: The ID of the zone to which the disaster recovery site belongs. |
attr_disk_id |
ros_cdk_core.IResolvable |
Attribute DiskId: The ID of the primary disk. |
attr_disk_replica_pair_name |
ros_cdk_core.IResolvable |
Attribute DiskReplicaPairName: The name of the asynchronous replication relationship. |
attr_payment_type |
ros_cdk_core.IResolvable |
Attribute PaymentType: The payment type of the resource. |
attr_replica_pair_id |
ros_cdk_core.IResolvable |
Attribute ReplicaPairId: The ID of the disk replica pair. |
attr_resource_group_id |
ros_cdk_core.IResolvable |
Attribute ResourceGroupId: The ID of the resource group. |
attr_rpo |
ros_cdk_core.IResolvable |
Attribute RPO: The RPO value set by the consistency group in seconds. |
attr_source_zone_id |
ros_cdk_core.IResolvable |
Attribute SourceZoneId: The ID of the zone to which the production site belongs. |
attr_tags |
ros_cdk_core.IResolvable |
Attribute Tags: The tags of the disk replica pair. |
nodeRequired
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
The construct tree node associated with this construct.
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_bandwidthRequired
attr_bandwidth: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Bandwidth: The bandwidth for asynchronous data replication between cloud disks.
attr_create_timeRequired
attr_create_time: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute CreateTime: The creation time of the resource.
attr_descriptionRequired
attr_description: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Description: The description of the asynchronous replication relationship.
attr_destination_disk_idRequired
attr_destination_disk_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DestinationDiskId: The ID of the standby disk.
attr_destination_region_idRequired
attr_destination_region_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DestinationRegionId: The ID of the region to which the disaster recovery site belongs.
attr_destination_zone_idRequired
attr_destination_zone_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DestinationZoneId: The ID of the zone to which the disaster recovery site belongs.
attr_disk_idRequired
attr_disk_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DiskId: The ID of the primary disk.
attr_disk_replica_pair_nameRequired
attr_disk_replica_pair_name: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute DiskReplicaPairName: The name of the asynchronous replication relationship.
attr_payment_typeRequired
attr_payment_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute PaymentType: The payment type of the resource.
attr_replica_pair_idRequired
attr_replica_pair_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ReplicaPairId: The ID of the disk replica pair.
attr_resource_group_idRequired
attr_resource_group_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ResourceGroupId: The ID of the resource group.
attr_rpoRequired
attr_rpo: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute RPO: The RPO value set by the consistency group in seconds.
attr_source_zone_idRequired
attr_source_zone_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute SourceZoneId: The ID of the zone to which the production site belongs.
attr_tagsRequired
attr_tags: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Tags: The tags of the disk replica pair.