Data.Cloud.AmazonAPI.TAmazonStorageService.SetBucketPolicy
Delphi
function SetBucketPolicy(const BucketName: string; Policy: TJSONObject;
ResponseInfo: TCloudResponseInfo = nil;
const BucketRegion: TAmazonRegion = amzrNotSpecified): Boolean;
C++
bool __fastcall SetBucketPolicy(const System::UnicodeString BucketName, System::Json::TJSONObject* Policy, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0), const System::UnicodeString BucketRegion = System::UnicodeString());
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Cloud.AmazonAPI.pas Data.Cloud.AmazonAPI.hpp |
Data.Cloud.AmazonAPI | TAmazonStorageService |
Description
Sets the policy for the given bucket.
SetBucketPolicy sets the policy for the given bucket.
For information on the JSON format policy, see the Amazon S3 documentation.
The method returns True if successful, and False otherwise.
The following table shows the significance of the parameters:
Parameter | Description |
---|---|
|
The name of the bucket to set the policy for. |
|
The policy, formatted as a JSON object. |
|
The optional class for storing response info into. |