asDuration

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