Skip to content

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

scopeRequired

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

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

dedicatedHostGroupIdRequired

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

Property dedicatedHostGroupId: Dedicated Host Group ID.


hostClassRequired

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

Property hostClass: Host Class.


paymentTypeRequired

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

Property paymentType: Payment Type.


vSwitchIdRequired

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

Property vSwitchId: VSwitch ID.


zoneIdRequired

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

Property zoneId: Zone ID.


autoRenewOptional

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

Property autoRenew: Whether Auto Renew.


hostNameOptional

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

Property hostName: Host Name.


imageCategoryOptional

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

Property imageCategory: Host Image Category.


osPasswordOptional

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

Property osPassword:.


periodOptional

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

Property period:.


tagsOptional

Property tags: The tag of the resource.


usedTimeOptional

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

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.DedicatedHost;
DedicatedHost.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.
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.

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

attrAutoRenewRequired

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

Attribute AutoRenew: Whether Auto Renew.


attrCpuAllocationRatioRequired

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

Attribute CpuAllocationRatio: CPU Allocation Ratio.


attrCpuUsedRequired

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

Attribute CpuUsed: CPU Used.


attrDedicatedHostGroupIdRequired

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

Attribute DedicatedHostGroupId: Dedicated Host Group ID.


attrDedicatedHostIdRequired

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

Attribute DedicatedHostId: The first ID of the resource.


attrDiskAllocationRatioRequired

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

Attribute DiskAllocationRatio: Disk Allocation Ratio.


attrEcsClassCodeRequired

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

Attribute EcsClassCode: ECS Class Code.


attrHostClassRequired

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

Attribute HostClass: Host Class.


attrHostCpuRequired

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

Attribute HostCpu: Host CPU.


attrHostMemRequired

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

Attribute HostMem: Host Memory.


attrHostNameRequired

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

Attribute HostName: Host Name.


attrHostStorageRequired

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

Attribute HostStorage: Host Storage.


attrHostTypeRequired

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

Attribute HostType: Host Storage Type.


attrImageCategoryRequired

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

Attribute ImageCategory: Host Image Category.


attrIpAddressRequired

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

Attribute IpAddress: Host IP Address.


attrMemAllocationRatioRequired

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

Attribute MemAllocationRatio: Memory Allocation Ratio.


attrMemoryUsedRequired

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

Attribute MemoryUsed: Host Memory Used.


attrOpenPermissionRequired

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

Attribute OpenPermission: Whether Open OS Permission.


attrPaymentTypeRequired

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

Attribute PaymentType: Payment Type.


attrStorageUsedRequired

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

Attribute StorageUsed: Storage Used.


attrVpcIdRequired

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

Attribute VpcId: VPC ID.


attrVSwitchIdRequired

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

Attribute VSwitchId: VSwitch ID.


attrZoneIdRequired

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

Attribute ZoneId: Zone ID.