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 |
Deletes the specified retention policy from the specified organization.
Synopsis
- data DeleteRetentionPolicy = DeleteRetentionPolicy' {
- organizationId :: Text
- id :: Text
- newDeleteRetentionPolicy :: Text -> Text -> DeleteRetentionPolicy
- deleteRetentionPolicy_organizationId :: Lens' DeleteRetentionPolicy Text
- deleteRetentionPolicy_id :: Lens' DeleteRetentionPolicy Text
- data DeleteRetentionPolicyResponse = DeleteRetentionPolicyResponse' {
- httpStatus :: Int
- newDeleteRetentionPolicyResponse :: Int -> DeleteRetentionPolicyResponse
- deleteRetentionPolicyResponse_httpStatus :: Lens' DeleteRetentionPolicyResponse Int
Creating a Request
data DeleteRetentionPolicy Source #
See: newDeleteRetentionPolicy
smart constructor.
DeleteRetentionPolicy' | |
|
Instances
newDeleteRetentionPolicy Source #
Create a value of DeleteRetentionPolicy
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:
DeleteRetentionPolicy
, deleteRetentionPolicy_organizationId
- The organization ID.
DeleteRetentionPolicy
, deleteRetentionPolicy_id
- The retention policy ID.
Request Lenses
deleteRetentionPolicy_organizationId :: Lens' DeleteRetentionPolicy Text Source #
The organization ID.
deleteRetentionPolicy_id :: Lens' DeleteRetentionPolicy Text Source #
The retention policy ID.
Destructuring the Response
data DeleteRetentionPolicyResponse Source #
See: newDeleteRetentionPolicyResponse
smart constructor.
DeleteRetentionPolicyResponse' | |
|
Instances
Generic DeleteRetentionPolicyResponse Source # | |
Read DeleteRetentionPolicyResponse Source # | |
Show DeleteRetentionPolicyResponse Source # | |
Defined in Amazonka.WorkMail.DeleteRetentionPolicy showsPrec :: Int -> DeleteRetentionPolicyResponse -> ShowS # show :: DeleteRetentionPolicyResponse -> String # showList :: [DeleteRetentionPolicyResponse] -> ShowS # | |
NFData DeleteRetentionPolicyResponse Source # | |
Defined in Amazonka.WorkMail.DeleteRetentionPolicy rnf :: DeleteRetentionPolicyResponse -> () # | |
Eq DeleteRetentionPolicyResponse Source # | |
type Rep DeleteRetentionPolicyResponse Source # | |
Defined in Amazonka.WorkMail.DeleteRetentionPolicy type Rep DeleteRetentionPolicyResponse = D1 ('MetaData "DeleteRetentionPolicyResponse" "Amazonka.WorkMail.DeleteRetentionPolicy" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "DeleteRetentionPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDeleteRetentionPolicyResponse Source #
Create a value of DeleteRetentionPolicyResponse
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:DeleteRetentionPolicyResponse'
, deleteRetentionPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
deleteRetentionPolicyResponse_httpStatus :: Lens' DeleteRetentionPolicyResponse Int Source #
The response's http status code.