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 resource policy that AWS Resource Access Manager uses to share your Incident Manager resource.
Synopsis
- data DeleteResourcePolicy = DeleteResourcePolicy' {
- policyId :: Text
- resourceArn :: Text
- newDeleteResourcePolicy :: Text -> Text -> DeleteResourcePolicy
- deleteResourcePolicy_policyId :: Lens' DeleteResourcePolicy Text
- 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 #
:: Text | |
-> Text | |
-> DeleteResourcePolicy |
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:
$sel:policyId:DeleteResourcePolicy'
, deleteResourcePolicy_policyId
- The ID of the resource policy you're deleting.
$sel:resourceArn:DeleteResourcePolicy'
, deleteResourcePolicy_resourceArn
- The Amazon Resource Name (ARN) of the resource you're deleting the
policy from.
Request Lenses
deleteResourcePolicy_policyId :: Lens' DeleteResourcePolicy Text Source #
The ID of the resource policy you're deleting.
deleteResourcePolicy_resourceArn :: Lens' DeleteResourcePolicy Text Source #
The Amazon Resource Name (ARN) of the resource you're deleting the policy from.
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:
$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.