asCustomMemoryStrategy
Casts this MemoryStrategyInput as a CustomMemoryStrategy and retrieves its aws.sdk.kotlin.services.bedrockagentcorecontrol.model.CustomMemoryStrategyInput value. Throws an exception if the MemoryStrategyInput is not a CustomMemoryStrategy.