Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . s3api ]

get-object-torrent

Description

Return torrent files from a bucket. BitTorrent can save you bandwidth when you're distributing large files. For more information about BitTorrent, see Amazon S3 Torrent .

Note

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 customer-provided encryption key.

To use GET, you must have READ access to the object.

The following operation is related to GetObjectTorrent :

  • GetObject

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  get-object-torrent
--bucket <value>
--key <value>
[--request-payer <value>]
outfile <value>

Options

--bucket (string)

The name of the bucket containing the object for which to get the torrent files.

--key (string)

The object key for which to get the information.

--request-payer (string)

Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets in the Amazon S3 Developer Guide .

Possible values:

  • requester

outfile (string) Filename where the content will be saved

See 'aws help' for descriptions of global parameters.

Examples

The following command creates a torrent for an object in a bucket named my-bucket:

aws s3api get-object-torrent --bucket my-bucket --key large-video-file.mp4 large-video-file.torrent

The torrent file is saved locally in the current folder. Note that the output filename (large-video-file.torrent) is specified without an option name and must be the last argument in the command.

Output

Body -> (blob)

A Bencoded dictionary as defined by the BitTorrent specification

RequestCharged -> (string)

If present, indicates that the requester was successfully charged for the request.