Creates a policy of a specified type that you can attach to a root, an organizational unit (OU), or an individual Amazon Web Services account.
For more information about policies and their use, see Managing Organization Policies.
If the request includes tags, then the requester must have the organizations:TagResource permission.
This operation can be called only from the organization's management account.
post/#X-Amz-Target=AWSOrganizationsV20161128.CreatePolicy
Headers
X-Amz-Target'AWSOrganizationsV20161128.CreatePolicy' required
Request body
Response
Success
Example response
{
"Policy": {
"Content": "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"s3:*\"}}",
"PolicySummary": {
"Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111",
"Description": "Allows delegation of all S3 actions",
"Name": "AllowAllS3Actions",
"Type": "SERVICE_CONTROL_POLICY"
}
}
}