

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::Memory RecordExpirySpecification

Specifies the record expiry (long-term memory time-to-live) for a memory strategy. Provide exactly one of `recordExpiryDurationDays` or `action`. Set `recordExpiryDurationDays` to configure or update the time-to-live, or set `action` to `REMOVE` to remove a previously configured time-to-live.

## Syntax
<a name="aws-properties-bedrockagentcore-memory-recordexpiryspecification-syntax"></a>

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

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

```json
{
  "[RecordExpiryDurationDays](#cfn-bedrockagentcore-memory-recordexpiryspecification-recordexpirydurationdays)" : {{Integer}}
}
```

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

```yaml
  [RecordExpiryDurationDays](#cfn-bedrockagentcore-memory-recordexpiryspecification-recordexpirydurationdays): {{Integer}}
```

## Properties
<a name="aws-properties-bedrockagentcore-memory-recordexpiryspecification-properties"></a>

`RecordExpiryDurationDays`  <a name="cfn-bedrockagentcore-memory-recordexpiryspecification-recordexpirydurationdays"></a>
The duration, in days, after which memory records generated by this strategy expire. The minimum is 31 days.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `31`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)