Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GetObjectTorrentCommand

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:

example

Use a bare-bones client and the command you need to make an API call.

import { S3Client, GetObjectTorrentCommand } from "@aws-sdk/client-s3"; // ES Modules import
// const { S3Client, GetObjectTorrentCommand } = require("@aws-sdk/client-s3"); // CommonJS import
const client = new S3Client(config);
const command = new GetObjectTorrentCommand(input);
const response = await client.send(command);
see

GetObjectTorrentCommandInput for command's input shape.

see

GetObjectTorrentCommandOutput for command's response shape.

see

config for S3Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: GetObjectTorrentCommandInput

Readonly middlewareStack