Class PutBucketPolicyRequest
Container for the parameters to the PutBucketPolicy operation.
Replaces a policy on a bucket. If the bucket already has a policy, the one in this request completely replaces it.
public class PutBucketPolicyRequest : AmazonWebServiceRequest
- Inheritance
-
PutBucketPolicyRequest
Constructors
PutBucketPolicyRequest()
public PutBucketPolicyRequest()
Properties
BucketName
The name of the bucket.
public string BucketName { get; set; }
Property Value
ConfirmRemoveSelfBucketAccess
Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future.
public bool ConfirmRemoveSelfBucketAccess { get; set; }
Property Value
ContentMD5
The base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864.
public string ContentMD5 { get; set; }
Property Value
Remarks
This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check.
ExpectedBucketOwner
The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.
public string ExpectedBucketOwner { get; set; }
Property Value
IncludeSHA256Header
Overriden to turn off sending SHA256 header.
protected override bool IncludeSHA256Header { get; }
Property Value
Policy
The bucket policy as a JSON document.
public string Policy { get; set; }