Discuss this help topic in SecureBlackbox Forum

TElAWSS3DataStorage.SetBucketPolicy

TElAWSS3DataStorage     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Sets bucket policy.

Declaration

[C#/Java]
    void SetBucketPolicy(string BucketName, string Policy);
    void SetBucketPolicy(TElAWSS3DataStorageBucket Bucket, string Policy);
    void SetBucketPolicy(string BucketName, string Policy, TElStringList Headers);

[VB.NET]
    Sub SetBucketPolicy(ByVal BucketName As String, ByVal Policy As String)
    Sub SetBucketPolicy(ByVal Bucket As TElAWSS3DataStorageBucket, ByVal Policy As String)
    Sub SetBucketPolicy(ByVal BucketName As String, ByVal Policy As String, ByVal Headers As TElStringList)

[Pascal]
    procedure SetBucketPolicy(const BucketName : string; const Policy : string);
    procedure SetBucketPolicy(Bucket : TElAWSS3DataStorageBucket; const Policy : string);
    procedure SetBucketPolicy(const BucketName : string; const Policy : string; Headers : TStringList);

[C++]
    void SetBucketPolicy(const std::string &BucketName, const std::string &Policy);
    void SetBucketPolicy(TElAWSS3DataStorageBucket &Bucket, const std::string &Policy);
    void SetBucketPolicy(TElAWSS3DataStorageBucket *Bucket, const std::string &Policy);
    void SetBucketPolicy(const std::string &BucketName, const std::string &Policy, TElStringList &Headers);
    void SetBucketPolicy(const std::string &BucketName, const std::string &Policy, TElStringList *Headers);

[PHP]
    void SetBucketPolicy(string $BucketName, string $Policy)
    void SetBucketPolicy(TElAWSS3DataStorageBucket $Bucket, string $Policy)
    void SetBucketPolicy(string $BucketName, string $Policy, TElStringList $Headers)

Parameters

  • Bucket - specifies the desired bucket.
  • BucketName - specifies the name of the desired bucket.
  • Headers - contains custom headers of the HTTP request.
  • Policy - specifies new bucket policy.

Description

    Use this method to set policy of the desired bucket. Policies define access rights for Amazon S3 resources. The policy is written in JSON (JavaScript Object Notation) and uses access policy language.

See also:     DeleteBucketPolicy     GetBucketPolicy    

Discuss this help topic in SecureBlackbox Forum