java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.servicediscovery.InstanceBase
All Implemented Interfaces:
IResource, IInstance, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable
Direct Known Subclasses:
AliasTargetInstance, CnameInstance, IpInstance, NonIpInstance

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:13.998Z") @Stability(Stable) public abstract class InstanceBase extends Resource implements IInstance
  • Constructor Details

    • InstanceBase

      protected InstanceBase(software.amazon.jsii.JsiiObjectRef objRef)
    • InstanceBase

      protected InstanceBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • InstanceBase

      @Stability(Stable) protected InstanceBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • InstanceBase

      @Stability(Stable) protected InstanceBase(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • uniqueInstanceId

      @Stability(Stable) @NotNull protected String uniqueInstanceId()
      Generate a unique instance Id that is safe to pass to CloudMap.
    • getInstanceId

      @Stability(Stable) @NotNull public abstract String getInstanceId()
      The Id of the instance.
      Specified by:
      getInstanceId in interface IInstance
    • getService

      @Stability(Stable) @NotNull public abstract IService getService()
      The Cloudmap service to which the instance is registered.
      Specified by:
      getService in interface IInstance