listAccessGrants
abstract suspend fun listAccessGrants(input: ListAccessGrantsRequest = ListAccessGrantsRequest { }): ListAccessGrantsResponse
Returns AccessGrants, with optional filtering by domain, space, principal, or permission. A grant is returned only when it matches every filter supplied. With no filters, returns the grants for the current account and Region.
Samples
// The following example lists the first page of access grants in a space and returns a nextToken to
// retrieve the next page. Payloads are shown as JSON on the wire they are CBOR encoded.
val resp = cloudWatchOmniClient.listAccessGrants {
domainId = "d-1a2b3c4d5e"
spaceId = "a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d"
maxResults = 50
}Content copied to clipboard