Interface InstanceLifecycleConfiguration.Builder

  • Method Details

    • idleInstanceTimeout

      InstanceLifecycleConfiguration.Builder idleInstanceTimeout(Integer idleInstanceTimeout)

      The number of seconds an instance can remain idle before it is stopped. An instance is considered idle when all of its agents are idle. The default is 900 seconds (15 minutes).

      Parameters:
      idleInstanceTimeout - The number of seconds an instance can remain idle before it is stopped. An instance is considered idle when all of its agents are idle. The default is 900 seconds (15 minutes).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxLifetime

      The maximum lifetime of an instance, in seconds. When an instance reaches this limit, the service terminates it regardless of activity. The default is 28800 seconds (8 hours). The maximum is 1209600 seconds (14 days).

      Parameters:
      maxLifetime - The maximum lifetime of an instance, in seconds. When an instance reaches this limit, the service terminates it regardless of activity. The default is 28800 seconds (8 hours). The maximum is 1209600 seconds (14 days).
      Returns:
      Returns a reference to this object so that method calls can be chained together.