Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Returns policies attached to an object in pagination fashion.
- listObjectPolicies :: Text -> ObjectReference -> ListObjectPolicies
- data ListObjectPolicies
- lConsistencyLevel :: Lens' ListObjectPolicies (Maybe ConsistencyLevel)
- lNextToken :: Lens' ListObjectPolicies (Maybe Text)
- lMaxResults :: Lens' ListObjectPolicies (Maybe Natural)
- lDirectoryARN :: Lens' ListObjectPolicies Text
- lObjectReference :: Lens' ListObjectPolicies ObjectReference
- listObjectPoliciesResponse :: Int -> ListObjectPoliciesResponse
- data ListObjectPoliciesResponse
- loprsNextToken :: Lens' ListObjectPoliciesResponse (Maybe Text)
- loprsAttachedPolicyIds :: Lens' ListObjectPoliciesResponse [Text]
- loprsResponseStatus :: Lens' ListObjectPoliciesResponse Int
Creating a Request
Creates a value of ListObjectPolicies
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lConsistencyLevel
- Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object.lNextToken
- The pagination token.lMaxResults
- The maximum number of items to be retrieved in a single call. This is an approximate number.lDirectoryARN
- The Amazon Resource Name (ARN) that is associated with theDirectory
where objects reside. For more information, seearns
.lObjectReference
- Reference that identifies the object for which policies will be listed.
data ListObjectPolicies Source #
See: listObjectPolicies
smart constructor.
Request Lenses
lConsistencyLevel :: Lens' ListObjectPolicies (Maybe ConsistencyLevel) Source #
Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object.
lNextToken :: Lens' ListObjectPolicies (Maybe Text) Source #
The pagination token.
lMaxResults :: Lens' ListObjectPolicies (Maybe Natural) Source #
The maximum number of items to be retrieved in a single call. This is an approximate number.
lDirectoryARN :: Lens' ListObjectPolicies Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory
where objects reside. For more information, see arns
.
lObjectReference :: Lens' ListObjectPolicies ObjectReference Source #
Reference that identifies the object for which policies will be listed.
Destructuring the Response
listObjectPoliciesResponse Source #
Creates a value of ListObjectPoliciesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
loprsNextToken
- The pagination token.loprsAttachedPolicyIds
- A list of policyObjectIdentifiers
, that are attached to the object.loprsResponseStatus
- -- | The response status code.
data ListObjectPoliciesResponse Source #
See: listObjectPoliciesResponse
smart constructor.
Response Lenses
loprsNextToken :: Lens' ListObjectPoliciesResponse (Maybe Text) Source #
The pagination token.
loprsAttachedPolicyIds :: Lens' ListObjectPoliciesResponse [Text] Source #
A list of policy ObjectIdentifiers
, that are attached to the object.
loprsResponseStatus :: Lens' ListObjectPoliciesResponse Int Source #
- - | The response status code.