Skip to content

MyBase

This class encapsulates and extends the ROS resource type ALIYUN::CDDC::MyBase, which is used to create hosts in a dedicated cluster.

Initializers

import com.aliyun.ros.cdk.cddc.MyBase;
MyBase.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .ecsClassList(IResolvable)
    .ecsClassList(java.util.List<java.util.Map<java.lang.String, java.lang.Object>>)
    .engine(java.lang.String)
    .engine(IResolvable)
    .payType(java.lang.String)
    .payType(IResolvable)
    .period(java.lang.Number)
    .period(IResolvable)
    .securityGroupId(java.lang.String)
    .securityGroupId(IResolvable)
    .vpcId(java.lang.String)
    .vpcId(IResolvable)
    .vSwitchId(java.lang.String)
    .vSwitchId(IResolvable)
    .zoneId(java.lang.String)
    .zoneId(IResolvable)
//  .autoRenew(java.lang.Boolean)
//  .autoRenew(IResolvable)
//  .dedicatedHostGroupDescription(java.lang.String)
//  .dedicatedHostGroupDescription(IResolvable)
//  .dedicatedHostGroupId(java.lang.String)
//  .dedicatedHostGroupId(IResolvable)
//  .ecsDeploymentSetId(java.lang.String)
//  .ecsDeploymentSetId(IResolvable)
//  .ecsHostName(java.lang.String)
//  .ecsHostName(IResolvable)
//  .ecsInstanceName(java.lang.String)
//  .ecsInstanceName(IResolvable)
//  .ecsUniqueSuffix(java.lang.Boolean)
//  .ecsUniqueSuffix(IResolvable)
//  .imageId(java.lang.String)
//  .imageId(IResolvable)
//  .internetChargeType(java.lang.String)
//  .internetChargeType(IResolvable)
//  .internetMaxBandwidthOut(java.lang.Number)
//  .internetMaxBandwidthOut(IResolvable)
//  .keyPairName(java.lang.String)
//  .keyPairName(IResolvable)
//  .osPassword(java.lang.String)
//  .osPassword(IResolvable)
//  .passwordInherit(java.lang.Boolean)
//  .passwordInherit(IResolvable)
//  .periodType(java.lang.String)
//  .periodType(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .userData(java.lang.String)
//  .userData(IResolvable)
//  .userDataInBase64(java.lang.Boolean)
//  .userDataInBase64(IResolvable)
    .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.
ecsClassList com.aliyun.ros.cdk.core.IResolvable OR java.util.List> Property ecsClassList: ECS Class List.
engine java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property engine: Database type.
payType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property payType: Payment type, currently only supports PrePaid.
period java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property period: The period of the subscription in months.
securityGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property securityGroupId: The ID of the security group.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: The ID of the VPC.
vSwitchId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vSwitchId: Virtual switch ID.
zoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property zoneId: Availability Zone ID.
autoRenew java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property autoRenew: Whether to enable auto renew.
dedicatedHostGroupDescription java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dedicatedHostGroupDescription: The name of the dedicated cluster.
dedicatedHostGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dedicatedHostGroupId: The ID of the dedicated cluster.
ecsDeploymentSetId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ecsDeploymentSetId: The ID of the deployment set.
ecsHostName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ecsHostName: The host name of the ECS instance.
ecsInstanceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ecsInstanceName: The name of the ECS instance.
ecsUniqueSuffix java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property ecsUniqueSuffix: The unique suffix of the ECS instance.
imageId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property imageId: The image ID.
internetChargeType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property internetChargeType: Network billing type.
internetMaxBandwidthOut java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property internetMaxBandwidthOut: Set internet output bandwidth of instance.
keyPairName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property keyPairName: The name of the key pair.
osPassword java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property osPassword: Password of created ecs instance.
passwordInherit java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property passwordInherit: Whether to inherit the password from the parent cluster.
periodType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property periodType: Prepaid type, currently only supports Monthly (monthly subscription).
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource group id.
userData java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property userData: User-defined script data, the original data is up to 16KB.
userDataInBase64 java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property userDataInBase64: The user data of the ECS instance.

scopeRequired

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

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

ecsClassListRequired

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List>

Property ecsClassList: ECS Class List.


engineRequired

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

Property engine: Database type.


payTypeRequired

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

Property payType: Payment type, currently only supports PrePaid.


periodRequired

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

Property period: The period of the subscription in months.


securityGroupIdRequired

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

Property securityGroupId: The ID of the security group.


vpcIdRequired

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

Property vpcId: The ID of the VPC.


vSwitchIdRequired

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

Property vSwitchId: Virtual switch ID.


zoneIdRequired

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

Property zoneId: Availability Zone ID.


autoRenewOptional

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

Property autoRenew: Whether to enable auto renew.


dedicatedHostGroupDescriptionOptional

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

Property dedicatedHostGroupDescription: The name of the dedicated cluster.


dedicatedHostGroupIdOptional

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

Property dedicatedHostGroupId: The ID of the dedicated cluster.


ecsDeploymentSetIdOptional

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

Property ecsDeploymentSetId: The ID of the deployment set.


ecsHostNameOptional

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

Property ecsHostName: The host name of the ECS instance.


ecsInstanceNameOptional

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

Property ecsInstanceName: The name of the ECS instance.


ecsUniqueSuffixOptional

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

Property ecsUniqueSuffix: The unique suffix of the ECS instance.


imageIdOptional

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

Property imageId: The image ID.


internetChargeTypeOptional

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

Property internetChargeType: Network billing type.

Value range: PayByBandwidth: billed based on fixed bandwidth. PayByTraffic: Pay by traffic usage.


internetMaxBandwidthOutOptional

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

Property internetMaxBandwidthOut: Set internet output bandwidth of instance.

Unit is Mbps(Mega bit per second). Range is [0,200]. Default is 1. While the property is not 0, public ip will be assigned for instance.


keyPairNameOptional

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

Property keyPairName: The name of the key pair.


osPasswordOptional

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

Property osPassword: Password of created ecs instance.

Must contain at least 3 types of special character, lower character, upper character, number.


passwordInheritOptional

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

Property passwordInherit: Whether to inherit the password from the parent cluster.


periodTypeOptional

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

Property periodType: Prepaid type, currently only supports Monthly (monthly subscription).


resourceGroupIdOptional

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

Property resourceGroupId: Resource group id.


userDataOptional

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

Property userData: User-defined script data, the original data is up to 16KB.


userDataInBase64Optional

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

Property userDataInBase64: The user data of the ECS instance.


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.cddc.MyBase;
MyBase.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.
attrInstanceIds com.aliyun.ros.cdk.core.IResolvable Attribute InstanceIds: The instance id list of created ecs instances.
attrOrderIds com.aliyun.ros.cdk.core.IResolvable Attribute OrderIds: The order id list.

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

attrInstanceIdsRequired

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

Attribute InstanceIds: The instance id list of created ecs instances.


attrOrderIdsRequired

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

Attribute OrderIds: The order id list.