Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data LookupPolicy = LookupPolicy' {}
- newLookupPolicy :: Text -> ObjectReference -> LookupPolicy
- lookupPolicy_nextToken :: Lens' LookupPolicy (Maybe Text)
- lookupPolicy_maxResults :: Lens' LookupPolicy (Maybe Natural)
- lookupPolicy_directoryArn :: Lens' LookupPolicy Text
- lookupPolicy_objectReference :: Lens' LookupPolicy ObjectReference
- data LookupPolicyResponse = LookupPolicyResponse' {
- nextToken :: Maybe Text
- policyToPathList :: Maybe [PolicyToPath]
- httpStatus :: Int
- newLookupPolicyResponse :: Int -> LookupPolicyResponse
- lookupPolicyResponse_nextToken :: Lens' LookupPolicyResponse (Maybe Text)
- lookupPolicyResponse_policyToPathList :: Lens' LookupPolicyResponse (Maybe [PolicyToPath])
- lookupPolicyResponse_httpStatus :: Lens' LookupPolicyResponse Int
Creating a Request
data LookupPolicy Source #
See: newLookupPolicy
smart constructor.
LookupPolicy' | |
|
Instances
:: Text | |
-> ObjectReference | |
-> LookupPolicy |
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.
LookupPolicyResponse' | |
|
Instances
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_nextToken :: Lens' LookupPolicyResponse (Maybe Text) Source #
The pagination token.
lookupPolicyResponse_policyToPathList :: Lens' LookupPolicyResponse (Maybe [PolicyToPath]) Source #
Provides list of path to policies. Policies contain PolicyId
,
ObjectIdentifier
, and PolicyType
. For more information, see
Policies.
lookupPolicyResponse_httpStatus :: Lens' LookupPolicyResponse Int Source #
The response's http status code.