Create AWS IoT rule with Shared Custom Resource?

I’m trying to programmatically create an AWS IoT Rule in my Jets app. Is this possible with Shared Resources? I couldn’t figure out what the syntax would look like.