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 specified policy from your organization. Before you perform this operation, you must first detach the policy from all organizational units (OUs), roots, and accounts.
This operation can be called only from the organization's management account.
Synopsis
Creating a Request
data DeletePolicy Source #
See: newDeletePolicy
smart constructor.
DeletePolicy' | |
|
Instances
Create a value of DeletePolicy
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:DeletePolicy'
, deletePolicy_policyId
- 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 lowercase or uppercase letters, digits, or the underscore character (_).
Request Lenses
deletePolicy_policyId :: 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 lowercase or uppercase letters, digits, or the underscore character (_).
Destructuring the Response
data DeletePolicyResponse Source #
See: newDeletePolicyResponse
smart constructor.
Instances
Eq DeletePolicyResponse Source # | |
Defined in Amazonka.Organizations.DeletePolicy (==) :: DeletePolicyResponse -> DeletePolicyResponse -> Bool # (/=) :: DeletePolicyResponse -> DeletePolicyResponse -> Bool # | |
Read DeletePolicyResponse Source # | |
Show DeletePolicyResponse Source # | |
Defined in Amazonka.Organizations.DeletePolicy showsPrec :: Int -> DeletePolicyResponse -> ShowS # show :: DeletePolicyResponse -> String # showList :: [DeletePolicyResponse] -> ShowS # | |
Generic DeletePolicyResponse Source # | |
Defined in Amazonka.Organizations.DeletePolicy type Rep DeletePolicyResponse :: Type -> Type # from :: DeletePolicyResponse -> Rep DeletePolicyResponse x # to :: Rep DeletePolicyResponse x -> DeletePolicyResponse # | |
NFData DeletePolicyResponse Source # | |
Defined in Amazonka.Organizations.DeletePolicy rnf :: DeletePolicyResponse -> () # | |
type Rep DeletePolicyResponse Source # | |
Defined in Amazonka.Organizations.DeletePolicy |
newDeletePolicyResponse :: DeletePolicyResponse Source #
Create a value of DeletePolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.