| 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.WorkMail.PutRetentionPolicy
Description
Puts a retention policy to the specified organization.
Synopsis
- data PutRetentionPolicy = PutRetentionPolicy' {
- description :: Maybe (Sensitive Text)
- id :: Maybe Text
- organizationId :: Text
- name :: Text
- folderConfigurations :: [FolderConfiguration]
- newPutRetentionPolicy :: Text -> Text -> PutRetentionPolicy
- putRetentionPolicy_description :: Lens' PutRetentionPolicy (Maybe Text)
- putRetentionPolicy_id :: 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.
Constructors
| PutRetentionPolicy' | |
Fields
| |
Instances
newPutRetentionPolicy Source #
Arguments
| :: 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:
PutRetentionPolicy, putRetentionPolicy_description - The retention policy description.
PutRetentionPolicy, putRetentionPolicy_id - The retention policy ID.
PutRetentionPolicy, putRetentionPolicy_organizationId - The organization ID.
PutRetentionPolicy, putRetentionPolicy_name - The retention policy name.
$sel:folderConfigurations:PutRetentionPolicy', putRetentionPolicy_folderConfigurations - The retention policy folder configurations.
Request Lenses
putRetentionPolicy_description :: Lens' PutRetentionPolicy (Maybe Text) Source #
The retention policy description.
putRetentionPolicy_id :: Lens' PutRetentionPolicy (Maybe Text) Source #
The retention policy ID.
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.
Constructors
| PutRetentionPolicyResponse' | |
Fields
| |
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.