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
using AlibabaCloud.SDK.ROS.CDK.Ens;
new Instance(Construct Scope, string Id, InstanceProps Props, bool EnableResourcePropertyConstraint = null);
| Name | Type | Description |
|---|---|---|
Scope |
AlibabaCloud.SDK.ROS.CDK.Core.Construct |
No description. |
Id |
string |
No description. |
Props |
InstanceProps |
No description. |
EnableResourcePropertyConstraint |
bool |
No description. |
ScopeRequired
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct
IdRequired
- Type: string
PropsRequired
- Type: InstanceProps
EnableResourcePropertyConstraintOptional
- Type: bool
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
private string ToString()
Returns a string representation of this construct.
Synthesize
private 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: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession
The synthesis session.
AddCondition
private void AddCondition(RosCondition Condition)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition
AddCount
private void AddCount(object Count)
- Type: object
AddDependency
private void AddDependency(Resource Resource)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource
AddResourceDesc
private void AddResourceDesc(string Desc)
- Type: string
ApplyRemovalPolicy
private void ApplyRemovalPolicy(RemovalPolicy Policy)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy
GetAtt
private IResolvable GetAtt(string Name)
- Type: string
SetMetadata
private void SetMetadata(string Key, object Value)
- Type: string
- Type: object
Static Functions
| Name | Description |
|---|---|
IsConstruct |
Return whether the given object is a Construct. |
IsConstruct
using AlibabaCloud.SDK.ROS.CDK.Ens;
Instance.IsConstruct(object X);
Return whether the given object is a Construct.
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node |
AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode |
The construct tree node associated with this construct. |
Ref |
string |
No description. |
Stack |
AlibabaCloud.SDK.ROS.CDK.Core.Stack |
The stack in which this resource is defined. |
Resource |
AlibabaCloud.SDK.ROS.CDK.Core.RosResource |
No description. |
AttrAutoRenew |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute AutoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False. |
AttrAutoRenewPeriod |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute AutoRenewPeriod: The time period of auto renew. |
AttrDataDiskSize |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute DataDiskSize: Disk size of the system disk, range from 20 to 500 GB. |
AttrEnsRegionId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute EnsRegionId: ENS Region Id. |
AttrHostName |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute HostName: The hostname of the instance. |
AttrImageId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ImageId: Image ID to create ens instance. |
AttrInstanceId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InstanceId: InstanceId. |
AttrInstanceName |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InstanceName: Instance name. |
AttrInstanceType |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InstanceType: ENS instance supported instance type, make sure it should be correct. |
AttrInternetChargeType |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InternetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth. |
AttrIpType |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute IpType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4. |
AttrKeyPairName |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute KeyPairName: SSH key pair name. |
AttrPaymentType |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute PaymentType: Payment Type.only support value Subscription. |
AttrPeriod |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute Period: Prepaid time period. |
AttrPrivateIpAddress |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute PrivateIpAddress: Private IP for the instance created. |
AttrPrivateIps |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute PrivateIps: Private IP. |
AttrPublicIps |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute PublicIps: Public IP. |
AttrQuantity |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute Quantity: number of instances to create. |
AttrSystemDiskSize |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute SystemDiskSize: Disk size of the system disk. |
AttrUniqueSuffix |
AlibabaCloud.SDK.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 |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute UserData: User data to pass to instance. |
AttrVSwitchId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute VSwitchId: The vSwitch Id to create ens instance. |
NodeRequired
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
RefRequired
public string Ref { get; }
- Type: string
StackRequired
public Stack Stack { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack
The stack in which this resource is defined.
ResourceOptional
public RosResource Resource { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource
AttrAutoRenewRequired
public IResolvable AttrAutoRenew { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute AutoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False.
AttrAutoRenewPeriodRequired
public IResolvable AttrAutoRenewPeriod { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrDataDiskSize { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrEnsRegionId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute EnsRegionId: ENS Region Id.
AttrHostNameRequired
public IResolvable AttrHostName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute HostName: The hostname of the instance.
AttrImageIdRequired
public IResolvable AttrImageId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ImageId: Image ID to create ens instance.
AttrInstanceIdRequired
public IResolvable AttrInstanceId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InstanceId: InstanceId.
AttrInstanceNameRequired
public IResolvable AttrInstanceName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InstanceName: Instance name.
AttrInstanceTypeRequired
public IResolvable AttrInstanceType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InstanceType: ENS instance supported instance type, make sure it should be correct.
AttrInternetChargeTypeRequired
public IResolvable AttrInternetChargeType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InternetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth.
AttrIpTypeRequired
public IResolvable AttrIpType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute IpType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4.
AttrKeyPairNameRequired
public IResolvable AttrKeyPairName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute KeyPairName: SSH key pair name.
AttrPaymentTypeRequired
public IResolvable AttrPaymentType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PaymentType: Payment Type.only support value Subscription.
AttrPeriodRequired
public IResolvable AttrPeriod { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrPrivateIpAddress { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PrivateIpAddress: Private IP for the instance created.
AttrPrivateIpsRequired
public IResolvable AttrPrivateIps { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PrivateIps: Private IP.
AttrPublicIpsRequired
public IResolvable AttrPublicIps { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PublicIps: Public IP.
AttrQuantityRequired
public IResolvable AttrQuantity { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Quantity: number of instances to create.
AttrSystemDiskSizeRequired
public IResolvable AttrSystemDiskSize { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute SystemDiskSize: Disk size of the system disk.
AttrUniqueSuffixRequired
public IResolvable AttrUniqueSuffix { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrUserData { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrVSwitchId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute VSwitchId: The vSwitch Id to create ens instance.