amazonka-organizations-1.6.0: 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.DisablePolicyType

Contents

Description

Disables an organizational control policy type in a root. A policy of a certain type can be attached to entities in a root only if that type is enabled in the root. After you perform this operation, you no longer can attach policies of the specified type to that root or to any OU or account in that root. You can undo this by using the EnablePolicyType operation.

This operation can be called only from the organization's master account.

Synopsis

Creating a Request

disablePolicyType Source #

Creates a value of DisablePolicyType with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dptRootId - The unique identifier (ID) of the root in which you want to disable a policy type. You can get the ID from the ListRoots operation. The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lower-case letters or digits.
  • dptPolicyType - The policy type that you want to disable in this root.

data DisablePolicyType Source #

See: disablePolicyType smart constructor.

Instances

Eq DisablePolicyType Source # 
Data DisablePolicyType Source # 

Methods

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

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

toConstr :: DisablePolicyType -> Constr #

dataTypeOf :: DisablePolicyType -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DisablePolicyType Source # 
Show DisablePolicyType Source # 
Generic DisablePolicyType Source # 
Hashable DisablePolicyType Source # 
ToJSON DisablePolicyType Source # 
NFData DisablePolicyType Source # 

Methods

rnf :: DisablePolicyType -> () #

AWSRequest DisablePolicyType Source # 
ToHeaders DisablePolicyType Source # 
ToPath DisablePolicyType Source # 
ToQuery DisablePolicyType Source # 
type Rep DisablePolicyType Source # 
type Rep DisablePolicyType = D1 * (MetaData "DisablePolicyType" "Network.AWS.Organizations.DisablePolicyType" "amazonka-organizations-1.6.0-rHxjcIb8Bn6XT7VgZWDi9" False) (C1 * (MetaCons "DisablePolicyType'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dptRootId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_dptPolicyType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * PolicyType))))
type Rs DisablePolicyType Source # 

Request Lenses

dptRootId :: Lens' DisablePolicyType Text Source #

The unique identifier (ID) of the root in which you want to disable a policy type. You can get the ID from the ListRoots operation. The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lower-case letters or digits.

dptPolicyType :: Lens' DisablePolicyType PolicyType Source #

The policy type that you want to disable in this root.

Destructuring the Response

disablePolicyTypeResponse Source #

Creates a value of DisablePolicyTypeResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dptrsRoot - A structure that shows the root with the updated list of enabled policy types.
  • dptrsResponseStatus - -- | The response status code.

data DisablePolicyTypeResponse Source #

See: disablePolicyTypeResponse smart constructor.

Instances

Eq DisablePolicyTypeResponse Source # 
Data DisablePolicyTypeResponse Source # 

Methods

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

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

toConstr :: DisablePolicyTypeResponse -> Constr #

dataTypeOf :: DisablePolicyTypeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DisablePolicyTypeResponse Source # 
Show DisablePolicyTypeResponse Source # 
Generic DisablePolicyTypeResponse Source # 
NFData DisablePolicyTypeResponse Source # 
type Rep DisablePolicyTypeResponse Source # 
type Rep DisablePolicyTypeResponse = D1 * (MetaData "DisablePolicyTypeResponse" "Network.AWS.Organizations.DisablePolicyType" "amazonka-organizations-1.6.0-rHxjcIb8Bn6XT7VgZWDi9" False) (C1 * (MetaCons "DisablePolicyTypeResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dptrsRoot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Root))) (S1 * (MetaSel (Just Symbol "_dptrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

dptrsRoot :: Lens' DisablePolicyTypeResponse (Maybe Root) Source #

A structure that shows the root with the updated list of enabled policy types.