Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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_maxResults :: Lens' ListObjectPolicies (Maybe Natural)
- listObjectPolicies_nextToken :: Lens' ListObjectPolicies (Maybe Text)
- listObjectPolicies_directoryArn :: Lens' ListObjectPolicies Text
- listObjectPolicies_objectReference :: Lens' ListObjectPolicies ObjectReference
- data ListObjectPoliciesResponse = ListObjectPoliciesResponse' {
- attachedPolicyIds :: Maybe [Text]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListObjectPoliciesResponse :: Int -> ListObjectPoliciesResponse
- listObjectPoliciesResponse_attachedPolicyIds :: Lens' ListObjectPoliciesResponse (Maybe [Text])
- listObjectPoliciesResponse_nextToken :: 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.
ListObjectPolicies
, listObjectPolicies_maxResults
- The maximum number of items to be retrieved in a single call. This is an
approximate number.
ListObjectPolicies
, listObjectPolicies_nextToken
- The pagination token.
ListObjectPolicies
, listObjectPolicies_directoryArn
- The Amazon Resource Name (ARN) that is associated with the Directory
where objects reside. For more information, see arns.
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_maxResults :: Lens' ListObjectPolicies (Maybe Natural) Source #
The maximum number of items to be retrieved in a single call. This is an approximate number.
listObjectPolicies_nextToken :: Lens' ListObjectPolicies (Maybe Text) Source #
The pagination token.
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:
ListObjectPoliciesResponse
, listObjectPoliciesResponse_attachedPolicyIds
- A list of policy ObjectIdentifiers
, that are attached to the object.
ListObjectPolicies
, listObjectPoliciesResponse_nextToken
- The pagination token.
$sel:httpStatus:ListObjectPoliciesResponse'
, listObjectPoliciesResponse_httpStatus
- The response's http status code.
Response Lenses
listObjectPoliciesResponse_attachedPolicyIds :: Lens' ListObjectPoliciesResponse (Maybe [Text]) Source #
A list of policy ObjectIdentifiers
, that are attached to the object.
listObjectPoliciesResponse_nextToken :: Lens' ListObjectPoliciesResponse (Maybe Text) Source #
The pagination token.
listObjectPoliciesResponse_httpStatus :: Lens' ListObjectPoliciesResponse Int Source #
The response's http status code.