Skip to content

/AWS1/CL_BDOLIFECYCLECONF

LifecycleConfiguration lets you manage the lifecycle of runtime sessions and resources in AgentCore Runtime. This configuration helps optimize resource utilization by automatically cleaning up idle sessions and preventing long-running instances from consuming resources indefinitely.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_idleruntimesessiontimeout TYPE /AWS1/BDOINTEGER /AWS1/BDOINTEGER

Timeout in seconds for idle runtime sessions. When a session remains idle for this duration, it will be automatically terminated. Default: 900 seconds (15 minutes).

iv_maxlifetime TYPE /AWS1/BDOINTEGER /AWS1/BDOINTEGER

Maximum lifetime for the instance in seconds. Once reached, instances will be automatically terminated and replaced. Default: 28800 seconds (8 hours).


Queryable Attributes

idleRuntimeSessionTimeout

Timeout in seconds for idle runtime sessions. When a session remains idle for this duration, it will be automatically terminated. Default: 900 seconds (15 minutes).

Accessible with the following methods

Method Description
GET_IDLERUNTIMESESSTIMEOUT() Getter for IDLERUNTIMESESSIONTIMEOUT, with configurable defa
ASK_IDLERUNTIMESESSTIMEOUT() Getter for IDLERUNTIMESESSIONTIMEOUT w/ exceptions if field
HAS_IDLERUNTIMESESSTIMEOUT() Determine if IDLERUNTIMESESSIONTIMEOUT has a value

maxLifetime

Maximum lifetime for the instance in seconds. Once reached, instances will be automatically terminated and replaced. Default: 28800 seconds (8 hours).

Accessible with the following methods

Method Description
GET_MAXLIFETIME() Getter for MAXLIFETIME, with configurable default
ASK_MAXLIFETIME() Getter for MAXLIFETIME w/ exceptions if field has no value
HAS_MAXLIFETIME() Determine if MAXLIFETIME has a value