if (FALSE) {
# The following example shows how to attach a service control policy (SCP)
# to an OU:
#
svc$attach_policy(
PolicyId = "p-examplepolicyid111",
TargetId = "ou-examplerootid111-exampleouid111"
)
# The following example shows how to attach a service control policy (SCP)
# to an account:
#
svc$attach_policy(
PolicyId = "p-examplepolicyid111",
TargetId = "333333333333"
)
}
Run the code above in your browser using DataLab