| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Config.PutRetentionConfiguration
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.
Synopsis
- data PutRetentionConfiguration = PutRetentionConfiguration' {}
- newPutRetentionConfiguration :: Natural -> PutRetentionConfiguration
- putRetentionConfiguration_retentionPeriodInDays :: Lens' PutRetentionConfiguration Natural
- data PutRetentionConfigurationResponse = PutRetentionConfigurationResponse' {}
- newPutRetentionConfigurationResponse :: Int -> PutRetentionConfigurationResponse
- putRetentionConfigurationResponse_retentionConfiguration :: Lens' PutRetentionConfigurationResponse (Maybe RetentionConfiguration)
- putRetentionConfigurationResponse_httpStatus :: Lens' PutRetentionConfigurationResponse Int
Creating a Request
data PutRetentionConfiguration Source #
See: newPutRetentionConfiguration smart constructor.
Constructors
| PutRetentionConfiguration' | |
Fields
| |
Instances
newPutRetentionConfiguration Source #
Arguments
| :: Natural | |
| -> PutRetentionConfiguration |
Create a value of PutRetentionConfiguration with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PutRetentionConfiguration, putRetentionConfiguration_retentionPeriodInDays - Number of days Config stores your historical information.
Currently, only applicable to the configuration item history.
Request Lenses
putRetentionConfiguration_retentionPeriodInDays :: Lens' PutRetentionConfiguration Natural Source #
Number of days Config stores your historical information.
Currently, only applicable to the configuration item history.
Destructuring the Response
data PutRetentionConfigurationResponse Source #
See: newPutRetentionConfigurationResponse smart constructor.
Constructors
| PutRetentionConfigurationResponse' | |
Fields
| |
Instances
newPutRetentionConfigurationResponse Source #
Arguments
| :: Int | |
| -> PutRetentionConfigurationResponse |
Create a value of PutRetentionConfigurationResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:retentionConfiguration:PutRetentionConfigurationResponse', putRetentionConfigurationResponse_retentionConfiguration - Returns a retention configuration object.
$sel:httpStatus:PutRetentionConfigurationResponse', putRetentionConfigurationResponse_httpStatus - The response's http status code.
Response Lenses
putRetentionConfigurationResponse_retentionConfiguration :: Lens' PutRetentionConfigurationResponse (Maybe RetentionConfiguration) Source #
Returns a retention configuration object.
putRetentionConfigurationResponse_httpStatus :: Lens' PutRetentionConfigurationResponse Int Source #
The response's http status code.