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.
attrHostName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute HostName: Host name of created instance.
attrInnerIp java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InnerIp: Inner IP address of the specified instance.
attrInstanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InstanceId: The instance ID of created ecs instance.
attrPrimaryNetworkInterfaceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PrimaryNetworkInterfaceId: Primary network interface ID of created instance.
attrPrivateIp java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PrivateIp: Private IP address of created ecs instance.
attrPublicIp java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PublicIp: Public IP address of created ecs instance.
attrSecurityGroupIds java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute SecurityGroupIds: Security group ID list of created instance.
attrZoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ZoneId: Zone ID of created 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.


attrHostNameRequired

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

Attribute HostName: Host name of created instance.


attrInnerIpRequired

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

Attribute InnerIp: Inner IP address of the specified instance.

Only for classical instance.


attrInstanceIdRequired

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

Attribute InstanceId: The instance ID of created ecs instance.


attrPrimaryNetworkInterfaceIdRequired

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

Attribute PrimaryNetworkInterfaceId: Primary network interface ID of created instance.


attrPrivateIpRequired

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

Attribute PrivateIp: Private IP address of created ecs instance.

Only for VPC instance.


attrPublicIpRequired

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

Attribute PublicIp: Public IP address of created ecs instance.


attrSecurityGroupIdsRequired

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

Attribute SecurityGroupIds: Security group ID list of created instance.


attrZoneIdRequired

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

Attribute ZoneId: Zone ID of created instance.


propsRequired

public InstanceProps getProps();