amazonka-organizations-1.6.1: Amazon Organizations SDK.

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

Network.AWS.Organizations.DeletePolicy

Contents

Description

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.

Synopsis

Creating a Request

deletePolicy Source #

Arguments

:: Text

dPolicyId

-> DeletePolicy 

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 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.

data DeletePolicy Source #

See: deletePolicy smart constructor.

Instances
Eq DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Data DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeletePolicy -> c DeletePolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeletePolicy #

toConstr :: DeletePolicy -> Constr #

dataTypeOf :: DeletePolicy -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DeletePolicy) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeletePolicy) #

gmapT :: (forall b. Data b => b -> b) -> DeletePolicy -> DeletePolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeletePolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeletePolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeletePolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeletePolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeletePolicy -> m DeletePolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeletePolicy -> m DeletePolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeletePolicy -> m DeletePolicy #

Read DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Show DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Generic DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Associated Types

type Rep DeletePolicy :: Type -> Type #

Hashable DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

ToJSON DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

AWSRequest DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Associated Types

type Rs DeletePolicy :: Type #

ToHeaders DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

ToPath DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

ToQuery DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

NFData DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Methods

rnf :: DeletePolicy -> () #

type Rep DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

type Rep DeletePolicy = D1 (MetaData "DeletePolicy" "Network.AWS.Organizations.DeletePolicy" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" True) (C1 (MetaCons "DeletePolicy'" PrefixI True) (S1 (MetaSel (Just "_dPolicyId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeletePolicy Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

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.

Instances
Eq DeletePolicyResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Data DeletePolicyResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeletePolicyResponse -> c DeletePolicyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeletePolicyResponse #

toConstr :: DeletePolicyResponse -> Constr #

dataTypeOf :: DeletePolicyResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DeletePolicyResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeletePolicyResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeletePolicyResponse -> DeletePolicyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeletePolicyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeletePolicyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeletePolicyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeletePolicyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeletePolicyResponse -> m DeletePolicyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeletePolicyResponse -> m DeletePolicyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeletePolicyResponse -> m DeletePolicyResponse #

Read DeletePolicyResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Show DeletePolicyResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Generic DeletePolicyResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Associated Types

type Rep DeletePolicyResponse :: Type -> Type #

NFData DeletePolicyResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

Methods

rnf :: DeletePolicyResponse -> () #

type Rep DeletePolicyResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DeletePolicy

type Rep DeletePolicyResponse = D1 (MetaData "DeletePolicyResponse" "Network.AWS.Organizations.DeletePolicy" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "DeletePolicyResponse'" PrefixI False) (U1 :: Type -> Type))