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 a resource policy for the specified resource. This revokes the access of the principals specified in the resource policy.
Synopsis
- data DeleteResourcePolicy = DeleteResourcePolicy' {
- resourceArn :: Text
- newDeleteResourcePolicy :: Text -> DeleteResourcePolicy
- deleteResourcePolicy_resourceArn :: Lens' DeleteResourcePolicy Text
- data DeleteResourcePolicyResponse = DeleteResourcePolicyResponse' {
- httpStatus :: Int
- newDeleteResourcePolicyResponse :: Int -> DeleteResourcePolicyResponse
- deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int
Creating a Request
data DeleteResourcePolicy Source #
See: newDeleteResourcePolicy
smart constructor.
DeleteResourcePolicy' | |
|
Instances
newDeleteResourcePolicy Source #
Create a value of DeleteResourcePolicy
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:
DeleteResourcePolicy
, deleteResourcePolicy_resourceArn
- The ARN of the policy to delete.
Request Lenses
deleteResourcePolicy_resourceArn :: Lens' DeleteResourcePolicy Text Source #
The ARN of the policy to delete.
Destructuring the Response
data DeleteResourcePolicyResponse Source #
See: newDeleteResourcePolicyResponse
smart constructor.
DeleteResourcePolicyResponse' | |
|
Instances
Generic DeleteResourcePolicyResponse Source # | |
Read DeleteResourcePolicyResponse Source # | |
Show DeleteResourcePolicyResponse Source # | |
Defined in Amazonka.NetworkManager.DeleteResourcePolicy showsPrec :: Int -> DeleteResourcePolicyResponse -> ShowS # show :: DeleteResourcePolicyResponse -> String # showList :: [DeleteResourcePolicyResponse] -> ShowS # | |
NFData DeleteResourcePolicyResponse Source # | |
Defined in Amazonka.NetworkManager.DeleteResourcePolicy rnf :: DeleteResourcePolicyResponse -> () # | |
Eq DeleteResourcePolicyResponse Source # | |
type Rep DeleteResourcePolicyResponse Source # | |
Defined in Amazonka.NetworkManager.DeleteResourcePolicy type Rep DeleteResourcePolicyResponse = D1 ('MetaData "DeleteResourcePolicyResponse" "Amazonka.NetworkManager.DeleteResourcePolicy" "amazonka-networkmanager-2.0-4HNcDlBc00x67cUJWWz3sw" 'False) (C1 ('MetaCons "DeleteResourcePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDeleteResourcePolicyResponse Source #
Create a value of DeleteResourcePolicyResponse
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:DeleteResourcePolicyResponse'
, deleteResourcePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int Source #
The response's http status code.