AWS IAM role trust relationship policy

Is it possible to create a custom IAM role with trust relationship policy using serverless framework ? If yes, can someone please help me an example. Currently, am creating an IAM role as part of IAmRoleStatements. How can i include trust relationship policy for this IAM role ?

Appreciate any guidance here