if (FALSE) {
# The following example shows how to rename a policy and give it a new
# description and new content. The output confirms the new name and
# description text:/n/n
svc$update_policy(
Description = "This description replaces the original.",
Name = "Renamed-Policy",
PolicyId = "p-examplepolicyid111"
)
# The following example shows how to replace the JSON text of the SCP from
# the preceding example with a new JSON policy text string that allows S3
# actions instead of EC2 actions:/n/n
svc$update_policy(
Content = "{ \"Version\": \"2012-10-17\", \"Statement\": {\"Effect\": \"Allow\", \"A...",
PolicyId = "p-examplepolicyid111"
)
}
Run the code above in your browser using DataLab