amazonka-clouddirectory-2.0: Amazon CloudDirectory SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudDirectory.LookupPolicy

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

data LookupPolicy Source #

See: newLookupPolicy smart constructor.

Constructors

LookupPolicy' 

Fields

Instances

Instances details
ToJSON LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

ToHeaders LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

ToPath LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

ToQuery LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

AWSPager LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

AWSRequest LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Associated Types

type AWSResponse LookupPolicy #

Generic LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Associated Types

type Rep LookupPolicy :: Type -> Type #

Read LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Show LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

NFData LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Methods

rnf :: LookupPolicy -> () #

Eq LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Hashable LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

type AWSResponse LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

type Rep LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

type Rep LookupPolicy = D1 ('MetaData "LookupPolicy" "Amazonka.CloudDirectory.LookupPolicy" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" 'False) (C1 ('MetaCons "LookupPolicy'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "directoryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "objectReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ObjectReference))))

newLookupPolicy Source #

Create a value of LookupPolicy with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

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

LookupPolicy, lookupPolicy_nextToken - The token to request the next page of results.

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

LookupPolicy, lookupPolicy_objectReference - Reference that identifies the object whose policies will be looked up.

Request Lenses

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

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

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

The token to request the next page of results.

lookupPolicy_directoryArn :: Lens' LookupPolicy Text Source #

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

lookupPolicy_objectReference :: Lens' LookupPolicy ObjectReference Source #

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

Destructuring the Response

data LookupPolicyResponse Source #

See: newLookupPolicyResponse smart constructor.

Constructors

LookupPolicyResponse' 

Fields

Instances

Instances details
Generic LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Associated Types

type Rep LookupPolicyResponse :: Type -> Type #

Read LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Show LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

NFData LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Methods

rnf :: LookupPolicyResponse -> () #

Eq LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

type Rep LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

type Rep LookupPolicyResponse = D1 ('MetaData "LookupPolicyResponse" "Amazonka.CloudDirectory.LookupPolicy" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" 'False) (C1 ('MetaCons "LookupPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "policyToPathList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PolicyToPath])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newLookupPolicyResponse Source #

Create a value of LookupPolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

LookupPolicy, lookupPolicyResponse_nextToken - The pagination token.

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

$sel:httpStatus:LookupPolicyResponse', lookupPolicyResponse_httpStatus - The response's http status code.

Response Lenses

lookupPolicyResponse_policyToPathList :: Lens' LookupPolicyResponse (Maybe [PolicyToPath]) Source #

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