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 an access control rule for the specified WorkMail organization.
Deleting already deleted and non-existing rules does not produce an error. In those cases, the service sends back an HTTP 200 response with an empty HTTP body.
Synopsis
- data DeleteAccessControlRule = DeleteAccessControlRule' {
- organizationId :: Text
- name :: Text
- newDeleteAccessControlRule :: Text -> Text -> DeleteAccessControlRule
- deleteAccessControlRule_organizationId :: Lens' DeleteAccessControlRule Text
- deleteAccessControlRule_name :: Lens' DeleteAccessControlRule Text
- data DeleteAccessControlRuleResponse = DeleteAccessControlRuleResponse' {
- httpStatus :: Int
- newDeleteAccessControlRuleResponse :: Int -> DeleteAccessControlRuleResponse
- deleteAccessControlRuleResponse_httpStatus :: Lens' DeleteAccessControlRuleResponse Int
Creating a Request
data DeleteAccessControlRule Source #
See: newDeleteAccessControlRule
smart constructor.
DeleteAccessControlRule' | |
|
Instances
newDeleteAccessControlRule Source #
:: Text | |
-> Text | |
-> DeleteAccessControlRule |
Create a value of DeleteAccessControlRule
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:DeleteAccessControlRule'
, deleteAccessControlRule_organizationId
- The identifier for the organization.
$sel:name:DeleteAccessControlRule'
, deleteAccessControlRule_name
- The name of the access control rule.
Request Lenses
deleteAccessControlRule_organizationId :: Lens' DeleteAccessControlRule Text Source #
The identifier for the organization.
deleteAccessControlRule_name :: Lens' DeleteAccessControlRule Text Source #
The name of the access control rule.
Destructuring the Response
data DeleteAccessControlRuleResponse Source #
See: newDeleteAccessControlRuleResponse
smart constructor.
DeleteAccessControlRuleResponse' | |
|
Instances
Eq DeleteAccessControlRuleResponse Source # | |
Read DeleteAccessControlRuleResponse Source # | |
Show DeleteAccessControlRuleResponse Source # | |
Defined in Amazonka.WorkMail.DeleteAccessControlRule | |
Generic DeleteAccessControlRuleResponse Source # | |
NFData DeleteAccessControlRuleResponse Source # | |
Defined in Amazonka.WorkMail.DeleteAccessControlRule rnf :: DeleteAccessControlRuleResponse -> () # | |
type Rep DeleteAccessControlRuleResponse Source # | |
Defined in Amazonka.WorkMail.DeleteAccessControlRule type Rep DeleteAccessControlRuleResponse = D1 ('MetaData "DeleteAccessControlRuleResponse" "Amazonka.WorkMail.DeleteAccessControlRule" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "DeleteAccessControlRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDeleteAccessControlRuleResponse Source #
Create a value of DeleteAccessControlRuleResponse
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:DeleteAccessControlRuleResponse'
, deleteAccessControlRuleResponse_httpStatus
- The response's http status code.
Response Lenses
deleteAccessControlRuleResponse_httpStatus :: Lens' DeleteAccessControlRuleResponse Int Source #
The response's http status code.