DiskReplicaPair
This class encapsulates and extends the ROS resource type ALIYUN::EBS::DiskReplicaPair
, which is used to create a replication pair.
Initializers
import com.aliyun.ros.cdk.ebs.DiskReplicaPair;
DiskReplicaPair.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.destinationDiskId(java.lang.String)
.destinationDiskId(IResolvable)
.destinationRegionId(java.lang.String)
.destinationRegionId(IResolvable)
.destinationZoneId(java.lang.String)
.destinationZoneId(IResolvable)
.diskId(java.lang.String)
.diskId(IResolvable)
.sourceZoneId(java.lang.String)
.sourceZoneId(IResolvable)
// .bandwidth(java.lang.Number)
// .bandwidth(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .diskReplicaPairName(java.lang.String)
// .diskReplicaPairName(IResolvable)
// .paymentType(java.lang.String)
// .paymentType(IResolvable)
// .period(java.lang.Number)
// .period(IResolvable)
// .periodUnit(java.lang.String)
// .periodUnit(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .rpo(java.lang.Number)
// .rpo(IResolvable)
// .tags(java.util.List<TagsProperty>)
.build();
Name | Type | Description |
---|---|---|
scope |
com.aliyun.ros.cdk.core.Construct |
No description. |
id |
java.lang.String |
No description. |
enableResourcePropertyConstraint |
java.lang.Boolean |
No description. |
destinationDiskId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property destinationDiskId: The ID of the standby disk. |
destinationRegionId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property destinationRegionId: The ID of the region to which the disaster recovery site belongs. |
destinationZoneId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property destinationZoneId: The ID of the zone to which the disaster recovery site belongs. |
diskId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property diskId: The ID of the primary disk. |
sourceZoneId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property sourceZoneId: The ID of the zone to which the production site belongs. |
bandwidth |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property bandwidth: The bandwidth for asynchronous data replication between cloud disks. |
description |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property description: The description of the asynchronous replication relationship. |
diskReplicaPairName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property diskReplicaPairName: The name of the asynchronous replication relationship. |
paymentType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property paymentType: The payment type of the resource. |
period |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property period: The purchase duration of the asynchronous replication relationship. |
periodUnit |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property periodUnit: The unit of the purchase time of the asynchronous replication relationship. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: The ID of the resource group. |
rpo |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property rpo: The RPO value set by the consistency group in seconds. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags of disk replica pair. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
destinationDiskId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationDiskId: The ID of the standby disk.
destinationRegionId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationRegionId: The ID of the region to which the disaster recovery site belongs.
destinationZoneId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationZoneId: The ID of the zone to which the disaster recovery site belongs.
diskId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property diskId: The ID of the primary disk.
sourceZoneId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourceZoneId: The ID of the zone to which the production site belongs.
bandwidth
Optional
- Type: java.lang.Number OR com.aliyun.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.
description
Optional
- Type: java.lang.String OR com.aliyun.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.
diskReplicaPairName
Optional
- Type: java.lang.String OR com.aliyun.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 (-).
paymentType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property paymentType: The payment type of the resource.
period
Optional
- Type: java.lang.Number OR com.aliyun.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.
periodUnit
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property periodUnit: The unit of the purchase time of the asynchronous replication relationship.
Value range:
- Month.Default value: Month.
resourceGroupId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of the resource group.
rpo
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property rpo: The RPO value set by the consistency group in seconds.
Currently only 900 seconds are supported.
tags
Optional
- Type: java.util.List<TagsProperty>
Property tags: Tags of disk replica pair.
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
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
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: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.ebs.DiskReplicaPair;
DiskReplicaPair.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
Name | Type | Description |
---|---|---|
node |
com.aliyun.ros.cdk.core.ConstructNode |
The construct tree node associated with this construct. |
ref |
java.lang.String |
No description. |
stack |
com.aliyun.ros.cdk.core.Stack |
The stack in which this resource is defined. |
resource |
com.aliyun.ros.cdk.core.RosResource |
No description. |
attrBandwidth |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Bandwidth: The bandwidth for asynchronous data replication between cloud disks. |
attrCreateTime |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CreateTime: The creation time of the resource. |
attrDescription |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Description: The description of the asynchronous replication relationship. |
attrDestinationDiskId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DestinationDiskId: The ID of the standby disk. |
attrDestinationRegionId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DestinationRegionId: The ID of the region to which the disaster recovery site belongs. |
attrDestinationZoneId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DestinationZoneId: The ID of the zone to which the disaster recovery site belongs. |
attrDiskId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DiskId: The ID of the primary disk. |
attrDiskReplicaPairName |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DiskReplicaPairName: The name of the asynchronous replication relationship. |
attrPaymentType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PaymentType: The payment type of the resource. |
attrReplicaPairId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ReplicaPairId: The ID of the disk replica pair. |
attrResourceGroupId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ResourceGroupId: The ID of the resource group. |
attrRpo |
com.aliyun.ros.cdk.core.IResolvable |
Attribute RPO: The RPO value set by the consistency group in seconds. |
attrSourceZoneId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute SourceZoneId: The ID of the zone to which the production site belongs. |
attrTags |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Tags: The tags of the disk replica pair. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrBandwidth
Required
public IResolvable getAttrBandwidth();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Bandwidth: The bandwidth for asynchronous data replication between cloud disks.
attrCreateTime
Required
public IResolvable getAttrCreateTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CreateTime: The creation time of the resource.
attrDescription
Required
public IResolvable getAttrDescription();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Description: The description of the asynchronous replication relationship.
attrDestinationDiskId
Required
public IResolvable getAttrDestinationDiskId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DestinationDiskId: The ID of the standby disk.
attrDestinationRegionId
Required
public IResolvable getAttrDestinationRegionId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DestinationRegionId: The ID of the region to which the disaster recovery site belongs.
attrDestinationZoneId
Required
public IResolvable getAttrDestinationZoneId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DestinationZoneId: The ID of the zone to which the disaster recovery site belongs.
attrDiskId
Required
public IResolvable getAttrDiskId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DiskId: The ID of the primary disk.
attrDiskReplicaPairName
Required
public IResolvable getAttrDiskReplicaPairName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DiskReplicaPairName: The name of the asynchronous replication relationship.
attrPaymentType
Required
public IResolvable getAttrPaymentType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PaymentType: The payment type of the resource.
attrReplicaPairId
Required
public IResolvable getAttrReplicaPairId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ReplicaPairId: The ID of the disk replica pair.
attrResourceGroupId
Required
public IResolvable getAttrResourceGroupId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ResourceGroupId: The ID of the resource group.
attrRpo
Required
public IResolvable getAttrRpo();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute RPO: The RPO value set by the consistency group in seconds.
attrSourceZoneId
Required
public IResolvable getAttrSourceZoneId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute SourceZoneId: The ID of the zone to which the production site belongs.
attrTags
Required
public IResolvable getAttrTags();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Tags: The tags of the disk replica pair.