Copyright | (c) 2013-2018 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 all of the ObjectIdentifiers
to which a given policy is attached.
This operation returns paginated results.
- listPolicyAttachments :: Text -> ObjectReference -> ListPolicyAttachments
- data ListPolicyAttachments
- lpaConsistencyLevel :: Lens' ListPolicyAttachments (Maybe ConsistencyLevel)
- lpaNextToken :: Lens' ListPolicyAttachments (Maybe Text)
- lpaMaxResults :: Lens' ListPolicyAttachments (Maybe Natural)
- lpaDirectoryARN :: Lens' ListPolicyAttachments Text
- lpaPolicyReference :: Lens' ListPolicyAttachments ObjectReference
- listPolicyAttachmentsResponse :: Int -> ListPolicyAttachmentsResponse
- data ListPolicyAttachmentsResponse
- lparsObjectIdentifiers :: Lens' ListPolicyAttachmentsResponse [Text]
- lparsNextToken :: Lens' ListPolicyAttachmentsResponse (Maybe Text)
- lparsResponseStatus :: Lens' ListPolicyAttachmentsResponse Int
Creating a Request
listPolicyAttachments Source #
Creates a value of ListPolicyAttachments
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lpaConsistencyLevel
- 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.lpaNextToken
- The pagination token.lpaMaxResults
- The maximum number of items to be retrieved in a single call. This is an approximate number.lpaDirectoryARN
- The Amazon Resource Name (ARN) that is associated with theDirectory
where objects reside. For more information, seearns
.lpaPolicyReference
- The reference that identifies the policy object.
data ListPolicyAttachments Source #
See: listPolicyAttachments
smart constructor.
Request Lenses
lpaConsistencyLevel :: Lens' ListPolicyAttachments (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.
lpaNextToken :: Lens' ListPolicyAttachments (Maybe Text) Source #
The pagination token.
lpaMaxResults :: Lens' ListPolicyAttachments (Maybe Natural) Source #
The maximum number of items to be retrieved in a single call. This is an approximate number.
lpaDirectoryARN :: Lens' ListPolicyAttachments Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory
where objects reside. For more information, see arns
.
lpaPolicyReference :: Lens' ListPolicyAttachments ObjectReference Source #
The reference that identifies the policy object.
Destructuring the Response
listPolicyAttachmentsResponse Source #
Creates a value of ListPolicyAttachmentsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lparsObjectIdentifiers
- A list ofObjectIdentifiers
to which the policy is attached.lparsNextToken
- The pagination token.lparsResponseStatus
- -- | The response status code.
data ListPolicyAttachmentsResponse Source #
See: listPolicyAttachmentsResponse
smart constructor.
Response Lenses
lparsObjectIdentifiers :: Lens' ListPolicyAttachmentsResponse [Text] Source #
A list of ObjectIdentifiers
to which the policy is attached.
lparsNextToken :: Lens' ListPolicyAttachmentsResponse (Maybe Text) Source #
The pagination token.
lparsResponseStatus :: Lens' ListPolicyAttachmentsResponse Int Source #
- - | The response status code.