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 |
Lists the parts that have been uploaded for a specific multipart upload.
This operation returns paginated results.
Synopsis
- listParts :: BucketName -> ObjectKey -> Text -> ListParts
- data ListParts
- lpMaxParts :: Lens' ListParts (Maybe Int)
- lpRequestPayer :: Lens' ListParts (Maybe RequestPayer)
- lpPartNumberMarker :: Lens' ListParts (Maybe Int)
- lpBucket :: Lens' ListParts BucketName
- lpKey :: Lens' ListParts ObjectKey
- lpUploadId :: Lens' ListParts Text
- listPartsResponse :: Int -> ListPartsResponse
- data ListPartsResponse
- lprsParts :: Lens' ListPartsResponse [Part]
- lprsRequestCharged :: Lens' ListPartsResponse (Maybe RequestCharged)
- lprsMaxParts :: Lens' ListPartsResponse (Maybe Int)
- lprsInitiator :: Lens' ListPartsResponse (Maybe Initiator)
- lprsBucket :: Lens' ListPartsResponse (Maybe BucketName)
- lprsAbortDate :: Lens' ListPartsResponse (Maybe UTCTime)
- lprsNextPartNumberMarker :: Lens' ListPartsResponse (Maybe Int)
- lprsAbortRuleId :: Lens' ListPartsResponse (Maybe Text)
- lprsOwner :: Lens' ListPartsResponse (Maybe Owner)
- lprsKey :: Lens' ListPartsResponse (Maybe ObjectKey)
- lprsStorageClass :: Lens' ListPartsResponse (Maybe StorageClass)
- lprsIsTruncated :: Lens' ListPartsResponse (Maybe Bool)
- lprsPartNumberMarker :: Lens' ListPartsResponse (Maybe Int)
- lprsUploadId :: Lens' ListPartsResponse (Maybe Text)
- lprsResponseStatus :: Lens' ListPartsResponse Int
Creating a Request
Creates a value of ListParts
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lpMaxParts
- Sets the maximum number of parts to return.lpRequestPayer
- Undocumented member.lpPartNumberMarker
- Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.lpBucket
- Undocumented member.lpKey
- Undocumented member.lpUploadId
- Upload ID identifying the multipart upload whose parts are being listed.
See: listParts
smart constructor.
Instances
Request Lenses
lpRequestPayer :: Lens' ListParts (Maybe RequestPayer) Source #
Undocumented member.
lpPartNumberMarker :: Lens' ListParts (Maybe Int) Source #
Specifies the part after which listing should begin. Only parts with higher part numbers will be listed.
lpUploadId :: Lens' ListParts Text Source #
Upload ID identifying the multipart upload whose parts are being listed.
Destructuring the Response
Creates a value of ListPartsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lprsParts
- Undocumented member.lprsRequestCharged
- Undocumented member.lprsMaxParts
- Maximum number of parts that were allowed in the response.lprsInitiator
- Identifies who initiated the multipart upload.lprsBucket
- Name of the bucket to which the multipart upload was initiated.lprsAbortDate
- Date when multipart upload will become eligible for abort operation by lifecycle.lprsNextPartNumberMarker
- When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request.lprsAbortRuleId
- Id of the lifecycle rule that makes a multipart upload eligible for abort operation.lprsOwner
- Undocumented member.lprsKey
- Object key for which the multipart upload was initiated.lprsStorageClass
- The class of storage used to store the object.lprsIsTruncated
- Indicates whether the returned list of parts is truncated.lprsPartNumberMarker
- Part number after which listing begins.lprsUploadId
- Upload ID identifying the multipart upload whose parts are being listed.lprsResponseStatus
- -- | The response status code.
data ListPartsResponse Source #
See: listPartsResponse
smart constructor.
Instances
Response Lenses
lprsRequestCharged :: Lens' ListPartsResponse (Maybe RequestCharged) Source #
Undocumented member.
lprsMaxParts :: Lens' ListPartsResponse (Maybe Int) Source #
Maximum number of parts that were allowed in the response.
lprsInitiator :: Lens' ListPartsResponse (Maybe Initiator) Source #
Identifies who initiated the multipart upload.
lprsBucket :: Lens' ListPartsResponse (Maybe BucketName) Source #
Name of the bucket to which the multipart upload was initiated.
lprsAbortDate :: Lens' ListPartsResponse (Maybe UTCTime) Source #
Date when multipart upload will become eligible for abort operation by lifecycle.
lprsNextPartNumberMarker :: Lens' ListPartsResponse (Maybe Int) Source #
When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request.
lprsAbortRuleId :: Lens' ListPartsResponse (Maybe Text) Source #
Id of the lifecycle rule that makes a multipart upload eligible for abort operation.
lprsKey :: Lens' ListPartsResponse (Maybe ObjectKey) Source #
Object key for which the multipart upload was initiated.
lprsStorageClass :: Lens' ListPartsResponse (Maybe StorageClass) Source #
The class of storage used to store the object.
lprsIsTruncated :: Lens' ListPartsResponse (Maybe Bool) Source #
Indicates whether the returned list of parts is truncated.
lprsPartNumberMarker :: Lens' ListPartsResponse (Maybe Int) Source #
Part number after which listing begins.
lprsUploadId :: Lens' ListPartsResponse (Maybe Text) Source #
Upload ID identifying the multipart upload whose parts are being listed.
lprsResponseStatus :: Lens' ListPartsResponse Int Source #
- - | The response status code.