Skip to content

Instance

  • Implements: AlibabaCloud.SDK.ROS.CDK.Ecs.datasource.IInstance

This class encapsulates and extends the ROS resource type DATASOURCE::ECS::Instance.

Initializers

using AlibabaCloud.SDK.ROS.CDK.Ecs;
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


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.
FetchCondition No description.
FetchDependency No description.
FetchResourceDesc 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.

SessionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession

The synthesis session.


AddCondition

private void AddCondition(RosCondition Condition)

ConditionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition

AddCount

private void AddCount(object Count)

CountRequired

  • Type: object

AddDependency

private void AddDependency(Resource Resource)

ResourceRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource

AddResourceDesc

private void AddResourceDesc(string Desc)

DescRequired

  • Type: string

ApplyRemovalPolicy

private void ApplyRemovalPolicy(RemovalPolicy Policy)

PolicyRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy

FetchCondition

private RosCondition FetchCondition()

FetchDependency

private string[] FetchDependency()

FetchResourceDesc

private string FetchResourceDesc()

GetAtt

private IResolvable GetAtt(string Name)

NameRequired

  • Type: string

SetMetadata

private void SetMetadata(string Key, object Value)

KeyRequired

  • Type: string

ValueRequired

  • Type: object

Static Functions

Name Description
IsConstruct Return whether the given object is a Construct.

IsConstruct

using AlibabaCloud.SDK.ROS.CDK.Ecs;
Instance.IsConstruct(object X);

Return whether the given object is a Construct.

XRequired

  • Type: object

Properties

Name Type Description
Node AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode The construct tree node associated with this construct.
Env AlibabaCloud.SDK.ROS.CDK.Core.IResourceEnvironment The environment this resource belongs to.
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.
AttrActionOnMaintenance object Attribute ActionOnMaintenance: The O&M action attribute of the instance.
AttrAutoRebootTime object Attribute AutoRebootTime: Automatic reboot time after instance configuration change.
AttrAutoReleaseTime object Attribute AutoReleaseTime: The time when to automatically release the pay-as-you-go instance.
AttrAutoRenewEnabled object Attribute AutoRenewEnabled: Whether automatic renewal has been set.
AttrClusterId object Attribute ClusterId: The ID of the cluster to which the instance belongs.
AttrCpu object Attribute Cpu: The number of vCPUs.
AttrCpuOptions object Attribute CpuOptions: Details about the CPU options.
AttrCreateTime object Attribute CreateTime: The create time.
AttrCreditSpecification object Attribute CreditSpecification: The performance mode of the burstable instance.
AttrDedicatedHostAttribute object Attribute DedicatedHostAttribute: Details about the dedicated host.
AttrDedicatedInstanceAttribute object Attribute DedicatedInstanceAttribute: The attributes of the instance on the dedicated host.
AttrDeletionProtection object Attribute DeletionProtection: The release protection attribute of the instance.
AttrDeploymentSetGroupNo object Attribute DeploymentSetGroupNo: The number of the deployment set group to which the instance belongs in a deployment set.
AttrDeploymentSetId object Attribute DeploymentSetId: The ID of the deployment set in which the instance is deployed.
AttrDescription object Attribute Description: The description of the instance.
AttrDeviceAvailable object Attribute DeviceAvailable: Indicates whether data disks can be attached to the instance.
AttrDuration object Attribute Duration: The duration of automatic renewal.
AttrEcsCapacityReservationAttr object Attribute EcsCapacityReservationAttr: Details about the capacity reservation related to the instance.
AttrEipAddress object Attribute EipAddress: Details about the EIP associated with the instance.
AttrExpiredTime object Attribute ExpiredTime: The time when the instance expires.
AttrGpuAmount object Attribute GpuAmount: The number of GPUs for the instance type.
AttrGpuSpec object Attribute GpuSpec: The category of GPUs for the instance type.
AttrHostName object Attribute HostName: The hostname of the instance.
AttrHpcClusterId object Attribute HpcClusterId: ID of the HPC cluster to which the instance belongs.
AttrImageId object Attribute ImageId: The ID of the image.
AttrInstanceId object Attribute InstanceId: The ID of the instance.
AttrInstanceName object Attribute InstanceName: The name of the instance.
AttrInstanceNetworkType object Attribute InstanceNetworkType: The network type of the instance.
AttrInstanceType object Attribute InstanceType: The instance type of the instance.
AttrInstanceTypeFamily object Attribute InstanceTypeFamily: The instance family of the instance.
AttrInternetChargeType object Attribute InternetChargeType: The billing method for network usage.
AttrInternetMaxBandwidthIn object Attribute InternetMaxBandwidthIn: The maximum inbound public bandwidth.
AttrInternetMaxBandwidthOut object Attribute InternetMaxBandwidthOut: The maximum outbound public bandwidth.
AttrIoOptimized object Attribute IoOptimized: Specifies whether the instance is I/O optimized.
AttrKeyPairName object Attribute KeyPairName: The name of the SSH key pair bound to the instance.
AttrLocalStorageAmount object Attribute LocalStorageAmount: The number of local disks attached to the instance.
AttrLocalStorageCapacity object Attribute LocalStorageCapacity: The capacity of local disks attached to the instance.
AttrMaintenanceWindows object Attribute MaintenanceWindows: The list of operations window instances.
AttrMemory object Attribute Memory: The memory size of the instance.
AttrMetadataOptions object Attribute MetadataOptions: Details about the metadata options.
AttrNetworkInterfaces object Attribute NetworkInterfaces: Details about the ENIs bound to the instance.
AttrNotifyOnMaintenance object Attribute NotifyOnMaintenance: Whether to send an event notification before the instance goes down.
AttrOperationLocks object Attribute OperationLocks: The reasons why the instance was locked.
AttrOsName object Attribute OsName: The name of the operating system of the instance.
AttrOsNameEn object Attribute OsNameEn: The English name of the operating system of the instance.
AttrOsType object Attribute OsType: The type of the operating system of the instance.
AttrPaymentType object Attribute PaymentType: The billing method of the instance.
AttrPeriodUnit object Attribute PeriodUnit: Renewal unit.
AttrPrivatePoolOptionsId object Attribute PrivatePoolOptionsId: Private pool ID.
AttrPrivatePoolOptionsMatchCriteria object Attribute PrivatePoolOptionsMatchCriteria: The private pool matching pattern of the instance.
AttrPublicIpAddress object Attribute PublicIpAddress: The public IP addresses of the instance.
AttrRdmaIpAddress object Attribute RdmaIpAddress: The RDMA network IP of the HPC instance.
AttrRecyclable object Attribute Recyclable: Indicates whether the instance can be recycled.
AttrRenewalStatus object Attribute RenewalStatus: The automatic renewal status of the instance.
AttrResourceGroupId object Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
AttrSaleCycle object Attribute SaleCycle: Instance billing cycles.
AttrSecurityGroupIds object Attribute SecurityGroupIds: The IDs of the security groups to which the instance belongs.
AttrSerialNumber object Attribute SerialNumber: The serial number of the instance.
AttrSpotDuration object Attribute SpotDuration: The protection period of the preemptible instance.
AttrSpotPriceLimit object Attribute SpotPriceLimit: The maximum hourly price of the instance.
AttrSpotStrategy object Attribute SpotStrategy: The bidding policy for the pay-as-you-go instance.
AttrStartTime object Attribute StartTime: The time when the instance was last started.
AttrStoppedMode object Attribute StoppedMode: Indicates whether the instance continues to be billed after it is stopped.
AttrTags object Attribute Tags: The tags of the instance.
AttrUserData object Attribute UserData: The custom data of the instance.
AttrVpcAttributes object Attribute VpcAttributes: The VPC attributes of the instance.
AttrZoneId object Attribute ZoneId: The zone ID of the instance.
Props InstanceProps No description.

NodeRequired

public ConstructNode Node { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode

The construct tree node associated with this construct.


EnvRequired

public IResourceEnvironment Env { get; }
  • Type: AlibabaCloud.SDK.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 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

AttrActionOnMaintenanceRequired

public object AttrActionOnMaintenance { get; }
  • Type: object

Attribute ActionOnMaintenance: The O&M action attribute of the instance.


AttrAutoRebootTimeRequired

public object AttrAutoRebootTime { get; }
  • Type: object

Attribute AutoRebootTime: Automatic reboot time after instance configuration change.


AttrAutoReleaseTimeRequired

public object AttrAutoReleaseTime { get; }
  • Type: object

Attribute AutoReleaseTime: The time when to automatically release the pay-as-you-go instance.


AttrAutoRenewEnabledRequired

public object AttrAutoRenewEnabled { get; }
  • Type: object

Attribute AutoRenewEnabled: Whether automatic renewal has been set.


AttrClusterIdRequired

public object AttrClusterId { get; }
  • Type: object

Attribute ClusterId: The ID of the cluster to which the instance belongs.


AttrCpuRequired

public object AttrCpu { get; }
  • Type: object

Attribute Cpu: The number of vCPUs.


AttrCpuOptionsRequired

public object AttrCpuOptions { get; }
  • Type: object

Attribute CpuOptions: Details about the CPU options.


AttrCreateTimeRequired

public object AttrCreateTime { get; }
  • Type: object

Attribute CreateTime: The create time.


AttrCreditSpecificationRequired

public object AttrCreditSpecification { get; }
  • Type: object

Attribute CreditSpecification: The performance mode of the burstable instance.


AttrDedicatedHostAttributeRequired

public object AttrDedicatedHostAttribute { get; }
  • Type: object

Attribute DedicatedHostAttribute: Details about the dedicated host.

It is an array that consists of the DedicatedHostClusterId, DedicatedHostId, and DedicatedHostName parameters.


AttrDedicatedInstanceAttributeRequired

public object AttrDedicatedInstanceAttribute { get; }
  • Type: object

Attribute DedicatedInstanceAttribute: The attributes of the instance on the dedicated host.


AttrDeletionProtectionRequired

public object AttrDeletionProtection { get; }
  • Type: object

Attribute DeletionProtection: The release protection attribute of the instance.

This parameter indicates whether you can use the ECS console or call the DeleteInstance operation to release the instance.


AttrDeploymentSetGroupNoRequired

public object AttrDeploymentSetGroupNo { get; }
  • Type: object

Attribute DeploymentSetGroupNo: The number of the deployment set group to which the instance belongs in a deployment set.


AttrDeploymentSetIdRequired

public object AttrDeploymentSetId { get; }
  • Type: object

Attribute DeploymentSetId: The ID of the deployment set in which the instance is deployed.


AttrDescriptionRequired

public object AttrDescription { get; }
  • Type: object

Attribute Description: The description of the instance.


AttrDeviceAvailableRequired

public object AttrDeviceAvailable { get; }
  • Type: object

Attribute DeviceAvailable: Indicates whether data disks can be attached to the instance.


AttrDurationRequired

public object AttrDuration { get; }
  • Type: object

Attribute Duration: The duration of automatic renewal.


AttrEcsCapacityReservationAttrRequired

public object AttrEcsCapacityReservationAttr { get; }
  • Type: object

Attribute EcsCapacityReservationAttr: Details about the capacity reservation related to the instance.


AttrEipAddressRequired

public object AttrEipAddress { get; }
  • Type: object

Attribute EipAddress: Details about the EIP associated with the instance.


AttrExpiredTimeRequired

public object AttrExpiredTime { get; }
  • Type: object

Attribute ExpiredTime: The time when the instance expires.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.


AttrGpuAmountRequired

public object AttrGpuAmount { get; }
  • Type: object

Attribute GpuAmount: The number of GPUs for the instance type.


AttrGpuSpecRequired

public object AttrGpuSpec { get; }
  • Type: object

Attribute GpuSpec: The category of GPUs for the instance type.


AttrHostNameRequired

public object AttrHostName { get; }
  • Type: object

Attribute HostName: The hostname of the instance.


AttrHpcClusterIdRequired

public object AttrHpcClusterId { get; }
  • Type: object

Attribute HpcClusterId: ID of the HPC cluster to which the instance belongs.


AttrImageIdRequired

public object AttrImageId { get; }
  • Type: object

Attribute ImageId: The ID of the image.


AttrInstanceIdRequired

public object AttrInstanceId { get; }
  • Type: object

Attribute InstanceId: The ID of the instance.


AttrInstanceNameRequired

public object AttrInstanceName { get; }
  • Type: object

Attribute InstanceName: The name of the instance.

Fuzzy search with the asterisk (*) wildcard characters is supported.


AttrInstanceNetworkTypeRequired

public object AttrInstanceNetworkType { get; }
  • Type: object

Attribute InstanceNetworkType: The network type of the instance.


AttrInstanceTypeRequired

public object AttrInstanceType { get; }
  • Type: object

Attribute InstanceType: The instance type of the instance.


AttrInstanceTypeFamilyRequired

public object AttrInstanceTypeFamily { get; }
  • Type: object

Attribute InstanceTypeFamily: The instance family of the instance.


AttrInternetChargeTypeRequired

public object AttrInternetChargeType { get; }
  • Type: object

Attribute InternetChargeType: The billing method for network usage.


AttrInternetMaxBandwidthInRequired

public object AttrInternetMaxBandwidthIn { get; }
  • Type: object

Attribute InternetMaxBandwidthIn: The maximum inbound public bandwidth.

Unit: Mbit/s.


AttrInternetMaxBandwidthOutRequired

public object AttrInternetMaxBandwidthOut { get; }
  • Type: object

Attribute InternetMaxBandwidthOut: The maximum outbound public bandwidth.

Unit: Mbit/s.


AttrIoOptimizedRequired

public object AttrIoOptimized { get; }
  • Type: object

Attribute IoOptimized: Specifies whether the instance is I/O optimized.


AttrKeyPairNameRequired

public object AttrKeyPairName { get; }
  • Type: object

Attribute KeyPairName: The name of the SSH key pair bound to the instance.


AttrLocalStorageAmountRequired

public object AttrLocalStorageAmount { get; }
  • Type: object

Attribute LocalStorageAmount: The number of local disks attached to the instance.


AttrLocalStorageCapacityRequired

public object AttrLocalStorageCapacity { get; }
  • Type: object

Attribute LocalStorageCapacity: The capacity of local disks attached to the instance.


AttrMaintenanceWindowsRequired

public object AttrMaintenanceWindows { get; }
  • Type: object

Attribute MaintenanceWindows: The list of operations window instances.


AttrMemoryRequired

public object AttrMemory { get; }
  • Type: object

Attribute Memory: The memory size of the instance.

Unit: MiB.


AttrMetadataOptionsRequired

public object AttrMetadataOptions { get; }
  • Type: object

Attribute MetadataOptions: Details about the metadata options.


AttrNetworkInterfacesRequired

public object AttrNetworkInterfaces { get; }
  • Type: object

Attribute NetworkInterfaces: Details about the ENIs bound to the instance.


AttrNotifyOnMaintenanceRequired

public object AttrNotifyOnMaintenance { get; }
  • Type: object

Attribute NotifyOnMaintenance: Whether to send an event notification before the instance goes down.


AttrOperationLocksRequired

public object AttrOperationLocks { get; }
  • Type: object

Attribute OperationLocks: The reasons why the instance was locked.


AttrOsNameRequired

public object AttrOsName { get; }
  • Type: object

Attribute OsName: The name of the operating system of the instance.


AttrOsNameEnRequired

public object AttrOsNameEn { get; }
  • Type: object

Attribute OsNameEn: The English name of the operating system of the instance.


AttrOsTypeRequired

public object AttrOsType { get; }
  • Type: object

Attribute OsType: The type of the operating system of the instance.


AttrPaymentTypeRequired

public object AttrPaymentType { get; }
  • Type: object

Attribute PaymentType: The billing method of the instance.


AttrPeriodUnitRequired

public object AttrPeriodUnit { get; }
  • Type: object

Attribute PeriodUnit: Renewal unit.


AttrPrivatePoolOptionsIdRequired

public object AttrPrivatePoolOptionsId { get; }
  • Type: object

Attribute PrivatePoolOptionsId: Private pool ID.

When the return value is open, the private pool ID is the private pool ID assigned when the system automatically matches.


AttrPrivatePoolOptionsMatchCriteriaRequired

public object AttrPrivatePoolOptionsMatchCriteria { get; }
  • Type: object

Attribute PrivatePoolOptionsMatchCriteria: The private pool matching pattern of the instance.


AttrPublicIpAddressRequired

public object AttrPublicIpAddress { get; }
  • Type: object

Attribute PublicIpAddress: The public IP addresses of the instance.


AttrRdmaIpAddressRequired

public object AttrRdmaIpAddress { get; }
  • Type: object

Attribute RdmaIpAddress: The RDMA network IP of the HPC instance.


AttrRecyclableRequired

public object AttrRecyclable { get; }
  • Type: object

Attribute Recyclable: Indicates whether the instance can be recycled.


AttrRenewalStatusRequired

public object AttrRenewalStatus { get; }
  • Type: object

Attribute RenewalStatus: The automatic renewal status of the instance.


AttrResourceGroupIdRequired

public object AttrResourceGroupId { get; }
  • Type: object

Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.

If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.


AttrSaleCycleRequired

public object AttrSaleCycle { get; }
  • Type: object

Attribute SaleCycle: Instance billing cycles.


AttrSecurityGroupIdsRequired

public object AttrSecurityGroupIds { get; }
  • Type: object

Attribute SecurityGroupIds: The IDs of the security groups to which the instance belongs.


AttrSerialNumberRequired

public object AttrSerialNumber { get; }
  • Type: object

Attribute SerialNumber: The serial number of the instance.


AttrSpotDurationRequired

public object AttrSpotDuration { get; }
  • Type: object

Attribute SpotDuration: The protection period of the preemptible instance.

Unit: hours.


AttrSpotPriceLimitRequired

public object AttrSpotPriceLimit { get; }
  • Type: object

Attribute SpotPriceLimit: The maximum hourly price of the instance.

It can be accurate to three decimal places. This parameter is valid only when the SpotStrategy parameter is set to SpotWithPriceLimit.


AttrSpotStrategyRequired

public object AttrSpotStrategy { get; }
  • Type: object

Attribute SpotStrategy: The bidding policy for the pay-as-you-go instance.


AttrStartTimeRequired

public object AttrStartTime { get; }
  • Type: object

Attribute StartTime: The time when the instance was last started.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.


AttrStoppedModeRequired

public object AttrStoppedMode { get; }
  • Type: object

Attribute StoppedMode: Indicates whether the instance continues to be billed after it is stopped.


AttrTagsRequired

public object AttrTags { get; }
  • Type: object

Attribute Tags: The tags of the instance.


AttrUserDataRequired

public object AttrUserData { get; }
  • Type: object

Attribute UserData: The custom data of the instance.


AttrVpcAttributesRequired

public object AttrVpcAttributes { get; }
  • Type: object

Attribute VpcAttributes: The VPC attributes of the instance.


AttrZoneIdRequired

public object AttrZoneId { get; }
  • Type: object

Attribute ZoneId: The zone ID of the instance.


PropsRequired

public InstanceProps Props { get; }