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 policies attached to an object in pagination fashion.
This operation returns paginated results.
Synopsis
- data ListObjectPolicies = ListObjectPolicies' {}
- newListObjectPolicies :: Text -> ObjectReference -> ListObjectPolicies
- listObjectPolicies_consistencyLevel :: Lens' ListObjectPolicies (Maybe ConsistencyLevel)
- listObjectPolicies_nextToken :: Lens' ListObjectPolicies (Maybe Text)
- listObjectPolicies_maxResults :: Lens' ListObjectPolicies (Maybe Natural)
- listObjectPolicies_directoryArn :: Lens' ListObjectPolicies Text
- listObjectPolicies_objectReference :: Lens' ListObjectPolicies ObjectReference
- data ListObjectPoliciesResponse = ListObjectPoliciesResponse' {
- nextToken :: Maybe Text
- attachedPolicyIds :: Maybe [Text]
- httpStatus :: Int
- newListObjectPoliciesResponse :: Int -> ListObjectPoliciesResponse
- listObjectPoliciesResponse_nextToken :: Lens' ListObjectPoliciesResponse (Maybe Text)
- listObjectPoliciesResponse_attachedPolicyIds :: Lens' ListObjectPoliciesResponse (Maybe [Text])
- listObjectPoliciesResponse_httpStatus :: Lens' ListObjectPoliciesResponse Int
Creating a Request
data ListObjectPolicies Source #
See: newListObjectPolicies
smart constructor.
ListObjectPolicies' | |
|
Instances
newListObjectPolicies Source #
Create a value of ListObjectPolicies
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:ListObjectPolicies'
, listObjectPolicies_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:ListObjectPolicies'
, listObjectPolicies_nextToken
- The pagination token.
$sel:maxResults:ListObjectPolicies'
, listObjectPolicies_maxResults
- The maximum number of items to be retrieved in a single call. This is an
approximate number.
$sel:directoryArn:ListObjectPolicies'
, listObjectPolicies_directoryArn
- The Amazon Resource Name (ARN) that is associated with the Directory
where objects reside. For more information, see arns.
$sel:objectReference:ListObjectPolicies'
, listObjectPolicies_objectReference
- Reference that identifies the object for which policies will be listed.
Request Lenses
listObjectPolicies_consistencyLevel :: 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.
listObjectPolicies_nextToken :: Lens' ListObjectPolicies (Maybe Text) Source #
The pagination token.
listObjectPolicies_maxResults :: Lens' ListObjectPolicies (Maybe Natural) Source #
The maximum number of items to be retrieved in a single call. This is an approximate number.
listObjectPolicies_directoryArn :: Lens' ListObjectPolicies Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory where objects reside. For more information, see arns.
listObjectPolicies_objectReference :: Lens' ListObjectPolicies ObjectReference Source #
Reference that identifies the object for which policies will be listed.
Destructuring the Response
data ListObjectPoliciesResponse Source #
See: newListObjectPoliciesResponse
smart constructor.
ListObjectPoliciesResponse' | |
|
Instances
newListObjectPoliciesResponse Source #
Create a value of ListObjectPoliciesResponse
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:ListObjectPolicies'
, listObjectPoliciesResponse_nextToken
- The pagination token.
$sel:attachedPolicyIds:ListObjectPoliciesResponse'
, listObjectPoliciesResponse_attachedPolicyIds
- A list of policy ObjectIdentifiers
, that are attached to the object.
$sel:httpStatus:ListObjectPoliciesResponse'
, listObjectPoliciesResponse_httpStatus
- The response's http status code.
Response Lenses
listObjectPoliciesResponse_nextToken :: Lens' ListObjectPoliciesResponse (Maybe Text) Source #
The pagination token.
listObjectPoliciesResponse_attachedPolicyIds :: Lens' ListObjectPoliciesResponse (Maybe [Text]) Source #
A list of policy ObjectIdentifiers
, that are attached to the object.
listObjectPoliciesResponse_httpStatus :: Lens' ListObjectPoliciesResponse Int Source #
The response's http status code.