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

Contents

Description

Retrieves information about a policy.

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

Synopsis

Creating a Request

describePolicy Source #

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

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

  • dpPolicyId - The unique identifier (ID) of the policy that you want details about. 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 DescribePolicy Source #

See: describePolicy smart constructor.

Instances

Eq DescribePolicy Source # 
Data DescribePolicy Source # 

Methods

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

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

toConstr :: DescribePolicy -> Constr #

dataTypeOf :: DescribePolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribePolicy Source # 
Show DescribePolicy Source # 
Generic DescribePolicy Source # 

Associated Types

type Rep DescribePolicy :: * -> * #

Hashable DescribePolicy Source # 
ToJSON DescribePolicy Source # 
NFData DescribePolicy Source # 

Methods

rnf :: DescribePolicy -> () #

AWSRequest DescribePolicy Source # 
ToQuery DescribePolicy Source # 
ToPath DescribePolicy Source # 
ToHeaders DescribePolicy Source # 
type Rep DescribePolicy Source # 
type Rep DescribePolicy = D1 (MetaData "DescribePolicy" "Network.AWS.Organizations.DescribePolicy" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" True) (C1 (MetaCons "DescribePolicy'" PrefixI True) (S1 (MetaSel (Just Symbol "_dpPolicyId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DescribePolicy Source # 

Request Lenses

dpPolicyId :: Lens' DescribePolicy Text Source #

The unique identifier (ID) of the policy that you want details about. 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

describePolicyResponse Source #

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

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

data DescribePolicyResponse Source #

See: describePolicyResponse smart constructor.

Instances

Eq DescribePolicyResponse Source # 
Data DescribePolicyResponse Source # 

Methods

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

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

toConstr :: DescribePolicyResponse -> Constr #

dataTypeOf :: DescribePolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribePolicyResponse Source # 
Show DescribePolicyResponse Source # 
Generic DescribePolicyResponse Source # 
NFData DescribePolicyResponse Source # 

Methods

rnf :: DescribePolicyResponse -> () #

type Rep DescribePolicyResponse Source # 
type Rep DescribePolicyResponse = D1 (MetaData "DescribePolicyResponse" "Network.AWS.Organizations.DescribePolicy" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" False) (C1 (MetaCons "DescribePolicyResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dprsPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Policy))) (S1 (MetaSel (Just Symbol "_dprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dprsPolicy :: Lens' DescribePolicyResponse (Maybe Policy) Source #

A structure that contains details about the specified policy.

dprsResponseStatus :: Lens' DescribePolicyResponse Int Source #

  • - | The response status code.