disassociateIamInstanceProfile   
  abstract suspend fun disassociateIamInstanceProfile(input: DisassociateIamInstanceProfileRequest): DisassociateIamInstanceProfileResponse
Disassociates an IAM instance profile from a running or stopped instance.
Use DescribeIamInstanceProfileAssociations to get the association ID.
Samples
fun main() { 
   //sampleStart 
   // This example disassociates the specified IAM instance profile from an instance.
val resp = ec2Client.disassociateIamInstanceProfile {
    associationId = "iip-assoc-05020b59952902f5f"
} 
   //sampleEnd
}