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

This operation returns paginated results.

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

Defined in Network.AWS.CloudDirectory.LookupPolicy

Data LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

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

Defined in Network.AWS.CloudDirectory.LookupPolicy

Show LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

Generic LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

Associated Types

type Rep LookupPolicy :: Type -> Type #

Hashable LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

ToJSON LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

AWSPager LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

AWSRequest LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

Associated Types

type Rs LookupPolicy :: Type #

ToHeaders LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

ToPath LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

ToQuery LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

NFData LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

Methods

rnf :: LookupPolicy -> () #

type Rep LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

type Rep LookupPolicy = D1 (MetaData "LookupPolicy" "Network.AWS.CloudDirectory.LookupPolicy" "amazonka-clouddirectory-1.6.1-JrYxtgIzVKD25mU0ZgOTPe" False) (C1 (MetaCons "LookupPolicy'" PrefixI True) ((S1 (MetaSel (Just "_lpNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lpMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) :*: (S1 (MetaSel (Just "_lpDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_lpObjectReference") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ObjectReference))))
type Rs LookupPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

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

Defined in Network.AWS.CloudDirectory.LookupPolicy

Data LookupPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

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

Defined in Network.AWS.CloudDirectory.LookupPolicy

Show LookupPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

Generic LookupPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

Associated Types

type Rep LookupPolicyResponse :: Type -> Type #

NFData LookupPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

Methods

rnf :: LookupPolicyResponse -> () #

type Rep LookupPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.LookupPolicy

type Rep LookupPolicyResponse = D1 (MetaData "LookupPolicyResponse" "Network.AWS.CloudDirectory.LookupPolicy" "amazonka-clouddirectory-1.6.1-JrYxtgIzVKD25mU0ZgOTPe" False) (C1 (MetaCons "LookupPolicyResponse'" PrefixI True) (S1 (MetaSel (Just "_lprsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lprsPolicyToPathList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PolicyToPath])) :*: S1 (MetaSel (Just "_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.