listDomainAccessGrantsForOrganization

Returns organization-level domain access grants, with optional filtering by domain, principal, or permission. A grant is returned only when it matches every filter supplied. With no filters, returns the grants for the caller's organization.

Samples

// The following example lists the first page of organization domain access grants and returns a
// nextToken to retrieve the next page. Payloads are shown as JSON on the wire they are CBOR encoded.
val resp = cloudWatchOmniClient.listDomainAccessGrantsForOrganization {
    domainId = "d-1a2b3c4d5e"
    maxResults = 50
}