createAgenticPersonaConfiguration
abstract suspend fun createAgenticPersonaConfiguration(input: CreateAgenticPersonaConfigurationRequest): CreateAgenticPersonaConfigurationResponse
Creates an Amazon WorkSpaces agentic persona configuration with the specified models, connectors, contexts, and enforced policies. The name must be unique among the persona configurations in your account.
If the name is in use, the operation returns ConflictException, and its ResourceId identifies the existing persona configuration. If you exceed the persona or tag limit, it returns ServiceQuotaExceededException.
Samples
// The following example creates a persona configuration with two models, a connector, a context, and
// both enforced policies.
val resp = workSpacesClient.createAgenticPersonaConfiguration {
clientToken = "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
name = "backend-developer"
description = "Persona for backend developers."
modelIds = listOf<String>(
"anthropic.claude-sonnet-5-5",
"anthropic.claude-opus-5-5"
)
agenticConnectorIds = listOf<String>(
"wsacn-github"
)
agenticContextIds = listOf<String>(
"wsactx-a1b2c3d4"
)
workspaceEnforcedPolicyId = "wsep-a1b2c3d4"
agentEnforcedPolicyId = "wsae-a1b2c3d4"
tags = listOf<Tag>(
Tag {
key = "team"
value = "platform"
}
)
}Content copied to clipboard