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 |
Puts a retention policy to the specified organization.
Synopsis
- data PutRetentionPolicy = PutRetentionPolicy' {
- id :: Maybe Text
- description :: Maybe (Sensitive Text)
- organizationId :: Text
- name :: Text
- folderConfigurations :: [FolderConfiguration]
- newPutRetentionPolicy :: Text -> Text -> PutRetentionPolicy
- putRetentionPolicy_id :: Lens' PutRetentionPolicy (Maybe Text)
- putRetentionPolicy_description :: Lens' PutRetentionPolicy (Maybe Text)
- putRetentionPolicy_organizationId :: Lens' PutRetentionPolicy Text
- putRetentionPolicy_name :: Lens' PutRetentionPolicy Text
- putRetentionPolicy_folderConfigurations :: Lens' PutRetentionPolicy [FolderConfiguration]
- data PutRetentionPolicyResponse = PutRetentionPolicyResponse' {
- httpStatus :: Int
- newPutRetentionPolicyResponse :: Int -> PutRetentionPolicyResponse
- putRetentionPolicyResponse_httpStatus :: Lens' PutRetentionPolicyResponse Int
Creating a Request
data PutRetentionPolicy Source #
See: newPutRetentionPolicy
smart constructor.
PutRetentionPolicy' | |
|
Instances
newPutRetentionPolicy Source #
:: Text | |
-> Text | |
-> PutRetentionPolicy |
Create a value of PutRetentionPolicy
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:id:PutRetentionPolicy'
, putRetentionPolicy_id
- The retention policy ID.
$sel:description:PutRetentionPolicy'
, putRetentionPolicy_description
- The retention policy description.
$sel:organizationId:PutRetentionPolicy'
, putRetentionPolicy_organizationId
- The organization ID.
$sel:name:PutRetentionPolicy'
, putRetentionPolicy_name
- The retention policy name.
$sel:folderConfigurations:PutRetentionPolicy'
, putRetentionPolicy_folderConfigurations
- The retention policy folder configurations.
Request Lenses
putRetentionPolicy_id :: Lens' PutRetentionPolicy (Maybe Text) Source #
The retention policy ID.
putRetentionPolicy_description :: Lens' PutRetentionPolicy (Maybe Text) Source #
The retention policy description.
putRetentionPolicy_organizationId :: Lens' PutRetentionPolicy Text Source #
The organization ID.
putRetentionPolicy_name :: Lens' PutRetentionPolicy Text Source #
The retention policy name.
putRetentionPolicy_folderConfigurations :: Lens' PutRetentionPolicy [FolderConfiguration] Source #
The retention policy folder configurations.
Destructuring the Response
data PutRetentionPolicyResponse Source #
See: newPutRetentionPolicyResponse
smart constructor.
PutRetentionPolicyResponse' | |
|
Instances
newPutRetentionPolicyResponse Source #
Create a value of PutRetentionPolicyResponse
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:httpStatus:PutRetentionPolicyResponse'
, putRetentionPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putRetentionPolicyResponse_httpStatus :: Lens' PutRetentionPolicyResponse Int Source #
The response's http status code.