asDynamoDbReservedCapacity
Casts this ResourceDetails as a DynamoDbReservedCapacity and retrieves its aws.sdk.kotlin.services.costoptimizationhub.model.DynamoDbReservedCapacity value. Throws an exception if the ResourceDetails is not a DynamoDbReservedCapacity.