listPolicies
inline suspend fun NetworkSecurityManagerClient.listPolicies(crossinline block: ListPoliciesRequest.Builder.() -> Unit): ListPoliciesResponse
Lists the policies in the account. You can filter the results by status and page through them using maxResults and nextToken.
Samples
// Lists the published policies in the account, one page at a time.
val resp = networkSecurityManagerClient.listPolicies {
maxResults = 10
status = EntityStatusFilter.fromValue("ACTIVE")
}Content copied to clipboard