createAccessProfile
abstract suspend fun createAccessProfile(input: CreateAccessProfileRequest): CreateAccessProfileResponse
Creates an access profile in a space. Use GetAccessProfile and ListAccessProfiles to retrieve profiles, and UpdateAccessProfile to modify one.
Samples
// The following example creates a customer managed access profile in a space. Payloads are shown as
// JSON on the wire they are CBOR encoded.
val resp = cloudWatchOmniClient.createAccessProfile {
spaceId = "a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d"
name = "Analyst read-only profile"
description = "Read-only access for analysts."
tags = mapOf<String, String>(
"Team" to "observability"
)
clientToken = "3f2a9c1e-7b04-4d8a-9e15-6c2b8d0f4a73"
}Content copied to clipboard