CreatePolicyRequest
Name of the policy. Must be unique within the organization.
Only alphanumeric characters and +=,.@_- are allowed.
Possible values: <= 128 characters
document objectrequired
AWS IAM-compatible policy document. See IAM Policies documentation for details.
Policy language version.
Possible values: [2012-10-17]
Statement object[]required
Optional identifier for the statement
Whether this statement allows or denies the specified actions
Possible values: [Allow, Deny]
S3 actions to allow or deny. Common actions: s3:GetObject, s3:PutObject,
s3:DeleteObject, s3:ListBucket, s3:*.
See supported actions.
S3 resource ARNs. Use arn:aws:s3:::bucket for bucket-level and
arn:aws:s3:::bucket/prefix/* for prefix-scoped access.
Optional conditions (IP, time-based). See condition examples.
A description for the policy
Possible values: <= 1000 characters
{
"name": "string",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "string",
"Effect": "Allow",
"Action": [
"string"
],
"Resource": [
"string"
],
"Condition": {}
}
]
},
"description": "string"
}