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