# NOT RUN {
# The following command attaches a policy to the IAM user named Bob.
# }
# NOT RUN {
svc$put_user_policy(
PolicyDocument = "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",...",
PolicyName = "AllAccessPolicy",
UserName = "Bob"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab