Data.Cloud.AmazonAPI.TAmazonStorageService.SetBucketLogging

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.Cloud.AmazonAPI.pas
Data.Cloud.AmazonAPI.hpp
Unit: Data.Cloud.AmazonAPI
Parent: TAmazonStorageService

Delphi

function SetBucketLogging(const BucketName: string; LoggingInfo: TAmazonBucketLoggingInfo;
ResponseInfo: TCloudResponseInfo = nil;
const BucketRegion: TAmazonRegion = amzrNotSpecified): Boolean;

C++

bool __fastcall SetBucketLogging(const System::UnicodeString BucketName, TAmazonBucketLoggingInfo* LoggingInfo, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0), const TAmazonRegion BucketRegion = System::UnicodeString());

Description

Sets the logging state as well as any grant information.

SetBucketLogging sets the logging state as well as any grant information.

If LoggingInfo is nil, logging will be suspended for the given bucket.

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 logging state for.

LoggingInfo

The logging info to set.

ResponseInfo

The optional class for storing response info into.

See Also