libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Read LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Show LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Generic LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Associated Types

type Rep LookupPolicy :: Type -> Type #

NFData LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Methods

rnf :: LookupPolicy -> () #

Hashable LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

ToJSON 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 #

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

type Rep LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

type Rep LookupPolicy = D1 ('MetaData "LookupPolicy" "Amazonka.CloudDirectory.LookupPolicy" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" 'False) (C1 ('MetaCons "LookupPolicy'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "directoryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "objectReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ObjectReference))))
type AWSResponse LookupPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

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:

$sel:nextToken:LookupPolicy', lookupPolicy_nextToken - The token to request the next page of results.

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

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

$sel:objectReference:LookupPolicy', lookupPolicy_objectReference - Reference that identifies the object whose policies will be looked up.

Request Lenses

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

The token to request the next page of results.

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_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
Eq LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Read LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Show LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Generic LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Associated Types

type Rep LookupPolicyResponse :: Type -> Type #

NFData LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

Methods

rnf :: LookupPolicyResponse -> () #

type Rep LookupPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.LookupPolicy

type Rep LookupPolicyResponse = D1 ('MetaData "LookupPolicyResponse" "Amazonka.CloudDirectory.LookupPolicy" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" '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:

$sel:nextToken:LookupPolicy', lookupPolicyResponse_nextToken - The pagination token.

$sel:policyToPathList: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.