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 |
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 #
:: Text | |
-> Text | |
-> DeleteRetentionPolicy |
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:
$sel:organizationId:DeleteRetentionPolicy'
, deleteRetentionPolicy_organizationId
- The organization ID.
$sel: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
Eq DeleteRetentionPolicyResponse Source # | |
Read DeleteRetentionPolicyResponse Source # | |
Show DeleteRetentionPolicyResponse Source # | |
Defined in Amazonka.WorkMail.DeleteRetentionPolicy showsPrec :: Int -> DeleteRetentionPolicyResponse -> ShowS # show :: DeleteRetentionPolicyResponse -> String # showList :: [DeleteRetentionPolicyResponse] -> ShowS # | |
Generic DeleteRetentionPolicyResponse Source # | |
NFData DeleteRetentionPolicyResponse Source # | |
Defined in Amazonka.WorkMail.DeleteRetentionPolicy rnf :: DeleteRetentionPolicyResponse -> () # | |
type Rep DeleteRetentionPolicyResponse Source # | |
Defined in Amazonka.WorkMail.DeleteRetentionPolicy type Rep DeleteRetentionPolicyResponse = D1 ('MetaData "DeleteRetentionPolicyResponse" "Amazonka.WorkMail.DeleteRetentionPolicy" "libZSservicesZSamazonka-workmailZSamazonka-workmail" '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.