You can use Action-Based Extensibility actions for use with subscriptions.
Action-Based Extensibility actions are highly customizable, lightweight, and flexible ways to extend application life cycles using user-defined script code and action templates. Action templates contain predefined parameters that help set up the foundation of your extensibility action.
There are two ways to create an ABX action:
Writing user-defined code for an ABX action script.
Importing a deployment package as a ZIP file for an ABX action.
Prerequisites
Active and valid project.
Configured AWS role for Labda functions. For example, AWSLambdaBasicExecutionRole.
Cloud administrator role or iam:PassRole permissions enabled.
Procedure
What to do next
After your extensibility action is created and verified, you can assign it to a subscription.