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 |
Returns all of the ObjectIdentifiers
to which a given policy is
attached.
This operation returns paginated results.
Synopsis
- data ListPolicyAttachments = ListPolicyAttachments' {}
- newListPolicyAttachments :: Text -> ObjectReference -> ListPolicyAttachments
- listPolicyAttachments_consistencyLevel :: Lens' ListPolicyAttachments (Maybe ConsistencyLevel)
- listPolicyAttachments_nextToken :: Lens' ListPolicyAttachments (Maybe Text)
- listPolicyAttachments_maxResults :: Lens' ListPolicyAttachments (Maybe Natural)
- listPolicyAttachments_directoryArn :: Lens' ListPolicyAttachments Text
- listPolicyAttachments_policyReference :: Lens' ListPolicyAttachments ObjectReference
- data ListPolicyAttachmentsResponse = ListPolicyAttachmentsResponse' {
- objectIdentifiers :: Maybe [Text]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListPolicyAttachmentsResponse :: Int -> ListPolicyAttachmentsResponse
- listPolicyAttachmentsResponse_objectIdentifiers :: Lens' ListPolicyAttachmentsResponse (Maybe [Text])
- listPolicyAttachmentsResponse_nextToken :: Lens' ListPolicyAttachmentsResponse (Maybe Text)
- listPolicyAttachmentsResponse_httpStatus :: Lens' ListPolicyAttachmentsResponse Int
Creating a Request
data ListPolicyAttachments Source #
See: newListPolicyAttachments
smart constructor.
ListPolicyAttachments' | |
|
Instances
newListPolicyAttachments Source #
Create a value of ListPolicyAttachments
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:consistencyLevel:ListPolicyAttachments'
, listPolicyAttachments_consistencyLevel
- 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.
$sel:nextToken:ListPolicyAttachments'
, listPolicyAttachments_nextToken
- The pagination token.
$sel:maxResults:ListPolicyAttachments'
, listPolicyAttachments_maxResults
- The maximum number of items to be retrieved in a single call. This is an
approximate number.
$sel:directoryArn:ListPolicyAttachments'
, listPolicyAttachments_directoryArn
- The Amazon Resource Name (ARN) that is associated with the Directory
where objects reside. For more information, see arns.
$sel:policyReference:ListPolicyAttachments'
, listPolicyAttachments_policyReference
- The reference that identifies the policy object.
Request Lenses
listPolicyAttachments_consistencyLevel :: 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.
listPolicyAttachments_nextToken :: Lens' ListPolicyAttachments (Maybe Text) Source #
The pagination token.
listPolicyAttachments_maxResults :: Lens' ListPolicyAttachments (Maybe Natural) Source #
The maximum number of items to be retrieved in a single call. This is an approximate number.
listPolicyAttachments_directoryArn :: Lens' ListPolicyAttachments Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory where objects reside. For more information, see arns.
listPolicyAttachments_policyReference :: Lens' ListPolicyAttachments ObjectReference Source #
The reference that identifies the policy object.
Destructuring the Response
data ListPolicyAttachmentsResponse Source #
See: newListPolicyAttachmentsResponse
smart constructor.
ListPolicyAttachmentsResponse' | |
|
Instances
newListPolicyAttachmentsResponse Source #
Create a value of ListPolicyAttachmentsResponse
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:objectIdentifiers:ListPolicyAttachmentsResponse'
, listPolicyAttachmentsResponse_objectIdentifiers
- A list of ObjectIdentifiers
to which the policy is attached.
$sel:nextToken:ListPolicyAttachments'
, listPolicyAttachmentsResponse_nextToken
- The pagination token.
$sel:httpStatus:ListPolicyAttachmentsResponse'
, listPolicyAttachmentsResponse_httpStatus
- The response's http status code.
Response Lenses
listPolicyAttachmentsResponse_objectIdentifiers :: Lens' ListPolicyAttachmentsResponse (Maybe [Text]) Source #
A list of ObjectIdentifiers
to which the policy is attached.
listPolicyAttachmentsResponse_nextToken :: Lens' ListPolicyAttachmentsResponse (Maybe Text) Source #
The pagination token.
listPolicyAttachmentsResponse_httpStatus :: Lens' ListPolicyAttachmentsResponse Int Source #
The response's http status code.