Interface IInstance
- All Superinterfaces:
IConnectable,software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IGrantable,IInstanceRef,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IInstance.Jsii$Default
- All Known Implementing Classes:
BastionHostLinux,IInstance.Jsii$Proxy,Instance
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:19.256Z")
@Stability(Stable)
public interface IInstance
extends software.amazon.jsii.JsiiSerializable, IResource, IConnectable, IGrantable, IInstanceRef
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIInstance.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptiongetEnv()The environment this resource belongs to.The availability zone the instance was launched in.The instance's ID.Private DNS name for this instance.Private IP for this instance.Publicly-routable DNS name for this instance.Publicly-routable IP address for this instance.software.constructs.NodegetNode()The tree node.Methods inherited from interface software.amazon.awscdk.services.ec2.IConnectable
getConnectionsMethods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.interfaces.ec2.IInstanceRef
getInstanceRefMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceAvailabilityZone
The availability zone the instance was launched in. -
getInstanceId
The instance's ID. -
getInstancePrivateDnsName
Private DNS name for this instance. -
getInstancePrivateIp
Private IP for this instance. -
getInstancePublicDnsName
Publicly-routable DNS name for this instance.(May be an empty string if the instance does not have a public name).
-
getInstancePublicIp
Publicly-routable IP address for this instance.(May be an empty string if the instance does not have a public IP).
-
getNode
@Stability(Stable) @NotNull software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware
-