# NOT RUN {
# The following example attaches a key policy to the specified CMK.
# }
# NOT RUN {
svc$put_key_policy(
KeyId = "1234abcd-12ab-34cd-56ef-1234567890ab",
Policy = "{\n \"Version\": \"2012-10-17\",\n \"Id\": \"custom-policy-2016-12-07\",\n...",
PolicyName = "default"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab