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.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 # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

Data DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

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 # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

Show DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

Generic DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

Associated Types

type Rep DisablePolicyType :: Type -> Type #

Hashable DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

ToJSON DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

AWSRequest DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

Associated Types

type Rs DisablePolicyType :: Type #

ToHeaders DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

ToPath DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

ToQuery DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

NFData DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

Methods

rnf :: DisablePolicyType -> () #

type Rep DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

type Rep DisablePolicyType = D1 (MetaData "DisablePolicyType" "Network.AWS.Organizations.DisablePolicyType" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "DisablePolicyType'" PrefixI True) (S1 (MetaSel (Just "_dptRootId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dptPolicyType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PolicyType)))
type Rs DisablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

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 # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

Data DisablePolicyTypeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

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 # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

Show DisablePolicyTypeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

Generic DisablePolicyTypeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

Associated Types

type Rep DisablePolicyTypeResponse :: Type -> Type #

NFData DisablePolicyTypeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

type Rep DisablePolicyTypeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DisablePolicyType

type Rep DisablePolicyTypeResponse = D1 (MetaData "DisablePolicyTypeResponse" "Network.AWS.Organizations.DisablePolicyType" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "DisablePolicyTypeResponse'" PrefixI True) (S1 (MetaSel (Just "_dptrsRoot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Root)) :*: S1 (MetaSel (Just "_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.