Skip to content

Instance

  • Implements: github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.IInstance

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

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
datasource.NewInstance(scope Construct, id *string, props InstanceProps, enableResourcePropertyConstraint *bool) Instance
Name Type Description
scope github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct No description.
id *string No description.
props InstanceProps No description.
enableResourcePropertyConstraint *bool No description.

scopeRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func ToString() *string

Returns a string representation of this construct.

Synthesize

func Synthesize(session ISynthesisSession)

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: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession

The synthesis session.


AddCondition

func AddCondition(condition RosCondition)

conditionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition

AddCount

func AddCount(count interface{})

countRequired

  • Type: interface{}

AddDependency

func AddDependency(resource Resource)

resourceRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource

AddResourceDesc

func AddResourceDesc(desc *string)

descRequired

  • Type: *string

ApplyRemovalPolicy

func ApplyRemovalPolicy(policy RemovalPolicy)

policyRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy

FetchCondition

func FetchCondition() RosCondition

FetchDependency

func FetchDependency() *[]*string

FetchResourceDesc

func FetchResourceDesc() *string

GetAtt

func GetAtt(name *string) IResolvable

nameRequired

  • Type: *string

SetMetadata

func SetMetadata(key *string, value interface{})

keyRequired

  • Type: *string

valueRequired

  • Type: interface{}

Static Functions

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

IsConstruct

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
datasource.Instance_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

xRequired

  • Type: interface{}

Properties

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

NodeRequired

func Node() ConstructNode
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode

The construct tree node associated with this construct.


EnvRequired

func Env() IResourceEnvironment
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func Ref() *string
  • Type: *string

StackRequired

func Stack() Stack
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack

The stack in which this resource is defined.


ResourceOptional

func Resource() RosResource
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource

AttrActionOnMaintenanceRequired

func AttrActionOnMaintenance() interface{}
  • Type: interface{}

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


AttrAutoRebootTimeRequired

func AttrAutoRebootTime() interface{}
  • Type: interface{}

Attribute AutoRebootTime: Automatic reboot time after instance configuration change.


AttrAutoReleaseTimeRequired

func AttrAutoReleaseTime() interface{}
  • Type: interface{}

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


AttrAutoRenewEnabledRequired

func AttrAutoRenewEnabled() interface{}
  • Type: interface{}

Attribute AutoRenewEnabled: Whether automatic renewal has been set.


AttrClusterIdRequired

func AttrClusterId() interface{}
  • Type: interface{}

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


AttrCpuRequired

func AttrCpu() interface{}
  • Type: interface{}

Attribute Cpu: The number of vCPUs.


AttrCpuOptionsRequired

func AttrCpuOptions() interface{}
  • Type: interface{}

Attribute CpuOptions: Details about the CPU options.


AttrCreateTimeRequired

func AttrCreateTime() interface{}
  • Type: interface{}

Attribute CreateTime: The create time.


AttrCreditSpecificationRequired

func AttrCreditSpecification() interface{}
  • Type: interface{}

Attribute CreditSpecification: The performance mode of the burstable instance.


AttrDedicatedHostAttributeRequired

func AttrDedicatedHostAttribute() interface{}
  • Type: interface{}

Attribute DedicatedHostAttribute: Details about the dedicated host.

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


AttrDedicatedInstanceAttributeRequired

func AttrDedicatedInstanceAttribute() interface{}
  • Type: interface{}

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


AttrDeletionProtectionRequired

func AttrDeletionProtection() interface{}
  • Type: interface{}

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

func AttrDeploymentSetGroupNo() interface{}
  • Type: interface{}

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


AttrDeploymentSetIdRequired

func AttrDeploymentSetId() interface{}
  • Type: interface{}

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


AttrDescriptionRequired

func AttrDescription() interface{}
  • Type: interface{}

Attribute Description: The description of the instance.


AttrDeviceAvailableRequired

func AttrDeviceAvailable() interface{}
  • Type: interface{}

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


AttrDurationRequired

func AttrDuration() interface{}
  • Type: interface{}

Attribute Duration: The duration of automatic renewal.


AttrEcsCapacityReservationAttrRequired

func AttrEcsCapacityReservationAttr() interface{}
  • Type: interface{}

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


AttrEipAddressRequired

func AttrEipAddress() interface{}
  • Type: interface{}

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


AttrExpiredTimeRequired

func AttrExpiredTime() interface{}
  • Type: interface{}

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

func AttrGpuAmount() interface{}
  • Type: interface{}

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


AttrGpuSpecRequired

func AttrGpuSpec() interface{}
  • Type: interface{}

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


AttrHostNameRequired

func AttrHostName() interface{}
  • Type: interface{}

Attribute HostName: The hostname of the instance.


AttrHpcClusterIdRequired

func AttrHpcClusterId() interface{}
  • Type: interface{}

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


AttrImageIdRequired

func AttrImageId() interface{}
  • Type: interface{}

Attribute ImageId: The ID of the image.


AttrInstanceIdRequired

func AttrInstanceId() interface{}
  • Type: interface{}

Attribute InstanceId: The ID of the instance.


AttrInstanceNameRequired

func AttrInstanceName() interface{}
  • Type: interface{}

Attribute InstanceName: The name of the instance.

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


AttrInstanceNetworkTypeRequired

func AttrInstanceNetworkType() interface{}
  • Type: interface{}

Attribute InstanceNetworkType: The network type of the instance.


AttrInstanceTypeRequired

func AttrInstanceType() interface{}
  • Type: interface{}

Attribute InstanceType: The instance type of the instance.


AttrInstanceTypeFamilyRequired

func AttrInstanceTypeFamily() interface{}
  • Type: interface{}

Attribute InstanceTypeFamily: The instance family of the instance.


AttrInternetChargeTypeRequired

func AttrInternetChargeType() interface{}
  • Type: interface{}

Attribute InternetChargeType: The billing method for network usage.


AttrInternetMaxBandwidthInRequired

func AttrInternetMaxBandwidthIn() interface{}
  • Type: interface{}

Attribute InternetMaxBandwidthIn: The maximum inbound public bandwidth.

Unit: Mbit/s.


AttrInternetMaxBandwidthOutRequired

func AttrInternetMaxBandwidthOut() interface{}
  • Type: interface{}

Attribute InternetMaxBandwidthOut: The maximum outbound public bandwidth.

Unit: Mbit/s.


AttrIoOptimizedRequired

func AttrIoOptimized() interface{}
  • Type: interface{}

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


AttrKeyPairNameRequired

func AttrKeyPairName() interface{}
  • Type: interface{}

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


AttrLocalStorageAmountRequired

func AttrLocalStorageAmount() interface{}
  • Type: interface{}

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


AttrLocalStorageCapacityRequired

func AttrLocalStorageCapacity() interface{}
  • Type: interface{}

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


AttrMaintenanceWindowsRequired

func AttrMaintenanceWindows() interface{}
  • Type: interface{}

Attribute MaintenanceWindows: The list of operations window instances.


AttrMemoryRequired

func AttrMemory() interface{}
  • Type: interface{}

Attribute Memory: The memory size of the instance.

Unit: MiB.


AttrMetadataOptionsRequired

func AttrMetadataOptions() interface{}
  • Type: interface{}

Attribute MetadataOptions: Details about the metadata options.


AttrNetworkInterfacesRequired

func AttrNetworkInterfaces() interface{}
  • Type: interface{}

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


AttrNotifyOnMaintenanceRequired

func AttrNotifyOnMaintenance() interface{}
  • Type: interface{}

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


AttrOperationLocksRequired

func AttrOperationLocks() interface{}
  • Type: interface{}

Attribute OperationLocks: The reasons why the instance was locked.


AttrOsNameRequired

func AttrOsName() interface{}
  • Type: interface{}

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


AttrOsNameEnRequired

func AttrOsNameEn() interface{}
  • Type: interface{}

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


AttrOsTypeRequired

func AttrOsType() interface{}
  • Type: interface{}

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


AttrPaymentTypeRequired

func AttrPaymentType() interface{}
  • Type: interface{}

Attribute PaymentType: The billing method of the instance.


AttrPeriodUnitRequired

func AttrPeriodUnit() interface{}
  • Type: interface{}

Attribute PeriodUnit: Renewal unit.


AttrPrivatePoolOptionsIdRequired

func AttrPrivatePoolOptionsId() interface{}
  • Type: interface{}

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

func AttrPrivatePoolOptionsMatchCriteria() interface{}
  • Type: interface{}

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


AttrPublicIpAddressRequired

func AttrPublicIpAddress() interface{}
  • Type: interface{}

Attribute PublicIpAddress: The public IP addresses of the instance.


AttrRdmaIpAddressRequired

func AttrRdmaIpAddress() interface{}
  • Type: interface{}

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


AttrRecyclableRequired

func AttrRecyclable() interface{}
  • Type: interface{}

Attribute Recyclable: Indicates whether the instance can be recycled.


AttrRenewalStatusRequired

func AttrRenewalStatus() interface{}
  • Type: interface{}

Attribute RenewalStatus: The automatic renewal status of the instance.


AttrResourceGroupIdRequired

func AttrResourceGroupId() interface{}
  • Type: interface{}

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

func AttrSaleCycle() interface{}
  • Type: interface{}

Attribute SaleCycle: Instance billing cycles.


AttrSecurityGroupIdsRequired

func AttrSecurityGroupIds() interface{}
  • Type: interface{}

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


AttrSerialNumberRequired

func AttrSerialNumber() interface{}
  • Type: interface{}

Attribute SerialNumber: The serial number of the instance.


AttrSpotDurationRequired

func AttrSpotDuration() interface{}
  • Type: interface{}

Attribute SpotDuration: The protection period of the preemptible instance.

Unit: hours.


AttrSpotPriceLimitRequired

func AttrSpotPriceLimit() interface{}
  • Type: interface{}

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

func AttrSpotStrategy() interface{}
  • Type: interface{}

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


AttrStartTimeRequired

func AttrStartTime() interface{}
  • Type: interface{}

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

func AttrStoppedMode() interface{}
  • Type: interface{}

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


AttrTagsRequired

func AttrTags() interface{}
  • Type: interface{}

Attribute Tags: The tags of the instance.


AttrUserDataRequired

func AttrUserData() interface{}
  • Type: interface{}

Attribute UserData: The custom data of the instance.


AttrVpcAttributesRequired

func AttrVpcAttributes() interface{}
  • Type: interface{}

Attribute VpcAttributes: The VPC attributes of the instance.


AttrZoneIdRequired

func AttrZoneId() interface{}
  • Type: interface{}

Attribute ZoneId: The zone ID of the instance.


PropsRequired

func Props() InstanceProps