interface LifecycleConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.LifecycleConfiguration |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#LifecycleConfiguration |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.LifecycleConfiguration |
Python | aws_cdk.aws_bedrock_agentcore_alpha.LifecycleConfiguration |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha » LifecycleConfiguration |
⚠️ Deprecated: Use the equivalent construct from aws-cdk-lib/aws-bedrockagentcore instead.
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
import * as cdk from 'aws-cdk-lib';
const lifecycleConfiguration: bedrock_agentcore_alpha.LifecycleConfiguration = {
idleRuntimeSessionTimeout: cdk.Duration.minutes(30),
maxLifetime: cdk.Duration.minutes(30),
};
Properties
| Name | Type | Description |
|---|---|---|
| idle | Duration | Timeout in seconds for idle runtime sessions. |
| max | Duration | Maximum lifetime for the instance in seconds. |
idleRuntimeSessionTimeout?
⚠️ Deprecated: Use the equivalent construct from aws-cdk-lib/aws-bedrockagentcore instead.
Type:
Duration
(optional, default: undefined - service default setting is 900 seconds (15 minutes))
Timeout in seconds for idle runtime sessions.
When a session remains idle for this duration, it will be automatically terminated.
maxLifetime?
⚠️ Deprecated: Use the equivalent construct from aws-cdk-lib/aws-bedrockagentcore instead.
Type:
Duration
(optional, default: undefined - service default setting is 28800 seconds (8 hours))
Maximum lifetime for the instance in seconds.
Once reached, instances will be automatically terminated and replaced.

.NET
Go
Java
Python
TypeScript (