Skip to content

IInstance

Represents a Instance.

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node for this construct.
env com.aliyun.ros.cdk.core.IResourceEnvironment The environment this resource belongs to.
stack com.aliyun.ros.cdk.core.Stack The stack in which this resource is defined.
attrAutoRenew java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute AutoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False.
attrAutoRenewPeriod java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute AutoRenewPeriod: The time period of auto renew.
attrDataDiskSize java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute DataDiskSize: Disk size of the system disk, range from 20 to 500 GB.
attrEnsRegionId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute EnsRegionId: ENS Region Id.
attrHostName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute HostName: The hostname of the instance.
attrImageId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ImageId: Image ID to create ens instance.
attrInstanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InstanceId: InstanceId.
attrInstanceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InstanceName: Instance name.
attrInstanceType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InstanceType: ENS instance supported instance type, make sure it should be correct.
attrInternetChargeType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InternetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth.
attrIpType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute IpType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4.
attrKeyPairName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute KeyPairName: SSH key pair name.
attrPaymentType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PaymentType: Payment Type.only support value Subscription.
attrPeriod java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Period: Prepaid time period.
attrPrivateIpAddress java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PrivateIpAddress: Private IP for the instance created.
attrPrivateIps java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PrivateIps: Private IP.
attrPublicIps java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PublicIps: Public IP.
attrQuantity java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Quantity: number of instances to create.
attrSystemDiskSize java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute SystemDiskSize: Disk size of the system disk.
attrUniqueSuffix java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute UniqueSuffix: Specifies whether to automatically append sequential suffixes to the hostnames specified by the HostName parameter and instance names specified by the InstanceName parameter when you create multiple instances at a time.
attrUserData java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute UserData: User data to pass to instance.
attrVSwitchId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute VSwitchId: The vSwitch Id to create ens instance.
props InstanceProps No description.

nodeRequired

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

The construct tree node for 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.


stackRequired

public Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


attrAutoRenewRequired

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

Attribute AutoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False.


attrAutoRenewPeriodRequired

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

Attribute AutoRenewPeriod: The time period of auto renew.

it will take effect.It could be 1, 2, 3, 6, 12. Default value is 1.


attrDataDiskSizeRequired

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

Attribute DataDiskSize: Disk size of the system disk, range from 20 to 500 GB.

If you specify with your own image, make sure the system disk size bigger than image size.


attrEnsRegionIdRequired

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

Attribute EnsRegionId: ENS Region Id.


attrHostNameRequired

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

Attribute HostName: The hostname of the instance.


attrImageIdRequired

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

Attribute ImageId: Image ID to create ens instance.


attrInstanceIdRequired

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

Attribute InstanceId: InstanceId.


attrInstanceNameRequired

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

Attribute InstanceName: Instance name.


attrInstanceTypeRequired

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

Attribute InstanceType: ENS instance supported instance type, make sure it should be correct.


attrInternetChargeTypeRequired

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

Attribute InternetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth.


attrIpTypeRequired

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

Attribute IpType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4.


attrKeyPairNameRequired

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

Attribute KeyPairName: SSH key pair name.


attrPaymentTypeRequired

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

Attribute PaymentType: Payment Type.only support value Subscription.


attrPeriodRequired

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

Attribute Period: Prepaid time period.

Unit is month, it could be from 1 to 9 or 12. Default value is 1.


attrPrivateIpAddressRequired

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

Attribute PrivateIpAddress: Private IP for the instance created.


attrPrivateIpsRequired

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

Attribute PrivateIps: Private IP.


attrPublicIpsRequired

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

Attribute PublicIps: Public IP.


attrQuantityRequired

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

Attribute Quantity: number of instances to create.


attrSystemDiskSizeRequired

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

Attribute SystemDiskSize: Disk size of the system disk.


attrUniqueSuffixRequired

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

Attribute UniqueSuffix: Specifies whether to automatically append sequential suffixes to the hostnames specified by the HostName parameter and instance names specified by the InstanceName parameter when you create multiple instances at a time.

The sequential suffix ranges from 001 to 999. Valid values: true false Default value: false.


attrUserDataRequired

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

Attribute UserData: User data to pass to instance.

[1, 16KB] characters.User data should not be base64 encoded. If you want to pass base64 encoded string to the property, use function Fn::Base64Decode to decode the base64 string first.


attrVSwitchIdRequired

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

Attribute VSwitchId: The vSwitch Id to create ens instance.


propsRequired

public InstanceProps getProps();