Skip to content

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.

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

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.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • 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.

xRequired

  • 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.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


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 IResolvable getAttrBandwidth();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Bandwidth: The bandwidth for asynchronous data replication between cloud disks.


attrCreateTimeRequired

public IResolvable getAttrCreateTime();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute CreateTime: The creation time of the resource.


attrDescriptionRequired

public IResolvable getAttrDescription();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Description: The description of the asynchronous replication relationship.


attrDestinationDiskIdRequired

public IResolvable getAttrDestinationDiskId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute DestinationDiskId: The ID of the standby disk.


attrDestinationRegionIdRequired

public IResolvable getAttrDestinationRegionId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute DestinationRegionId: The ID of the region to which the disaster recovery site belongs.


attrDestinationZoneIdRequired

public IResolvable getAttrDestinationZoneId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute DestinationZoneId: The ID of the zone to which the disaster recovery site belongs.


attrDiskIdRequired

public IResolvable getAttrDiskId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute DiskId: The ID of the primary disk.


attrDiskReplicaPairNameRequired

public IResolvable getAttrDiskReplicaPairName();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute DiskReplicaPairName: The name of the asynchronous replication relationship.


attrPaymentTypeRequired

public IResolvable getAttrPaymentType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute PaymentType: The payment type of the resource.


attrReplicaPairIdRequired

public IResolvable getAttrReplicaPairId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ReplicaPairId: The ID of the disk replica pair.


attrResourceGroupIdRequired

public IResolvable getAttrResourceGroupId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ResourceGroupId: The ID of the resource group.


attrRpoRequired

public IResolvable getAttrRpo();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute RPO: The RPO value set by the consistency group in seconds.


attrSourceZoneIdRequired

public IResolvable getAttrSourceZoneId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute SourceZoneId: The ID of the zone to which the production site belongs.


attrTagsRequired

public IResolvable getAttrTags();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Tags: The tags of the disk replica pair.