Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Deletes the specified policy from your organization. Before you perform this operation, you must first detach the policy from all OUs, roots, and accounts.
This operation can be called only from the organization's master account.
Creating a Request
Creates a value of DeletePolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dPolicyId
- The unique identifier (ID) of the policy that you want to delete. You can get the ID from theListPolicies
orListPoliciesForTarget
operations. The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
data DeletePolicy Source #
See: deletePolicy
smart constructor.
Request Lenses
dPolicyId :: Lens' DeletePolicy Text Source #
The unique identifier (ID) of the policy that you want to delete. You can get the ID from the ListPolicies
or ListPoliciesForTarget
operations. The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
Destructuring the Response
deletePolicyResponse :: DeletePolicyResponse Source #
Creates a value of DeletePolicyResponse
with the minimum fields required to make a request.
data DeletePolicyResponse Source #
See: deletePolicyResponse
smart constructor.