

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](https://docs.aws.amazon.com/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 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.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)