amazonka-clouddirectory-1.5.0: Amazon CloudDirectory 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.CloudDirectory.LookupPolicy

Contents

Description

Lists all policies from the root of the Directory to the object specified. If there are no policies present, an empty list is returned. If policies are present, and if some objects don't have the policies attached, it returns the ObjectIdentifier for such objects. If policies are present, it returns ObjectIdentifier , policyId , and policyType . Paths that don't lead to the root from the target object are ignored. For more information, see Policies .

Synopsis

Creating a Request

lookupPolicy Source #

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

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

  • lpNextToken - The token to request the next page of results.
  • lpMaxResults - The maximum number of items to be retrieved in a single call. This is an approximate number.
  • lpDirectoryARN - The Amazon Resource Name (ARN) that is associated with the Directory . For more information, see arns .
  • lpObjectReference - Reference that identifies the object whose policies will be looked up.

data LookupPolicy Source #

See: lookupPolicy smart constructor.

Instances

Eq LookupPolicy Source # 
Data LookupPolicy Source # 

Methods

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

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

toConstr :: LookupPolicy -> Constr #

dataTypeOf :: LookupPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read LookupPolicy Source # 
Show LookupPolicy Source # 
Generic LookupPolicy Source # 

Associated Types

type Rep LookupPolicy :: * -> * #

Hashable LookupPolicy Source # 
ToJSON LookupPolicy Source # 
NFData LookupPolicy Source # 

Methods

rnf :: LookupPolicy -> () #

AWSRequest LookupPolicy Source # 
ToQuery LookupPolicy Source # 
ToPath LookupPolicy Source # 
ToHeaders LookupPolicy Source # 
type Rep LookupPolicy Source # 
type Rep LookupPolicy = D1 (MetaData "LookupPolicy" "Network.AWS.CloudDirectory.LookupPolicy" "amazonka-clouddirectory-1.5.0-4g2rtj0PtNBHCN8G8qmiXW" False) (C1 (MetaCons "LookupPolicy'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lpNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lpMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))) ((:*:) (S1 (MetaSel (Just Symbol "_lpDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_lpObjectReference") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ObjectReference)))))
type Rs LookupPolicy Source # 

Request Lenses

lpNextToken :: Lens' LookupPolicy (Maybe Text) Source #

The token to request the next page of results.

lpMaxResults :: Lens' LookupPolicy (Maybe Natural) Source #

The maximum number of items to be retrieved in a single call. This is an approximate number.

lpDirectoryARN :: Lens' LookupPolicy Text Source #

The Amazon Resource Name (ARN) that is associated with the Directory . For more information, see arns .

lpObjectReference :: Lens' LookupPolicy ObjectReference Source #

Reference that identifies the object whose policies will be looked up.

Destructuring the Response

lookupPolicyResponse Source #

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

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

data LookupPolicyResponse Source #

See: lookupPolicyResponse smart constructor.

Instances

Eq LookupPolicyResponse Source # 
Data LookupPolicyResponse Source # 

Methods

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

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

toConstr :: LookupPolicyResponse -> Constr #

dataTypeOf :: LookupPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read LookupPolicyResponse Source # 
Show LookupPolicyResponse Source # 
Generic LookupPolicyResponse Source # 
NFData LookupPolicyResponse Source # 

Methods

rnf :: LookupPolicyResponse -> () #

type Rep LookupPolicyResponse Source # 
type Rep LookupPolicyResponse = D1 (MetaData "LookupPolicyResponse" "Network.AWS.CloudDirectory.LookupPolicy" "amazonka-clouddirectory-1.5.0-4g2rtj0PtNBHCN8G8qmiXW" False) (C1 (MetaCons "LookupPolicyResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lprsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lprsPolicyToPathList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PolicyToPath]))) (S1 (MetaSel (Just Symbol "_lprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

lprsPolicyToPathList :: Lens' LookupPolicyResponse [PolicyToPath] Source #

Provides list of path to policies. Policies contain PolicyId , ObjectIdentifier , and PolicyType . For more information, see Policies .

lprsResponseStatus :: Lens' LookupPolicyResponse Int Source #

  • - | The response status code.