libZSservicesZSamazonka-s3ZSamazonka-s3
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

Read GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

Show GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

Generic GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

Associated Types

type Rep GetObjectTorrent :: Type -> Type #

NFData GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

Methods

rnf :: GetObjectTorrent -> () #

Hashable GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

AWSRequest GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

Associated Types

type AWSResponse GetObjectTorrent #

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

type Rep GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

type Rep GetObjectTorrent = D1 ('MetaData "GetObjectTorrent" "Amazonka.S3.GetObjectTorrent" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "GetObjectTorrent'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "requestPayer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RequestPayer)) :*: S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName) :*: S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ObjectKey))))
type AWSResponse GetObjectTorrent Source # 
Instance details

Defined in Amazonka.S3.GetObjectTorrent

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: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_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.

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