title: Is there a way to programmatically list all of the available actions for an AWS service?
body: <p>I am looking for a way to list all of the actions that can be used in a AWS IAM policy. </p>
  
  <p>This is an example policy that uses IAM actions:</p>
  
  <pre><code>{
      "Version": "2012-10-17",
      "Statement": [
          {
              "Sid": "Stmt1457442845000",
              "Effect": "Allow",
              "Action": [
                  "iam:CreatePolicy",
                  "iam:CreatePolicyVersion",
                  "iam:GetGroupPolicy",
                  "iam:CreateGroup",
                  "iam:GetPolicy",
                  "iam:GetPolicyVersion",
                  "iam:GetRolePolicy",
                  "iam:ListAttachedGroupPolicies"
              ],
              "Resource": [
                  "*"
              ]
          }
      ]
  }
  </code></pre>
  
  <p>I would like to search through actions from a file, and for that I would like to have all the available actions. I could not find a way yet to get that list. Any direction is appreciated.</p>