Rename ec2 instance with aws_ssm_document

I am using aws_ssm_document to join my ec2 instance to aws AD domain. any idea how I can use the same document to rename the windows computer?