DiskReplicaGroup
This class encapsulates and extends the ROS resource type ALIYUN::EBS::DiskReplicaGroup
, which is used to create a replication pair-consistent group.
Initializers
import com.aliyun.ros.cdk.ebs.DiskReplicaGroup;
DiskReplicaGroup.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.destinationRegionId(java.lang.String)
.destinationRegionId(IResolvable)
.destinationZoneId(java.lang.String)
.destinationZoneId(IResolvable)
.sourceRegionId(java.lang.String)
.sourceRegionId(IResolvable)
.sourceZoneId(java.lang.String)
.sourceZoneId(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .diskReplicaGroupName(java.lang.String)
// .diskReplicaGroupName(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. |
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. |
sourceRegionId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property sourceRegionId: The ID of the region to which the production site belongs. |
sourceZoneId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property sourceZoneId: The ID of the zone to which the production site belongs. |
description |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property description: The description of the consistent replication group. |
diskReplicaGroupName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property diskReplicaGroupName: Consistent replication group name. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: The ID of 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 group. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
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.
sourceRegionId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourceRegionId: The ID of the region to which the production site belongs.
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.
description
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of the consistent replication group.
diskReplicaGroupName
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property diskReplicaGroupName: Consistent replication group name.
resourceGroupId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of 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.
tags
Optional
- Type: java.util.List<TagsProperty>
Property tags: Tags of disk replica group.
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.DiskReplicaGroup;
DiskReplicaGroup.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. |
attrDescription |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Description: The description of the consistent replication group. |
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. |
attrDiskReplicaGroupName |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DiskReplicaGroupName: Consistent replication group name. |
attrLastRecoverPoint |
com.aliyun.ros.cdk.core.IResolvable |
Attribute LastRecoverPoint: The time when the last asynchronous replication operation of the consistent replication group completed. |
attrPairIds |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PairIds: List of replication pair IDs contained in a consistent replication group. |
attrPairNumber |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PairNumber: The number of replication pairs contained in a consistent replication group. |
attrPrimaryRegion |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PrimaryRegion: The initial source region of the replication group. |
attrPrimaryZone |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PrimaryZone: The initial source available area of the replication group. |
attrReplicaGroupId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ReplicaGroupId: The ID of the consistent replication group. |
attrResourceGroupId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ResourceGroupId: resource group ID of enterprise. |
attrRpo |
com.aliyun.ros.cdk.core.IResolvable |
Attribute RPO: The RPO value set by the consistency group in seconds. |
attrSite |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Site: Site information sources for replication pairs and consistent replication groups. |
attrSourceRegionId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute SourceRegionId: The ID of the region to which the production site belongs. |
attrSourceZoneId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute SourceZoneId: The ID of the zone to which the production site belongs. |
attrStandbyRegion |
com.aliyun.ros.cdk.core.IResolvable |
Attribute StandbyRegion: The initial destination region of the replication group. |
attrStandbyZone |
com.aliyun.ros.cdk.core.IResolvable |
Attribute StandbyZone: The initial destination zone of the replication group. |
attrTags |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Tags: The tags of the disk replica group. |
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
attrDescription
Required
public IResolvable getAttrDescription();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Description: The description of the consistent replication group.
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.
attrDiskReplicaGroupName
Required
public IResolvable getAttrDiskReplicaGroupName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DiskReplicaGroupName: Consistent replication group name.
attrLastRecoverPoint
Required
public IResolvable getAttrLastRecoverPoint();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LastRecoverPoint: The time when the last asynchronous replication operation of the consistent replication group completed.
This parameter provides the return value as a timestamp. Unit: seconds.
attrPairIds
Required
public IResolvable getAttrPairIds();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PairIds: List of replication pair IDs contained in a consistent replication group.
attrPairNumber
Required
public IResolvable getAttrPairNumber();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PairNumber: The number of replication pairs contained in a consistent replication group.
attrPrimaryRegion
Required
public IResolvable getAttrPrimaryRegion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PrimaryRegion: The initial source region of the replication group.
attrPrimaryZone
Required
public IResolvable getAttrPrimaryZone();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PrimaryZone: The initial source available area of the replication group.
attrReplicaGroupId
Required
public IResolvable getAttrReplicaGroupId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ReplicaGroupId: The ID of the consistent replication group.
attrResourceGroupId
Required
public IResolvable getAttrResourceGroupId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ResourceGroupId: resource group ID of enterprise.
attrRpo
Required
public IResolvable getAttrRpo();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute RPO: The RPO value set by the consistency group in seconds.
attrSite
Required
public IResolvable getAttrSite();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Site: Site information sources for replication pairs and consistent replication groups.
Possible values:
attrSourceRegionId
Required
public IResolvable getAttrSourceRegionId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute SourceRegionId: The ID of the region to which the production site belongs.
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.
attrStandbyRegion
Required
public IResolvable getAttrStandbyRegion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute StandbyRegion: The initial destination region of the replication group.
attrStandbyZone
Required
public IResolvable getAttrStandbyZone();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute StandbyZone: The initial destination zone of the replication group.
attrTags
Required
public IResolvable getAttrTags();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Tags: The tags of the disk replica group.