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