Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
PutRetentionConfiguration' | |
|
Instances
newPutRetentionConfiguration Source #
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:
$sel:retentionPeriodInDays: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.
PutRetentionConfigurationResponse' | |
|
Instances
Eq PutRetentionConfigurationResponse Source # | |
Read PutRetentionConfigurationResponse Source # | |
Show PutRetentionConfigurationResponse Source # | |
Generic PutRetentionConfigurationResponse Source # | |
NFData PutRetentionConfigurationResponse Source # | |
Defined in Amazonka.Config.PutRetentionConfiguration rnf :: PutRetentionConfigurationResponse -> () # | |
type Rep PutRetentionConfigurationResponse Source # | |
Defined in Amazonka.Config.PutRetentionConfiguration type Rep PutRetentionConfigurationResponse = D1 ('MetaData "PutRetentionConfigurationResponse" "Amazonka.Config.PutRetentionConfiguration" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "PutRetentionConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "retentionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetentionConfiguration)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutRetentionConfigurationResponse Source #
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.