# NOT RUN {
# 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\\\": ...",
PolicyId = "p-examplepolicyid111"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab