View a markdown version of this page

AWS::BedrockAgentCore::Harness LifecycleConfiguration - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon 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 Amazon 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