amazonka-s3-2.0: Amazon Simple Storage Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.S3.GetObjectTorrent

Description

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

Creating a Request

data GetObjectTorrent Source #

See: newGetObjectTorrent smart constructor.

Constructors

GetObjectTorrent' 

Fields

Instances

Instances details
ToHeaders GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

ToPath GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

ToQuery GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

AWSRequest GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

Associated Types

type AWSResponse GetObjectTorrent #

Generic GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

Associated Types

type Rep GetObjectTorrent :: Type -> Type #

Read GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

Show GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

NFData GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

Methods

rnf :: GetObjectTorrent -> () #

Eq GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

Hashable GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

type AWSResponse GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

type Rep GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

type Rep GetObjectTorrent = D1 ('MetaData "GetObjectTorrent" "Amazonka.S3.GetObjectTorrent" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "GetObjectTorrent'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "requestPayer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RequestPayer))) :*: (S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName) :*: S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ObjectKey))))

newGetObjectTorrent Source #

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:expectedBucketOwner:GetObjectTorrent', getObjectTorrent_expectedBucketOwner - The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).

$sel:requestPayer:GetObjectTorrent', getObjectTorrent_requestPayer - Undocumented member.

GetObjectTorrent, getObjectTorrent_bucket - The name of the bucket containing the object for which to get the torrent files.

GetObjectTorrent, getObjectTorrent_key - The object key for which to get the information.

Request Lenses

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 fails with the HTTP status code 403 Forbidden (access denied).

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.

Constructors

GetObjectTorrentResponse' 

Fields

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_body :: Lens' GetObjectTorrentResponse ResponseBody Source #

A Bencoded dictionary as defined by the BitTorrent specification