| 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.GetDefaultRetentionPolicy
Description
Gets the default retention policy details for the specified organization.
Synopsis
- data GetDefaultRetentionPolicy = GetDefaultRetentionPolicy' {}
- newGetDefaultRetentionPolicy :: Text -> GetDefaultRetentionPolicy
- getDefaultRetentionPolicy_organizationId :: Lens' GetDefaultRetentionPolicy Text
- data GetDefaultRetentionPolicyResponse = GetDefaultRetentionPolicyResponse' {
- description :: Maybe Text
- folderConfigurations :: Maybe [FolderConfiguration]
- id :: Maybe Text
- name :: Maybe Text
- httpStatus :: Int
- newGetDefaultRetentionPolicyResponse :: Int -> GetDefaultRetentionPolicyResponse
- getDefaultRetentionPolicyResponse_description :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text)
- getDefaultRetentionPolicyResponse_folderConfigurations :: Lens' GetDefaultRetentionPolicyResponse (Maybe [FolderConfiguration])
- getDefaultRetentionPolicyResponse_id :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text)
- getDefaultRetentionPolicyResponse_name :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text)
- getDefaultRetentionPolicyResponse_httpStatus :: Lens' GetDefaultRetentionPolicyResponse Int
Creating a Request
data GetDefaultRetentionPolicy Source #
See: newGetDefaultRetentionPolicy smart constructor.
Constructors
| GetDefaultRetentionPolicy' | |
Fields
| |
Instances
newGetDefaultRetentionPolicy Source #
Arguments
| :: Text | |
| -> GetDefaultRetentionPolicy |
Create a value of GetDefaultRetentionPolicy 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:
GetDefaultRetentionPolicy, getDefaultRetentionPolicy_organizationId - The organization ID.
Request Lenses
getDefaultRetentionPolicy_organizationId :: Lens' GetDefaultRetentionPolicy Text Source #
The organization ID.
Destructuring the Response
data GetDefaultRetentionPolicyResponse Source #
See: newGetDefaultRetentionPolicyResponse smart constructor.
Constructors
| GetDefaultRetentionPolicyResponse' | |
Fields
| |
Instances
newGetDefaultRetentionPolicyResponse Source #
Arguments
| :: Int | |
| -> GetDefaultRetentionPolicyResponse |
Create a value of GetDefaultRetentionPolicyResponse 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:
GetDefaultRetentionPolicyResponse, getDefaultRetentionPolicyResponse_description - The retention policy description.
$sel:folderConfigurations:GetDefaultRetentionPolicyResponse', getDefaultRetentionPolicyResponse_folderConfigurations - The retention policy folder configurations.
GetDefaultRetentionPolicyResponse, getDefaultRetentionPolicyResponse_id - The retention policy ID.
GetDefaultRetentionPolicyResponse, getDefaultRetentionPolicyResponse_name - The retention policy name.
$sel:httpStatus:GetDefaultRetentionPolicyResponse', getDefaultRetentionPolicyResponse_httpStatus - The response's http status code.
Response Lenses
getDefaultRetentionPolicyResponse_description :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text) Source #
The retention policy description.
getDefaultRetentionPolicyResponse_folderConfigurations :: Lens' GetDefaultRetentionPolicyResponse (Maybe [FolderConfiguration]) Source #
The retention policy folder configurations.
getDefaultRetentionPolicyResponse_id :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text) Source #
The retention policy ID.
getDefaultRetentionPolicyResponse_name :: Lens' GetDefaultRetentionPolicyResponse (Maybe Text) Source #
The retention policy name.
getDefaultRetentionPolicyResponse_httpStatus :: Lens' GetDefaultRetentionPolicyResponse Int Source #
The response's http status code.