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 some or all (up to 1000) of the objects in a bucket. You can use the request parameters as selection criteria to return a subset of the objects in a bucket.
This operation returns paginated results.
Synopsis
- listObjects :: BucketName -> ListObjects
- data ListObjects
- loPrefix :: Lens' ListObjects (Maybe Text)
- loEncodingType :: Lens' ListObjects (Maybe EncodingType)
- loRequestPayer :: Lens' ListObjects (Maybe RequestPayer)
- loMarker :: Lens' ListObjects (Maybe Text)
- loMaxKeys :: Lens' ListObjects (Maybe Int)
- loDelimiter :: Lens' ListObjects (Maybe Delimiter)
- loBucket :: Lens' ListObjects BucketName
- listObjectsResponse :: Int -> ListObjectsResponse
- data ListObjectsResponse
- lorsContents :: Lens' ListObjectsResponse [Object]
- lorsPrefix :: Lens' ListObjectsResponse (Maybe Text)
- lorsCommonPrefixes :: Lens' ListObjectsResponse [CommonPrefix]
- lorsEncodingType :: Lens' ListObjectsResponse (Maybe EncodingType)
- lorsName :: Lens' ListObjectsResponse (Maybe BucketName)
- lorsMarker :: Lens' ListObjectsResponse (Maybe Text)
- lorsNextMarker :: Lens' ListObjectsResponse (Maybe Text)
- lorsMaxKeys :: Lens' ListObjectsResponse (Maybe Int)
- lorsIsTruncated :: Lens' ListObjectsResponse (Maybe Bool)
- lorsDelimiter :: Lens' ListObjectsResponse (Maybe Delimiter)
- lorsResponseStatus :: Lens' ListObjectsResponse Int
Creating a Request
Creates a value of ListObjects
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
loPrefix
- Limits the response to keys that begin with the specified prefix.loEncodingType
- Undocumented member.loRequestPayer
- Confirms that the requester knows that she or he will be charged for the list objects request. Bucket owners need not specify this parameter in their requests.loMarker
- Specifies the key to start with when listing objects in a bucket.loMaxKeys
- Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more.loDelimiter
- A delimiter is a character you use to group keys.loBucket
- Undocumented member.
data ListObjects Source #
See: listObjects
smart constructor.
Instances
Request Lenses
loPrefix :: Lens' ListObjects (Maybe Text) Source #
Limits the response to keys that begin with the specified prefix.
loEncodingType :: Lens' ListObjects (Maybe EncodingType) Source #
Undocumented member.
loRequestPayer :: Lens' ListObjects (Maybe RequestPayer) Source #
Confirms that the requester knows that she or he will be charged for the list objects request. Bucket owners need not specify this parameter in their requests.
loMarker :: Lens' ListObjects (Maybe Text) Source #
Specifies the key to start with when listing objects in a bucket.
loMaxKeys :: Lens' ListObjects (Maybe Int) Source #
Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more.
loDelimiter :: Lens' ListObjects (Maybe Delimiter) Source #
A delimiter is a character you use to group keys.
loBucket :: Lens' ListObjects BucketName Source #
Undocumented member.
Destructuring the Response
Creates a value of ListObjectsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lorsContents
- Undocumented member.lorsPrefix
- Undocumented member.lorsCommonPrefixes
- Undocumented member.lorsEncodingType
- Encoding type used by Amazon S3 to encode object keys in the response.lorsName
- Undocumented member.lorsMarker
- Undocumented member.lorsNextMarker
- When response is truncated (the IsTruncated element value in the response is true), you can use the key name in this field as marker in the subsequent request to get next set of objects. Amazon S3 lists objects in alphabetical order Note: This element is returned only if you have delimiter request parameter specified. If response does not include the NextMaker and it is truncated, you can use the value of the last Key in the response as the marker in the subsequent request to get the next set of object keys.lorsMaxKeys
- Undocumented member.lorsIsTruncated
- A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria.lorsDelimiter
- Undocumented member.lorsResponseStatus
- -- | The response status code.
data ListObjectsResponse Source #
See: listObjectsResponse
smart constructor.
Instances
Response Lenses
lorsContents :: Lens' ListObjectsResponse [Object] Source #
Undocumented member.
lorsPrefix :: Lens' ListObjectsResponse (Maybe Text) Source #
Undocumented member.
lorsCommonPrefixes :: Lens' ListObjectsResponse [CommonPrefix] Source #
Undocumented member.
lorsEncodingType :: Lens' ListObjectsResponse (Maybe EncodingType) Source #
Encoding type used by Amazon S3 to encode object keys in the response.
lorsName :: Lens' ListObjectsResponse (Maybe BucketName) Source #
Undocumented member.
lorsMarker :: Lens' ListObjectsResponse (Maybe Text) Source #
Undocumented member.
lorsNextMarker :: Lens' ListObjectsResponse (Maybe Text) Source #
When response is truncated (the IsTruncated element value in the response is true), you can use the key name in this field as marker in the subsequent request to get next set of objects. Amazon S3 lists objects in alphabetical order Note: This element is returned only if you have delimiter request parameter specified. If response does not include the NextMaker and it is truncated, you can use the value of the last Key in the response as the marker in the subsequent request to get the next set of object keys.
lorsMaxKeys :: Lens' ListObjectsResponse (Maybe Int) Source #
Undocumented member.
lorsIsTruncated :: Lens' ListObjectsResponse (Maybe Bool) Source #
A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria.
lorsDelimiter :: Lens' ListObjectsResponse (Maybe Delimiter) Source #
Undocumented member.
lorsResponseStatus :: Lens' ListObjectsResponse Int Source #
- - | The response status code.