

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](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::BedrockAgentCore::Gateway SessionConfiguration
<a name="aws-properties-bedrockagentcore-gateway-sessionconfiguration"></a>

The session configuration for an MCP gateway. This structure defines settings that control session behavior.

## Syntax
<a name="aws-properties-bedrockagentcore-gateway-sessionconfiguration-syntax"></a>

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

### JSON
<a name="aws-properties-bedrockagentcore-gateway-sessionconfiguration-syntax.json"></a>

```
{
  "[SessionTimeoutInSeconds](#cfn-bedrockagentcore-gateway-sessionconfiguration-sessiontimeoutinseconds)" : {{Integer}}
}
```

### YAML
<a name="aws-properties-bedrockagentcore-gateway-sessionconfiguration-syntax.yaml"></a>

```
  [SessionTimeoutInSeconds](#cfn-bedrockagentcore-gateway-sessionconfiguration-sessiontimeoutinseconds): {{Integer}}
```

## Properties
<a name="aws-properties-bedrockagentcore-gateway-sessionconfiguration-properties"></a>

`SessionTimeoutInSeconds`  <a name="cfn-bedrockagentcore-gateway-sessionconfiguration-sessiontimeoutinseconds"></a>
The session timeout in seconds. After this timeout, the session expires and subsequent requests to this session will receive an error. The minimum value is 900 seconds (15 minutes), the maximum value is 28800 seconds (8 hours), and the default value is 3600 seconds (1 hour).  
*Required*: No  
*Type*: Integer  
*Minimum*: `900`  
*Maximum*: `28800`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)