ConfigService.Client.
put_retention_configuration
(**kwargs)¶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.
Note
Currently, Config supports only one retention configuration per region in your account.
See also: AWS API Documentation
Request Syntax
response = client.put_retention_configuration(
RetentionPeriodInDays=123
)
[REQUIRED]
Number of days Config stores your historical information.
Note
Currently, only applicable to the configuration item history.
{
'RetentionConfiguration': {
'Name': 'string',
'RetentionPeriodInDays': 123
}
}
Response Structure
Returns a retention configuration object.
The name of the retention configuration object.
Number of days Config stores your historical information.
Note
Currently, only applicable to the configuration item history.
Exceptions
ConfigService.Client.exceptions.InvalidParameterValueException
ConfigService.Client.exceptions.MaxNumberOfRetentionConfigurationsExceededException