detachObject

Detaches a given object from the parent object. The object that is to be detached from the parent is specified by the link name.

Samples

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

fun main() { 
   //sampleStart 
   val resp = cloudDirectoryClient.detachObject {
    directoryArn = "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY"
    parentReference = ObjectReference {
        selector = "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw"
    }
    linkName = "link2"
} 
   //sampleEnd
}