

# AppInstanceRetentionSettings
<a name="API_AppInstanceRetentionSettings"></a>

The details of the data-retention settings for an `AppInstance`.

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

 ** ChannelRetentionSettings **   <a name="chimesdk-Type-AppInstanceRetentionSettings-ChannelRetentionSettings"></a>
The length of time in days to retain the messages in a channel.  
Type: [ChannelRetentionSettings](API_ChannelRetentionSettings.md) object  
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/chime-sdk-identity-2021-04-20/AppInstanceRetentionSettings) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/chime-sdk-identity-2021-04-20/AppInstanceRetentionSettings) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/chime-sdk-identity-2021-04-20/AppInstanceRetentionSettings) 