Skip to content

DedicatedHost

This class encapsulates and extends the ROS resource type ALIYUN::CDDC::DedicatedHost.

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.
fetchCondition No description.
fetchDependency No description.
fetchResourceDesc 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

fetchCondition

public RosCondition fetchCondition()

fetchDependency

public java.util.List<java.lang.String> fetchDependency()

fetchResourceDesc

public java.lang.String fetchResourceDesc()

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.
env com.aliyun.ros.cdk.core.IResourceEnvironment The environment this resource belongs to.
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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute AutoRenew: Whether Auto Renew.
attrCpuAllocationRatio java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CpuAllocationRatio: CPU Allocation Ratio.
attrCpuUsed java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CpuUsed: CPU Used.
attrDedicatedHostGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute DedicatedHostGroupId: Dedicated Host Group ID.
attrDedicatedHostId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute DedicatedHostId: The first ID of the resource.
attrDiskAllocationRatio java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute DiskAllocationRatio: Disk Allocation Ratio.
attrEcsClassCode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute EcsClassCode: ECS Class Code.
attrHostClass java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute HostClass: Host Class.
attrHostCpu java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute HostCpu: Host CPU.
attrHostMem java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute HostMem: Host Memory.
attrHostName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute HostName: Host Name.
attrHostStorage java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute HostStorage: Host Storage.
attrHostType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute HostType: Host Storage Type.
attrImageCategory java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ImageCategory: Host Image Category.
attrIpAddress java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute IpAddress: Host IP Address.
attrMemAllocationRatio java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute MemAllocationRatio: Memory Allocation Ratio.
attrMemoryUsed java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute MemoryUsed: Host Memory Used.
attrOpenPermission java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute OpenPermission: Whether Open OS Permission.
attrPaymentType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PaymentType: Payment Type.
attrStorageUsed java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute StorageUsed: Storage Used.
attrVpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute VpcId: VPC ID.
attrVSwitchId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute VSwitchId: VSwitch ID.
attrZoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ZoneId: Zone ID.
props DedicatedHostProps No description.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


envRequired

public IResourceEnvironment getEnv();
  • Type: com.aliyun.ros.cdk.core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


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 java.lang.Object getAttrAutoRenew();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute AutoRenew: Whether Auto Renew.


attrCpuAllocationRatioRequired

public java.lang.Object getAttrCpuAllocationRatio();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute CpuAllocationRatio: CPU Allocation Ratio.


attrCpuUsedRequired

public java.lang.Object getAttrCpuUsed();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute CpuUsed: CPU Used.


attrDedicatedHostGroupIdRequired

public java.lang.Object getAttrDedicatedHostGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute DedicatedHostGroupId: Dedicated Host Group ID.


attrDedicatedHostIdRequired

public java.lang.Object getAttrDedicatedHostId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute DedicatedHostId: The first ID of the resource.


attrDiskAllocationRatioRequired

public java.lang.Object getAttrDiskAllocationRatio();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute DiskAllocationRatio: Disk Allocation Ratio.


attrEcsClassCodeRequired

public java.lang.Object getAttrEcsClassCode();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute EcsClassCode: ECS Class Code.


attrHostClassRequired

public java.lang.Object getAttrHostClass();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute HostClass: Host Class.


attrHostCpuRequired

public java.lang.Object getAttrHostCpu();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute HostCpu: Host CPU.


attrHostMemRequired

public java.lang.Object getAttrHostMem();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute HostMem: Host Memory.


attrHostNameRequired

public java.lang.Object getAttrHostName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute HostName: Host Name.


attrHostStorageRequired

public java.lang.Object getAttrHostStorage();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute HostStorage: Host Storage.


attrHostTypeRequired

public java.lang.Object getAttrHostType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute HostType: Host Storage Type.


attrImageCategoryRequired

public java.lang.Object getAttrImageCategory();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute ImageCategory: Host Image Category.


attrIpAddressRequired

public java.lang.Object getAttrIpAddress();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute IpAddress: Host IP Address.


attrMemAllocationRatioRequired

public java.lang.Object getAttrMemAllocationRatio();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute MemAllocationRatio: Memory Allocation Ratio.


attrMemoryUsedRequired

public java.lang.Object getAttrMemoryUsed();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute MemoryUsed: Host Memory Used.


attrOpenPermissionRequired

public java.lang.Object getAttrOpenPermission();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute OpenPermission: Whether Open OS Permission.


attrPaymentTypeRequired

public java.lang.Object getAttrPaymentType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute PaymentType: Payment Type.


attrStorageUsedRequired

public java.lang.Object getAttrStorageUsed();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute StorageUsed: Storage Used.


attrVpcIdRequired

public java.lang.Object getAttrVpcId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute VpcId: VPC ID.


attrVSwitchIdRequired

public java.lang.Object getAttrVSwitchId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute VSwitchId: VSwitch ID.


attrZoneIdRequired

public java.lang.Object getAttrZoneId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute ZoneId: Zone ID.


propsRequired

public DedicatedHostProps getProps();