DedicatedHost
This class encapsulates and extends the ROS resource type ALIYUN::CDDC::DedicatedHost
, which is used to create a host in a dedicated cluster.
Initializers
import com.aliyun.ros.cdk.cddc.DedicatedHost;
DedicatedHost.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.dedicatedHostGroupId(java.lang.String)
.dedicatedHostGroupId(IResolvable)
.hostClass(java.lang.String)
.hostClass(IResolvable)
.paymentType(java.lang.String)
.paymentType(IResolvable)
.vSwitchId(java.lang.String)
.vSwitchId(IResolvable)
.zoneId(java.lang.String)
.zoneId(IResolvable)
// .autoRenew(java.lang.String)
// .autoRenew(IResolvable)
// .hostName(java.lang.String)
// .hostName(IResolvable)
// .imageCategory(java.lang.String)
// .imageCategory(IResolvable)
// .osPassword(java.lang.String)
// .osPassword(IResolvable)
// .period(java.lang.String)
// .period(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .usedTime(java.lang.String)
// .usedTime(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. |
dedicatedHostGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dedicatedHostGroupId: Dedicated Host Group ID. |
hostClass |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property hostClass: Host Class. |
paymentType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property paymentType: Payment Type. |
vSwitchId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vSwitchId: VSwitch ID. |
zoneId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property zoneId: Zone ID. |
autoRenew |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenew: Whether Auto Renew. |
hostName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property hostName: Host Name. |
imageCategory |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property imageCategory: Host Image Category. |
osPassword |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property osPassword:. |
period |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property period:. |
tags |
java.util.List<TagsProperty> |
Property tags: The tag of the resource. |
usedTime |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property usedTime:. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
dedicatedHostGroupId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dedicatedHostGroupId: Dedicated Host Group ID.
hostClass
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property hostClass: Host Class.
paymentType
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property paymentType: Payment Type.
vSwitchId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitchId: VSwitch ID.
zoneId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property zoneId: Zone ID.
autoRenew
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: Whether Auto Renew.
hostName
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property hostName: Host Name.
imageCategory
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property imageCategory: Host Image Category.
osPassword
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property osPassword:.
period
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property period:.
tags
Optional
- Type: java.util.List<TagsProperty>
Property tags: The tag of the resource.
usedTime
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property usedTime:.
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.DedicatedHost;
DedicatedHost.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. |
attrAutoRenew |
com.aliyun.ros.cdk.core.IResolvable |
Attribute AutoRenew: Whether Auto Renew. |
attrCpuAllocationRatio |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CpuAllocationRatio: CPU Allocation Ratio. |
attrCpuUsed |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CpuUsed: CPU Used. |
attrDedicatedHostGroupId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DedicatedHostGroupId: Dedicated Host Group ID. |
attrDedicatedHostId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DedicatedHostId: The first ID of the resource. |
attrDiskAllocationRatio |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DiskAllocationRatio: Disk Allocation Ratio. |
attrEcsClassCode |
com.aliyun.ros.cdk.core.IResolvable |
Attribute EcsClassCode: ECS Class Code. |
attrHostClass |
com.aliyun.ros.cdk.core.IResolvable |
Attribute HostClass: Host Class. |
attrHostCpu |
com.aliyun.ros.cdk.core.IResolvable |
Attribute HostCpu: Host CPU. |
attrHostMem |
com.aliyun.ros.cdk.core.IResolvable |
Attribute HostMem: Host Memory. |
attrHostName |
com.aliyun.ros.cdk.core.IResolvable |
Attribute HostName: Host Name. |
attrHostStorage |
com.aliyun.ros.cdk.core.IResolvable |
Attribute HostStorage: Host Storage. |
attrHostType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute HostType: Host Storage Type. |
attrImageCategory |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ImageCategory: Host Image Category. |
attrIpAddress |
com.aliyun.ros.cdk.core.IResolvable |
Attribute IpAddress: Host IP Address. |
attrMemAllocationRatio |
com.aliyun.ros.cdk.core.IResolvable |
Attribute MemAllocationRatio: Memory Allocation Ratio. |
attrMemoryUsed |
com.aliyun.ros.cdk.core.IResolvable |
Attribute MemoryUsed: Host Memory Used. |
attrOpenPermission |
com.aliyun.ros.cdk.core.IResolvable |
Attribute OpenPermission: Whether Open OS Permission. |
attrPaymentType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PaymentType: Payment Type. |
attrStorageUsed |
com.aliyun.ros.cdk.core.IResolvable |
Attribute StorageUsed: Storage Used. |
attrVpcId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute VpcId: VPC ID. |
attrVSwitchId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute VSwitchId: VSwitch ID. |
attrZoneId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ZoneId: Zone ID. |
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
attrAutoRenew
Required
public IResolvable getAttrAutoRenew();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute AutoRenew: Whether Auto Renew.
attrCpuAllocationRatio
Required
public IResolvable getAttrCpuAllocationRatio();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CpuAllocationRatio: CPU Allocation Ratio.
attrCpuUsed
Required
public IResolvable getAttrCpuUsed();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CpuUsed: CPU Used.
attrDedicatedHostGroupId
Required
public IResolvable getAttrDedicatedHostGroupId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DedicatedHostGroupId: Dedicated Host Group ID.
attrDedicatedHostId
Required
public IResolvable getAttrDedicatedHostId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DedicatedHostId: The first ID of the resource.
attrDiskAllocationRatio
Required
public IResolvable getAttrDiskAllocationRatio();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DiskAllocationRatio: Disk Allocation Ratio.
attrEcsClassCode
Required
public IResolvable getAttrEcsClassCode();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute EcsClassCode: ECS Class Code.
attrHostClass
Required
public IResolvable getAttrHostClass();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute HostClass: Host Class.
attrHostCpu
Required
public IResolvable getAttrHostCpu();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute HostCpu: Host CPU.
attrHostMem
Required
public IResolvable getAttrHostMem();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute HostMem: Host Memory.
attrHostName
Required
public IResolvable getAttrHostName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute HostName: Host Name.
attrHostStorage
Required
public IResolvable getAttrHostStorage();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute HostStorage: Host Storage.
attrHostType
Required
public IResolvable getAttrHostType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute HostType: Host Storage Type.
attrImageCategory
Required
public IResolvable getAttrImageCategory();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ImageCategory: Host Image Category.
attrIpAddress
Required
public IResolvable getAttrIpAddress();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute IpAddress: Host IP Address.
attrMemAllocationRatio
Required
public IResolvable getAttrMemAllocationRatio();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute MemAllocationRatio: Memory Allocation Ratio.
attrMemoryUsed
Required
public IResolvable getAttrMemoryUsed();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute MemoryUsed: Host Memory Used.
attrOpenPermission
Required
public IResolvable getAttrOpenPermission();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute OpenPermission: Whether Open OS Permission.
attrPaymentType
Required
public IResolvable getAttrPaymentType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PaymentType: Payment Type.
attrStorageUsed
Required
public IResolvable getAttrStorageUsed();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute StorageUsed: Storage Used.
attrVpcId
Required
public IResolvable getAttrVpcId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute VpcId: VPC ID.
attrVSwitchId
Required
public IResolvable getAttrVSwitchId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute VSwitchId: VSwitch ID.
attrZoneId
Required
public IResolvable getAttrZoneId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ZoneId: Zone ID.