View a markdown version of this page

AWS::BedrockAgentCore::Harness LifecycleConfiguration - AWS CloudFormation

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::BedrockAgentCore::Harness LifecycleConfiguration

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.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "IdleRuntimeSessionTimeout" : Integer, "MaxLifetime" : Integer }

YAML

IdleRuntimeSessionTimeout: Integer MaxLifetime: Integer

Properties

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).

Required: No

Type: Integer

Minimum: 60

Maximum: 28800

Update requires: No interruption

MaxLifetime

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

Required: No

Type: Integer

Minimum: 60

Maximum: 28800

Update requires: No interruption