Is there a way to programmatically list all of the available actions for an AWS service?

The available actions for each service are in the documentation for those services, for example the list of IAM actions is in the IAM documentation, and the list of EC2 actions is in the EC2 documentation.


Ran into the same issue, except was looking for Actions associated with more than just AWS Service IAM. Solved by:

  • Pulling the AWS SDK for Javascript ( see https://sdk.amazonaws.com/builder/js/ ) for all services.
  • Loading the resulting minified javascript file ( aws-sdk-2.680.0.min.js ) as part of a small custom HTML document.
  • Writing a javascript function that takes the desired service, and loops through the object AWS.apiLoader.services[ 'iam' ][ Version ].operations, pulling the list of Actions. ( Note that 'Version' is in the format of yyyy-mm-dd and in the minified javascript file, there was only one entry for each AWS service. )
  • Exporting the results.

Hope someone finds this helpful, as this was the only way I was able to programmatically get a comprehensive list of the Actions associated with an AWS Service...


I liked Trentium answer, but it will need maintenance.

I think I will use the AWS Policy Generator call for the policies.js file