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

You can enable a policy type in a root only if that policy type is available in the organization. Use DescribeOrganization to view the status of available policy types in the organization.

To view the status of policy type in a root, use ListRoots .

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

Defined in Network.AWS.Organizations.EnablePolicyType

Data EnablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

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

Defined in Network.AWS.Organizations.EnablePolicyType

Show EnablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

Generic EnablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

Associated Types

type Rep EnablePolicyType :: Type -> Type #

Hashable EnablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

ToJSON EnablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

AWSRequest EnablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

Associated Types

type Rs EnablePolicyType :: Type #

ToHeaders EnablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

ToPath EnablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

ToQuery EnablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

NFData EnablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

Methods

rnf :: EnablePolicyType -> () #

type Rep EnablePolicyType Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

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

Defined in Network.AWS.Organizations.EnablePolicyType

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

Defined in Network.AWS.Organizations.EnablePolicyType

Data EnablePolicyTypeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

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

Defined in Network.AWS.Organizations.EnablePolicyType

Show EnablePolicyTypeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

Generic EnablePolicyTypeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

Associated Types

type Rep EnablePolicyTypeResponse :: Type -> Type #

NFData EnablePolicyTypeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

type Rep EnablePolicyTypeResponse Source # 
Instance details

Defined in Network.AWS.Organizations.EnablePolicyType

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