listAutomationRules

abstract suspend fun listAutomationRules(input: ListAutomationRulesRequest = ListAutomationRulesRequest { }): ListAutomationRulesResponse

A list of automation rules and their metadata for the calling account.

Samples

// The following example lists automation rules and rule metadata in the calling account.
val resp = securityHubClient.listAutomationRules {
    nextToken = "example-token"
    maxResults = 2
}