Data.Cloud.AmazonAPI.TAmazonStorageService.SetBucketVersioning

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SetBucketVersioning(const BucketName: string; Enabled: Boolean; MFADelete: Boolean = False;  ResponseInfo: TCloudResponseInfo = nil): Boolean;

C++

bool __fastcall SetBucketVersioning(const System::UnicodeString BucketName, bool Enabled, bool MFADelete = false, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0));

Properties

Type Visibility Source Unit Parent
function public
Data.Cloud.AmazonAPI.pas
Data.Cloud.AmazonAPI.hpp
Data.Cloud.AmazonAPI TAmazonStorageService

Description

Enables or disables bucket versioning and MFA Delete.

SetBucketVersioning enables or disables bucket versioning and MFA Delete.

To enable MFA (Multi-Factor-Authentication) Delete, the MFA published properties on the Amazon Connection must be set. To enable the ability to use MFA and obtain the serial key and token, log into your Amazon account and find the appropriate service.

Requests with MFA (x-amz-mfa) must use HTTPS.

The method returns True if successful, and False otherwise.

The following table shows the significance of the parameters:

Parameter Description

BucketName

The name of the bucket to set the versioning for.

Enabled

True to enable versioning, False to disable it.

MFADelete

True to enable MFA Delete, False to disable it.

ResponseInfo

The optional class for storing response info into.

See Also