AWS IOT createRoleAlias

Can I create this rolealias from my YML?
https://docs.aws.amazon.com/iot/latest/apireference/API_CreateRoleAlias.html

I am creating the root role in the same YML file so I need to get the ARN back from that to supply into the createRoleAlias section.