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. Note: ListObjectsV2 is the revised List Objects API and we recommend you use this revised API for new application development.
This operation returns paginated results.
Synopsis
- listObjectsV2 :: BucketName -> ListObjectsV2
- data ListObjectsV2
- lovStartAfter :: Lens' ListObjectsV2 (Maybe Text)
- lovContinuationToken :: Lens' ListObjectsV2 (Maybe Text)
- lovFetchOwner :: Lens' ListObjectsV2 (Maybe Bool)
- lovPrefix :: Lens' ListObjectsV2 (Maybe Text)
- lovEncodingType :: Lens' ListObjectsV2 (Maybe EncodingType)
- lovRequestPayer :: Lens' ListObjectsV2 (Maybe RequestPayer)
- lovMaxKeys :: Lens' ListObjectsV2 (Maybe Int)
- lovDelimiter :: Lens' ListObjectsV2 (Maybe Delimiter)
- lovBucket :: Lens' ListObjectsV2 BucketName
- listObjectsV2Response :: Int -> ListObjectsV2Response
- data ListObjectsV2Response
- lovrsStartAfter :: Lens' ListObjectsV2Response (Maybe Text)
- lovrsKeyCount :: Lens' ListObjectsV2Response (Maybe Int)
- lovrsContents :: Lens' ListObjectsV2Response [Object]
- lovrsContinuationToken :: Lens' ListObjectsV2Response (Maybe Text)
- lovrsPrefix :: Lens' ListObjectsV2Response (Maybe Text)
- lovrsCommonPrefixes :: Lens' ListObjectsV2Response [CommonPrefix]
- lovrsEncodingType :: Lens' ListObjectsV2Response (Maybe EncodingType)
- lovrsName :: Lens' ListObjectsV2Response (Maybe BucketName)
- lovrsNextContinuationToken :: Lens' ListObjectsV2Response (Maybe Text)
- lovrsMaxKeys :: Lens' ListObjectsV2Response (Maybe Int)
- lovrsIsTruncated :: Lens' ListObjectsV2Response (Maybe Bool)
- lovrsDelimiter :: Lens' ListObjectsV2Response (Maybe Delimiter)
- lovrsResponseStatus :: Lens' ListObjectsV2Response Int
Creating a Request
Creates a value of ListObjectsV2
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lovStartAfter
- StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucketlovContinuationToken
- ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real keylovFetchOwner
- The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to truelovPrefix
- Limits the response to keys that begin with the specified prefix.lovEncodingType
- Encoding type used by Amazon S3 to encode object keys in the response.lovRequestPayer
- Confirms that the requester knows that she or he will be charged for the list objects request in V2 style. Bucket owners need not specify this parameter in their requests.lovMaxKeys
- Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more.lovDelimiter
- A delimiter is a character you use to group keys.lovBucket
- Name of the bucket to list.
data ListObjectsV2 Source #
See: listObjectsV2
smart constructor.
Instances
Request Lenses
lovStartAfter :: Lens' ListObjectsV2 (Maybe Text) Source #
StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucket
lovContinuationToken :: Lens' ListObjectsV2 (Maybe Text) Source #
ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key
lovFetchOwner :: Lens' ListObjectsV2 (Maybe Bool) Source #
The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true
lovPrefix :: Lens' ListObjectsV2 (Maybe Text) Source #
Limits the response to keys that begin with the specified prefix.
lovEncodingType :: Lens' ListObjectsV2 (Maybe EncodingType) Source #
Encoding type used by Amazon S3 to encode object keys in the response.
lovRequestPayer :: Lens' ListObjectsV2 (Maybe RequestPayer) Source #
Confirms that the requester knows that she or he will be charged for the list objects request in V2 style. Bucket owners need not specify this parameter in their requests.
lovMaxKeys :: Lens' ListObjectsV2 (Maybe Int) Source #
Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more.
lovDelimiter :: Lens' ListObjectsV2 (Maybe Delimiter) Source #
A delimiter is a character you use to group keys.
lovBucket :: Lens' ListObjectsV2 BucketName Source #
Name of the bucket to list.
Destructuring the Response
listObjectsV2Response Source #
Creates a value of ListObjectsV2Response
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lovrsStartAfter
- StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucketlovrsKeyCount
- KeyCount is the number of keys returned with this request. KeyCount will always be less than equals to MaxKeys field. Say you ask for 50 keys, your result will include less than equals 50 keyslovrsContents
- Metadata about each object returned.lovrsContinuationToken
- ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real keylovrsPrefix
- Limits the response to keys that begin with the specified prefix.lovrsCommonPrefixes
- CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by delimiterlovrsEncodingType
- Encoding type used by Amazon S3 to encode object keys in the response.lovrsName
- Name of the bucket to list.lovrsNextContinuationToken
- NextContinuationToken is sent when isTruncated is true which means there are more keys in the bucket that can be listed. The next list requests to Amazon S3 can be continued with this NextContinuationToken. NextContinuationToken is obfuscated and is not a real keylovrsMaxKeys
- Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more.lovrsIsTruncated
- A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria.lovrsDelimiter
- A delimiter is a character you use to group keys.lovrsResponseStatus
- -- | The response status code.
data ListObjectsV2Response Source #
See: listObjectsV2Response
smart constructor.
Instances
Response Lenses
lovrsStartAfter :: Lens' ListObjectsV2Response (Maybe Text) Source #
StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucket
lovrsKeyCount :: Lens' ListObjectsV2Response (Maybe Int) Source #
KeyCount is the number of keys returned with this request. KeyCount will always be less than equals to MaxKeys field. Say you ask for 50 keys, your result will include less than equals 50 keys
lovrsContents :: Lens' ListObjectsV2Response [Object] Source #
Metadata about each object returned.
lovrsContinuationToken :: Lens' ListObjectsV2Response (Maybe Text) Source #
ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key
lovrsPrefix :: Lens' ListObjectsV2Response (Maybe Text) Source #
Limits the response to keys that begin with the specified prefix.
lovrsCommonPrefixes :: Lens' ListObjectsV2Response [CommonPrefix] Source #
CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by delimiter
lovrsEncodingType :: Lens' ListObjectsV2Response (Maybe EncodingType) Source #
Encoding type used by Amazon S3 to encode object keys in the response.
lovrsName :: Lens' ListObjectsV2Response (Maybe BucketName) Source #
Name of the bucket to list.
lovrsNextContinuationToken :: Lens' ListObjectsV2Response (Maybe Text) Source #
NextContinuationToken is sent when isTruncated is true which means there are more keys in the bucket that can be listed. The next list requests to Amazon S3 can be continued with this NextContinuationToken. NextContinuationToken is obfuscated and is not a real key
lovrsMaxKeys :: Lens' ListObjectsV2Response (Maybe Int) Source #
Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more.
lovrsIsTruncated :: Lens' ListObjectsV2Response (Maybe Bool) Source #
A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria.
lovrsDelimiter :: Lens' ListObjectsV2Response (Maybe Delimiter) Source #
A delimiter is a character you use to group keys.
lovrsResponseStatus :: Lens' ListObjectsV2Response Int Source #
- - | The response status code.