DiskReplicaPair
- Implements: IDiskReplicaPair
This class encapsulates and extends the ROS resource type ALIYUN::EBS::DiskReplicaPair.
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. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
destinationDiskIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationDiskId: The ID of the standby disk.
destinationRegionIdRequired
- 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.
destinationZoneIdRequired
- 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.
diskIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property diskId: The ID of the primary disk.
sourceZoneIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourceZoneId: The ID of the zone to which the production site belongs.
bandwidthOptional
- 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.
descriptionOptional
- 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.
diskReplicaPairNameOptional
- 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 (-).
paymentTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property paymentType: The payment type of the resource.
periodOptional
- 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.
periodUnitOptional
- 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.
resourceGroupIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of the resource group.
rpoOptional
- 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.
tagsOptional
- 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. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | 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
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
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. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
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 | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Bandwidth: The bandwidth for asynchronous data replication between cloud disks. |
attrCreateTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CreateTime: The creation time of the resource. |
attrDescription | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Description: The description of the asynchronous replication relationship. |
attrDestinationDiskId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DestinationDiskId: The ID of the standby disk. |
attrDestinationRegionId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DestinationRegionId: The ID of the region to which the disaster recovery site belongs. |
attrDestinationZoneId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DestinationZoneId: The ID of the zone to which the disaster recovery site belongs. |
attrDiskId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DiskId: The ID of the primary disk. |
attrDiskReplicaPairName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DiskReplicaPairName: The name of the asynchronous replication relationship. |
attrPaymentType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute PaymentType: The payment type of the resource. |
attrReplicaPairId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ReplicaPairId: The ID of the disk replica pair. |
attrResourceGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ResourceGroupId: The ID of the resource group. |
attrRpo | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute RPO: The RPO value set by the consistency group in seconds. |
attrSourceZoneId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SourceZoneId: The ID of the zone to which the production site belongs. |
attrTags | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Tags: The tags of the disk replica pair. |
props | DiskReplicaPairProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.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
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrBandwidthRequired
public java.lang.Object getAttrBandwidth();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Bandwidth: The bandwidth for asynchronous data replication between cloud disks.
attrCreateTimeRequired
public java.lang.Object getAttrCreateTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CreateTime: The creation time of the resource.
attrDescriptionRequired
public java.lang.Object getAttrDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Description: The description of the asynchronous replication relationship.
attrDestinationDiskIdRequired
public java.lang.Object getAttrDestinationDiskId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DestinationDiskId: The ID of the standby disk.
attrDestinationRegionIdRequired
public java.lang.Object getAttrDestinationRegionId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DestinationRegionId: The ID of the region to which the disaster recovery site belongs.
attrDestinationZoneIdRequired
public java.lang.Object getAttrDestinationZoneId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DestinationZoneId: The ID of the zone to which the disaster recovery site belongs.
attrDiskIdRequired
public java.lang.Object getAttrDiskId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DiskId: The ID of the primary disk.
attrDiskReplicaPairNameRequired
public java.lang.Object getAttrDiskReplicaPairName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DiskReplicaPairName: The name of the asynchronous replication relationship.
attrPaymentTypeRequired
public java.lang.Object getAttrPaymentType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute PaymentType: The payment type of the resource.
attrReplicaPairIdRequired
public java.lang.Object getAttrReplicaPairId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ReplicaPairId: The ID of the disk replica pair.
attrResourceGroupIdRequired
public java.lang.Object getAttrResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ResourceGroupId: The ID of the resource group.
attrRpoRequired
public java.lang.Object getAttrRpo();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute RPO: The RPO value set by the consistency group in seconds.
attrSourceZoneIdRequired
public java.lang.Object getAttrSourceZoneId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SourceZoneId: The ID of the zone to which the production site belongs.
attrTagsRequired
public java.lang.Object getAttrTags();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Tags: The tags of the disk replica pair.
propsRequired
public DiskReplicaPairProps getProps();
- Type: DiskReplicaPairProps