Skip to content

Put Retention Configuration

configservice_put_retention_configuration R Documentation

Creates and updates the retention configuration with details about retention period (number of days) that Config stores your historical information

Description

Creates and updates the retention configuration with details about retention period (number of days) that Config stores your historical information. The API creates the RetentionConfiguration object and names the object as default. When you have a RetentionConfiguration object named default, calling the API modifies the default object.

Currently, Config supports only one retention configuration per region in your account.

Usage

configservice_put_retention_configuration(RetentionPeriodInDays)

Arguments

RetentionPeriodInDays

[required] Number of days Config stores your historical information.

Currently, only applicable to the configuration item history.

Value

A list with the following syntax:

list(
  RetentionConfiguration = list(
    Name = "string",
    RetentionPeriodInDays = 123
  )
)

Request syntax

svc$put_retention_configuration(
  RetentionPeriodInDays = 123
)