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 from the target Amazon Web Services account.
Synopsis
- data DeleteResourcePolicy = DeleteResourcePolicy' {}
- newDeleteResourcePolicy :: Text -> DeleteResourcePolicy
- deleteResourcePolicy_policyRevisionId :: Lens' DeleteResourcePolicy (Maybe Text)
- deleteResourcePolicy_policyName :: 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_policyRevisionId
- Specifies a specific policy revision to delete. Provide a
PolicyRevisionId
to ensure an atomic delete operation. If the provided
revision id does not match the latest policy revision id, an
InvalidPolicyRevisionIdException
exception is returned.
DeleteResourcePolicy
, deleteResourcePolicy_policyName
- The name of the resource policy to delete.
Request Lenses
deleteResourcePolicy_policyRevisionId :: Lens' DeleteResourcePolicy (Maybe Text) Source #
Specifies a specific policy revision to delete. Provide a
PolicyRevisionId
to ensure an atomic delete operation. If the provided
revision id does not match the latest policy revision id, an
InvalidPolicyRevisionIdException
exception is returned.
deleteResourcePolicy_policyName :: Lens' DeleteResourcePolicy Text Source #
The name of the resource policy to delete.
Destructuring the Response
data DeleteResourcePolicyResponse Source #
See: newDeleteResourcePolicyResponse
smart constructor.
DeleteResourcePolicyResponse' | |
|
Instances
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:
DeleteResourcePolicyResponse
, deleteResourcePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int Source #
The response's http status code.