# NOT RUN {
# The following example shows how to create a service control policy (SCP)
# that is named AllowAllS3Actions. The JSON string in the content
# parameter specifies the content in the policy. The parameter string is
# escaped with backslashes to ensure that the embedded double quotes in
# the JSON policy are treated as literals in the parameter, which itself
# is surrounded by double quotes:
#
#
svc$create_policy(
Content = "{\\\"Version\\\":\\\"2012-10-17\\\",\\\"Statement\\\":{\\\"Effect\\\":...",
Description = "Enables admins of attached accounts to delegate all S3 permissions",
Name = "AllowAllS3Actions",
Type = "SERVICE_CONTROL_POLICY"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab