asGuardrailTrace

Casts this Trace as a GuardrailTrace and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.GuardrailTrace value. Throws an exception if the Trace is not a GuardrailTrace.