listAutomationRules  
  inline suspend fun SecurityHubClient.listAutomationRules(crossinline block: ListAutomationRulesRequest.Builder.() -> Unit): ListAutomationRulesResponse
A list of automation rules and their metadata for the calling account.
Samples
fun main() { 
   //sampleStart 
   // The following example lists automation rules and rule metadata in the calling account.
val resp = securityHubClient.listAutomationRules {
    nextToken = "example-token"
    maxResults = 2
} 
   //sampleEnd
}