Data.Cloud.AmazonAPI.TAmazonStorageService.DeleteBucketPolicy
Delphi
function DeleteBucketPolicy(const BucketName: string; ResponseInfo: TCloudResponseInfo = nil; BucketRegion: TAmazonRegion = amzrUSEast1): Boolean;
C++
bool __fastcall DeleteBucketPolicy(const System::UnicodeString BucketName, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0), TAmazonRegion BucketRegion = (TAmazonRegion)(0x3));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Cloud.AmazonAPI.pas Data.Cloud.AmazonAPI.hpp |
Data.Cloud.AmazonAPI | TAmazonStorageService |
Description
Deletes the policy of a bucket.
DeleteBucket accepts the following parameters:
BucketName
: The name of the bucket to delete the policy of.ResponseInfo
: Optional. Holds the response information.BucketRegion
: Optional. The region of the bucket to delete the policy of. Default isamzrNotSpecified
, which means that this method automatically detects the region of the bucket based on the name of the bucket.
The method returns True
if the deletion succeeds, False
otherwise.