Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PutBucketRequestPaymentCommand

Sets the request payment configuration for a bucket. By default, the bucket owner pays for downloads from the bucket. This configuration parameter enables the bucket owner (only) to specify that the person requesting the download will be charged for the download. For more information, see Requester Pays Buckets.

The following operations are related to PutBucketRequestPayment:

example

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

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

PutBucketRequestPaymentCommandInput for command's input shape.

see

PutBucketRequestPaymentCommandOutput for command's response shape.

see

config for S3Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: PutBucketRequestPaymentCommandInput

Readonly middlewareStack