

# RecordExpirySpecification
<a name="API_RecordExpirySpecification"></a>

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.

## Contents
<a name="API_RecordExpirySpecification_Contents"></a>

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** action **   <a name="bedrockagentcorecontrol-Type-RecordExpirySpecification-action"></a>
The action to apply to the existing record expiry (long-term memory time-to-live) configuration. Set to `REMOVE` to remove a previously configured time-to-live so that newer records no longer expire. This value is not applicable on create paths.  
Type: String  
Valid Values: `REMOVE`   
Required: No

 ** recordExpiryDurationDays **   <a name="bedrockagentcorecontrol-Type-RecordExpirySpecification-recordExpiryDurationDays"></a>
The duration, in days, after which memory records generated by this strategy expire. The minimum is 31 days.  
Type: Integer  
Valid Range: Minimum value of 31.  
Required: No

## See Also
<a name="API_RecordExpirySpecification_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agentcore-control-2023-06-05/RecordExpirySpecification) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agentcore-control-2023-06-05/RecordExpirySpecification) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agentcore-control-2023-06-05/RecordExpirySpecification) 