Data schema
Data schema in JSON format:
{
"Version" : "string",
"Id" : "string",
"Statement" : [
{
"Sid" : "string",
("Principal" | "NotPrincipal") : ("*" | "CanonicalUser" : [
"string",
...
]),
"Effect" : ("Allow" | "Deny"),
"Action" : ("*" | [
"string",
...
]),
"Resource" : ("*" | [
"string",
...
]),
"Condition" : {
"condition_type_string" : {
"condition_key_string" : [[("string" | "number" | "Boolean"),...]...]
},
...
}
},
...
]
}
A schema may include up to 10,240 characters.
Description of schema parameters:
|
Parameter |
Description |
|
|
(Optional) string Bucket policy description version. Examples of values: |
|
|
(Optional) string General policy information. Some Yandex Cloud services require this value to be unique. The parameter is specified by the user. Examples of values: |
|
|
array Bucket policy rules. If a bucket policy with no rules is applied to the bucket, access is denied to all users. To disable request verification for a bucket policy, delete it. |
|
|
string (Optional) Rule ID. This parameter is specified by the user. Examples of values: |
|
|
string (Optional) Requested permission subject ID. You can request permissions for a user, or service account. The possible values are:
You can Object Storage identifies the subject during authentication. For more on authentication in its API, see How to use the S3 API. |
|
|
string (Optional) ID of the subject that will not get the requested permission. The possible subjects are: user, or service account. The possible value is: You can |
|
|
string Denies or allows the requested action. It can be either |
|
|
string Action to perform when the policy is triggered. It can be either |
|
|
string Resource to perform the action on. The possible values are:
A bucket resource does not include resources of all its objects. To make sure a bucket policy rule refers to the bucket and all the objects, specify them as separate resources, e.g., |
|
|
string (Optional) Condition to check. If multiple conditions are set for one rule at the same time, they will apply with the logical The |
|
|
string Condition type. It can be either |
|
|
string Condition key. The condition whose value will be checked. It can be either If multiple keys are set for one condition at the same time, these keys will be checked using the logical If multiple values are set for one condition key at the same time, these values will be checked using the logical |