listSpaces
inline suspend fun CloudWatchOmniClient.listSpaces(crossinline block: ListSpacesRequest.Builder.() -> Unit): ListSpacesResponse
Returns the spaces in the account, optionally filtered by domain.
Samples
// The following example lists the first page of spaces in a domain and returns a nextToken to retrieve
// the next page. Payloads are shown as JSON on the wire they are CBOR encoded.
val resp = cloudWatchOmniClient.listSpaces {
domainId = "d-1a2b3c4d5e"
maxResults = 50
}Content copied to clipboard