Skip to main content

retention_settings

Creates, updates, deletes, gets or lists a retention_settings resource.

Overview

Nameretention_settings
TypeResource
Idaws.chime.retention_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
initiate_deletion_timestampstring (date-time)The timestamp representing the time at which the specified items are permanently deleted, in ISO 8601 format.
retention_settingsobjectThe retention settings.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_retention_settingsselectaccount_id, regionGets the retention settings for the specified Amazon Chime Enterprise account. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide.
put_retention_settingsreplaceaccount_id, region, RetentionSettingsPuts retention settings for the specified Amazon Chime Enterprise account. We recommend using AWS CloudTrail to monitor usage of this API for your account. For more information, see Logging Amazon Chime API Calls with AWS CloudTrail in the Amazon Chime Administration Guide. To turn off existing retention settings, remove the number of days from the corresponding RetentionDays field in the RetentionSettings object. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Amazon Chime account ID.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the retention settings for the specified Amazon Chime Enterprise account. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide.

SELECT
initiate_deletion_timestamp,
retention_settings
FROM aws.chime.retention_settings
WHERE account_id = '{{ account_id }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Puts retention settings for the specified Amazon Chime Enterprise account. We recommend using AWS CloudTrail to monitor usage of this API for your account. For more information, see Logging Amazon Chime API Calls with AWS CloudTrail in the Amazon Chime Administration Guide. To turn off existing retention settings, remove the number of days from the corresponding RetentionDays field in the RetentionSettings object. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide.

REPLACE aws.chime.retention_settings
SET
RetentionSettings = '{{ RetentionSettings }}'
WHERE
account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
AND RetentionSettings = '{{ RetentionSettings }}' --required
RETURNING
initiate_deletion_timestamp,
retention_settings;