libZSservicesZSamazonka-organizationsZSamazonka-organizations
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Organizations.DeletePolicy

Description

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.

Constructors

DeletePolicy' 

Fields

  • policyId :: Text

    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 (_).

Instances

Instances details
Eq DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

Read DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

Show DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

Generic DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

Associated Types

type Rep DeletePolicy :: Type -> Type #

NFData DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

Methods

rnf :: DeletePolicy -> () #

Hashable DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

ToJSON DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

AWSRequest DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

Associated Types

type AWSResponse DeletePolicy #

ToHeaders DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

ToPath DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

ToQuery DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

type Rep DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

type Rep DeletePolicy = D1 ('MetaData "DeletePolicy" "Amazonka.Organizations.DeletePolicy" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "DeletePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeletePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

newDeletePolicy Source #

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.

Constructors

DeletePolicyResponse' 

Instances

Instances details
Eq DeletePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

Read DeletePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

Show DeletePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

Generic DeletePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

Associated Types

type Rep DeletePolicyResponse :: Type -> Type #

NFData DeletePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

Methods

rnf :: DeletePolicyResponse -> () #

type Rep DeletePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeletePolicy

type Rep DeletePolicyResponse = D1 ('MetaData "DeletePolicyResponse" "Amazonka.Organizations.DeletePolicy" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "DeletePolicyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeletePolicyResponse :: DeletePolicyResponse Source #

Create a value of DeletePolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.