Content

sealed class Content

Represents content input for policy generation operations. This structure encapsulates the natural language descriptions or other content formats that are used as input for AI-powered policy generation.

Inheritors

Types

Link copied to clipboard
data class RawText(val value: String) : Content

The raw text content containing natural language descriptions of desired policy behavior. This text is processed by AI to generate corresponding Cedar policy statements that match the described intent.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this Content as a RawText and retrieves its kotlin.String value. Throws an exception if the Content is not a RawText.

Link copied to clipboard

Casts this Content as a RawText and retrieves its kotlin.String value. Returns null if the Content is not a RawText.