Instance
This class encapsulates and extends the ROS resource type ALIYUN::ENS::Instance
, which is used to create an Edge Node Service (ENS) instance.
Initializers
import com.aliyun.ros.cdk.ens.Instance;
Instance.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.dataDiskSize(java.lang.Number)
.dataDiskSize(IResolvable)
.ensRegionId(java.lang.String)
.ensRegionId(IResolvable)
.imageId(java.lang.String)
.imageId(IResolvable)
.instanceType(java.lang.String)
.instanceType(IResolvable)
.period(java.lang.Number)
.period(IResolvable)
.quantity(java.lang.Number)
.quantity(IResolvable)
.systemDiskSize(java.lang.Number)
.systemDiskSize(IResolvable)
// .autoRenew(java.lang.String)
// .autoRenew(IResolvable)
// .autoRenewPeriod(java.lang.Number)
// .autoRenewPeriod(IResolvable)
// .hostName(java.lang.String)
// .hostName(IResolvable)
// .instanceName(java.lang.String)
// .instanceName(IResolvable)
// .internetChargeType(java.lang.String)
// .internetChargeType(IResolvable)
// .ipType(java.lang.String)
// .ipType(IResolvable)
// .keyPairName(java.lang.String)
// .keyPairName(IResolvable)
// .password(java.lang.String)
// .password(IResolvable)
// .paymentType(java.lang.String)
// .paymentType(IResolvable)
// .privateIpAddress(java.lang.String)
// .privateIpAddress(IResolvable)
// .uniqueSuffix(java.lang.Boolean)
// .uniqueSuffix(IResolvable)
// .userData(java.lang.String)
// .userData(IResolvable)
// .vSwitchId(java.lang.String)
// .vSwitchId(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. |
dataDiskSize |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property dataDiskSize: Disk size of the system disk, range from 20 to 500 GB. |
ensRegionId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ensRegionId: ENS Region Id. |
imageId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property imageId: Image ID to create ens instance. |
instanceType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceType: ENS instance supported instance type, make sure it should be correct. |
period |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property period: Prepaid time period. |
quantity |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property quantity: number of instances to create. |
systemDiskSize |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property systemDiskSize: Disk size of the system disk. |
autoRenew |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False. |
autoRenewPeriod |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenewPeriod: The time period of auto renew. |
hostName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property hostName: The hostname of the instance. |
instanceName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceName: Instance name. |
internetChargeType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property internetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth. |
ipType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ipType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4. |
keyPairName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property keyPairName: SSH key pair name. |
password |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property password: Password of created ens instance. |
paymentType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property paymentType: Payment Type.only support value Subscription. |
privateIpAddress |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property privateIpAddress: Private IP for the instance created. |
uniqueSuffix |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property 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. |
userData |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property userData: User data to pass to instance. |
vSwitchId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vSwitchId: The vSwitch Id to create ens instance. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
dataDiskSize
Required
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property 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.
ensRegionId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ensRegionId: ENS Region Id.
imageId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property imageId: Image ID to create ens instance.
instanceType
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceType: ENS instance supported instance type, make sure it should be correct.
period
Required
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property period: Prepaid time period.
Unit is month, it could be from 1 to 9 or 12. Default value is 1.
quantity
Required
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property quantity: number of instances to create.
systemDiskSize
Required
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property systemDiskSize: Disk size of the system disk.
autoRenew
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False.
autoRenewPeriod
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenewPeriod: The time period of auto renew.
it will take effect.It could be 1, 2, 3, 6, 12. Default value is 1.
hostName
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property hostName: The hostname of the instance.
instanceName
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceName: Instance name.
internetChargeType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property internetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth.
ipType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ipType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4.
keyPairName
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property keyPairName: SSH key pair name.
password
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property password: Password of created ens instance.
Must contain at least 3 types of special character, lower character, upper character, number.
paymentType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property paymentType: Payment Type.only support value Subscription.
privateIpAddress
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property privateIpAddress: Private IP for the instance created.
uniqueSuffix
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property 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.
userData
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property 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.
vSwitchId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitchId: The vSwitch Id to create ens 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.ens.Instance;
Instance.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 renew the fee automatically?it could be True,FalseDefault value is False. |
attrAutoRenewPeriod |
com.aliyun.ros.cdk.core.IResolvable |
Attribute AutoRenewPeriod: The time period of auto renew. |
attrDataDiskSize |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DataDiskSize: Disk size of the system disk, range from 20 to 500 GB. |
attrEnsRegionId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute EnsRegionId: ENS Region Id. |
attrHostName |
com.aliyun.ros.cdk.core.IResolvable |
Attribute HostName: The hostname of the instance. |
attrImageId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ImageId: Image ID to create ens instance. |
attrInstanceId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute InstanceId: InstanceId. |
attrInstanceName |
com.aliyun.ros.cdk.core.IResolvable |
Attribute InstanceName: Instance name. |
attrInstanceType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute InstanceType: ENS instance supported instance type, make sure it should be correct. |
attrInternetChargeType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute InternetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth. |
attrIpType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute IpType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4. |
attrKeyPairName |
com.aliyun.ros.cdk.core.IResolvable |
Attribute KeyPairName: SSH key pair name. |
attrPaymentType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PaymentType: Payment Type.only support value Subscription. |
attrPeriod |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Period: Prepaid time period. |
attrPrivateIpAddress |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PrivateIpAddress: Private IP for the instance created. |
attrPrivateIps |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PrivateIps: Private IP. |
attrPublicIps |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PublicIps: Public IP. |
attrQuantity |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Quantity: number of instances to create. |
attrSystemDiskSize |
com.aliyun.ros.cdk.core.IResolvable |
Attribute SystemDiskSize: Disk size of the system disk. |
attrUniqueSuffix |
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 |
com.aliyun.ros.cdk.core.IResolvable |
Attribute UserData: User data to pass to instance. |
attrVSwitchId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute VSwitchId: The vSwitch Id to create ens instance. |
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 renew the fee automatically?it could be True,FalseDefault value is False.
attrAutoRenewPeriod
Required
public IResolvable getAttrAutoRenewPeriod();
- Type: 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.
attrDataDiskSize
Required
public IResolvable getAttrDataDiskSize();
- Type: 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.
attrEnsRegionId
Required
public IResolvable getAttrEnsRegionId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute EnsRegionId: ENS Region Id.
attrHostName
Required
public IResolvable getAttrHostName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute HostName: The hostname of the instance.
attrImageId
Required
public IResolvable getAttrImageId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ImageId: Image ID to create ens instance.
attrInstanceId
Required
public IResolvable getAttrInstanceId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceId: InstanceId.
attrInstanceName
Required
public IResolvable getAttrInstanceName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceName: Instance name.
attrInstanceType
Required
public IResolvable getAttrInstanceType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceType: ENS instance supported instance type, make sure it should be correct.
attrInternetChargeType
Required
public IResolvable getAttrInternetChargeType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InternetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth.
attrIpType
Required
public IResolvable getAttrIpType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute IpType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4.
attrKeyPairName
Required
public IResolvable getAttrKeyPairName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute KeyPairName: SSH key pair name.
attrPaymentType
Required
public IResolvable getAttrPaymentType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PaymentType: Payment Type.only support value Subscription.
attrPeriod
Required
public IResolvable getAttrPeriod();
- Type: 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.
attrPrivateIpAddress
Required
public IResolvable getAttrPrivateIpAddress();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PrivateIpAddress: Private IP for the instance created.
attrPrivateIps
Required
public IResolvable getAttrPrivateIps();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PrivateIps: Private IP.
attrPublicIps
Required
public IResolvable getAttrPublicIps();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PublicIps: Public IP.
attrQuantity
Required
public IResolvable getAttrQuantity();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Quantity: number of instances to create.
attrSystemDiskSize
Required
public IResolvable getAttrSystemDiskSize();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute SystemDiskSize: Disk size of the system disk.
attrUniqueSuffix
Required
public IResolvable getAttrUniqueSuffix();
- Type: 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.
attrUserData
Required
public IResolvable getAttrUserData();
- Type: 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.
attrVSwitchId
Required
public IResolvable getAttrVSwitchId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute VSwitchId: The vSwitch Id to create ens instance.