detachPolicy

Detaches a policy from an object.

Samples

import aws.sdk.kotlin.services.clouddirectory.model.ObjectReference

fun main() { 
   //sampleStart 
   val resp = cloudDirectoryClient.detachPolicy {
    directoryArn = "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY"
    policyReference = ObjectReference {
        selector = "$AQGG_ADlfNZBzYHY_JgDt3TWgcBsTVmcQEWs6jlygfhuew"
    }
    objectReference = ObjectReference {
        selector = "$AQGG_ADlfNZBzYHY_JgDt3TWQoovm1s3Ts2v0NKrzdVnPw"
    }
} 
   //sampleEnd
}