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 torrent files from a bucket. BitTorrent can save you bandwidth when you're distributing large files. For more information about BitTorrent, see Using BitTorrent with Amazon S3.
You can get torrent only for objects that are less than 5 GB in size, and that are not encrypted using server-side encryption with a customer-provided encryption key.
To use GET, you must have READ access to the object.
This action is not supported by Amazon S3 on Outposts.
The following action is related to GetObjectTorrent
:
Synopsis
- data GetObjectTorrent = GetObjectTorrent' {}
- newGetObjectTorrent :: BucketName -> ObjectKey -> GetObjectTorrent
- getObjectTorrent_requestPayer :: Lens' GetObjectTorrent (Maybe RequestPayer)
- getObjectTorrent_expectedBucketOwner :: Lens' GetObjectTorrent (Maybe Text)
- getObjectTorrent_bucket :: Lens' GetObjectTorrent BucketName
- getObjectTorrent_key :: Lens' GetObjectTorrent ObjectKey
- data GetObjectTorrentResponse = GetObjectTorrentResponse' {}
- newGetObjectTorrentResponse :: Int -> ResponseBody -> GetObjectTorrentResponse
- getObjectTorrentResponse_requestCharged :: Lens' GetObjectTorrentResponse (Maybe RequestCharged)
- getObjectTorrentResponse_httpStatus :: Lens' GetObjectTorrentResponse Int
- getObjectTorrentResponse_body :: Lens' GetObjectTorrentResponse ResponseBody
Creating a Request
data GetObjectTorrent Source #
See: newGetObjectTorrent
smart constructor.
GetObjectTorrent' | |
|
Instances
Create a value of GetObjectTorrent
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:requestPayer:GetObjectTorrent'
, getObjectTorrent_requestPayer
- Undocumented member.
$sel:expectedBucketOwner:GetObjectTorrent'
, getObjectTorrent_expectedBucketOwner
- The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
$sel:bucket:GetObjectTorrent'
, getObjectTorrent_bucket
- The name of the bucket containing the object for which to get the
torrent files.
$sel:key:GetObjectTorrent'
, getObjectTorrent_key
- The object key for which to get the information.
Request Lenses
getObjectTorrent_requestPayer :: Lens' GetObjectTorrent (Maybe RequestPayer) Source #
Undocumented member.
getObjectTorrent_expectedBucketOwner :: Lens' GetObjectTorrent (Maybe Text) Source #
The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
getObjectTorrent_bucket :: Lens' GetObjectTorrent BucketName Source #
The name of the bucket containing the object for which to get the torrent files.
getObjectTorrent_key :: Lens' GetObjectTorrent ObjectKey Source #
The object key for which to get the information.
Destructuring the Response
data GetObjectTorrentResponse Source #
See: newGetObjectTorrentResponse
smart constructor.
GetObjectTorrentResponse' | |
|
Instances
newGetObjectTorrentResponse Source #
Create a value of GetObjectTorrentResponse
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:requestCharged:GetObjectTorrentResponse'
, getObjectTorrentResponse_requestCharged
- Undocumented member.
$sel:httpStatus:GetObjectTorrentResponse'
, getObjectTorrentResponse_httpStatus
- The response's http status code.
$sel:body:GetObjectTorrentResponse'
, getObjectTorrentResponse_body
- A Bencoded dictionary as defined by the BitTorrent specification
Response Lenses
getObjectTorrentResponse_requestCharged :: Lens' GetObjectTorrentResponse (Maybe RequestCharged) Source #
Undocumented member.
getObjectTorrentResponse_httpStatus :: Lens' GetObjectTorrentResponse Int Source #
The response's http status code.
getObjectTorrentResponse_body :: Lens' GetObjectTorrentResponse ResponseBody Source #
A Bencoded dictionary as defined by the BitTorrent specification