amazonka-organizations-1.5.0: Amazon Organizations SDK.

Copyright(c) 2013-2017 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.EnablePolicyType

Contents

Description

Enables a policy type in a root. After you enable a policy type in a root, you can attach policies of that type to the root, any OU, or account in that root. You can undo this by using the DisablePolicyType operation.

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

Synopsis

Creating a Request

enablePolicyType Source #

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

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

  • eptRootId - The unique identifier (ID) of the root in which you want to enable 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.
  • eptPolicyType - The policy type that you want to enable.

data EnablePolicyType Source #

See: enablePolicyType smart constructor.

Instances

Eq EnablePolicyType Source # 
Data EnablePolicyType Source # 

Methods

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

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

toConstr :: EnablePolicyType -> Constr #

dataTypeOf :: EnablePolicyType -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: EnablePolicyType -> () #

AWSRequest EnablePolicyType Source # 
ToQuery EnablePolicyType Source # 
ToPath EnablePolicyType Source # 
ToHeaders EnablePolicyType Source # 
type Rep EnablePolicyType Source # 
type Rep EnablePolicyType = D1 (MetaData "EnablePolicyType" "Network.AWS.Organizations.EnablePolicyType" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" False) (C1 (MetaCons "EnablePolicyType'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_eptRootId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_eptPolicyType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PolicyType))))
type Rs EnablePolicyType Source # 

Request Lenses

eptRootId :: Lens' EnablePolicyType Text Source #

The unique identifier (ID) of the root in which you want to enable 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.

eptPolicyType :: Lens' EnablePolicyType PolicyType Source #

The policy type that you want to enable.

Destructuring the Response

enablePolicyTypeResponse Source #

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

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

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

data EnablePolicyTypeResponse Source #

See: enablePolicyTypeResponse smart constructor.

Instances

Eq EnablePolicyTypeResponse Source # 
Data EnablePolicyTypeResponse Source # 

Methods

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

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

toConstr :: EnablePolicyTypeResponse -> Constr #

dataTypeOf :: EnablePolicyTypeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read EnablePolicyTypeResponse Source # 
Show EnablePolicyTypeResponse Source # 
Generic EnablePolicyTypeResponse Source # 
NFData EnablePolicyTypeResponse Source # 
type Rep EnablePolicyTypeResponse Source # 
type Rep EnablePolicyTypeResponse = D1 (MetaData "EnablePolicyTypeResponse" "Network.AWS.Organizations.EnablePolicyType" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" False) (C1 (MetaCons "EnablePolicyTypeResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_eptrsRoot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Root))) (S1 (MetaSel (Just Symbol "_eptrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

eptrsRoot :: Lens' EnablePolicyTypeResponse (Maybe Root) Source #

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