spawn-ts API reference - v0.6.0
    Preparing search index...

    Function decodeConfigTags

    • Decode the lifecycle-relevant config from an instance's tag map into the fields of ManagedInstance. Mirrors the switch in pkg/provider/ec2.go — malformed values are ignored (left at their defaults), never fatal.

      Parameters

      • tags: Record<string, string>

      Returns Pick<
          ManagedInstance,
          | "launchTimeMs"
          | "ttlDeadlineMs"
          | "ttlMs"
          | "idleTimeoutMs"
          | "hibernateOnIdle"
          | "idleCpuPercent"
          | "costLimit"
          | "pricePerHour"
          | "onComplete"
          | "completionFile"
          | "completionDelayMs"
          | "computeSeconds",
      >